diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-04-24 10:48:13 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-25 02:00:27 -0400 |
commit | 176750d68801bfa4a88d1cf54174aa0347d7e5d8 (patch) | |
tree | cb8cb70fcce9e6d7f2d9365635b2ec2856336ad2 /Documentation | |
parent | 54ae15014c306b3d7ad32c996fea9a5ac8560b60 (diff) |
ACPI: thinkpad-acpi: driver sysfs conversion
Add the sysfs attributes for the platform driver.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/thinkpad-acpi.txt | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt index 0e4e053cface..cc079afaf66b 100644 --- a/Documentation/thinkpad-acpi.txt +++ b/Documentation/thinkpad-acpi.txt | |||
@@ -101,11 +101,39 @@ follow all sysfs guidelines and correctly process all errors (the sysfs | |||
101 | interface makes extensive use of errors). File descriptors and open / | 101 | interface makes extensive use of errors). File descriptors and open / |
102 | close operations to the sysfs inodes must also be properly implemented. | 102 | close operations to the sysfs inodes must also be properly implemented. |
103 | 103 | ||
104 | Driver version -- /proc/acpi/ibm/driver | 104 | The version of thinkpad-acpi's sysfs interface is exported by the driver |
105 | --------------------------------------- | 105 | as a driver attribute (see below). |
106 | |||
107 | Sysfs driver attributes are on the driver's sysfs attribute space, | ||
108 | for 2.6.20 this is /sys/bus/platform/drivers/thinkpad-acpi/. | ||
109 | |||
110 | Sysfs device attributes are on the driver's sysfs attribute space, | ||
111 | for 2.6.20 this is /sys/devices/platform/thinkpad-acpi/. | ||
112 | |||
113 | Driver version | ||
114 | -------------- | ||
115 | |||
116 | procfs: /proc/acpi/ibm/driver | ||
117 | sysfs driver attribute: version | ||
106 | 118 | ||
107 | The driver name and version. No commands can be written to this file. | 119 | The driver name and version. No commands can be written to this file. |
108 | 120 | ||
121 | Sysfs interface version | ||
122 | ----------------------- | ||
123 | |||
124 | sysfs driver attribute: interface_version | ||
125 | |||
126 | Version of the thinkpad-acpi sysfs interface, as an unsigned long | ||
127 | (output in hex format: 0xAAAABBCC), where: | ||
128 | AAAA - major revision | ||
129 | BB - minor revision | ||
130 | CC - bugfix revision | ||
131 | |||
132 | The sysfs interface version changelog for the driver can be found at the | ||
133 | end of this document. Changes to the sysfs interface done by the kernel | ||
134 | subsystems are not documented here, nor are they tracked by this | ||
135 | attribute. | ||
136 | |||
109 | Hot keys -- /proc/acpi/ibm/hotkey | 137 | Hot keys -- /proc/acpi/ibm/hotkey |
110 | --------------------------------- | 138 | --------------------------------- |
111 | 139 | ||
@@ -745,9 +773,19 @@ to enable more than one output class, just add their values. | |||
745 | There is also a kernel build option to enable more debugging | 773 | There is also a kernel build option to enable more debugging |
746 | information, which may be necessary to debug driver problems. | 774 | information, which may be necessary to debug driver problems. |
747 | 775 | ||
776 | The level of debugging information output by the driver can be changed | ||
777 | at runtime through sysfs, using the driver attribute debug_level. The | ||
778 | attribute takes the same bitmask as the debug module parameter above. | ||
779 | |||
748 | Force loading of module | 780 | Force loading of module |
749 | ----------------------- | 781 | ----------------------- |
750 | 782 | ||
751 | If thinkpad-acpi refuses to detect your ThinkPad, you can try to specify | 783 | If thinkpad-acpi refuses to detect your ThinkPad, you can try to specify |
752 | the module parameter force_load=1. Regardless of whether this works or | 784 | the module parameter force_load=1. Regardless of whether this works or |
753 | not, please contact ibm-acpi-devel@lists.sourceforge.net with a report. | 785 | not, please contact ibm-acpi-devel@lists.sourceforge.net with a report. |
786 | |||
787 | |||
788 | Sysfs interface changelog: | ||
789 | |||
790 | 0x000100: Initial sysfs support, as a single platform driver and | ||
791 | device. | ||