Difference between revisions of "/dev/usb/ven"
Jump to navigation
Jump to search
m |
m |
||
Line 10: | Line 10: | ||
! Ioctlv | ! Ioctlv | ||
! Parameters | ! Parameters | ||
− | ! Function | + | ! Function |
+ | ! Notes | ||
|- | |- | ||
| 0 | | 0 | ||
| 0 / 0x20 (ioctl) | | 0 / 0x20 (ioctl) | ||
| ven_open | | ven_open | ||
+ | | | ||
|- | |- | ||
| 1 | | 1 | ||
| 0 / 0x180 (ioctl) | | 0 / 0x180 (ioctl) | ||
| ven_attach_complete_callback | | ven_attach_complete_callback | ||
+ | | | ||
|- | |- | ||
| 2 | | 2 | ||
| 0 / 0 (ioctl) | | 0 / 0 (ioctl) | ||
| ven_close | | ven_close | ||
+ | | | ||
|- | |- | ||
| 0x7 | | 0x7 | ||
| 0x20 / 0 (ioctl) | | 0x20 / 0 (ioctl) | ||
| ven_set_alt_setting | | ven_set_alt_setting | ||
+ | | | ||
|- | |- | ||
| 0x10 | | 0x10 | ||
| 0x20 / 0 (ioctl) | | 0x20 / 0 (ioctl) | ||
| ven_suspend_resume, ven_attach_suspend_callback, ven_attach_get_device_params_callback | | ven_suspend_resume, ven_attach_suspend_callback, ven_attach_get_device_params_callback | ||
+ | | | ||
|- | |- | ||
| 0x11 | | 0x11 | ||
| 0x20 / 0 (ioctl) | | 0x20 / 0 (ioctl) | ||
| ven_cancel_endpoint | | ven_cancel_endpoint | ||
+ | | | ||
|- | |- | ||
| 0x12 | | 0x12 | ||
| 1 in / 1 io, or 2 in / 0 io? (ioctlv) | | 1 in / 1 io, or 2 in / 0 io? (ioctlv) | ||
| ven_ctrl | | ven_ctrl | ||
+ | | first buf must be 64 bytes | ||
|- | |- | ||
| 0x13 | | 0x13 | ||
| 1/1 or 2/0? (ioctlv) | | 1/1 or 2/0? (ioctlv) | ||
| ven_intr | | ven_intr | ||
+ | | | ||
|- | |- | ||
| 0x14 | | 0x14 | ||
| 2/2 or 3/1 (ioctlv) | | 2/2 or 3/1 (ioctlv) | ||
− | | ven_isoc | + | | ven_isoc |
+ | | | ||
+ | |- | ||
+ | | 0x15 | ||
+ | | ? (ioctlv) | ||
+ | | ven_? | ||
+ | | | ||
|} | |} |
Revision as of 05:10, 5 June 2010
Description
This device is used to communicate with the USB camera provided with the game "Your Shape". Not much information is known at this time.
It is implemented by a module (USB_VEN) in IOS58. It appears to be able to generically address devices via OHC1 or EHCI. It is accessed via several ioctl/ioctlvs. This information is incomplete, please fill it in when possible.
Ioctls
Ioctlv | Parameters | Function | Notes |
---|---|---|---|
0 | 0 / 0x20 (ioctl) | ven_open | |
1 | 0 / 0x180 (ioctl) | ven_attach_complete_callback | |
2 | 0 / 0 (ioctl) | ven_close | |
0x7 | 0x20 / 0 (ioctl) | ven_set_alt_setting | |
0x10 | 0x20 / 0 (ioctl) | ven_suspend_resume, ven_attach_suspend_callback, ven_attach_get_device_params_callback | |
0x11 | 0x20 / 0 (ioctl) | ven_cancel_endpoint | |
0x12 | 1 in / 1 io, or 2 in / 0 io? (ioctlv) | ven_ctrl | first buf must be 64 bytes |
0x13 | 1/1 or 2/0? (ioctlv) | ven_intr | |
0x14 | 2/2 or 3/1 (ioctlv) | ven_isoc | |
0x15 | ? (ioctlv) | ven_? |