21
22 /*
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ifndef _HOTKEY_DRV_H
28 #define _HOTKEY_DRV_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #include <sys/types.h>
35 #include <sys/conf.h>
36 #include <sys/stat.h>
37 #include <sys/note.h>
38 #include <sys/modctl.h>
39 #include <sys/ddi.h>
40 #include <sys/sunddi.h>
41 #include <sys/acpi/acpi.h>
42 #include <sys/acpica.h>
43 #include <sys/sysevent/eventdefs.h>
44 #include <sys/acpi_drv.h>
45
46
47 #define ID_LEN 9
48
49 struct acpi_drv_dev {
50 ACPI_HANDLE hdl;
51 char hid[ID_LEN]; /* ACPI HardwareId */
52 char uid[ID_LEN]; /* ACPI UniqueId */
53 ACPI_INTEGER adr; /* Bus device Id */
54 int valid; /* the device state is valid */
55
56 /*
57 * Unlike most other devices, when a battery is inserted or
58 * removed from the system, the device itself(the battery bay)
59 * is still considered to be present in the system.
60 *
61 * Value:
|
21
22 /*
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ifndef _HOTKEY_DRV_H
28 #define _HOTKEY_DRV_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #include <sys/types.h>
35 #include <sys/conf.h>
36 #include <sys/stat.h>
37 #include <sys/note.h>
38 #include <sys/modctl.h>
39 #include <sys/ddi.h>
40 #include <sys/sunddi.h>
41 #include <acpica/include/acpi.h>
42 #include <sys/acpica.h>
43 #include <sys/sysevent/eventdefs.h>
44 #include <sys/acpi_drv.h>
45
46
47 #define ID_LEN 9
48
49 struct acpi_drv_dev {
50 ACPI_HANDLE hdl;
51 char hid[ID_LEN]; /* ACPI HardwareId */
52 char uid[ID_LEN]; /* ACPI UniqueId */
53 ACPI_INTEGER adr; /* Bus device Id */
54 int valid; /* the device state is valid */
55
56 /*
57 * Unlike most other devices, when a battery is inserted or
58 * removed from the system, the device itself(the battery bay)
59 * is still considered to be present in the system.
60 *
61 * Value:
|