]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h
4df8e9ee7e55b8a39f70e5ac11b08301e4dd8f1a
3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 This file contains the definination for host controller debug support routines
24 #ifndef _EFI_EHCI_DEBUG_H_
25 #define _EFI_EHCI_DEBUG_H_
29 USB_DEBUG_FORCE_OUTPUT
= (UINTN
)(1 << 0),
31 EHC_DEBUG_QH
= (UINTN
)(1 << 8),
32 EHC_DEBUG_QTD
= (UINTN
)(1 << 9),
33 EHC_DEBUG_BUF
= (UINTN
)(1 << 10)
38 EHCI's debug output function. It determines whether
39 to output by the mask and level
41 @param Level The output level
42 @param Format The format parameters to the print
43 @param ... The variable length parameters after format
58 EHCI's debug output function. It determines whether
59 to output by the mask and level
61 @param Format The format parameters to the print
62 @param ... The variable length parameters after format
77 EHCI's error output function. It determines whether
78 to output by the mask and level
80 @param Format The format parameters to the print
81 @param ... The variable length parameters after format
96 Dump the fields of a QTD
98 @param Qtd The QTD to dump
99 @param Msg The message to print before the dump
116 @param Qh The queue head to dump
117 @param Msg The message to print before the dump
118 @param DumpBuf Whether to dump the memory buffer of the associated QTD
134 Dump the buffer in the form of hex
136 @param Buf The buffer to dump
137 @param Len The length of buffer
150 #define EHC_DEBUG(arg) EhcDebug arg
151 #define EHC_ERROR(arg) EhcError arg
152 #define EHC_DUMP_QH(arg) EhcDumpQh arg
153 #define EHC_DUMP_QTD(arg) EhcDumpQtd arg
154 #define EHC_DUMP_BUF(arg) EhcDumpBuf arg
156 #define EHC_DEBUG(arg)
157 #define EHC_ERROR(arg)
158 #define EHC_DUMP_QH(arg)
159 #define EHC_DUMP_QTD(arg)
160 #define EHC_DUMP_BUF(arg)