diff options
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/acpi_bus.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 1cef1398e358..3cd9ccdcbd8f 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -70,7 +70,6 @@ enum acpi_bus_device_type { | |||
| 70 | ACPI_BUS_TYPE_POWER, | 70 | ACPI_BUS_TYPE_POWER, |
| 71 | ACPI_BUS_TYPE_PROCESSOR, | 71 | ACPI_BUS_TYPE_PROCESSOR, |
| 72 | ACPI_BUS_TYPE_THERMAL, | 72 | ACPI_BUS_TYPE_THERMAL, |
| 73 | ACPI_BUS_TYPE_SYSTEM, | ||
| 74 | ACPI_BUS_TYPE_POWER_BUTTON, | 73 | ACPI_BUS_TYPE_POWER_BUTTON, |
| 75 | ACPI_BUS_TYPE_SLEEP_BUTTON, | 74 | ACPI_BUS_TYPE_SLEEP_BUTTON, |
| 76 | ACPI_BUS_DEVICE_TYPE_COUNT | 75 | ACPI_BUS_DEVICE_TYPE_COUNT |
| @@ -142,10 +141,7 @@ struct acpi_device_status { | |||
| 142 | 141 | ||
| 143 | struct acpi_device_flags { | 142 | struct acpi_device_flags { |
| 144 | u32 dynamic_status:1; | 143 | u32 dynamic_status:1; |
| 145 | u32 hardware_id:1; | ||
| 146 | u32 compatible_ids:1; | ||
| 147 | u32 bus_address:1; | 144 | u32 bus_address:1; |
| 148 | u32 unique_id:1; | ||
| 149 | u32 removable:1; | 145 | u32 removable:1; |
| 150 | u32 ejectable:1; | 146 | u32 ejectable:1; |
| 151 | u32 lockable:1; | 147 | u32 lockable:1; |
| @@ -154,7 +150,7 @@ struct acpi_device_flags { | |||
| 154 | u32 performance_manageable:1; | 150 | u32 performance_manageable:1; |
| 155 | u32 wake_capable:1; /* Wakeup(_PRW) supported? */ | 151 | u32 wake_capable:1; /* Wakeup(_PRW) supported? */ |
| 156 | u32 force_power_state:1; | 152 | u32 force_power_state:1; |
| 157 | u32 reserved:19; | 153 | u32 reserved:22; |
| 158 | }; | 154 | }; |
| 159 | 155 | ||
| 160 | /* File System */ | 156 | /* File System */ |
| @@ -172,20 +168,23 @@ typedef unsigned long acpi_bus_address; | |||
| 172 | typedef char acpi_device_name[40]; | 168 | typedef char acpi_device_name[40]; |
| 173 | typedef char acpi_device_class[20]; | 169 | typedef char acpi_device_class[20]; |
| 174 | 170 | ||
| 171 | struct acpi_hardware_id { | ||
| 172 | struct list_head list; | ||
| 173 | char *id; | ||
| 174 | }; | ||
| 175 | |||
| 175 | struct acpi_device_pnp { | 176 | struct acpi_device_pnp { |
| 176 | acpi_bus_id bus_id; /* Object name */ | 177 | acpi_bus_id bus_id; /* Object name */ |
| 177 | acpi_bus_address bus_address; /* _ADR */ | 178 | acpi_bus_address bus_address; /* _ADR */ |
| 178 | char *hardware_id; /* _HID */ | ||
| 179 | struct acpica_device_id_list *cid_list; /* _CIDs */ | ||
| 180 | char *unique_id; /* _UID */ | 179 | char *unique_id; /* _UID */ |
| 180 | struct list_head ids; /* _HID and _CIDs */ | ||
| 181 | acpi_device_name device_name; /* Driver-determined */ | 181 | acpi_device_name device_name; /* Driver-determined */ |
| 182 | acpi_device_class device_class; /* " */ | 182 | acpi_device_class device_class; /* " */ |
| 183 | }; | 183 | }; |
| 184 | 184 | ||
| 185 | #define acpi_device_bid(d) ((d)->pnp.bus_id) | 185 | #define acpi_device_bid(d) ((d)->pnp.bus_id) |
| 186 | #define acpi_device_adr(d) ((d)->pnp.bus_address) | 186 | #define acpi_device_adr(d) ((d)->pnp.bus_address) |
| 187 | #define acpi_device_hid(d) ((d)->pnp.hardware_id) | 187 | char *acpi_device_hid(struct acpi_device *device); |
| 188 | #define acpi_device_uid(d) ((d)->pnp.unique_id) | ||
| 189 | #define acpi_device_name(d) ((d)->pnp.device_name) | 188 | #define acpi_device_name(d) ((d)->pnp.device_name) |
| 190 | #define acpi_device_class(d) ((d)->pnp.device_class) | 189 | #define acpi_device_class(d) ((d)->pnp.device_class) |
| 191 | 190 | ||
| @@ -262,7 +261,8 @@ struct acpi_device_wakeup { | |||
| 262 | /* Device */ | 261 | /* Device */ |
| 263 | 262 | ||
| 264 | struct acpi_device { | 263 | struct acpi_device { |
| 265 | acpi_handle handle; | 264 | int device_type; |
| 265 | acpi_handle handle; /* no handle for fixed hardware */ | ||
| 266 | struct acpi_device *parent; | 266 | struct acpi_device *parent; |
| 267 | struct list_head children; | 267 | struct list_head children; |
| 268 | struct list_head node; | 268 | struct list_head node; |
| @@ -322,6 +322,8 @@ extern void unregister_acpi_bus_notifier(struct notifier_block *nb); | |||
| 322 | 322 | ||
| 323 | int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device); | 323 | int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device); |
| 324 | void acpi_bus_data_handler(acpi_handle handle, void *context); | 324 | void acpi_bus_data_handler(acpi_handle handle, void *context); |
| 325 | acpi_status acpi_bus_get_status_handle(acpi_handle handle, | ||
| 326 | unsigned long long *sta); | ||
| 325 | int acpi_bus_get_status(struct acpi_device *device); | 327 | int acpi_bus_get_status(struct acpi_device *device); |
| 326 | int acpi_bus_get_power(acpi_handle handle, int *state); | 328 | int acpi_bus_get_power(acpi_handle handle, int *state); |
| 327 | int acpi_bus_set_power(acpi_handle handle, int state); | 329 | int acpi_bus_set_power(acpi_handle handle, int state); |
