1 /** @file
2 
3   This file contains the definination for host controller debug support routines.
4 
5 Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution.  The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10 
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 
14 **/
15 
16 #ifndef _EFI_EHCI_DEBUG_H_
17 #define _EFI_EHCI_DEBUG_H_
18 
19 
20 /**
21   Dump the fields of a QTD.
22 
23   @param  Qtd      The QTD to dump.
24   @param  Msg      The message to print before the dump.
25 
26 **/
27 VOID
28 EhcDumpQtd (
29   IN EHC_QTD              *Qtd,
30   IN CHAR8                *Msg
31   );
32 
33 
34 /**
35   Dump the queue head.
36 
37   @param  Qh       The queue head to dump.
38   @param  Msg      The message to print before the dump.
39   @param  DumpBuf  Whether to dump the memory buffer of the associated QTD.
40 
41 **/
42 VOID
43 EhcDumpQh (
44   IN EHC_QH               *Qh,
45   IN CHAR8                *Msg,
46   IN BOOLEAN              DumpBuf
47   );
48 
49 
50 /**
51   Dump the buffer in the form of hex.
52 
53   @param  Buf      The buffer to dump.
54   @param  Len      The length of buffer.
55 
56 **/
57 VOID
58 EhcDumpBuf (
59   IN UINT8                *Buf,
60   IN UINTN                Len
61   );
62 
63 
64 /**
65   Dump the EHCI status registers.
66 
67   @param  Ehc    USB EHCI Host Controller instance
68 
69 **/
70 VOID
71 EhcDumpRegs (
72   IN  USB2_HC_DEV         *Ehc
73   );
74 
75 #endif
76