Difference between revisions of "/dev/usb/ehc"

From WiiBrew
< /dev‎ | usb
Jump to: navigation, search
m
Line 5: Line 5:
 
  ASIX AX88772 USB2.0 to Fast Ethernet Adapter (referenced in IOS eth driver)
 
  ASIX AX88772 USB2.0 to Fast Ethernet Adapter (referenced in IOS eth driver)
  
[[Category:Wii Filesystem]]
+
== IPC request list ==
 +
{| class="wikitable" style="margin: 1em auto 1em auto"
 +
! style="vertical-align: top;" |number
 +
! style="vertical-align: top;" |name
 +
! style="vertical-align: top;" |Description
 +
|-
 +
| style="vertical-align: top;" |0x01
 +
| style="vertical-align: top;" |IOS_OPEN
 +
| style="vertical-align: top;" |Opens the device. Returns 0 if success. Returns 1 if device already open (not confirmed)
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x02
 +
| style="vertical-align: top;" |IOS_CLOSE
 +
| style="vertical-align: top;" |Closes the device. Returns 0 always.
 +
|-
 +
| style="vertical-align: top;" |0x03
 +
| style="vertical-align: top;" |IOS_READ
 +
| style="vertical-align: top;" |Does nothing. Returns -4.
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x04
 +
| style="vertical-align: top;" |IOS_WRITE
 +
| style="vertical-align: top;" |Does nothing. Returns -4.
 +
|-
 +
| style="vertical-align: top;" |0x05
 +
| style="vertical-align: top;" |IOS_IOCTL
 +
| style="vertical-align: top;" |Does nothing. Returns -4.
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x06
 +
| style="vertical-align: top;" |IOS_IOCTLV
 +
| style="vertical-align: top;" |Send an ioctl request.
 +
|}
 +
 
 +
== IOS Ioctlv list ==
 +
{| class="wikitable" style="margin: 1em auto 1em auto"
 +
! style="vertical-align: top;" |number
 +
! style="vertical-align: top;" |name
 +
! style="vertical-align: top;" |in&nbsp;count
 +
! style="vertical-align: top;" |out&nbsp;count
 +
! style="vertical-align: top;" |vec&nbsp;entry&nbsp;target
 +
! style="vertical-align: top;" |vec&nbsp;entry&nbsp;size&nbsp;[bytes]
 +
! style="vertical-align: top;" |Description
 +
|-
 +
| style="vertical-align: top;" |0x00
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |Sets ioctlv.vector[0].addr to 0x20001 and returns 0 ??
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x01
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-
 +
| style="vertical-align: top;" |0x02
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x03
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-
 +
| style="vertical-align: top;" |0x04
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x05
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-
 +
| style="vertical-align: top;" |0x06
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x10
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-
 +
| style="vertical-align: top;" |0x11
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|-  style="background-color: #eee;"
 +
| style="vertical-align: top;" |0x13
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |0
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
| style="vertical-align: top;" |?
 +
|}
 +
 
 +
[[Category:IOS API documentation]]

Revision as of 19:59, 24 June 2010

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. 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 ? ? ?
0x03 ? 0 0 ? ? ?
0x04 ? 0 0 ? ? ?
0x05 ? 0 0 ? ? ?
0x06 ? 0 0 ? ? ?
0x10 ? 0 0 ? ? ?
0x11 ? 0 0 ? ? ?
0x13 ? 0 0 ? ? ?