aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2018-02-13 13:54:10 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-02-21 17:36:39 -0500
commit4f1c29d0dc7bde6df1c485f139fd8ee1d10b3485 (patch)
treea0a939369a8ce66cac4c488862cab894da5bbddf
parent91ab883eb21325ad80f3473633f794c78ac87f51 (diff)
ACPI: sysfs: Update device object sysfs documentation
Add documentation for two attributes, status and hrv, in Documentation/ABI/testing/sysfs-bus-acpi. Compiled from git logs and the ACPI specification. Signed-off-by: Aishwarya Pant <aishpant@gmail.com> [ rjw: Minor changes ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--Documentation/ABI/testing/sysfs-bus-acpi37
1 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-acpi b/Documentation/ABI/testing/sysfs-bus-acpi
index 7fa9cbc75344..e7898cfe5fb1 100644
--- a/Documentation/ABI/testing/sysfs-bus-acpi
+++ b/Documentation/ABI/testing/sysfs-bus-acpi
@@ -56,3 +56,40 @@ Description:
56 Writing 1 to this attribute will trigger hot removal of 56 Writing 1 to this attribute will trigger hot removal of
57 this device object. This file exists for every device 57 this device object. This file exists for every device
58 object that has _EJ0 method. 58 object that has _EJ0 method.
59
60What: /sys/bus/acpi/devices/.../status
61Date: Jan, 2014
62Contact: Rafael J. Wysocki <rjw@rjwysocki.net>
63Description:
64 (RO) Returns the ACPI device status: enabled, disabled or
65 functioning or present, if the method _STA is present.
66
67 The return value is a decimal integer representing the device's
68 status bitmap:
69
70 Bit [0] – Set if the device is present.
71 Bit [1] – Set if the device is enabled and decoding its
72 resources.
73 Bit [2] – Set if the device should be shown in the UI.
74 Bit [3] – Set if the device is functioning properly (cleared if
75 device failed its diagnostics).
76 Bit [4] – Set if the battery is present.
77 Bits [31:5] – Reserved (must be cleared)
78
79 If bit [0] is clear, then bit 1 must also be clear (a device
80 that is not present cannot be enabled).
81
82 Bit 0 can be clear (not present) with bit [3] set (device is
83 functional). This case is used to indicate a valid device for
84 which no device driver should be loaded.
85
86 More special cases are covered in the ACPI specification.
87
88What: /sys/bus/acpi/devices/.../hrv
89Date: Apr, 2016
90Contact: Rafael J. Wysocki <rjw@rjwysocki.net>
91Description:
92 (RO) Allows users to read the hardware version of non-PCI
93 hardware, if the _HRV control method is present. It is mostly
94 useful for non-PCI devices because lspci can list the hardware
95 version for PCI devices.