diff options
author | Zhang Rui <rui.zhang@intel.com> | 2007-01-04 02:03:18 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-01-05 23:43:00 -0500 |
commit | bb0958544f3c7c016b2a3025ab3694363e403aa1 (patch) | |
tree | bd7ea8032861f5b4097ab10334ad5c80dfa397ad /include | |
parent | 2786f6e388e9dfe9e7b1c3c6bd7fcfba9cfb9831 (diff) |
ACPI: use more understandable bus_id for ACPI devices
Some of the ACPI devices use the internal fake hids
which are exposed to userspace as devces' bus_id after sysfs conversion.
To make it more friendly, we convert them to more understandable strings.
For those devices w/o PNPids, we use "device:instance_no" as the bus_id
instead of "PNPIDNON:instance_no".
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 | ||||
-rw-r--r-- | include/acpi/acpi_drivers.h | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index a6b4037beeae..e7df8423d15c 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -184,7 +184,7 @@ struct acpi_device_dir { | |||
184 | 184 | ||
185 | typedef char acpi_bus_id[5]; | 185 | typedef char acpi_bus_id[5]; |
186 | typedef unsigned long acpi_bus_address; | 186 | typedef unsigned long acpi_bus_address; |
187 | typedef char acpi_hardware_id[9]; | 187 | typedef char acpi_hardware_id[15]; |
188 | typedef char acpi_unique_id[9]; | 188 | typedef char acpi_unique_id[9]; |
189 | typedef char acpi_device_name[40]; | 189 | typedef char acpi_device_name[40]; |
190 | typedef char acpi_device_class[20]; | 190 | typedef char acpi_device_class[20]; |
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 2781e6628645..1b18c36da789 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -36,14 +36,14 @@ | |||
36 | 36 | ||
37 | /* _HID definitions */ | 37 | /* _HID definitions */ |
38 | 38 | ||
39 | #define ACPI_POWER_HID "ACPI_PWR" | 39 | #define ACPI_POWER_HID "power_resource" |
40 | #define ACPI_PROCESSOR_HID "ACPI_CPU" | 40 | #define ACPI_PROCESSOR_HID "processor" |
41 | #define ACPI_SYSTEM_HID "ACPI_SYS" | 41 | #define ACPI_SYSTEM_HID "acpi_system" |
42 | #define ACPI_THERMAL_HID "ACPI_THM" | 42 | #define ACPI_THERMAL_HID "thermal" |
43 | #define ACPI_BUTTON_HID_POWERF "ACPI_FPB" | 43 | #define ACPI_BUTTON_HID_POWERF "button_power" |
44 | #define ACPI_BUTTON_HID_SLEEPF "ACPI_FSB" | 44 | #define ACPI_BUTTON_HID_SLEEPF "button_sleep" |
45 | 45 | #define ACPI_VIDEO_HID "video" | |
46 | #define ACPI_VIDEO_HID "ACPI_VID" | 46 | #define ACPI_BAY_HID "bay" |
47 | /* -------------------------------------------------------------------------- | 47 | /* -------------------------------------------------------------------------- |
48 | PCI | 48 | PCI |
49 | -------------------------------------------------------------------------- */ | 49 | -------------------------------------------------------------------------- */ |