TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | HCSPARAMS1 |
union | XHC_HCSPARAMS1 |
struct | HCSPARAMS2 |
union | XHC_HCSPARAMS2 |
struct | HCCPARAMS |
union | XHC_HCCPARAMS |
struct | SUPPORTED_PROTOCOL_DW0 |
union | XHC_SUPPORTED_PROTOCOL_DW0 |
struct | XHC_SUPPORTED_PROTOCOL_DW1 |
struct | SUPPORTED_PROTOCOL_DW2 |
union | XHC_SUPPORTED_PROTOCOL_DW2 |
struct | SUPPORTED_PROTOCOL_PROTOCOL_SPEED_ID |
union | XHC_SUPPORTED_PROTOCOL_PROTOCOL_SPEED_ID |
struct | USB_PORT_STATE_MAP |
struct | USB_CLEAR_PORT_MAP |
Enumerations | |
enum | XHC_PORT_FEATURE { Usb3PortBHPortReset = 28 , Usb3PortBHPortResetChange = 29 , Usb3PortBHPortReset = 28 , Usb3PortBHPortResetChange = 29 } |
This file contains the register definition of XHCI host controller.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file XhciReg.h.
#define XHC_SUPPORTED_PROTOCOL_DW0_MAJOR_REVISION_USB2 0x02 |
#define XHC_SUPPORTED_PROTOCOL_DW0_MAJOR_REVISION_USB3 0x03 |
#define XHC_SUPPORTED_PROTOCOL_NAME_STRING_VALUE 0x20425355 |
UINT16 XhcCheckUsbPortSpeedUsedPsic | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT8 | PortSpeed, | ||
IN UINT8 | PortNumber | ||
) |
VOID XhcClearOpRegBit | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Bit | ||
) |
VOID XhcClearRuntimeRegBit | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Bit | ||
) |
UINT32 XhcGetCapabilityAddr | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT8 | CapId | ||
) |
UINT32 XhcGetSupportedProtocolCapabilityAddr | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT8 | MajorVersion | ||
) |
EFI_STATUS XhcHaltHC | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Timeout | ||
) |
BOOLEAN XhcIsHalt | ( | IN USB_XHCI_INSTANCE * | Xhc | ) |
BOOLEAN XhcIsSysError | ( | IN USB_XHCI_INSTANCE * | Xhc | ) |
UINT32 XhcReadCapReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset | ||
) |
UINT8 XhcReadCapReg8 | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset | ||
) |
Read 1-byte width XHCI capability register.
Xhc | The XHCI Instance. |
Offset | The offset of the 1-byte width capability register. |
If | err, return 0xFFFF. |
Read 1-byte width XHCI capability register.
Xhc | The XHCI Instance. |
Offset | The offset of the 1-byte width capability register. |
If | err, return 0xFF. |
UINT32 XhcReadExtCapReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset | ||
) |
UINT32 XhcReadOpReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset | ||
) |
UINT32 XhcReadRuntimeReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset | ||
) |
EFI_STATUS XhcResetHC | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Timeout | ||
) |
EFI_STATUS XhcRunHC | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Timeout | ||
) |
VOID XhcSetOpRegBit | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Bit | ||
) |
VOID XhcSetRuntimeRegBit | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Bit | ||
) |
EFI_STATUS XhcWaitOpRegBit | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Bit, | ||
IN BOOLEAN | WaitToSet, | ||
IN UINT32 | Timeout | ||
) |
Wait the operation register's bit as specified by Bit to be set (or clear).
Xhc | The XHCI Instance. |
Offset | The offset of the operational register. |
Bit | The bit of the register to wait for. |
WaitToSet | Wait the bit to set or clear. |
Timeout | The time to wait before abort (in millisecond, ms). |
EFI_SUCCESS | The bit successfully changed by host controller. |
EFI_TIMEOUT | The time out occurred. |
Wait the operation register's bit as specified by Bit to become set (or clear).
Xhc | The XHCI Instance. |
Offset | The offset of the operation register. |
Bit | The bit of the register to wait for. |
WaitToSet | Wait the bit to set or clear. |
Timeout | The time to wait before abort (in millisecond, ms). |
EFI_SUCCESS | The bit successfully changed by host controller. |
EFI_TIMEOUT | The time out occurred. |
VOID XhcWriteDoorBellReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Data | ||
) |
VOID XhcWriteOpReg | ( | IN USB_XHCI_INSTANCE * | Xhc, |
IN UINT32 | Offset, | ||
IN UINT32 | Data | ||
) |