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