ReactOS 0.4.16-dev-1097-g530d26a
|
#include <fxusbinterface.hpp>
Public Attributes | |
friend | FxUsbDevice |
friend | FxUsbPipe |
Protected Member Functions | |
~FxUsbInterface (VOID) | |
VOID | RemoveDeletedPipe (__in FxUsbPipe *Pipe) |
VOID | FormatSelectSettingUrb (__in_bcount(GET_SELECT_INTERFACE_REQUEST_SIZE(NumEndpoints)) PURB Urb, __in USHORT NumEndpoints, __in UCHAR SettingNumber) |
__field_ecount (m_NumSettings) FxUsbInterfaceSetting *m_Settings | |
![]() | |
FxObject (__in WDFTYPE Type, __in USHORT Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxObjectType ObjectType) | |
FxObjectDebugExtension * | GetDebugExtension (VOID) |
BOOLEAN | IsDebug (VOID) |
VOID | AllocateTagTracker (__in WDFTYPE Type) |
virtual VOID | SelfDestruct (VOID) |
PVOID __inline | GetObjectHandleUnchecked (VOID) |
VOID __inline | DestroyChildren (VOID) |
VOID | DeleteEarlyDisposedObject (VOID) |
Protected Attributes | |
FxUsbDevice * | m_UsbDevice |
FxUsbPipe ** | m_ConfiguredPipes |
UCHAR | m_NumSettings |
UCHAR | m_NumberOfConfiguredPipes |
UCHAR | m_InterfaceNumber |
UCHAR | m_CurAlternateSetting |
UCHAR | m_Class |
UCHAR | m_SubClass |
UCHAR | m_Protocol |
![]() | |
union { | |
CfxDeviceBase * m_DeviceBase | |
CfxDevice * m_Device | |
}; | |
Private Attributes | |
WINUSB_INTERFACE_HANDLE | m_WinUsbHandle |
Definition at line 32 of file fxusbinterface.hpp.
FxUsbInterface::FxUsbInterface | ( | _In_ PFX_DRIVER_GLOBALS | FxDriverGlobals, |
_In_ FxUsbDevice * | UsbDevice, | ||
_In_ PUSB_INTERFACE_DESCRIPTOR | InterfaceDescriptor | ||
) |
Definition at line 27 of file fxusbinterface.cpp.
|
protected |
Definition at line 51 of file fxusbinterface.cpp.
|
protected |
_Must_inspect_result_ NTSTATUS FxUsbInterface::CheckAndSelectSettingByIndex | ( | __in UCHAR | SettingIndex | ) |
Definition at line 555 of file fxusbinterface.cpp.
Definition at line 80 of file fxusbinterface.cpp.
Referenced by FxUsbDevice::PipesGotoRemoveState().
VOID FxUsbInterface::CopyEndpointFieldsFromDescriptor | ( | __in PWDF_USB_PIPE_INFORMATION | PipeInfo, |
__in PUSB_ENDPOINT_DESCRIPTOR | EndpointDesc, | ||
__in UCHAR | SettingIndex | ||
) |
Definition at line 974 of file fxusbinterface.cpp.
Referenced by GetEndpointInformation().
_Must_inspect_result_ NTSTATUS FxUsbInterface::CreateSettings | ( | VOID | ) |
Definition at line 197 of file fxusbinterface.cpp.
Definition at line 949 of file fxusbinterface.cpp.
Referenced by CopyEndpointFieldsFromDescriptor().
|
protected |
Definition at line 784 of file fxusbinterface.cpp.
Referenced by FxUsbDevice::SelectConfig(), SelectSettingByDescriptor(), and SelectSettingByIndex().
WDFUSBPIPE FxUsbInterface::GetConfiguredPipe | ( | __in UCHAR | PipeIndex, |
__out_opt PWDF_USB_PIPE_INFORMATION | PipeInfo | ||
) |
Definition at line 1021 of file fxusbinterface.cpp.
Definition at line 1084 of file fxusbinterface.cpp.
Referenced by FxUsbPipe::GetInformation().
VOID FxUsbInterface::GetDescriptor | ( | __in PUSB_INTERFACE_DESCRIPTOR | UsbInterfaceDescriptor, |
__in UCHAR | SettingIndex | ||
) |
Definition at line 1053 of file fxusbinterface.cpp.
VOID FxUsbInterface::GetEndpointInformation | ( | __in UCHAR | SettingIndex, |
__in UCHAR | PipeIndex, | ||
__in PWDF_USB_PIPE_INFORMATION | PipeInfo | ||
) |
Definition at line 853 of file fxusbinterface.cpp.
|
inline |
Definition at line 173 of file fxusbinterface.hpp.
Referenced by if(), and FxUsbDevice::SelectConfigSingle().
Definition at line 70 of file fxusbinterface.hpp.
Referenced by FxUsbDevice::GetInterfaceNumberFromInterface().
Definition at line 62 of file fxusbinterface.hpp.
Referenced by FxUsbDevice::SelectConfigSingle().
Definition at line 1117 of file fxusbinterface.cpp.
Definition at line 78 of file fxusbinterface.hpp.
Referenced by switch().
PUSB_INTERFACE_DESCRIPTOR FxUsbInterface::GetSettingDescriptor | ( | __in UCHAR | Setting | ) |
Definition at line 1142 of file fxusbinterface.cpp.
Referenced by GetEndpointInformation(), FxUsbDevice::SelectConfigMulti(), and FxUsbDevice::SelectConfigSingle().
Definition at line 139 of file fxusbinterface.hpp.
Referenced by GetConfiguredSettingIndex(), MakeAndConfigurePipes(), FxUsbDevice::SelectConfig(), SelectSetting(), SelectSettingByDescriptor(), and SelectSettingByIndex().
NTSTATUS FxUsbInterface::MakeAndConfigurePipes | ( | __in PWDF_OBJECT_ATTRIBUTES | PipesAttributes, |
__in UCHAR | NumPipes | ||
) |
Definition at line 85 of file fxusbinterfaceum.cpp.
Referenced by SelectSettingByIndex().
Definition at line 146 of file fxusbinterface.cpp.
Referenced by FxUsbPipe::~FxUsbPipe().
_Must_inspect_result_ NTSTATUS FxUsbInterface::SelectSetting | ( | __in PWDF_OBJECT_ATTRIBUTES | PipesAttributes, |
__in PURB | Urb | ||
) |
Definition at line 583 of file fxusbinterface.cpp.
Referenced by SelectSettingByDescriptor(), SelectSettingByIndex(), and switch().
_Must_inspect_result_ NTSTATUS FxUsbInterface::SelectSettingByDescriptor | ( | __in PWDF_OBJECT_ATTRIBUTES | PipesAttributes, |
__in PUSB_INTERFACE_DESCRIPTOR | InterfaceDescriptor | ||
) |
Definition at line 488 of file fxusbinterface.cpp.
Referenced by switch().
_Must_inspect_result_ NTSTATUS FxUsbInterface::SelectSettingByIndex | ( | __in PWDF_OBJECT_ATTRIBUTES | PipesAttributes, |
__in UCHAR | SettingIndex | ||
) |
Definition at line 372 of file fxusbinterface.cpp.
Referenced by CheckAndSelectSettingByIndex(), and switch().
Definition at line 131 of file fxusbinterface.hpp.
Referenced by MakeAndConfigurePipes(), FxUsbDevice::SelectConfig(), and SelectSetting().
VOID FxUsbInterface::SetInfo | ( | __in PUSBD_INTERFACE_INFORMATION | Interface | ) |
Definition at line 165 of file fxusbinterface.cpp.
Referenced by FxUsbDevice::SelectConfig(), and SelectSetting().
Definition at line 123 of file fxusbinterface.hpp.
Referenced by MakeAndConfigurePipes(), FxUsbDevice::SelectConfig(), and SelectSetting().
Definition at line 28 of file fxusbinterfaceum.cpp.
NTSTATUS FxUsbInterface::UpdatePipeAttributes | ( | __in PWDF_OBJECT_ATTRIBUTES | PipesAttributes | ) |
Definition at line 196 of file fxusbinterfaceum.cpp.
friend FxUsbInterface::FxUsbDevice |
Definition at line 34 of file fxusbinterface.hpp.
friend FxUsbInterface::FxUsbPipe |
Definition at line 35 of file fxusbinterface.hpp.
Referenced by MakeAndConfigurePipes(), and SelectSetting().
|
protected |
Definition at line 255 of file fxusbinterface.hpp.
Referenced by CreateSettings(), and FxUsbInterface().
|
protected |
Definition at line 233 of file fxusbinterface.hpp.
Referenced by FxUsbDevice::CancelSentIo(), CleanUpAndDelete(), FxUsbInterface(), GetConfiguredPipe(), IsInterfaceConfigured(), MakeAndConfigurePipes(), FxUsbDevice::PipesGotoRemoveState(), FxUsbDevice::Purge(), RemoveDeletedPipe(), SelectSetting(), SetConfiguredPipes(), SetInfo(), FxUsbDevice::Start(), FxUsbDevice::Stop(), UpdatePipeAttributes(), and ~FxUsbInterface().
|
protected |
Definition at line 254 of file fxusbinterface.hpp.
Referenced by FxUsbInterface(), GetConfiguredSettingIndex(), MakeAndConfigurePipes(), SelectSetting(), SelectSettingByDescriptor(), SelectSettingByIndex(), and SetInfo().
|
protected |
Definition at line 253 of file fxusbinterface.hpp.
Referenced by CreateSettings(), FormatSelectSettingUrb(), FxUsbInterface(), GetInterfaceNumber(), MakeAndConfigurePipes(), SelectSettingByDescriptor(), SetInfo(), and SetWinUsbHandle().
|
protected |
Definition at line 248 of file fxusbinterface.hpp.
Referenced by FxUsbDevice::CancelSentIo(), CleanUpAndDelete(), FxUsbInterface(), GetConfiguredPipe(), GetNumConfiguredPipes(), MakeAndConfigurePipes(), FxUsbDevice::PipesGotoRemoveState(), FxUsbDevice::Purge(), RemoveDeletedPipe(), SetInfo(), SetNumConfiguredPipes(), FxUsbDevice::Start(), FxUsbDevice::Stop(), UpdatePipeAttributes(), and ~FxUsbInterface().
|
protected |
Definition at line 243 of file fxusbinterface.hpp.
Referenced by CreateSettings(), FxUsbInterface(), GetDescriptor(), GetNumEndpoints(), GetNumSettings(), GetSettingDescriptor(), and SelectSettingByIndex().
|
protected |
Definition at line 257 of file fxusbinterface.hpp.
Referenced by CreateSettings(), and FxUsbInterface().
|
protected |
Definition at line 256 of file fxusbinterface.hpp.
Referenced by CreateSettings(), and FxUsbInterface().
|
protected |
Definition at line 228 of file fxusbinterface.hpp.
Referenced by CleanUpAndDelete(), CreateSettings(), DetermineDefaultMaxTransferSize(), FormatSelectSettingUrb(), FxUsbInterface(), GetEndpointInformation(), MakeAndConfigurePipes(), SelectSetting(), SelectSettingByIndex(), SetWinUsbHandle(), and ~FxUsbInterface().
|
private |
Definition at line 264 of file fxusbinterface.hpp.
Referenced by FxUsbPipe::FormatAbortRequest(), FxUsbPipe::FormatResetRequest(), MakeAndConfigurePipes(), SelectSettingByIndex(), and SetWinUsbHandle().