Changes

369 bytes added ,  15:32, 15 November 2021
Add ioctl 0x14 and 0x15
Line 39: Line 39:  
===0x12 - UhsAdministerDevice()===
 
===0x12 - UhsAdministerDevice()===
 
This function's purpose is currently unknown, but [[usb_mic.rpl]] uses it during device initialization. Its input is a 12-byte buffer containing: a 32-bit unknown word (1-5 inclusive), a 32-bit interface handle, and a 16-bit unknown word. No output is produced by IOSU. usb_mic.rpl seems to pass 2 and 0 as the two unknown words when initializing a USB microphone.
 
This function's purpose is currently unknown, but [[usb_mic.rpl]] uses it during device initialization. Its input is a 12-byte buffer containing: a 32-bit unknown word (1-5 inclusive), a 32-bit interface handle, and a 16-bit unknown word. No output is produced by IOSU. usb_mic.rpl seems to pass 2 and 0 as the two unknown words when initializing a USB microphone.
 +
 +
===0x14 - UhsServerAddHc()===
 +
Used internally to add a host controller to UHS. Its input is a 8 byte buffer containing the number of the root hub and an options parameter.
 +
 +
===0x15 - UhsServerRemoveHc()===
 +
See UhsServerAddHc.
    
==ioctlv() interface==
 
==ioctlv() interface==
Line 329: Line 335:  
| 0x12
 
| 0x12
 
| UhsAdministerDevice
 
| UhsAdministerDevice
 +
|      X
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x13
 +
|
 +
|      X
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x14
 +
| UhsServerAddHc
 +
|      X
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x15
 +
| UhsServerRemoveHc
 
|      X
 
|      X
 
|  
 
|