TianoCore EDK2 master
Loading...
Searching...
No Matches
UhciDebug.c
Go to the documentation of this file.
1
10#include "Uhci.h"
11
18VOID
20 IN UHCI_QH_SW *QhSw
21 )
22{
23 DEBUG ((DEBUG_VERBOSE, "&QhSw @ 0x%p\n", QhSw));
24 DEBUG ((DEBUG_VERBOSE, "QhSw.NextQh - 0x%p\n", QhSw->NextQh));
25 DEBUG ((DEBUG_VERBOSE, "QhSw.TDs - 0x%p\n", QhSw->TDs));
26 DEBUG ((DEBUG_VERBOSE, "QhSw.QhHw:\n"));
27 DEBUG ((DEBUG_VERBOSE, " Horizon Link - %x\n", QhSw->QhHw.HorizonLink));
28 DEBUG ((DEBUG_VERBOSE, " Vertical Link - %x\n\n", QhSw->QhHw.VerticalLink));
29}
30
37VOID
39 IN UHCI_TD_SW *TdSw
40 )
41{
42 UHCI_TD_SW *CurTdSw;
43
44 CurTdSw = TdSw;
45
46 while (CurTdSw != NULL) {
47 DEBUG ((DEBUG_VERBOSE, "TdSw @ 0x%p\n", CurTdSw));
48 DEBUG ((DEBUG_VERBOSE, "TdSw.NextTd - 0x%p\n", CurTdSw->NextTd));
49 DEBUG ((DEBUG_VERBOSE, "TdSw.DataLen - %d\n", CurTdSw->DataLen));
50 DEBUG ((DEBUG_VERBOSE, "TdSw.Data - 0x%p\n", CurTdSw->Data));
51 DEBUG ((DEBUG_VERBOSE, "TdHw:\n"));
52 DEBUG ((DEBUG_VERBOSE, " NextLink - 0x%x\n", CurTdSw->TdHw.NextLink));
53 DEBUG ((DEBUG_VERBOSE, " ActualLen - %d\n", CurTdSw->TdHw.ActualLen));
54 DEBUG ((DEBUG_VERBOSE, " Status - 0x%x\n", CurTdSw->TdHw.Status));
55 DEBUG ((DEBUG_VERBOSE, " IOC - %d\n", CurTdSw->TdHw.IntOnCpl));
56 DEBUG ((DEBUG_VERBOSE, " IsIsoCh - %d\n", CurTdSw->TdHw.IsIsoch));
57 DEBUG ((DEBUG_VERBOSE, " LowSpeed - %d\n", CurTdSw->TdHw.LowSpeed));
58 DEBUG ((DEBUG_VERBOSE, " ErrorCount - %d\n", CurTdSw->TdHw.ErrorCount));
59 DEBUG ((DEBUG_VERBOSE, " ShortPacket - %d\n", CurTdSw->TdHw.ShortPacket));
60 DEBUG ((DEBUG_VERBOSE, " PidCode - 0x%x\n", CurTdSw->TdHw.PidCode));
61 DEBUG ((DEBUG_VERBOSE, " DevAddr - %d\n", CurTdSw->TdHw.DeviceAddr));
62 DEBUG ((DEBUG_VERBOSE, " EndPoint - %d\n", CurTdSw->TdHw.EndPoint));
63 DEBUG ((DEBUG_VERBOSE, " DataToggle - %d\n", CurTdSw->TdHw.DataToggle));
64 DEBUG ((DEBUG_VERBOSE, " MaxPacketLen - %d\n", CurTdSw->TdHw.MaxPacketLen));
65 DEBUG ((DEBUG_VERBOSE, " DataBuffer - 0x%x\n\n", CurTdSw->TdHw.DataBuffer));
66
67 CurTdSw = CurTdSw->NextTd;
68 }
69}
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define DEBUG(Expression)
Definition: DebugLib.h:434
VOID UhciDumpQh(IN UHCI_QH_SW *QhSw)
Definition: UhciDebug.c:19
VOID UhciDumpTds(IN UHCI_TD_SW *TdSw)
Definition: UhciDebug.c:38