TianoCore EDK2 master
|
#include <IndustryStandard/Usb.h>
Go to the source code of this file.
Data Structures | |
struct | EFI_USB_HUB_DESCRIPTOR |
struct | USB_CHANGE_FEATURE_MAP |
Functions | |
EFI_STATUS | UsbHubCtrlClearTTBuffer (IN USB_DEVICE *UsbDev, IN UINT8 Port, IN UINT16 DevAddr, IN UINT16 EpNum, IN UINT16 EpType) |
BOOLEAN | UsbIsHubInterface (IN USB_INTERFACE *UsbIf) |
EFI_STATUS | UsbHubAckHubStatus (IN USB_DEVICE *UsbDev) |
Variables | |
USB_HUB_API | mUsbHubApi |
USB_HUB_API | mUsbRootHubApi |
The definition for USB hub.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UsbHub.h.
#define USB_ENDPOINT_TYPE | ( | Desc | ) | ((Desc)->Attributes & USB_ENDPOINT_TYPE_MASK) |
EFI_STATUS UsbHubAckHubStatus | ( | IN USB_DEVICE * | HubDev | ) |
Ack the hub change bits. If these bits are not ACKed, Hub will always return changed bit map from its interrupt endpoint.
UsbDev | The Usb device. |
EFI_SUCCESS | The hub change status is ACKed. |
Others | Failed to ACK the hub status. |
Ack the hub change bits. If these bits are not ACKed, Hub will always return changed bit map from its interrupt endpoint.
HubDev | The hub device. |
EFI_SUCCESS | The hub change status is ACKed. |
Others | Failed to ACK the hub status. |
EFI_STATUS UsbHubCtrlClearTTBuffer | ( | IN USB_DEVICE * | HubDev, |
IN UINT8 | Port, | ||
IN UINT16 | DevAddr, | ||
IN UINT16 | EpNum, | ||
IN UINT16 | EpType | ||
) |
Clear the transaction translate buffer if full/low speed control/bulk transfer failed and the transfer uses this hub as translator.Remember to clear the TT buffer of transaction translator, not that of the parent.
UsbDev | The Usb device. |
Port | The port of the hub. |
DevAddr | Address of the failed transaction. |
EpNum | The endpoint number of the failed transaction. |
EpType | The type of failed transaction. |
EFI_SUCCESS | The TT buffer is cleared. |
Others | Failed to clear the TT buffer. |
Clear the transaction translate buffer if full/low speed control/bulk transfer failed and the transfer uses this hub as translator.Remember to clear the TT buffer of transaction translator, not that of the parent.
HubDev | The hub device. |
Port | The port of the hub. |
DevAddr | Address of the failed transaction. |
EpNum | The endpoint number of the failed transaction. |
EpType | The type of failed transaction. |
EFI_SUCCESS | The TT buffer is cleared. |
Others | Failed to clear the TT buffer. |
BOOLEAN UsbIsHubInterface | ( | IN USB_INTERFACE * | UsbIf | ) |
|
extern |
|
extern |