TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | USB_NEXT_BIT(Byte, Bit) |
Typedefs | |
typedef EFI_STATUS(* | USB_HUB_INIT) (IN USB_INTERFACE *UsbIf) |
typedef EFI_STATUS(* | USB_HUB_GET_PORT_STATUS) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, OUT EFI_USB_PORT_STATUS *PortState) |
typedef VOID(* | USB_HUB_CLEAR_PORT_CHANGE) (IN USB_INTERFACE *HubIf, IN UINT8 Port) |
typedef EFI_STATUS(* | USB_HUB_SET_PORT_FEATURE) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, IN EFI_USB_PORT_FEATURE Feature) |
typedef EFI_STATUS(* | USB_HUB_CLEAR_PORT_FEATURE) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, IN EFI_USB_PORT_FEATURE Feature) |
typedef EFI_STATUS(* | USB_HUB_RESET_PORT) (IN USB_INTERFACE *UsbIf, IN UINT8 Port) |
typedef EFI_STATUS(* | USB_HUB_RELEASE) (IN USB_INTERFACE *UsbIf) |
Functions | |
USB_ENDPOINT_DESC * | UsbGetEndpointDesc (IN USB_INTERFACE *UsbIf, IN UINT8 EpAddr) |
EFI_STATUS | UsbSelectSetting (IN USB_INTERFACE_DESC *IfDesc, IN UINT8 Alternate) |
EFI_STATUS | UsbSelectConfig (IN USB_DEVICE *Device, IN UINT8 ConfigIndex) |
EFI_STATUS | UsbRemoveConfig (IN USB_DEVICE *Device) |
EFI_STATUS | UsbRemoveDevice (IN USB_DEVICE *Device) |
VOID EFIAPI | UsbHubEnumeration (IN EFI_EVENT Event, IN VOID *Context) |
VOID EFIAPI | UsbRootHubEnumeration (IN EFI_EVENT Event, IN VOID *Context) |
USB bus enumeration interface.
Copyright (c) 2007, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UsbEnumer.h.
#define USB_NEXT_BIT | ( | Byte, | |
Bit | |||
) |
Definition at line 16 of file UsbEnumer.h.
typedef VOID(* USB_HUB_CLEAR_PORT_CHANGE) (IN USB_INTERFACE *HubIf, IN UINT8 Port) |
Definition at line 52 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_CLEAR_PORT_FEATURE) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, IN EFI_USB_PORT_FEATURE Feature) |
Definition at line 67 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_GET_PORT_STATUS) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, OUT EFI_USB_PORT_STATUS *PortState) |
Definition at line 44 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_INIT) (IN USB_INTERFACE *UsbIf) |
Definition at line 32 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_RELEASE) (IN USB_INTERFACE *UsbIf) |
Definition at line 82 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_RESET_PORT) (IN USB_INTERFACE *UsbIf, IN UINT8 Port) |
Definition at line 75 of file UsbEnumer.h.
typedef EFI_STATUS(* USB_HUB_SET_PORT_FEATURE) (IN USB_INTERFACE *UsbIf, IN UINT8 Port, IN EFI_USB_PORT_FEATURE Feature) |
Definition at line 59 of file UsbEnumer.h.
USB_ENDPOINT_DESC * UsbGetEndpointDesc | ( | IN USB_INTERFACE * | UsbIf, |
IN UINT8 | EpAddr | ||
) |
Return the endpoint descriptor in this interface.
UsbIf | The interface to search in. |
EpAddr | The address of the endpoint to return. |
Definition at line 22 of file UsbEnumer.c.
Enumerate all the changed hub ports.
Event | The event that is triggered. |
Context | The context to the event. |
Enumerate all the changed hub ports.
Event | The event that is triggered. |
Context | The context to the event. |
Definition at line 1012 of file UsbEnumer.c.
EFI_STATUS UsbRemoveConfig | ( | IN USB_DEVICE * | Device | ) |
Remove the current device configuration.
Device | The USB device to remove configuration from. |
Remove the current device configuration.
Device | The USB device to remove configuration from. |
Definition at line 509 of file UsbEnumer.c.
EFI_STATUS UsbRemoveDevice | ( | IN USB_DEVICE * | Device | ) |
Remove the device and all its children from the bus.
Device | The device to remove. |
EFI_SUCCESS | The device is removed. |
Definition at line 558 of file UsbEnumer.c.
Enumerate all the changed hub ports.
Event | The event that is triggered. |
Context | The context to the event. |
Enumerate all the changed hub ports.
Event | The event that is triggered. |
Context | The context to the event. |
Definition at line 1069 of file UsbEnumer.c.
EFI_STATUS UsbSelectConfig | ( | IN USB_DEVICE * | Device, |
IN UINT8 | ConfigValue | ||
) |
Select a new configuration for the device. Each device may support several configurations.
Device | The device to select configuration. |
ConfigIndex | The index of the configuration ( != 0). |
EFI_NOT_FOUND | There is no configuration with the index. |
EFI_OUT_OF_RESOURCES | Failed to allocate resource. |
EFI_SUCCESS | The configuration is selected. |
Select a new configuration for the device. Each device may support several configurations.
Device | The device to select configuration. |
ConfigValue | The index of the configuration ( != 0). |
EFI_NOT_FOUND | There is no configuration with the index. |
EFI_OUT_OF_RESOURCES | Failed to allocate resource. |
EFI_SUCCESS | The configuration is selected. |
Definition at line 370 of file UsbEnumer.c.
EFI_STATUS UsbSelectSetting | ( | IN USB_INTERFACE_DESC * | IfDesc, |
IN UINT8 | Alternate | ||
) |
Select an alternate setting for the interface. Each interface can have several mutually exclusive settings. Only one setting is active. It will also reset its endpoints' toggle to zero.
IfDesc | The interface descriptor to set. |
Alternate | The alternate setting number to locate. |
EFI_NOT_FOUND | There is no setting with this alternate index. |
EFI_SUCCESS | The interface is set to Alternate setting. |
Definition at line 311 of file UsbEnumer.c.