]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Pci/UhciDxe/UhciDebug.c
MdeModulePkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / UhciDebug.c
CommitLineData
913cb9dc 1/** @file\r
2\r
ab6495ea 3 This file provides the information dump support for Uhci when in debug mode.\r
4\r
cd5ebaa0 5Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
9d510e61 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
913cb9dc 7\r
913cb9dc 8**/\r
9\r
10#include "Uhci.h"\r
913cb9dc 11\r
12/**\r
ab6495ea 13 Dump the content of QH structure.\r
913cb9dc 14\r
ab6495ea 15 @param QhSw Pointer to software QH structure.\r
913cb9dc 16\r
913cb9dc 17**/\r
18VOID\r
19UhciDumpQh (\r
20 IN UHCI_QH_SW *QhSw\r
21 )\r
22{\r
87000d77
MK
23 DEBUG ((DEBUG_VERBOSE, "&QhSw @ 0x%p\n", QhSw));\r
24 DEBUG ((DEBUG_VERBOSE, "QhSw.NextQh - 0x%p\n", QhSw->NextQh));\r
25 DEBUG ((DEBUG_VERBOSE, "QhSw.TDs - 0x%p\n", QhSw->TDs));\r
26 DEBUG ((DEBUG_VERBOSE, "QhSw.QhHw:\n"));\r
27 DEBUG ((DEBUG_VERBOSE, " Horizon Link - %x\n", QhSw->QhHw.HorizonLink));\r
28 DEBUG ((DEBUG_VERBOSE, " Vertical Link - %x\n\n", QhSw->QhHw.VerticalLink));\r
913cb9dc 29}\r
30\r
31\r
32/**\r
33 Dump the content of TD structure.\r
34\r
ab6495ea 35 @param TdSw Pointer to software TD structure.\r
913cb9dc 36\r
37**/\r
38VOID\r
39UhciDumpTds (\r
40 IN UHCI_TD_SW *TdSw\r
41 )\r
42{\r
43 UHCI_TD_SW *CurTdSw;\r
913cb9dc 44\r
913cb9dc 45 CurTdSw = TdSw;\r
46\r
47 while (CurTdSw != NULL) {\r
87000d77
MK
48 DEBUG ((DEBUG_VERBOSE, "TdSw @ 0x%p\n", CurTdSw));\r
49 DEBUG ((DEBUG_VERBOSE, "TdSw.NextTd - 0x%p\n", CurTdSw->NextTd));\r
50 DEBUG ((DEBUG_VERBOSE, "TdSw.DataLen - %d\n", CurTdSw->DataLen));\r
51 DEBUG ((DEBUG_VERBOSE, "TdSw.Data - 0x%p\n", CurTdSw->Data));\r
52 DEBUG ((DEBUG_VERBOSE, "TdHw:\n"));\r
53 DEBUG ((DEBUG_VERBOSE, " NextLink - 0x%x\n", CurTdSw->TdHw.NextLink));\r
54 DEBUG ((DEBUG_VERBOSE, " ActualLen - %d\n", CurTdSw->TdHw.ActualLen));\r
55 DEBUG ((DEBUG_VERBOSE, " Status - 0x%x\n", CurTdSw->TdHw.Status));\r
56 DEBUG ((DEBUG_VERBOSE, " IOC - %d\n", CurTdSw->TdHw.IntOnCpl));\r
57 DEBUG ((DEBUG_VERBOSE, " IsIsoCh - %d\n", CurTdSw->TdHw.IsIsoch));\r
58 DEBUG ((DEBUG_VERBOSE, " LowSpeed - %d\n", CurTdSw->TdHw.LowSpeed));\r
59 DEBUG ((DEBUG_VERBOSE, " ErrorCount - %d\n", CurTdSw->TdHw.ErrorCount));\r
60 DEBUG ((DEBUG_VERBOSE, " ShortPacket - %d\n", CurTdSw->TdHw.ShortPacket));\r
61 DEBUG ((DEBUG_VERBOSE, " PidCode - 0x%x\n", CurTdSw->TdHw.PidCode));\r
62 DEBUG ((DEBUG_VERBOSE, " DevAddr - %d\n", CurTdSw->TdHw.DeviceAddr));\r
63 DEBUG ((DEBUG_VERBOSE, " EndPoint - %d\n", CurTdSw->TdHw.EndPoint));\r
64 DEBUG ((DEBUG_VERBOSE, " DataToggle - %d\n", CurTdSw->TdHw.DataToggle));\r
65 DEBUG ((DEBUG_VERBOSE, " MaxPacketLen - %d\n", CurTdSw->TdHw.MaxPacketLen));\r
66 DEBUG ((DEBUG_VERBOSE, " DataBuffer - 0x%x\n\n",CurTdSw->TdHw.DataBuffer));\r
913cb9dc 67\r
68 CurTdSw = CurTdSw->NextTd;\r
69 }\r
70}\r