The battery management arrangements do not compile for stubdom as they
use direct IO, so for the moment I have stubbed them out.
#include "isa.h" //register_ioport_read declaration
#include "battery_mgmt.h"
+#ifndef CONFIG_NO_BATTERY_MGMT
+
#include <sys/io.h>
//#define BATTERY_MGMT_DEBUG
#endif
}
+#else
+
+void battery_mgmt_init(PCIDevice *device) { }
+
+#endif
#ifndef _BATTERY_MGMT_H
#define _BATTERY_MGMT_H
+#ifdef CONFIG_STUBDOM
+#define CONFIG_NO_BATTERY_MGMT
+#endif
+
enum POWER_MGMT_MODE { PM_MODE_NONE = 0, PM_MODE_PT, PM_MODE_NON_PT };
enum BATTERY_INFO_TYPE { BATT_NONE, BIF, BST };
typedef struct battery_state_info {