]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Pci/UhciDxe/UhciDebug.c
Remove some useless EDK_RELEASE_VERSION, EFI_SPECIFICATION_VERSION ,and review VALID_...
[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
913cb9dc 5Copyright (c) 2007, Intel Corporation\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
913cb9dc 14**/\r
15\r
16#include "Uhci.h"\r
913cb9dc 17\r
18/**\r
ab6495ea 19 Dump the content of QH structure.\r
913cb9dc 20\r
ab6495ea 21 @param QhSw Pointer to software QH structure.\r
913cb9dc 22\r
913cb9dc 23**/\r
24VOID\r
25UhciDumpQh (\r
26 IN UHCI_QH_SW *QhSw\r
27 )\r
28{\r
1c619535 29 DEBUG ((EFI_D_INFO, "&QhSw @ 0x%x\n", QhSw));\r
30 DEBUG ((EFI_D_INFO, "QhSw.NextQh - 0x%x\n", QhSw->NextQh));\r
31 DEBUG ((EFI_D_INFO, "QhSw.TDs - 0x%x\n", QhSw->TDs));\r
32 DEBUG ((EFI_D_INFO, "QhSw.QhHw:\n"));\r
33 DEBUG ((EFI_D_INFO, " Horizon Link - %x\n", QhSw->QhHw.HorizonLink));\r
34 DEBUG ((EFI_D_INFO, " Vertical Link - %x\n\n", QhSw->QhHw.VerticalLink));\r
913cb9dc 35}\r
36\r
37\r
38/**\r
39 Dump the content of TD structure.\r
40\r
ab6495ea 41 @param TdSw Pointer to software TD structure.\r
913cb9dc 42\r
43**/\r
44VOID\r
45UhciDumpTds (\r
46 IN UHCI_TD_SW *TdSw\r
47 )\r
48{\r
49 UHCI_TD_SW *CurTdSw;\r
913cb9dc 50\r
913cb9dc 51 CurTdSw = TdSw;\r
52\r
53 while (CurTdSw != NULL) {\r
1c619535 54 DEBUG ((EFI_D_INFO, "TdSw @ 0x%x\n", CurTdSw));\r
55 DEBUG ((EFI_D_INFO, "TdSw.NextTd - 0x%x\n", CurTdSw->NextTd));\r
56 DEBUG ((EFI_D_INFO, "TdSw.DataLen - %d\n", CurTdSw->DataLen));\r
57 DEBUG ((EFI_D_INFO, "TdSw.Data - 0x%x\n", CurTdSw->Data));\r
58 DEBUG ((EFI_D_INFO, "TdHw:\n"));\r
59 DEBUG ((EFI_D_INFO, " NextLink - 0x%x\n", CurTdSw->TdHw.NextLink));\r
60 DEBUG ((EFI_D_INFO, " ActualLen - %d\n", CurTdSw->TdHw.ActualLen));\r
61 DEBUG ((EFI_D_INFO, " Status - 0x%x\n", CurTdSw->TdHw.Status));\r
62 DEBUG ((EFI_D_INFO, " IOC - %d\n", CurTdSw->TdHw.IntOnCpl));\r
63 DEBUG ((EFI_D_INFO, " IsIsoCh - %d\n", CurTdSw->TdHw.IsIsoch));\r
64 DEBUG ((EFI_D_INFO, " LowSpeed - %d\n", CurTdSw->TdHw.LowSpeed));\r
65 DEBUG ((EFI_D_INFO, " ErrorCount - %d\n", CurTdSw->TdHw.ErrorCount));\r
66 DEBUG ((EFI_D_INFO, " ShortPacket - %d\n", CurTdSw->TdHw.ShortPacket));\r
67 DEBUG ((EFI_D_INFO, " PidCode - 0x%x\n", CurTdSw->TdHw.PidCode));\r
68 DEBUG ((EFI_D_INFO, " DevAddr - %d\n", CurTdSw->TdHw.DeviceAddr));\r
69 DEBUG ((EFI_D_INFO, " EndPoint - %d\n", CurTdSw->TdHw.EndPoint));\r
70 DEBUG ((EFI_D_INFO, " DataToggle - %d\n", CurTdSw->TdHw.DataToggle));\r
71 DEBUG ((EFI_D_INFO, " MaxPacketLen - %d\n", CurTdSw->TdHw.MaxPacketLen));\r
72 DEBUG ((EFI_D_INFO, " DataBuffer - 0x%x\n\n",CurTdSw->TdHw.DataBuffer));\r
913cb9dc 73\r
74 CurTdSw = CurTdSw->NextTd;\r
75 }\r
76}\r
77\r