/dev/usb/ehc

From WiiBrew
< /dev‎ | usb
Jump to navigation Jump to search

Appears to be a way to address usb devices via EHCI (USB 2.0). This driver has only been seen in IOS58. The interface appears to resemble that of /dev/usb/oh0.

Devices

/dev/usb/ehc/0b95/7720

ASIX AX88772 USB2.0 to Fast Ethernet Adapter (referenced in IOS eth driver)

IPC request list

number name Description
0x01 IOS_OPEN Opens the device. Can only be opened from PID 17 (USB_VEN) otherwise returns -1. Returns 0 if success. Returns 1 if device already open (not confirmed)
0x02 IOS_CLOSE Closes the device. Returns 0 always.
0x03 IOS_READ Does nothing. Returns -4.
0x04 IOS_WRITE Does nothing. Returns -4.
0x05 IOS_IOCTL Does nothing. Returns -4.
0x06 IOS_IOCTLV Send an ioctl request.

IOS Ioctlv list

number name in count out count vec entry target vec entry size [bytes] Description
0x00 ? 0 0 ? ? Sets ioctlv.vector[0].addr to 0x20001 and returns 0 ??
0x01 ? 0 0 ? ? ?
0x02 ? 0 0 ? ? Reads a stored IPC request. If not NULL, replies to it. If NULL, replies to the current request (always replies with zero). ??
0x03 ? 0 0 ? ? ?
0x04 ? 0 0 ? ? ?
0x05 ? 0 0 ? ? ?
0x06 ? 0 0 ? ? ?
0x10 ? 0 0 ? ? ?
0x11 ? 0 0 ? ? ?
0x13 ? 0 0 ? ? ?
0x14 ? 0x10 0 ? ? Send USB command 0x08 data offset, 0x0C transfer length