From: Ian Jackson Date: Thu, 23 Oct 2008 09:26:02 +0000 (+0100) Subject: Battery management - disable for stubdom X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b4d410a1c28fcd1ea528d94eb8b94b79286c25ed;p=xenclient%2Fioemu.git Battery management - disable for stubdom The battery management arrangements do not compile for stubdom as they use direct IO, so for the moment I have stubbed them out. --- diff --git a/hw/battery_mgmt.c b/hw/battery_mgmt.c index 38b56584..0cce054f 100644 --- a/hw/battery_mgmt.c +++ b/hw/battery_mgmt.c @@ -32,6 +32,8 @@ #include "isa.h" //register_ioport_read declaration #include "battery_mgmt.h" +#ifndef CONFIG_NO_BATTERY_MGMT + #include //#define BATTERY_MGMT_DEBUG @@ -295,3 +297,8 @@ void battery_mgmt_init(PCIDevice *device) #endif } +#else + +void battery_mgmt_init(PCIDevice *device) { } + +#endif diff --git a/hw/battery_mgmt.h b/hw/battery_mgmt.h index 9b9b427d..dd60160e 100644 --- a/hw/battery_mgmt.h +++ b/hw/battery_mgmt.h @@ -22,6 +22,10 @@ #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 {