13#define NDEBUG_USBPORT_MINIPORT
14#define NDEBUG_USBPORT_URB
24 DPRINT(
"USBPORT_DbgPrint: UNIMPLEMENTED. FIXME. \n");
32 DPRINT(
"USBPORT_TestDebugBreak: UNIMPLEMENTED. FIXME. \n");
39 PVOID FailedAssertion,
44 DPRINT(
"USBPORT_AssertFailure: ... \n");
53 DPRINT1(
"USBPORT_BugCheck: FIXME \n");
67 DPRINT_MINIPORT(
"USBPORT_LogEntry: MiniPortExtension - %p, EnumTag - %lx, P1 - %lx, P2 - %lx, P3 - %lx\n",
135 DPRINT_URB(
"Dumping iDescriptor - %p\n", iDescriptor);
228 DPRINT_URB(
"UrbHeader.Length - %x\n", Urb->UrbHeader.Length);
229 DPRINT_URB(
"UrbHeader.Function - %x\n", Urb->UrbHeader.Function);
230 DPRINT_URB(
"UrbHeader.Status - %x\n", Urb->UrbHeader.Status);
231 DPRINT_URB(
"UrbHeader.UsbdDeviceHandle - %p\n", Urb->UrbHeader.UsbdDeviceHandle);
232 DPRINT_URB(
"UrbHeader.UsbdFlags - %x\n", Urb->UrbHeader.UsbdFlags);
234 if (Urb->UrbHeader.Length < 0x48)
239 DPRINT_URB(
"PipeHandle - %p\n", Urb->UrbControlTransfer.PipeHandle);
240 DPRINT_URB(
"TransferFlags - %x\n", Urb->UrbControlTransfer.TransferFlags);
241 DPRINT_URB(
"TransferBufferLength - %x\n", Urb->UrbControlTransfer.TransferBufferLength);
242 DPRINT_URB(
"TransferBuffer - %p\n", Urb->UrbControlTransfer.TransferBuffer);
243 DPRINT_URB(
"TransferBufferMDL - %p\n", Urb->UrbControlTransfer.TransferBufferMDL);
244 DPRINT_URB(
"UrbLink - %p\n", Urb->UrbControlTransfer.UrbLink);
246 if (Urb->UrbHeader.Length < 0x50)
282 DPRINT_USB2(
"DeviceAddress - %X\n", EndpointProperties->DeviceAddress);
283 DPRINT_USB2(
"EndpointAddress - %X\n", EndpointProperties->EndpointAddress);
284 DPRINT_USB2(
"TotalMaxPacketSize - %X\n", EndpointProperties->TotalMaxPacketSize);
285 DPRINT_USB2(
"Period - %X\n", EndpointProperties->Period);
286 DPRINT_USB2(
"DeviceSpeed - %X\n", EndpointProperties->DeviceSpeed);
287 DPRINT_USB2(
"UsbBandwidth - %X\n", EndpointProperties->UsbBandwidth);
288 DPRINT_USB2(
"ScheduleOffset - %X\n", EndpointProperties->ScheduleOffset);
289 DPRINT_USB2(
"TransferType - %X\n", EndpointProperties->TransferType);
290 DPRINT_USB2(
"MaxTransferSize - %X\n", EndpointProperties->MaxTransferSize);
291 DPRINT_USB2(
"HubAddr - %X\n", EndpointProperties->HubAddr);
292 DPRINT_USB2(
"PortNumber - %X\n", EndpointProperties->PortNumber);
293 DPRINT_USB2(
"InterruptScheduleMask - %X\n", EndpointProperties->InterruptScheduleMask);
294 DPRINT_USB2(
"SplitCompletionMask - %X\n", EndpointProperties->SplitCompletionMask);
295 DPRINT_USB2(
"MaxPacketSize - %X\n", EndpointProperties->MaxPacketSize);
302 DPRINT_USB2(
"MaxPacketSize - %X\n", TtEndpoint->MaxPacketSize);
304 DPRINT_USB2(
"TtEndpointParams- %X\n", TtEndpoint->TtEndpointParams.AsULONG);
305 DPRINT_USB2(
"CalcBusTime - %X\n", TtEndpoint->CalcBusTime);
306 DPRINT_USB2(
"StartTime - %X\n", TtEndpoint->StartTime);
307 DPRINT_USB2(
"ActualPeriod - %X\n", TtEndpoint->ActualPeriod);
308 DPRINT_USB2(
"StartFrame - %X\n", TtEndpoint->StartFrame);
309 DPRINT_USB2(
"StartMicroframe - %X\n", TtEndpoint->StartMicroframe);
310 DPRINT_USB2(
"Nums - %X\n", TtEndpoint->Nums.AsULONG);
311 DPRINT_USB2(
"nextTtEndpoint - %X\n", TtEndpoint->NextTtEndpoint);
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 RtlAssert(IN PVOID FailedAssertion, IN PVOID FileName, IN ULONG LineNumber, IN PCHAR Message OPTIONAL)
static const WCHAR Message[]
VOID NTAPI USBPORT_DumpingEndpointProperties(IN PUSBPORT_ENDPOINT_PROPERTIES EndpointProperties)
VOID NTAPI USBPORT_DumpingSetupPacket(IN PUSB_DEFAULT_PIPE_SETUP_PACKET SetupPacket)
VOID NTAPI USBPORT_DumpingDeviceDescriptor(IN PUSB_DEVICE_DESCRIPTOR DeviceDescriptor)
VOID NTAPI USBPORT_DumpingURB(IN PURB Urb)
ULONG NTAPI USBPORT_LogEntry(IN PVOID MiniPortExtension, IN ULONG DriverTag, IN ULONG EnumTag, IN ULONG P1, IN ULONG P2, IN ULONG P3)
VOID NTAPI USBPORT_DumpingConfiguration(IN PUSB_CONFIGURATION_DESCRIPTOR ConfigDescriptor)
VOID NTAPI USBPORT_DumpingTtEndpoint(IN PUSB2_TT_ENDPOINT TtEndpoint)
VOID NTAPI USBPORT_BugCheck(IN PVOID MiniPortExtension)
ULONG NTAPI USBPORT_AssertFailure(PVOID MiniPortExtension, PVOID FailedAssertion, PVOID FileName, ULONG LineNumber, PCHAR Message)
VOID NTAPI USBPORT_DumpingIDs(IN PVOID Buffer)
ULONG NTAPI USBPORT_TestDebugBreak(IN PVOID MiniPortExtension)
VOID NTAPI USBPORT_DumpingCapabilities(IN PDEVICE_CAPABILITIES Capabilities)
ULONG USBPORT_DbgPrint(IN PVOID MiniPortExtension, IN ULONG Level, IN PCH Format,...)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
_Must_inspect_result_ typedef _Out_ PHIDP_CAPS Capabilities
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_In_ ULONG _In_ ULONG _In_ ULONG Length
const KSDEVICE_DESCRIPTOR DeviceDescriptor
struct _USB_INTERFACE_DESCRIPTOR * PUSB_INTERFACE_DESCRIPTOR
struct _USB_ENDPOINT_DESCRIPTOR * PUSB_ENDPOINT_DESCRIPTOR
struct _USB_DEFAULT_PIPE_SETUP_PACKET * PUSB_DEFAULT_PIPE_SETUP_PACKET
#define DPRINT_MINIPORT(...)
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
_Must_inspect_result_ _In_ WDFUSBDEVICE _Out_writes_bytes_to_opt_ ConfigDescriptorLength PVOID ConfigDescriptor
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _In_ PWDF_USB_CONTROL_SETUP_PACKET SetupPacket
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level