ReactOS 0.4.16-dev-297-gc569aee
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
13VOID
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
29VOID
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}
VOID NTAPI EHCI_DumpHwTD(IN PEHCI_HCD_TD TD)
Definition: debug.c:15
VOID NTAPI EHCI_DumpHwQH(IN PEHCI_HCD_QH QH)
Definition: debug.c:31
#define DPRINT
Definition: sndvol32.h:73
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39