* added notify headers to the ACPI header (from actypes.h)
* adjusted acpi_battery accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41162 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,6 +24,15 @@ typedef void * acpi_handle;
|
|||||||
|
|
||||||
#ifndef __ACTYPES_H__
|
#ifndef __ACTYPES_H__
|
||||||
|
|
||||||
|
/* Notify types */
|
||||||
|
|
||||||
|
#define ACPI_SYSTEM_NOTIFY 0x1
|
||||||
|
#define ACPI_DEVICE_NOTIFY 0x2
|
||||||
|
#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY)
|
||||||
|
#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3
|
||||||
|
|
||||||
|
#define ACPI_MAX_SYS_NOTIFY 0x7f
|
||||||
|
|
||||||
/* Address Space (Operation Region) Types */
|
/* Address Space (Operation Region) Types */
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
@@ -37,14 +37,6 @@ struct battery_device_cookie {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Notify types */
|
|
||||||
|
|
||||||
#define ACPI_SYSTEM_NOTIFY 0x1
|
|
||||||
#define ACPI_DEVICE_NOTIFY 0x2
|
|
||||||
#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY)
|
|
||||||
#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3
|
|
||||||
#define ACPI_MAX_SYS_NOTIFY 0x7f
|
|
||||||
|
|
||||||
void battery_notify_handler(acpi_handle device, uint32 value, void *context);
|
void battery_notify_handler(acpi_handle device, uint32 value, void *context);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user