]>
Commit | Line | Data |
---|---|---|
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 | 5 | Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 6 | SPDX-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 |
18 | VOID\r | |
19 | UhciDumpQh (\r | |
20 | IN UHCI_QH_SW *QhSw\r | |
21 | )\r | |
22 | {\r | |
9a95972e SEHM |
23 | DEBUG ((EFI_D_VERBOSE, "&QhSw @ 0x%p\n", QhSw));\r |
24 | DEBUG ((EFI_D_VERBOSE, "QhSw.NextQh - 0x%p\n", QhSw->NextQh));\r | |
25 | DEBUG ((EFI_D_VERBOSE, "QhSw.TDs - 0x%p\n", QhSw->TDs));\r | |
26 | DEBUG ((EFI_D_VERBOSE, "QhSw.QhHw:\n"));\r | |
27 | DEBUG ((EFI_D_VERBOSE, " Horizon Link - %x\n", QhSw->QhHw.HorizonLink));\r | |
28 | DEBUG ((EFI_D_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 | |
38 | VOID\r | |
39 | UhciDumpTds (\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 | |
9a95972e SEHM |
48 | DEBUG ((EFI_D_VERBOSE, "TdSw @ 0x%p\n", CurTdSw));\r |
49 | DEBUG ((EFI_D_VERBOSE, "TdSw.NextTd - 0x%p\n", CurTdSw->NextTd));\r | |
50 | DEBUG ((EFI_D_VERBOSE, "TdSw.DataLen - %d\n", CurTdSw->DataLen));\r | |
51 | DEBUG ((EFI_D_VERBOSE, "TdSw.Data - 0x%p\n", CurTdSw->Data));\r | |
52 | DEBUG ((EFI_D_VERBOSE, "TdHw:\n"));\r | |
53 | DEBUG ((EFI_D_VERBOSE, " NextLink - 0x%x\n", CurTdSw->TdHw.NextLink));\r | |
54 | DEBUG ((EFI_D_VERBOSE, " ActualLen - %d\n", CurTdSw->TdHw.ActualLen));\r | |
55 | DEBUG ((EFI_D_VERBOSE, " Status - 0x%x\n", CurTdSw->TdHw.Status));\r | |
56 | DEBUG ((EFI_D_VERBOSE, " IOC - %d\n", CurTdSw->TdHw.IntOnCpl));\r | |
57 | DEBUG ((EFI_D_VERBOSE, " IsIsoCh - %d\n", CurTdSw->TdHw.IsIsoch));\r | |
58 | DEBUG ((EFI_D_VERBOSE, " LowSpeed - %d\n", CurTdSw->TdHw.LowSpeed));\r | |
59 | DEBUG ((EFI_D_VERBOSE, " ErrorCount - %d\n", CurTdSw->TdHw.ErrorCount));\r | |
60 | DEBUG ((EFI_D_VERBOSE, " ShortPacket - %d\n", CurTdSw->TdHw.ShortPacket));\r | |
61 | DEBUG ((EFI_D_VERBOSE, " PidCode - 0x%x\n", CurTdSw->TdHw.PidCode));\r | |
62 | DEBUG ((EFI_D_VERBOSE, " DevAddr - %d\n", CurTdSw->TdHw.DeviceAddr));\r | |
63 | DEBUG ((EFI_D_VERBOSE, " EndPoint - %d\n", CurTdSw->TdHw.EndPoint));\r | |
64 | DEBUG ((EFI_D_VERBOSE, " DataToggle - %d\n", CurTdSw->TdHw.DataToggle));\r | |
65 | DEBUG ((EFI_D_VERBOSE, " MaxPacketLen - %d\n", CurTdSw->TdHw.MaxPacketLen));\r | |
66 | DEBUG ((EFI_D_VERBOSE, " DataBuffer - 0x%x\n\n",CurTdSw->TdHw.DataBuffer));\r | |
913cb9dc | 67 | \r |
68 | CurTdSw = CurTdSw->NextTd;\r | |
69 | }\r | |
70 | }\r | |
71 | \r |