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

CancelAll

Cancels all transactions currently queued on the specified endpoint.

Request

NameType
device_id uint32
ep_address uint8

Response

NameType
s zx/status

ConfigureHub

Used 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

Used by the USB hub driver to notify the HCI 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

Used by the USB hub driver to notify the HCI driver when a device has been removed.

Request

NameType
device_id uint32
port uint32

Response

NameType
s zx/status

HubDeviceReset

Used by the USB hub driver to notify the HCI 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.

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