/*
 * asmi.h
 */

#define APM_INSTALLATION_CHECK	0x00
#define APM_INTERFACE_CONNECT	0x01
#define APM_INTERFACE_DISCONNECT 0x04
#define APM_CPU_IDLE		0x05
#define APM_CPU_BUSY		0x06
#define APM_SET_POWER_STATE	0x07
#define APM_CHECK_POWER_STATUS	0x0a
#define APM_GET_PM_EVENT	0x0b

#define APM_INTERFACE_NOT_CONNECTED	0x03
#define APM_NO_EVENT_PENDING	0x80

#define APM_EVENT_STANDBY_REQUEST	0x01
#define APM_EVENT_SUSPEND_REQUEST	0x02
#define APM_EVENT_NORMAL_RESUME		0x03
#define APM_EVENT_CRITICAL_RESUME	0x04
#define APM_EVENT_BATTERY_LOW		0x05

extern int asmi(int func, int device, int arg,
		unsigned int *aret, unsigned int *bret, unsigned int *cret);
extern const char *apm_error(int err);


