/dev/usb/kbd: Difference between revisions

From WiiBrew
< /dev | usb
Jump to navigation Jump to search
Kosinus (talk | contribs)
Starting /dev/usb/kbd page
 
Kosinus (talk | contribs)
No edit summary
Line 17: Line 17:
|-
|-
| 00 00 00 00 80
| 00 00 00 00 80
| Unknown
| Turn off keyboard LEDS.
|-
|-
| ?? ?? ?? ?? 00
| ?? ?? ?? ?? 00

Revision as of 13:47, 23 March 2008

Description

/dev/usb/kbd is the interface to the USB keyboard driver.

Reads, seeks and ioctlvs always fail. Writes are used to send commands. Ioctls are used to receive events.

Write

Writes are used the send commands to the driver. Most likely, this is to control keyboard LEDs. Writes are always 5 bytes in length.

Available commands:
Write data Function
00 00 00 00 80 Turn off keyboard LEDS.
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown

Ioctl

Ioctls can be send to the driver. All parameters are ignored. This appears to be for receiving keyboard events.