USB_ControllerRegister (SWI&55384) — Installs a new USB host controller.
R1 | Pointer to a zero terminated string which contains an unique tag identifying the USB host controller. |
R2 | Pointer to an array containing substructure information of transaction structure (is described at transaction refsect1). |
R3 | Pointer to Pointer to an array containing substructure information of transaction structure (is described at transaction refsect1). |
R4 | Pointer to host controller property structure Table 1.20, “Format of USB host controller driver property structure”. |
R5 | Reserved. Must be set to zero. |
R6 | Reserved. Must be set to zero. |
R0 | Pointer to controller structure |
R1 | Error code Table A.1, “Error codes used by the USB system” |
R2, R3, R4, R5 ,R6 | Preserved |
A reference to the new controller structure is registered automatically if call is successful.
An Array containing transaction substructure information is generated and its address is stored at the pointer which address is given in R3.
This SWI is used to install an USB Host controller driver to the USB Module. The structures which must be passed by the caller are described inside the transactions structure chapter in more details. The unique tag will be internally translated into a more usable name which can be used to find the controller. The translation is stored inside the "alias" file.
If successful a pointer to the new host controller structure will be returned. If the call is not successful a NULL pointer and an according error code will be returned.
This call is normally only used by USB Host controller drivers to register themselves at the USB module.