xref: /reactos/drivers/usb/usbehci/debug.c (revision 611d925d)
1*611d925dSOleg Dubinskiy /*
2*611d925dSOleg Dubinskiy  * PROJECT:     ReactOS USB EHCI Miniport Driver
3*611d925dSOleg Dubinskiy  * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4*611d925dSOleg Dubinskiy  * PURPOSE:     USBEHCI debugging functions
5*611d925dSOleg Dubinskiy  * COPYRIGHT:   Copyright 2017-2018 Vadim Galyant <vgal@rambler.ru>
6*611d925dSOleg Dubinskiy  */
7*611d925dSOleg Dubinskiy 
8*611d925dSOleg Dubinskiy #include "usbehci.h"
9*611d925dSOleg Dubinskiy 
10*611d925dSOleg Dubinskiy //#define NDEBUG
11*611d925dSOleg Dubinskiy #include <debug.h>
12*611d925dSOleg Dubinskiy 
13*611d925dSOleg Dubinskiy VOID
14*611d925dSOleg Dubinskiy NTAPI
EHCI_DumpHwTD(IN PEHCI_HCD_TD TD)15*611d925dSOleg Dubinskiy EHCI_DumpHwTD(IN PEHCI_HCD_TD TD)
16*611d925dSOleg Dubinskiy {
17*611d925dSOleg Dubinskiy     while (TD)
18*611d925dSOleg Dubinskiy     {
19*611d925dSOleg Dubinskiy         DPRINT(": TD                       - %p\n", TD);
20*611d925dSOleg Dubinskiy         DPRINT(": TD->PhysicalAddress      - %lx\n", TD->PhysicalAddress);
21*611d925dSOleg Dubinskiy         DPRINT(": TD->HwTD.NextTD          - %lx\n", TD->HwTD.NextTD);
22*611d925dSOleg Dubinskiy         DPRINT(": TD->HwTD.AlternateNextTD - %lx\n", TD->HwTD.AlternateNextTD);
23*611d925dSOleg Dubinskiy         DPRINT(": TD->HwTD.Token.AsULONG   - %lx\n", TD->HwTD.Token.AsULONG);
24*611d925dSOleg Dubinskiy 
25*611d925dSOleg Dubinskiy         TD = TD->NextHcdTD;
26*611d925dSOleg Dubinskiy     }
27*611d925dSOleg Dubinskiy }
28*611d925dSOleg Dubinskiy 
29*611d925dSOleg Dubinskiy VOID
30*611d925dSOleg Dubinskiy NTAPI
EHCI_DumpHwQH(IN PEHCI_HCD_QH QH)31*611d925dSOleg Dubinskiy EHCI_DumpHwQH(IN PEHCI_HCD_QH QH)
32*611d925dSOleg Dubinskiy {
33*611d925dSOleg Dubinskiy     if (!QH)
34*611d925dSOleg Dubinskiy         return;
35*611d925dSOleg Dubinskiy 
36*611d925dSOleg Dubinskiy     DPRINT(": QH->sqh.HwQH.CurrentTD       - %lx\n", QH->sqh.HwQH.CurrentTD);
37*611d925dSOleg Dubinskiy     DPRINT(": QH->sqh.HwQH.NextTD          - %lx\n", QH->sqh.HwQH.NextTD);
38*611d925dSOleg Dubinskiy     DPRINT(": QH->sqh.HwQH.AlternateNextTD - %lx\n", QH->sqh.HwQH.AlternateNextTD);
39*611d925dSOleg Dubinskiy     DPRINT(": QH->sqh.HwQH.Token.AsULONG   - %lx\n", QH->sqh.HwQH.Token.AsULONG);
40*611d925dSOleg Dubinskiy }
41