UINT32 RsvdZ5; // Reserved\r
UINT32 RsvdZ6;\r
UINT32 RsvdZ7;\r
- \r
+\r
UINT32 RsvdZ8;\r
UINT32 RsvdZ9;\r
UINT32 RsvdZ10;\r
UINT32 RsvdZ11;\r
- \r
+\r
UINT32 RsvdZ12;\r
UINT32 RsvdZ13;\r
UINT32 RsvdZ14;\r
UINT64 RsvdZ1:32;\r
UINT64 RsvdZ2;\r
UINT64 RsvdZ3;\r
- UINT64 RsvdZ4; \r
+ UINT64 RsvdZ4;\r
} DBC_INFO_CONTEXT;\r
\r
//\r
// The flag indicates debug capability is supported\r
//\r
BOOLEAN DebugSupport;\r
- \r
+\r
//\r
// The flag indicates debug device is ready\r
//\r
\r
//\r
// The flag indicates if USB 3.0 ports has been turn off/on power\r
- // \r
+ //\r
BOOLEAN ChangePortPower;\r
\r
//\r
\r
//\r
// XHCI OP RegisterBase address\r
- // \r
+ //\r
EFI_PHYSICAL_ADDRESS XhciOpRegister;\r
- \r
+\r
//\r
// XHCI Debug Register Base Address\r
//\r
EFI_PHYSICAL_ADDRESS DebugCapabilityBase;\r
- \r
+\r
//\r
// XHCI Debug Capability offset\r
//\r
- UINT64 DebugCapabilityOffset; \r
- \r
+ UINT64 DebugCapabilityOffset;\r
+\r
//\r
// XHCI Debug Context Address\r
//\r
EFI_PHYSICAL_ADDRESS DebugCapabilityContext;\r
- \r
+\r
//\r
// Transfer Ring\r
//\r
// EventRing\r
//\r
EVENT_RING EventRing;\r
- \r
+\r
//\r
// URB - Read\r
//\r
IN UINT32 Offset,\r
IN UINT32 Bit\r
);\r
- \r
+\r
/**\r
Write the data to the debug register.\r
\r
@param Offset The offset of the debug register.\r
@param Data The data to write.\r
\r
-**/ \r
+**/\r
VOID\r
XhcWriteDebugReg (\r
IN USB3_DEBUG_PORT_HANDLE *Handle,\r
@param[in] BitMask 32-bit mask\r
\r
@return BOOLEAN - TRUE if all bits specified by the mask are enabled.\r
- - FALSE even if one of the bits specified by the mask \r
+ - FALSE even if one of the bits specified by the mask\r
is not enabled.\r
**/\r
BOOLEAN\r
XhcIsBitSet(\r
- UINTN Register, \r
+ UINTN Register,\r
UINT32 BitMask\r
);\r
\r
**/\r
VOID\r
XhcSetR32Bit(\r
- UINTN Register, \r
+ UINTN Register,\r
UINT32 BitMask\r
);\r
\r
**/\r
VOID\r
XhcClearR32Bit(\r
- IN OUT UINTN Register, \r
+ IN OUT UINTN Register,\r
IN UINT32 BitMask\r
);\r
\r
/**\r
Initialize USB3 debug port.\r
- \r
+\r
This method invokes various internal functions to facilitate\r
detection and initialization of USB3 debug port.\r
\r
Allocate aligned memory for XHC's usage.\r
\r
@param BufferSize The size, in bytes, of the Buffer.\r
- \r
+\r
@return A pointer to the allocated buffer or NULL if allocation fails.\r
\r
**/\r
\r
/**\r
The real function to initialize USB3 debug port.\r
- \r
+\r
This method invokes various internal functions to facilitate\r
detection and initialization of USB3 debug port.\r
\r
/**\r
Return USB3 debug instance address pointer.\r
\r
-**/ \r
+**/\r
EFI_PHYSICAL_ADDRESS *\r
GetUsb3DebugPortInstanceAddrPtr (\r
VOID\r
/**\r
Return USB3 debug instance address.\r
\r
-**/ \r
+**/\r
USB3_DEBUG_PORT_HANDLE *\r
GetUsb3DebugPortInstance (\r
VOID\r