TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | UHCI_FRAME_NUM 1024 |
#define | USB_BAR_INDEX 4 |
#define | USBCMD_OFFSET 0 |
#define | USBSTS_OFFSET 2 |
#define | USBINTR_OFFSET 4 |
#define | USBPORTSC_OFFSET 0x10 |
#define | USB_FRAME_NO_OFFSET 6 |
#define | USB_FRAME_BASE_OFFSET 8 |
#define | USB_EMULATION_OFFSET 0xC0 |
#define | SETUP_PACKET_ID 0x2D |
#define | INPUT_PACKET_ID 0x69 |
#define | OUTPUT_PACKET_ID 0xE1 |
#define | ERROR_PACKET_ID 0x55 |
#define | USBPORTSC_CCS BIT0 |
#define | USBPORTSC_CSC BIT1 |
#define | USBPORTSC_PED BIT2 |
#define | USBPORTSC_PEDC BIT3 |
#define | USBPORTSC_LSL BIT4 |
#define | USBPORTSC_LSH BIT5 |
#define | USBPORTSC_RD BIT6 |
#define | USBPORTSC_LSDA BIT8 |
#define | USBPORTSC_PR BIT9 |
#define | USBPORTSC_SUSP BIT12 |
#define | USB_MAX_ROOTHUB_PORT 0x0F |
#define | USBCMD_RS BIT0 |
#define | USBCMD_HCRESET BIT1 |
#define | USBCMD_GRESET BIT2 |
#define | USBCMD_EGSM BIT3 |
#define | USBCMD_FGR BIT4 |
#define | USBCMD_SWDBG BIT5 |
#define | USBCMD_CF BIT6 |
#define | USBCMD_MAXP BIT7 |
#define | USBSTS_USBINT BIT0 |
#define | USBSTS_ERROR BIT1 |
#define | USBSTS_RD BIT2 |
#define | USBSTS_HSE BIT3 |
#define | USBSTS_HCPE BIT4 |
#define | USBSTS_HCH BIT5 |
#define | USBTD_ACTIVE BIT7 |
#define | USBTD_STALLED BIT6 |
#define | USBTD_BUFFERR BIT5 |
#define | USBTD_BABBLE BIT4 |
#define | USBTD_NAK BIT3 |
#define | USBTD_CRC BIT2 |
#define | USBTD_BITSTUFF BIT1 |
Functions | |
UINT16 | UhciReadReg (IN EFI_PCI_IO_PROTOCOL *PciIo, IN UINT32 Offset) |
VOID | UhciWriteReg (IN EFI_PCI_IO_PROTOCOL *PciIo, IN UINT32 Offset, IN UINT16 Data) |
VOID | UhciSetRegBit (IN EFI_PCI_IO_PROTOCOL *PciIo, IN UINT32 Offset, IN UINT16 Bit) |
VOID | UhciClearRegBit (IN EFI_PCI_IO_PROTOCOL *PciIo, IN UINT32 Offset, IN UINT16 Bit) |
VOID | UhciAckAllInterrupt (IN USB_HC_DEV *Uhc) |
EFI_STATUS | UhciStopHc (IN USB_HC_DEV *Uhc, IN UINTN Timeout) |
BOOLEAN | UhciIsHcWorking (IN EFI_PCI_IO_PROTOCOL *PciIo) |
VOID | UhciSetFrameListBaseAddr (IN EFI_PCI_IO_PROTOCOL *PciIo, IN VOID *Addr) |
VOID | UhciTurnOffUsbEmulation (IN EFI_PCI_IO_PROTOCOL *PciIo) |
The definition for UHCI register operation routines.
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UhciReg.h.
VOID UhciAckAllInterrupt | ( | IN USB_HC_DEV * | Uhc | ) |
VOID UhciClearRegBit | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
IN UINT32 | Offset, | ||
IN UINT16 | Bit | ||
) |
Clear a bit of the UHCI Register.
PciIo | The PCI_IO protocol to access the PCI. |
Offset | Register offset to USB_BAR_INDEX. |
Bit | The bit to clear. |
Clear a bit of the UHCI Register.
PciIo | The PCI_IO protocol to access the PCI. |
Offset | Register offset to USB_BAR_INDEX. |
Bit | The bit to clear. |
BOOLEAN UhciIsHcWorking | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo | ) |
UINT16 UhciReadReg | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
IN UINT32 | Offset | ||
) |
VOID UhciSetFrameListBaseAddr | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
IN VOID * | Addr | ||
) |
Set the UHCI frame list base address. It can't use UhciWriteReg which access memory in UINT16.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Addr | Address to set. |
Set the UHCI frame list base address. It can't use UhciWriteReg which access memory in UINT16.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Addr | Address to set. |
VOID UhciSetRegBit | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
IN UINT32 | Offset, | ||
IN UINT16 | Bit | ||
) |
Set a bit of the UHCI Register.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Offset | Register offset to USB_BAR_INDEX. |
Bit | The bit to set. |
Set a bit of the UHCI Register.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Offset | Register offset to USB_BAR_INDEX. |
Bit | The bit to set. |
EFI_STATUS UhciStopHc | ( | IN USB_HC_DEV * | Uhc, |
IN UINTN | Timeout | ||
) |
VOID UhciTurnOffUsbEmulation | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo | ) |
VOID UhciWriteReg | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
IN UINT32 | Offset, | ||
IN UINT16 | Data | ||
) |
Write data to UHCI register.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Offset | Register offset to USB_BAR_INDEX. |
Data | Data to write. |
Write data to UHCI register.
PciIo | The EFI_PCI_IO_PROTOCOL to use. |
Offset | Register offset to USB_BAR_INDEX. |
Data | Data to write. |