USB_ControllerRegister (SWI&55384)
Prev | Chapter 2. Core SWI Calls | Next

## Name

USB_ControllerRegister (SWI&55384) — Installs a new USB host controller.

## On Entry

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 ???.
R5 | Reserved. Must be set to zero.
R6 | Reserved. Must be set to zero.

## On Exit

R0 | Pointer to controller structure
R1 | Error code Table A.1
R2, R3, R4, R5 ,R6 | Preserved

## Use

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.

## Related SWI's

USB_ControllerDeregister (SWI&55385)

Prev | Up | Next
USB_DeviceDeregister (SWI&55383) | Home | USB_ControllerDeregister (SWI&55385)