summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2012-11-16 02:56:59 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-16 02:56:59 +0100
commitbb74ac23b10820d8722c3e1f4add9ef59e703f63 (patch)
tree14b9d4af4c2bfcad532d40b936392e444d100462 /include/acpi/acpi_bus.h
parent61d8eff14417fb6d6c5d57e4f0f7925e9e99fce3 (diff)
downloadblackbird-op-linux-bb74ac23b10820d8722c3e1f4add9ef59e703f63.tar.gz
blackbird-op-linux-bb74ac23b10820d8722c3e1f4add9ef59e703f63.zip
ACPI: create _SUN sysfs file
_SUN method provides the slot unique-ID in the ACPI namespace. And The value is written in Advanced Configuration and Power Interface Specification as follows: "The _SUN value is required to be unique among the slots ofthe same type. It is also recommended that this number match the slot number printed on the physical slot whenever possible." So if we can know the value, we can identify the physical position of the slot in the system. The patch creates "sun" file in sysfs for identifying physical position of the slot. Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Reviewed-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index e8b2877aea33..6f385e5909db 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -179,6 +179,7 @@ struct acpi_device_pnp {
acpi_device_name device_name; /* Driver-determined */
acpi_device_class device_class; /* " */
union acpi_object *str_obj; /* unicode string for _STR method */
+ unsigned long sun; /* _SUN */
};
#define acpi_device_bid(d) ((d)->pnp.bus_id)
OpenPOWER on IntegriCloud