13 #define NDEBUG_USBPORT_MINIPORT 14 #define NDEBUG_USBPORT_URB 25 DPRINT(
"USBPORT_DbgPrint: UNIMPLEMENTED. FIXME. \n");
33 DPRINT(
"USBPORT_TestDebugBreak: UNIMPLEMENTED. FIXME. \n");
40 PVOID FailedAssertion,
45 DPRINT(
"USBPORT_AssertFailure: ... \n");
54 DPRINT1(
"USBPORT_BugCheck: FIXME \n");
68 DPRINT_MINIPORT(
"USBPORT_LogEntry: MiniPortExtension - %p, EnumTag - %lx, P1 - %lx, P2 - %lx, P3 - %lx\n",
136 DPRINT_URB(
"Dumping iDescriptor - %p\n", iDescriptor);
229 DPRINT_URB(
"UrbHeader.Length - %x\n", Urb->UrbHeader.Length);
230 DPRINT_URB(
"UrbHeader.Function - %x\n", Urb->UrbHeader.Function);
231 DPRINT_URB(
"UrbHeader.Status - %x\n", Urb->UrbHeader.Status);
232 DPRINT_URB(
"UrbHeader.UsbdDeviceHandle - %p\n", Urb->UrbHeader.UsbdDeviceHandle);
233 DPRINT_URB(
"UrbHeader.UsbdFlags - %x\n", Urb->UrbHeader.UsbdFlags);
235 if (Urb->UrbHeader.Length < 0x48)
240 DPRINT_URB(
"PipeHandle - %p\n", Urb->UrbControlTransfer.PipeHandle);
241 DPRINT_URB(
"TransferFlags - %x\n", Urb->UrbControlTransfer.TransferFlags);
242 DPRINT_URB(
"TransferBufferLength - %x\n", Urb->UrbControlTransfer.TransferBufferLength);
243 DPRINT_URB(
"TransferBuffer - %p\n", Urb->UrbControlTransfer.TransferBuffer);
244 DPRINT_URB(
"TransferBufferMDL - %p\n", Urb->UrbControlTransfer.TransferBufferMDL);
245 DPRINT_URB(
"UrbLink - %p\n", Urb->UrbControlTransfer.UrbLink);
247 if (Urb->UrbHeader.Length < 0x50)
283 DPRINT_USB2(
"DeviceAddress - %X\n", EndpointProperties->DeviceAddress);
284 DPRINT_USB2(
"EndpointAddress - %X\n", EndpointProperties->EndpointAddress);
285 DPRINT_USB2(
"TotalMaxPacketSize - %X\n", EndpointProperties->TotalMaxPacketSize);
286 DPRINT_USB2(
"Period - %X\n", EndpointProperties->Period);
287 DPRINT_USB2(
"DeviceSpeed - %X\n", EndpointProperties->DeviceSpeed);
288 DPRINT_USB2(
"UsbBandwidth - %X\n", EndpointProperties->UsbBandwidth);
289 DPRINT_USB2(
"ScheduleOffset - %X\n", EndpointProperties->ScheduleOffset);
290 DPRINT_USB2(
"TransferType - %X\n", EndpointProperties->TransferType);
291 DPRINT_USB2(
"MaxTransferSize - %X\n", EndpointProperties->MaxTransferSize);
292 DPRINT_USB2(
"HubAddr - %X\n", EndpointProperties->HubAddr);
293 DPRINT_USB2(
"PortNumber - %X\n", EndpointProperties->PortNumber);
294 DPRINT_USB2(
"InterruptScheduleMask - %X\n", EndpointProperties->InterruptScheduleMask);
295 DPRINT_USB2(
"SplitCompletionMask - %X\n", EndpointProperties->SplitCompletionMask);
296 DPRINT_USB2(
"MaxPacketSize - %X\n", EndpointProperties->MaxPacketSize);
303 DPRINT_USB2(
"MaxPacketSize - %X\n", TtEndpoint->MaxPacketSize);
305 DPRINT_USB2(
"TtEndpointParams- %X\n", TtEndpoint->TtEndpointParams.AsULONG);
306 DPRINT_USB2(
"CalcBusTime - %X\n", TtEndpoint->CalcBusTime);
307 DPRINT_USB2(
"StartTime - %X\n", TtEndpoint->StartTime);
308 DPRINT_USB2(
"ActualPeriod - %X\n", TtEndpoint->ActualPeriod);
309 DPRINT_USB2(
"StartFrame - %X\n", TtEndpoint->StartFrame);
310 DPRINT_USB2(
"StartMicroframe - %X\n", TtEndpoint->StartMicroframe);
311 DPRINT_USB2(
"Nums - %X\n", TtEndpoint->Nums.AsULONG);
312 DPRINT_USB2(
"nextTtEndpoint - %X\n", TtEndpoint->NextTtEndpoint);
VOID NTAPI USBPORT_DumpingSetupPacket(IN PUSB_DEFAULT_PIPE_SETUP_PACKET SetupPacket)
VOID NTAPI USBPORT_DumpingURB(IN PURB Urb)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _In_ PWDF_USB_CONTROL_SETUP_PACKET SetupPacket
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
#define DPRINT_MINIPORT(...)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
struct _USB_INTERFACE_DESCRIPTOR * PUSB_INTERFACE_DESCRIPTOR
ULONG NTAPI USBPORT_TestDebugBreak(IN PVOID MiniPortExtension)
VOID NTAPI RtlAssert(IN PVOID FailedAssertion, IN PVOID FileName, IN ULONG LineNumber, IN PCHAR Message OPTIONAL)
VOID NTAPI USBPORT_DumpingDeviceDescriptor(IN PUSB_DEVICE_DESCRIPTOR DeviceDescriptor)
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
_Must_inspect_result_ typedef _Out_ PHIDP_CAPS Capabilities
VOID NTAPI USBPORT_DumpingIDs(IN PVOID Buffer)
_Must_inspect_result_ _In_ WDFUSBDEVICE _Out_writes_bytes_to_opt_ ConfigDescriptorLength PVOID ConfigDescriptor
struct _USB_ENDPOINT_DESCRIPTOR * PUSB_ENDPOINT_DESCRIPTOR
VOID NTAPI USBPORT_DumpingConfiguration(IN PUSB_CONFIGURATION_DESCRIPTOR ConfigDescriptor)
const KSDEVICE_DESCRIPTOR DeviceDescriptor
VOID NTAPI USBPORT_DumpingEndpointProperties(IN PUSBPORT_ENDPOINT_PROPERTIES EndpointProperties)
VOID NTAPI USBPORT_DumpingCapabilities(IN PDEVICE_CAPABILITIES Capabilities)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
VOID NTAPI USBPORT_DumpingTtEndpoint(IN PUSB2_TT_ENDPOINT TtEndpoint)
ULONG NTAPI USBPORT_AssertFailure(PVOID MiniPortExtension, PVOID FailedAssertion, PVOID FileName, ULONG LineNumber, PCHAR Message)
ULONG NTAPI USBPORT_DbgPrint(IN PVOID MiniPortExtension, IN ULONG Level, IN PCH Format,...)
struct _USB_DEFAULT_PIPE_SETUP_PACKET * PUSB_DEFAULT_PIPE_SETUP_PACKET
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
VOID NTAPI USBPORT_BugCheck(IN PVOID MiniPortExtension)
ULONG NTAPI USBPORT_LogEntry(IN PVOID MiniPortExtension, IN ULONG DriverTag, IN ULONG EnumTag, IN ULONG P1, IN ULONG P2, IN ULONG P3)