TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | PeiUsbControlTransfer (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *This, IN EFI_USB_DEVICE_REQUEST *Request, IN EFI_USB_DATA_DIRECTION Direction, IN UINT32 Timeout, IN OUT VOID *Data OPTIONAL, IN UINTN DataLength OPTIONAL) |
EFI_STATUS EFIAPI | PeiUsbBulkTransfer (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *This, IN UINT8 DeviceEndpoint, IN OUT VOID *Data, IN OUT UINTN *DataLength, IN UINTN Timeout) |
EFI_STATUS EFIAPI | PeiUsbGetInterfaceDescriptor (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *This, OUT EFI_USB_INTERFACE_DESCRIPTOR **InterfaceDescriptor) |
EFI_STATUS EFIAPI | PeiUsbGetEndpointDescriptor (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *This, IN UINT8 EndpointIndex, OUT EFI_USB_ENDPOINT_DESCRIPTOR **EndpointDescriptor) |
EFI_STATUS EFIAPI | PeiUsbPortReset (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *This) |
The module is used to implement Usb Io PPI interfaces.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UsbIoPeim.c.
EFI_STATUS EFIAPI PeiUsbBulkTransfer | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_USB_IO_PPI * | This, | ||
IN UINT8 | DeviceEndpoint, | ||
IN OUT VOID * | Data, | ||
IN OUT UINTN * | DataLength, | ||
IN UINTN | Timeout | ||
) |
Submits bulk transfer to a bulk endpoint of a USB device.
PeiServices | The pointer of EFI_PEI_SERVICES. |
This | The pointer of PEI_USB_IO_PPI. |
DeviceEndpoint | Endpoint number and its direction in bit 7. |
Data | A pointer to the buffer of data to transmit from or receive into. |
DataLength | The length of the data buffer. |
Timeout | Indicates the maximum time, in millisecond, which the transfer is allowed to complete. If Timeout is 0, then the caller must wait for the function to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned. |
EFI_SUCCESS | The transfer was completed successfully. |
EFI_OUT_OF_RESOURCES | The transfer failed due to lack of resource. |
EFI_INVALID_PARAMETER | Parameters are invalid. |
EFI_TIMEOUT | The transfer failed due to timeout. |
EFI_DEVICE_ERROR | The transfer failed due to host controller error. |
Definition at line 151 of file UsbIoPeim.c.
EFI_STATUS EFIAPI PeiUsbControlTransfer | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_USB_IO_PPI * | This, | ||
IN EFI_USB_DEVICE_REQUEST * | Request, | ||
IN EFI_USB_DATA_DIRECTION | Direction, | ||
IN UINT32 | Timeout, | ||
IN OUT VOID *Data | OPTIONAL, | ||
IN UINTN DataLength | OPTIONAL | ||
) |
Submits control transfer to a target USB device.
PeiServices | The pointer of EFI_PEI_SERVICES. |
This | The pointer of PEI_USB_IO_PPI. |
Request | USB device request to send. |
Direction | Specifies the data direction for the data stage. |
Timeout | Indicates the maximum timeout, in millisecond. If Timeout is 0, then the caller must wait for the function to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned. |
Data | Data buffer to be transmitted or received from USB device. |
DataLength | The size (in bytes) of the data buffer. |
EFI_SUCCESS | Transfer was completed successfully. |
EFI_OUT_OF_RESOURCES | The transfer failed due to lack of resources. |
EFI_INVALID_PARAMETER | Some parameters are invalid. |
EFI_TIMEOUT | Transfer failed due to timeout. |
EFI_DEVICE_ERROR | Transfer failed due to host controller or device error. |
Definition at line 35 of file UsbIoPeim.c.
EFI_STATUS EFIAPI PeiUsbGetEndpointDescriptor | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_USB_IO_PPI * | This, | ||
IN UINT8 | EndpointIndex, | ||
OUT EFI_USB_ENDPOINT_DESCRIPTOR ** | EndpointDescriptor | ||
) |
Get the usb endpoint descriptor.
PeiServices | General-purpose services that are available to every PEIM. |
This | Indicates the PEI_USB_IO_PPI instance. |
EndpointIndex | The valid index of the specified endpoint. |
EndpointDescriptor | Request endpoint descriptor. |
EFI_SUCCESS | Usb endpoint descriptor is obtained successfully. |
EFI_NOT_FOUND | Usb endpoint descriptor is NOT found. |
Definition at line 281 of file UsbIoPeim.c.
EFI_STATUS EFIAPI PeiUsbGetInterfaceDescriptor | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_USB_IO_PPI * | This, | ||
OUT EFI_USB_INTERFACE_DESCRIPTOR ** | InterfaceDescriptor | ||
) |
Get the usb interface descriptor.
PeiServices | General-purpose services that are available to every PEIM. |
This | Indicates the PEI_USB_IO_PPI instance. |
InterfaceDescriptor | Request interface descriptor. |
EFI_SUCCESS | Usb interface descriptor is obtained successfully. |
Definition at line 254 of file UsbIoPeim.c.
EFI_STATUS EFIAPI PeiUsbPortReset | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_USB_IO_PPI * | This | ||
) |
Reset the port and re-configure the usb device.
PeiServices | General-purpose services that are available to every PEIM. |
This | Indicates the PEI_USB_IO_PPI instance. |
EFI_SUCCESS | Usb device is reset and configured successfully. |
Others | Other failure occurs. |
Definition at line 322 of file UsbIoPeim.c.