diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-05-05 17:13:04 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-03 05:07:05 -0400 |
commit | c7da08677d73e887380e64c865b99536027191aa (patch) | |
tree | 656a229dc2761267674f037016c315dc23394660 /Documentation/ABI | |
parent | d76f89e13a0439649120a85297085e8d8fff77ec (diff) |
HID: wiimote: add sysfs extension/device-type attrs
Two new attributes, "extension" and "devtype" now allow user-space to read
the extension type and device type. As device detection is asynchronous,
we send a CHANGED event after it is done. This also allows user-space to
wait for a device to settle before opening its input event devices.
The "extension" device is compatible with the old "extension" sysfs field
(which was registered by the static extension support code).
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-driver-hid-wiimote | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-hid-wiimote b/Documentation/ABI/testing/sysfs-driver-hid-wiimote index 3d98009f447a..e8f6b16723e8 100644 --- a/Documentation/ABI/testing/sysfs-driver-hid-wiimote +++ b/Documentation/ABI/testing/sysfs-driver-hid-wiimote | |||
@@ -12,7 +12,7 @@ Description: Make it possible to set/get current led state. Reading from it | |||
12 | What: /sys/bus/hid/drivers/wiimote/<dev>/extension | 12 | What: /sys/bus/hid/drivers/wiimote/<dev>/extension |
13 | Date: August 2011 | 13 | Date: August 2011 |
14 | KernelVersion: 3.2 | 14 | KernelVersion: 3.2 |
15 | Contact: David Herrmann <dh.herrmann@googlemail.com> | 15 | Contact: David Herrmann <dh.herrmann@gmail.com> |
16 | Description: This file contains the currently connected and initialized | 16 | Description: This file contains the currently connected and initialized |
17 | extensions. It can be one of: none, motionp, nunchuck, classic, | 17 | extensions. It can be one of: none, motionp, nunchuck, classic, |
18 | motionp+nunchuck, motionp+classic | 18 | motionp+nunchuck, motionp+classic |
@@ -20,3 +20,25 @@ Description: This file contains the currently connected and initialized | |||
20 | the official Nintendo Nunchuck extension and classic is the | 20 | the official Nintendo Nunchuck extension and classic is the |
21 | Nintendo Classic Controller extension. The motionp extension can | 21 | Nintendo Classic Controller extension. The motionp extension can |
22 | be combined with the other two. | 22 | be combined with the other two. |
23 | Starting with kernel-version 3.11 Motion Plus hotplugging is | ||
24 | supported and if detected, it's no longer reported as static | ||
25 | extension. You will get uevent notifications for the motion-plus | ||
26 | device then. | ||
27 | |||
28 | What: /sys/bus/hid/drivers/wiimote/<dev>/devtype | ||
29 | Date: May 2013 | ||
30 | KernelVersion: 3.11 | ||
31 | Contact: David Herrmann <dh.herrmann@gmail.com> | ||
32 | Description: While a device is initialized by the wiimote driver, we perform | ||
33 | a device detection and signal a "change" uevent after it is | ||
34 | done. This file shows the detected device type. "pending" means | ||
35 | that the detection is still ongoing, "unknown" means, that the | ||
36 | device couldn't be detected or loaded. "generic" means, that the | ||
37 | device couldn't be detected but supports basic Wii Remote | ||
38 | features and can be used. | ||
39 | Other strings for each device-type are available and may be | ||
40 | added if new device-specific detections are added. | ||
41 | Currently supported are: | ||
42 | gen10: First Wii Remote generation | ||
43 | gen20: Second Wii Remote Plus generation (builtin MP) | ||
44 | balanceboard: Wii Balance Board | ||