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

fuchsia.hardware.usb.bus

PROTOCOLS

UsbBus

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

ConfigureHub

Configures a new hub based on its USB hub descriptor.

Request

NameType
hub_device uint64
speed UsbSpeed
desc fuchsia.hardware.usb.hubdescriptor/UsbHubDescriptor
multi_tt bool

Response

NameType
s zx/status

DeviceAdded

Informs the USB bus that a new device has been added.

Request

NameType
hub_device uint64
port uint32
speed UsbSpeed

Response

NameType
s zx/status

DeviceRemoved

Informs the USB bus that a device has been removed.

Request

NameType
hub_device uint64
port uint32

Response

NameType
s zx/status

RequestQueue

Queues a USB request with the host stack.

Request

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

Response

NameType

SetHubInterface

Used by USB hub driver to register its USB hub protocol with the USB bus driver.

Request

NameType
usb_device uint64
hub fuchsia.hardware.usb.hub/UsbHubInterface

Response

NameType
s zx/status

UsbBusInterface

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

Interface for use by the HCI controller to use to notify when devices are added and removed.

AddDevice

Notifies the USB bus driver that a new device has been added.

Request

NameType
device_id uint32
hub_id uint32
speed UsbSpeed

Response

NameType
s zx/status

ReinitializeDevice

Used by the HCI controller to reinitialize a device after it has been reset.

Request

NameType
device_id uint32

Response

NameType
s zx/status

RemoveDevice

Notifies the USB bus driver that a device has been removed.

Request

NameType
device_id uint32

Response

NameType
s zx/status

ResetPort

Used by the HCI controller to reset a port on a USB hub.

Request

NameType
hub_id uint32
port uint32
enumerating bool

Response

NameType
s zx/status

STRUCTS

TYPE ALIASES

NameValueDescription
UsbSpeed uint32