[USBEHCI_NEW] Bring-in the USB EHCI miniport driver created by Vadim Galyant. (#301)
[reactos.git] / drivers / usb / usbehci_new / debug.c
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
15 EHCI_DumpHwTD(IN PEHCI_HCD_TD TD)
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
31 EHCI_DumpHwQH(IN PEHCI_HCD_QH QH)
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 }