class FakeDevice
Defined at line 217 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
Public Methods
void FakeDevice (EmulationMode mode)
Defined at line 219 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void AsyncCompletionThread ()
Defined at line 229 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SynchronousDispatchThread ()
Defined at line 242 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void CompletionThread ()
Defined at line 259 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void MessageLoop ()
Defined at line 276 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetChildContextDispatch (void * ctx)
Defined at line 352 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 354 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusDeviceAddedDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 368 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 372 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusDeviceRemovedDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 381 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 385 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbBusSetHubInterfaceDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 392 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 398 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 406 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 411 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 417 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint8_t GeneratePortBitmask ()
Defined at line 422 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 434 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 501 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 548 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbRequestQueueDispatch (std::unique_ptr<IOEntry> entry)
Defined at line 558 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 604 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
usb_speed_t UsbGetSpeed ()
Defined at line 619 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 621 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint8_t UsbGetConfiguration ()
Defined at line 625 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbSetConfiguration (uint8_t configuration)
Defined at line 627 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 629 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 636 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbResetEndpoint (uint8_t ep_address)
Defined at line 645 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbResetDevice ()
Defined at line 647 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetMaxTransferSize (uint8_t ep_address)
Defined at line 649 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint32_t UsbGetDeviceId ()
Defined at line 651 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UsbGetDeviceDescriptor (usb_device_descriptor_t * out_desc)
Defined at line 653 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 655 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 659 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetDescriptorsLength ()
Defined at line 663 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 665 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 670 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbCancelAllDispatch (uint8_t ep_address)
Defined at line 675 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t UsbCancelAll (uint8_t ep_address)
Defined at line 684 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
uint64_t UsbGetCurrentFrame ()
Defined at line 690 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
size_t UsbGetRequestSize ()
Defined at line 692 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
usb_hub::UsbHubDevice * device ()
Defined at line 694 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t GetProtocol (uint32_t proto, void * protocol)
Defined at line 696 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void ConnectDeviceDispatch (uint8_t port, usb_speed_t speed)
Defined at line 715 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void DisconnectDeviceDispatch (uint8_t port)
Defined at line 726 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ResetPortDispatch (uint8_t port)
Defined at line 732 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool ResetPendingDispatch (uint8_t port)
Defined at line 736 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void InterruptDispatch ()
Defined at line 740 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void UnplugDispatch ()
Defined at line 752 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetSynthetic (bool synthetic)
Defined at line 758 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool IsSynthetic ()
Defined at line 760 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SendMessage (std::unique_ptr<IOEntry> entry)
Defined at line 762 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
std::unique_ptr<IOEntry> SendMessageSync (std::unique_ptr<IOEntry> entry)
Defined at line 764 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool HasOps ()
Defined at line 771 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void ConnectDevice (uint8_t port, usb_speed_t speed)
Defined at line 776 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void Interrupt ()
Defined at line 783 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void Unplug ()
Defined at line 785 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void SetChildContext (void * ctx)
Defined at line 787 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
zx_status_t ResetPort (uint8_t port)
Defined at line 793 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
bool ResetPending (uint8_t port)
Defined at line 800 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void InitComplete ()
Defined at line 807 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void NotifyRemoved ()
Defined at line 809 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
void DisconnectDevice (uint8_t port)
Defined at line 814 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h
IOQueue & GetStateChangeQueue ()
Defined at line 820 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 822 of file ../../src/devices/usb/drivers/usb-hub/fake-device.h