Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.usb.hci

PROTOCOLS

UsbHci

Defined in fuchsia.hardware.usb.hci/usb-hci.fidl

The UsbHci protocol is implemented by a USB Host Controller driver.

CancelAll

Cancels all transactions currently queued on the specified endpoint.

Request

NameType
device_id uint32
ep_address uint8

Response

NameType
s zx/status

ConfigureHub

Called by the USB hub driver to configure a newly enumerated USB hub.

Request

NameType
device_id uint32
speed fuchsia.hardware.usb.descriptor/UsbSpeed
desc fuchsia.hardware.usb.hubdescriptor/UsbHubDescriptor
multi_tt bool

Response

NameType
s zx/status

EnableEndpoint

Enables or disables an endpoint using parameters derived from |ep_desc|.

Request

NameType
device_id uint32
ep_desc fuchsia.hardware.usb.descriptor/UsbEndpointDescriptor
ss_com_desc fuchsia.hardware.usb.descriptor/UsbSsEpCompDescriptor
enable bool

Response

NameType
s zx/status

GetCurrentFrame

Returns the current frame (in milliseconds), used for isochronous transfers.

Request

NameType

Response

NameType
frame uint64

GetMaxDeviceCount

Returns the maximum number of USB devices that might be connected to the controller.

Request

NameType

Response

NameType
count uint64

GetMaxTransferSize

Returns the maximum size of a packet that can be queued on the specified endpoint.

Request

NameType
device_id uint32
ep_address uint8

Response

NameType
size uint64

GetRequestSize

Returns the size needed for a |usb_request_t|, including private storage needed by the HCI driver.

Request

NameType

Response

NameType
size uint64

HubDeviceAdded

Called by the USB hub driver when a new device is attached.

Request

NameType
device_id uint32
port uint32
speed fuchsia.hardware.usb.descriptor/UsbSpeed

Response

NameType
s zx/status

HubDeviceRemoved

Called by the USB hub driver when a device has been removed.

Request

NameType
device_id uint32
port uint32

Response

NameType
s zx/status

HubDeviceReset

Called by the USB hub driver when a device has been reset.

Request

NameType
device_id uint32
port uint32

Response

NameType
s zx/status

RequestQueue

Queues a USB request with the HCI driver. The client must allocate sufficient space in the request object by using the GetRequestSize() method. Once the request is queued, the HCI driver owns it until the callback is invoked.

Request

NameType
usb_request fuchsia.hardware.usb.request/UsbRequest
complete_cb fuchsia.hardware.usb.request/UsbRequestCompleteCallback

Response

NameType

ResetDevice

Resets the specified device.

Request

NameType
hub_address uint32
device_id uint32

Response

NameType
s zx/status

ResetEndpoint

Resets an endpoint on the specified device.

Request

NameType
device_id uint32
ep_address uint8

Response

NameType
s zx/status

SetBusInterface

Registers callbacks to the USB bus driver with the HCI driver.

Request

NameType
bus_intf fuchsia.hardware.usb.bus/UsbBusInterface

Response

NameType

STRUCTS