aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-05-05 17:13:04 -0400
committerJiri Kosina <jkosina@suse.cz>2013-06-03 05:07:05 -0400
commitc7da08677d73e887380e64c865b99536027191aa (patch)
tree656a229dc2761267674f037016c315dc23394660 /Documentation/ABI
parentd76f89e13a0439649120a85297085e8d8fff77ec (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-wiimote24
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
12What: /sys/bus/hid/drivers/wiimote/<dev>/extension 12What: /sys/bus/hid/drivers/wiimote/<dev>/extension
13Date: August 2011 13Date: August 2011
14KernelVersion: 3.2 14KernelVersion: 3.2
15Contact: David Herrmann <dh.herrmann@googlemail.com> 15Contact: David Herrmann <dh.herrmann@gmail.com>
16Description: This file contains the currently connected and initialized 16Description: 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
28What: /sys/bus/hid/drivers/wiimote/<dev>/devtype
29Date: May 2013
30KernelVersion: 3.11
31Contact: David Herrmann <dh.herrmann@gmail.com>
32Description: 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