Enumerations

enum class CommandType
Name Value
EnumerateDevice 0
ResetEndpoint 1

Defined at line 28 of file ../../src/devices/usb/drivers/xhci/tests/xhci-event-ring-test.cc

Records

Functions

  • uint8_t XhciEndpointIndex (uint8_t ep_address)

    Defined at line 19 of file ../../src/devices/usb/drivers/xhci/xhci-endpoint.h

  • fpromise::promise<usb_device_descriptor_t, zx_status_t> GetDeviceDescriptor (UsbXhci * hci, uint8_t slot_id, uint16_t length)

    Defined at line 23 of file ../../src/devices/usb/drivers/xhci/xhci-enumeration.cc

  • void SchedulePromiseWithXhciExecutorPolicy (synchronous_executor::synchronous_executor & executor, UsbXhci * hci, fpromise::promise<void, zx_status_t> promise)

    Test-only helper. Provides the error-handling policy used by unit tests that stub

    EventRing::ScheduleTask without linking xhci-event-ring.cc. Production code does not

    use this helper - EventRing::ScheduleTask in xhci-event-ring.cc applies the same

    conditional logic inline.

    Defined at line 27 of file ../../src/devices/usb/drivers/xhci/tests/test-env.h

  • uint8_t XhciEndpointIndexInverse (uint8_t idx)

    Inverse of XhciEndpointIndex. In particular takes an XhciEndpointIndex and returns ep_address.

    Defined at line 29 of file ../../src/devices/usb/drivers/xhci/xhci-endpoint.h

  • void InvalidatePageCache (void * addr, uint32_t options)

    Defined at line 44 of file ../../src/devices/usb/drivers/xhci/usb-xhci.h

  • fpromise::promise<uint8_t, zx_status_t> GetMaxPacketSize (UsbXhci * hci, uint8_t slot_id)

    Defined at line 62 of file ../../src/devices/usb/drivers/xhci/xhci-enumeration.cc

  • TRBPromise UpdateMaxPacketSize (UsbXhci * hci, uint8_t slot_id)

    Defined at line 72 of file ../../src/devices/usb/drivers/xhci/xhci-enumeration.cc

  • fpromise::promise<void, zx_status_t> RetryEnumeration (UsbXhci * hci, uint8_t port, std::optional<HubInfo> hub_info, const fbl::RefPtr<AsyncState> & state)

    Retries enumeration if we get a USB transaction error.

    See section 4.3 of revision 1.2 of the xHCI specification for details

    Defined at line 87 of file ../../src/devices/usb/drivers/xhci/xhci-enumeration.cc

  • fpromise::promise<void, zx_status_t> EnumerateDevice (UsbXhci * hci, uint8_t port, std::optional<HubInfo> hub_info)

    Defined at line 346 of file ../../src/devices/usb/drivers/xhci/tests/xhci-event-ring-test.cc

Variables

fdf::MmioBuffer kInterruptorMmio

Defined at line 323 of file ../../src/devices/usb/drivers/xhci/tests/xhci-enumeration-test.cc