]>
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 | |
1436aea4 | 20 | IN UHCI_QH_SW *QhSw\r |
913cb9dc | 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 | |
913cb9dc | 31 | /**\r |
32 | Dump the content of TD structure.\r | |
33 | \r | |
ab6495ea | 34 | @param TdSw Pointer to software TD structure.\r |
913cb9dc | 35 | \r |
36 | **/\r | |
37 | VOID\r | |
38 | UhciDumpTds (\r | |
1436aea4 | 39 | IN UHCI_TD_SW *TdSw\r |
913cb9dc | 40 | )\r |
41 | {\r | |
1436aea4 | 42 | UHCI_TD_SW *CurTdSw;\r |
913cb9dc | 43 | \r |
913cb9dc | 44 | CurTdSw = TdSw;\r |
45 | \r | |
46 | while (CurTdSw != NULL) {\r | |
1436aea4 MK |
47 | DEBUG ((DEBUG_VERBOSE, "TdSw @ 0x%p\n", CurTdSw));\r |
48 | DEBUG ((DEBUG_VERBOSE, "TdSw.NextTd - 0x%p\n", CurTdSw->NextTd));\r | |
49 | DEBUG ((DEBUG_VERBOSE, "TdSw.DataLen - %d\n", CurTdSw->DataLen));\r | |
50 | DEBUG ((DEBUG_VERBOSE, "TdSw.Data - 0x%p\n", CurTdSw->Data));\r | |
87000d77 | 51 | DEBUG ((DEBUG_VERBOSE, "TdHw:\n"));\r |
1436aea4 MK |
52 | DEBUG ((DEBUG_VERBOSE, " NextLink - 0x%x\n", CurTdSw->TdHw.NextLink));\r |
53 | DEBUG ((DEBUG_VERBOSE, " ActualLen - %d\n", CurTdSw->TdHw.ActualLen));\r | |
54 | DEBUG ((DEBUG_VERBOSE, " Status - 0x%x\n", CurTdSw->TdHw.Status));\r | |
55 | DEBUG ((DEBUG_VERBOSE, " IOC - %d\n", CurTdSw->TdHw.IntOnCpl));\r | |
56 | DEBUG ((DEBUG_VERBOSE, " IsIsoCh - %d\n", CurTdSw->TdHw.IsIsoch));\r | |
57 | DEBUG ((DEBUG_VERBOSE, " LowSpeed - %d\n", CurTdSw->TdHw.LowSpeed));\r | |
58 | DEBUG ((DEBUG_VERBOSE, " ErrorCount - %d\n", CurTdSw->TdHw.ErrorCount));\r | |
59 | DEBUG ((DEBUG_VERBOSE, " ShortPacket - %d\n", CurTdSw->TdHw.ShortPacket));\r | |
60 | DEBUG ((DEBUG_VERBOSE, " PidCode - 0x%x\n", CurTdSw->TdHw.PidCode));\r | |
61 | DEBUG ((DEBUG_VERBOSE, " DevAddr - %d\n", CurTdSw->TdHw.DeviceAddr));\r | |
62 | DEBUG ((DEBUG_VERBOSE, " EndPoint - %d\n", CurTdSw->TdHw.EndPoint));\r | |
63 | DEBUG ((DEBUG_VERBOSE, " DataToggle - %d\n", CurTdSw->TdHw.DataToggle));\r | |
64 | DEBUG ((DEBUG_VERBOSE, " MaxPacketLen - %d\n", CurTdSw->TdHw.MaxPacketLen));\r | |
65 | DEBUG ((DEBUG_VERBOSE, " DataBuffer - 0x%x\n\n", CurTdSw->TdHw.DataBuffer));\r | |
913cb9dc | 66 | \r |
67 | CurTdSw = CurTdSw->NextTd;\r | |
68 | }\r | |
69 | }\r |