ReactOS  0.4.15-dev-1177-g6cb3b62
debug.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS USB EHCI Miniport Driver
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: USBEHCI debugging functions
5  * COPYRIGHT: Copyright 2017-2018 Vadim Galyant <vgal@rambler.ru>
6  */
7 
8 #include "usbehci.h"
9 
10 //#define NDEBUG
11 #include <debug.h>
12 
13 VOID
14 NTAPI
16 {
17  while (TD)
18  {
19  DPRINT(": TD - %p\n", TD);
20  DPRINT(": TD->PhysicalAddress - %lx\n", TD->PhysicalAddress);
21  DPRINT(": TD->HwTD.NextTD - %lx\n", TD->HwTD.NextTD);
22  DPRINT(": TD->HwTD.AlternateNextTD - %lx\n", TD->HwTD.AlternateNextTD);
23  DPRINT(": TD->HwTD.Token.AsULONG - %lx\n", TD->HwTD.Token.AsULONG);
24 
25  TD = TD->NextHcdTD;
26  }
27 }
28 
29 VOID
30 NTAPI
32 {
33  if (!QH)
34  return;
35 
36  DPRINT(": QH->sqh.HwQH.CurrentTD - %lx\n", QH->sqh.HwQH.CurrentTD);
37  DPRINT(": QH->sqh.HwQH.NextTD - %lx\n", QH->sqh.HwQH.NextTD);
38  DPRINT(": QH->sqh.HwQH.AlternateNextTD - %lx\n", QH->sqh.HwQH.AlternateNextTD);
39  DPRINT(": QH->sqh.HwQH.Token.AsULONG - %lx\n", QH->sqh.HwQH.Token.AsULONG);
40 }
#define IN
Definition: typedefs.h:39
VOID NTAPI EHCI_DumpHwQH(IN PEHCI_HCD_QH QH)
Definition: debug.c:31
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
void DPRINT(...)
Definition: polytest.cpp:61
VOID NTAPI EHCI_DumpHwTD(IN PEHCI_HCD_TD TD)
Definition: debug.c:15