\r
**/\r
\r
-\r
#include "Ehci.h"\r
\r
/**\r
**/\r
VOID\r
EhcDumpStatus (\r
- IN UINT32 State\r
+ IN UINT32 State\r
)\r
{\r
if (EHC_BIT_IS_SET (State, QTD_STAT_DO_PING)) {\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
}\r
\r
-\r
/**\r
Dump the fields of a QTD.\r
\r
**/\r
VOID\r
EhcDumpQtd (\r
- IN EHC_QTD *Qtd,\r
- IN CHAR8 *Msg\r
+ IN EHC_QTD *Qtd,\r
+ IN CHAR8 *Msg\r
)\r
{\r
- QTD_HW *QtdHw;\r
- UINTN Index;\r
+ QTD_HW *QtdHw;\r
+ UINTN Index;\r
\r
if (Msg != NULL) {\r
DEBUG ((DEBUG_VERBOSE, Msg));\r
\r
if (QtdHw->Pid == QTD_PID_SETUP) {\r
DEBUG ((DEBUG_VERBOSE, "PID : Setup\n"));\r
-\r
} else if (QtdHw->Pid == QTD_PID_INPUT) {\r
DEBUG ((DEBUG_VERBOSE, "PID : IN\n"));\r
-\r
} else if (QtdHw->Pid == QTD_PID_OUTPUT) {\r
DEBUG ((DEBUG_VERBOSE, "PID : OUT\n"));\r
-\r
}\r
\r
DEBUG ((DEBUG_VERBOSE, "Error Count : %d\n", QtdHw->ErrCnt));\r
}\r
}\r
\r
-\r
/**\r
Dump the queue head.\r
\r
**/\r
VOID\r
EhcDumpQh (\r
- IN EHC_QH *Qh,\r
- IN CHAR8 *Msg,\r
- IN BOOLEAN DumpBuf\r
+ IN EHC_QH *Qh,\r
+ IN CHAR8 *Msg,\r
+ IN BOOLEAN DumpBuf\r
)\r
{\r
- EHC_QTD *Qtd;\r
- QH_HW *QhHw;\r
- LIST_ENTRY *Entry;\r
- UINTN Index;\r
+ EHC_QTD *Qtd;\r
+ QH_HW *QhHw;\r
+ LIST_ENTRY *Entry;\r
+ UINTN Index;\r
\r
if (Msg != NULL) {\r
DEBUG ((DEBUG_VERBOSE, Msg));\r
}\r
\r
- DEBUG ((DEBUG_VERBOSE, "Queue head @ 0x%p, interval %ld, next qh %p\n",\r
- Qh, (UINT64)Qh->Interval, Qh->NextQh));\r
+ DEBUG ((\r
+ DEBUG_VERBOSE,\r
+ "Queue head @ 0x%p, interval %ld, next qh %p\n",\r
+ Qh,\r
+ (UINT64)Qh->Interval,\r
+ Qh->NextQh\r
+ ));\r
\r
QhHw = &Qh->QhHw;\r
\r
\r
if (QhHw->Pid == QTD_PID_SETUP) {\r
DEBUG ((DEBUG_VERBOSE, "PID : Setup\n"));\r
-\r
} else if (QhHw->Pid == QTD_PID_INPUT) {\r
DEBUG ((DEBUG_VERBOSE, "PID : IN\n"));\r
-\r
} else if (QhHw->Pid == QTD_PID_OUTPUT) {\r
DEBUG ((DEBUG_VERBOSE, "PID : OUT\n"));\r
}\r
}\r
}\r
\r
-\r
/**\r
Dump the buffer in the form of hex.\r
\r
**/\r
VOID\r
EhcDumpBuf (\r
- IN UINT8 *Buf,\r
- IN UINTN Len\r
+ IN UINT8 *Buf,\r
+ IN UINTN Len\r
)\r
{\r
- UINTN Index;\r
+ UINTN Index;\r
\r
for (Index = 0; Index < Len; Index++) {\r
if (Index % 16 == 0) {\r
- DEBUG ((DEBUG_VERBOSE,"\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "\n"));\r
}\r
\r
DEBUG ((DEBUG_VERBOSE, "%02x ", Buf[Index]));\r