class FakeDevice
Defined at line 223 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
Public Methods
void FakeDevice (EmulationMode mode)
Defined at line 225 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void AsyncCompletionThread ()
Defined at line 235 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SynchronousDispatchThread ()
Defined at line 248 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void CompletionThread ()
Defined at line 265 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void MessageLoop ()
Defined at line 282 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetChildContextDispatch (void * ctx)
Defined at line 358 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbBusConfigureHub (uint64_thub_device,usb_speed_tspeed,const usb_hub_descriptor_t *desc,boolmulti_tt)
Defined at line 360 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusDeviceAddedDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 374 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbBusDeviceAdded (uint64_thub_device,uint32_tport,usb_speed_tspeed)
Defined at line 378 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusDeviceRemovedDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 387 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbBusDeviceRemoved (uint64_t hub_device, uint32_t port)
Defined at line 391 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusSetHubInterfaceDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 398 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbBusSetHubInterface (uint64_t usb_device, const usb_hub_interface_protocol_t * hub)
Defined at line 404 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusRequestQueue (usb_request_t * req, const usb_request_complete_callback_t * complete_cb)
Defined at line 412 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbControlIn (uint8_trequest_type,uint8_trequest,uint16_tvalue,uint16_tindex,int64_ttimeout,uint8_t *out_read_buffer,size_tread_size,size_t *out_read_actual)
USB protocol implementation
Defined at line 417 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbControlOut (uint8_trequest_type,uint8_trequest,uint16_tvalue,uint16_tindex,int64_ttimeout,const uint8_t *write_buffer,size_twrite_size)
Defined at line 423 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint8_t GeneratePortBitmask ()
Defined at line 428 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ControlOut (uint8_trequest_type,uint8_trequest,uint16_tvalue,uint16_tindex,int64_ttimeout,const void *write_buffer,size_twrite_size)
Defined at line 440 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ControlIn (uint8_trequest_type,uint8_trequest,uint16_tvalue,uint16_tindex,int64_ttimeout,void *out_read_buffer,size_tread_size,size_t *out_read_actual)
Defined at line 507 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void CompleteRequest (std::unique_ptr<IOEntry>request,zx_status_tstatus,zx_off_tactual)
Defined at line 556 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbRequestQueueDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 566 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbRequestQueue (usb_request_t * request, const usb_request_complete_callback_t * completion)
Defined at line 612 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
usb_speed_t UsbGetSpeed ()
Defined at line 627 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbSetInterface (uint8_t interface_number, uint8_t alt_setting)
Defined at line 629 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint8_t UsbGetConfiguration ()
Defined at line 633 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbSetConfiguration (uint8_t configuration)
Defined at line 635 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbEnableEndpointDispatch (const usb_endpoint_descriptor_t *ep_desc,const usb_ss_ep_comp_descriptor_t *ss_com_desc,boolenable)
Defined at line 637 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbEnableEndpoint (const usb_endpoint_descriptor_t *ep_desc,const usb_ss_ep_comp_descriptor_t *ss_com_desc,boolenable)
Defined at line 644 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbResetEndpoint (uint8_t ep_address)
Defined at line 653 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbResetDevice ()
Defined at line 655 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetMaxTransferSize (uint8_t ep_address)
Defined at line 657 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint32_t UsbGetDeviceId ()
Defined at line 659 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbGetDeviceDescriptor (usb_device_descriptor_t * out_desc)
Defined at line 661 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbGetConfigurationDescriptorLength (uint8_t configuration, size_t * out_length)
Defined at line 663 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbGetConfigurationDescriptor (uint8_tconfiguration,uint8_t *out_desc_buffer,size_tdesc_size,size_t *out_desc_actual)
Defined at line 667 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetDescriptorsLength ()
Defined at line 671 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbGetDescriptors (uint8_t *out_descs_buffer,size_tdescs_size,size_t *out_descs_actual)
Defined at line 673 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbGetStringDescriptor (uint8_tdesc_id,uint16_tlang_id,uint16_t *out_lang_id,uint8_t *out_string_buffer,size_tstring_size,size_t *out_string_actual)
Defined at line 678 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbCancelAllDispatch (uint8_t ep_address)
Defined at line 683 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbCancelAll (uint8_t ep_address)
Defined at line 692 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint64_t UsbGetCurrentFrame ()
Defined at line 698 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetRequestSize ()
Defined at line 700 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
usb_hub::UsbHubDevice * device ()
Defined at line 702 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t GetProtocol (uint32_t proto, void * protocol)
Defined at line 704 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void ConnectDeviceDispatch (uint8_t port, usb_speed_t speed)
Defined at line 723 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void DisconnectDeviceDispatch (uint8_t port)
Defined at line 734 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ResetPortDispatch (uint8_t port)
Defined at line 740 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool ResetPendingDispatch (uint8_t port)
Defined at line 744 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void InterruptDispatch ()
Defined at line 748 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UnplugDispatch ()
Defined at line 760 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetSynthetic (bool synthetic)
Defined at line 766 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool IsSynthetic ()
Defined at line 768 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SendMessage (std::unique_ptr<IOEntry> entry)
Defined at line 770 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
std::unique_ptr<IOEntry> SendMessageSync (std::unique_ptr<IOEntry> entry)
Defined at line 772 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool HasOps ()
Defined at line 779 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void ConnectDevice (uint8_t port, usb_speed_t speed)
Defined at line 784 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void Interrupt ()
Defined at line 791 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void Unplug ()
Defined at line 793 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetChildContext (void * ctx)
Defined at line 795 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ResetPort (uint8_t port)
Defined at line 801 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool ResetPending (uint8_t port)
Defined at line 808 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void InitComplete ()
Defined at line 815 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void NotifyRemoved ()
Defined at line 817 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void DisconnectDevice (uint8_t port)
Defined at line 822 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
IOQueue & GetStateChangeQueue ()
Defined at line 828 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetRequestCallback (fit::function<void (usb_request_t *, usb_request_complete_callback_t)> callback)
Defined at line 830 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h