]>
Commit | Line | Data |
---|---|---|
913cb9dc | 1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2007, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | UhciDebug.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | This file contains the definination for host controller debug support routines\r | |
19 | \r | |
20 | Revision History\r | |
21 | \r | |
22 | \r | |
23 | **/\r | |
24 | \r | |
25 | #ifndef _EFI_UHCI_DEBUG_H_\r | |
26 | #define _EFI_UHCI_DEBUG_H_\r | |
27 | \r | |
28 | //\r | |
29 | // DEBUG support\r | |
30 | //\r | |
31 | #define USB_DEBUG_FORCE_OUTPUT (UINTN) (1 << 0)\r | |
32 | #define UHCI_DEBUG_QH (UINTN) (1 << 2)\r | |
33 | #define UHCI_DEBUG_TD (UINTN) (1 << 3)\r | |
34 | \r | |
35 | VOID\r | |
36 | UhciDebugPrint (\r | |
37 | IN UINTN Level,\r | |
38 | IN CHAR8 *Format,\r | |
39 | ...\r | |
40 | )\r | |
41 | /*++\r | |
42 | \r | |
43 | Routine Description:\r | |
44 | \r | |
45 | Debug print interface for UHCI\r | |
46 | \r | |
47 | Arguments:\r | |
48 | \r | |
49 | Level - Level to control debug print\r | |
50 | Format - String to use for the print, followed by print arguments\r | |
51 | \r | |
52 | Returns:\r | |
53 | \r | |
54 | None\r | |
55 | \r | |
56 | --*/\r | |
57 | ;\r | |
58 | \r | |
59 | \r | |
60 | /**\r | |
61 | Debug print interface for UHCI\r | |
62 | \r | |
63 | @param Format String to use for the print, followed by print arguments\r | |
64 | \r | |
65 | @return None\r | |
66 | \r | |
67 | **/\r | |
68 | VOID\r | |
69 | UhciDebug (\r | |
70 | IN CHAR8 *Format,\r | |
71 | ...\r | |
72 | )\r | |
73 | ;\r | |
74 | \r | |
75 | \r | |
76 | /**\r | |
77 | Debug error print interface for UHCI\r | |
78 | \r | |
79 | @param Format String to use for the print, followed by print arguments\r | |
80 | \r | |
81 | @return None\r | |
82 | \r | |
83 | **/\r | |
84 | VOID\r | |
85 | UhciError (\r | |
86 | IN CHAR8 *Format,\r | |
87 | ...\r | |
88 | )\r | |
89 | ;\r | |
90 | \r | |
91 | \r | |
92 | /**\r | |
93 | Dump the content of QH structure\r | |
94 | \r | |
95 | @param QhSw Pointer to software QH structure\r | |
96 | \r | |
97 | @return None\r | |
98 | \r | |
99 | **/\r | |
100 | VOID\r | |
101 | UhciDumpQh (\r | |
102 | IN UHCI_QH_SW *QhSw\r | |
103 | )\r | |
104 | ;\r | |
105 | \r | |
106 | \r | |
107 | /**\r | |
108 | Dump the content of TD structure.\r | |
109 | \r | |
110 | @param TdSw Pointer to software TD structure\r | |
111 | \r | |
112 | @return None\r | |
113 | \r | |
114 | **/\r | |
115 | VOID\r | |
116 | UhciDumpTds (\r | |
117 | IN UHCI_TD_SW *TdSw\r | |
118 | )\r | |
119 | ;\r | |
120 | \r | |
121 | \r | |
122 | #ifdef EFI_DEBUG\r | |
123 | #define UHCI_DEBUG(arg) UhciDebug arg\r | |
124 | #define UHCI_ERROR(arg) UhciError arg\r | |
125 | #define UHCI_DUMP_TDS(arg) UhciDumpTds arg\r | |
126 | #define UHCI_DUMP_QH(arg) UhciDumpQh arg\r | |
127 | #else\r | |
128 | #define UHCI_DEBUG(arg)\r | |
129 | #define UHCI_ERROR(arg)\r | |
130 | #define UHCI_DUMP_TDS(arg)\r | |
131 | #define UHCI_DUMP_QH(arg)\r | |
132 | #endif\r | |
133 | \r | |
134 | #endif\r |