ReactOS  0.4.15-dev-3175-g222acf5
usbstubum.cpp File Reference
#include <initguid.h>
#include "fxusbpch.hpp"
Include dependency graph for usbstubum.cpp:

Go to the source code of this file.

Macros

#define INITGUID
 

Functions

 DEFINE_GUID (USB_BUS_INTERFACE_USBDI_GUID, 0xb1a96a13, 0x3de0, 0x4574, 0x9b, 0x1, 0xc0, 0x8f, 0xea, 0xb3, 0x18, 0xd6)
 
VOID USBD_UrbFree (_In_ USBD_HANDLE USBDHandle, _In_ PURB Urb)
 
NTSTATUS USBD_UrbAllocate (_In_ USBD_HANDLE USBDHandle, _Outptr_result_bytebuffer_(sizeof(URB)) PURB *Urb)
 
NTSTATUS USBD_IsochUrbAllocate (_In_ USBD_HANDLE USBDHandle, _In_ ULONG NumberOfIsochPacket, _Outptr_result_bytebuffer_(sizeof(struct _URB_ISOCH_TRANSFER)+(NumberOfIsochPackets *sizeof(USBD_ISO_PACKET_DESCRIPTOR)) - sizeof(USBD_ISO_PACKET_DESCRIPTOR)) PURB *Urb)
 
VOID USBD_CloseHandle (_In_ USBD_HANDLE USBDHandle)
 
NTSTATUS USBD_CreateHandle (_In_ PDEVICE_OBJECT DeviceObject, _In_ PDEVICE_OBJECT TargetDeviceObject, _In_ ULONG USBDClientContractVersion, _In_ ULONG PoolTag, _Out_ USBD_HANDLE *USBDHandle)
 
NTSTATUS USBD_QueryUsbCapability (_In_ USBD_HANDLE USBDHandle, _In_ const GUID *CapabilityType, _In_ ULONG OutputBufferLength, _When_(OutputBufferLength==0, _Pre_null_) _When_(OutputBufferLength !=0 &&ResultLength==NULL, _Out_writes_bytes_(OutputBufferLength)) _When_(OutputBufferLength !=0 &&ResultLength !=NULL, _Out_writes_bytes_to_opt_(OutputBufferLength, *ResultLength)) PUCHAR OutputBuffer, _Out_opt_ _When_(ResultLength !=NULL, _Deref_out_range_(<=, OutputBufferLength)) PULONG ResultLength)
 
VOID USBD_AssignUrbToIoStackLocation (_In_ USBD_HANDLE USBDHandle, _In_ PIO_STACK_LOCATION IoStackLocation, _In_ PURB Urb)
 

Macro Definition Documentation

◆ INITGUID

#define INITGUID

Definition at line 21 of file usbstubum.cpp.

Function Documentation

◆ DEFINE_GUID()

DEFINE_GUID ( USB_BUS_INTERFACE_USBDI_GUID  ,
0xb1a96a13  ,
0x3de0  ,
0x4574  ,
0x9b  ,
0x1  ,
0xc0  ,
0x8f  ,
0xea  ,
0xb3  ,
0x18  ,
0xd6   
)

◆ USBD_AssignUrbToIoStackLocation()

VOID USBD_AssignUrbToIoStackLocation ( _In_ USBD_HANDLE  USBDHandle,
_In_ PIO_STACK_LOCATION  IoStackLocation,
_In_ PURB  Urb 
)

Definition at line 136 of file usbstubum.cpp.

141 {
142  UNREFERENCED_PARAMETER(USBDHandle);
143  UNREFERENCED_PARAMETER(IoStackLocation);
145 
146  ASSERTMSG("Not implemented for UMDF\n", FALSE);
147 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431

Referenced by FxFormatUsbRequest().

◆ USBD_CloseHandle()

VOID USBD_CloseHandle ( _In_ USBD_HANDLE  USBDHandle)

Definition at line 80 of file usbstubum.cpp.

83 {
84  UNREFERENCED_PARAMETER(USBDHandle);
85 
86  ASSERTMSG("Not implemented for UMDF\n", FALSE);
87 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431

Referenced by FxUsbDevice::Dispose().

◆ USBD_CreateHandle()

NTSTATUS USBD_CreateHandle ( _In_ PDEVICE_OBJECT  DeviceObject,
_In_ PDEVICE_OBJECT  TargetDeviceObject,
_In_ ULONG  USBDClientContractVersion,
_In_ ULONG  PoolTag,
_Out_ USBD_HANDLE *  USBDHandle 
)

Definition at line 90 of file usbstubum.cpp.

97 {
102  UNREFERENCED_PARAMETER(USBDHandle);
103 
104  ASSERTMSG("Not implemented for UMDF\n", FALSE);
105 
106  return STATUS_SUCCESS;
107 
108 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
_Must_inspect_result_ __in FxDeviceBase __in ULONG USBDClientContractVersion
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:159
#define STATUS_SUCCESS
Definition: shellext.h:65
IN OUT PVCB IN PDEVICE_OBJECT TargetDeviceObject
Definition: fatprocs.h:1673

Referenced by FxUsbDevice::InitDevice().

◆ USBD_IsochUrbAllocate()

Definition at line 60 of file usbstubum.cpp.

68 {
69  UNREFERENCED_PARAMETER(USBDHandle);
70  UNREFERENCED_PARAMETER(NumberOfIsochPacket);
72 
73  ASSERTMSG("Not implemented for UMDF\n", FALSE);
74 
75  return STATUS_SUCCESS;
76 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by FxUsbDevice::CreateIsochUrb().

◆ USBD_QueryUsbCapability()

Definition at line 111 of file usbstubum.cpp.

123 {
124  UNREFERENCED_PARAMETER(USBDHandle);
129 
130  ASSERTMSG("Not implemented for UMDF\n", FALSE);
131 
132  return STATUS_SUCCESS;
133 }
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_ CONST GUID * CapabilityType
Definition: wdfusb.h:1611
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:318
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:859
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by FxUsbDevice::QueryUsbCapability().

◆ USBD_UrbAllocate()

NTSTATUS USBD_UrbAllocate ( _In_ USBD_HANDLE  USBDHandle,
_Outptr_result_bytebuffer_(sizeof(URB)) PURB Urb 
)

Definition at line 46 of file usbstubum.cpp.

50 {
51  UNREFERENCED_PARAMETER(USBDHandle);
53 
54  ASSERTMSG("Not implemented for UMDF\n", FALSE);
55 
56  return STATUS_SUCCESS;
57 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by FxUsbPipeTransferContext::AllocateUrb(), FxUsbDeviceControlContext::AllocateUrb(), FxUsbDeviceStringContext::AllocateUrb(), FxUsbPipeRequestContext::AllocateUrb(), and FxUsbDevice::CreateUrb().

◆ USBD_UrbFree()