TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | BotRecoveryReset (IN EFI_PEI_SERVICES **PeiServices, IN PEI_BOT_DEVICE *PeiBotDev) |
EFI_STATUS | BotCommandPhase (IN EFI_PEI_SERVICES **PeiServices, IN PEI_BOT_DEVICE *PeiBotDev, IN VOID *Command, IN UINT8 CommandSize, IN UINT32 DataTransferLength, IN EFI_USB_DATA_DIRECTION Direction, IN UINT16 Timeout) |
EFI_STATUS | BotDataPhase (IN EFI_PEI_SERVICES **PeiServices, IN PEI_BOT_DEVICE *PeiBotDev, IN UINT32 *DataSize, IN OUT VOID *DataBuffer, IN EFI_USB_DATA_DIRECTION Direction, IN UINT16 Timeout) |
EFI_STATUS | BotStatusPhase (IN EFI_PEI_SERVICES **PeiServices, IN PEI_BOT_DEVICE *PeiBotDev, OUT UINT8 *TransferStatus, IN UINT16 Timeout) |
EFI_STATUS | PeiAtapiCommand (IN EFI_PEI_SERVICES **PeiServices, IN PEI_BOT_DEVICE *PeiBotDev, IN VOID *Command, IN UINT8 CommandSize, IN VOID *DataBuffer, IN UINT32 BufferLength, IN EFI_USB_DATA_DIRECTION Direction, IN UINT16 TimeOutInMilliSeconds) |
BOT Transportation implementation.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BotPeim.c.
EFI_STATUS BotCommandPhase | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_BOT_DEVICE * | PeiBotDev, | ||
IN VOID * | Command, | ||
IN UINT8 | CommandSize, | ||
IN UINT32 | DataTransferLength, | ||
IN EFI_USB_DATA_DIRECTION | Direction, | ||
IN UINT16 | Timeout | ||
) |
Send the command to the device using Bulk-Out endpoint.
This function sends the command to the device using Bulk-Out endpoint. BOT transfer is composed of three phases: Command, Data, and Status. This is the Command phase.
PeiServices | The pointer of EFI_PEI_SERVICES. |
PeiBotDev | The instance to PEI_BOT_DEVICE. |
Command | The command to transfer to device. |
CommandSize | The length of the command. |
DataTransferLength | The expected length of the data. |
Direction | The direction of the data. |
Timeout | Indicates the maximum time, in millisecond, which the transfer is allowed to complete. |
EFI_DEVICE_ERROR | Successful to send the command to device. |
EFI_SUCCESS | Failed to send the command to device. |
EFI_STATUS BotDataPhase | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_BOT_DEVICE * | PeiBotDev, | ||
IN UINT32 * | DataSize, | ||
IN OUT VOID * | DataBuffer, | ||
IN EFI_USB_DATA_DIRECTION | Direction, | ||
IN UINT16 | Timeout | ||
) |
Transfer the data between the device and host.
This function transfers the data between the device and host. BOT transfer is composed of three phases: Command, Data, and Status. This is the Data phase.
PeiServices | The pointer of EFI_PEI_SERVICES. |
PeiBotDev | The instance to PEI_BOT_DEVICE. |
DataSize | The length of the data. |
DataBuffer | The pointer to the data. |
Direction | The direction of the data. |
Timeout | Indicates the maximum time, in millisecond, which the transfer is allowed to complete. |
EFI_DEVICE_ERROR | Successful to send the data to device. |
EFI_SUCCESS | Failed to send the data to device. |
EFI_STATUS BotRecoveryReset | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_BOT_DEVICE * | PeiBotDev | ||
) |
Reset the given usb device.
PeiServices | The pointer of EFI_PEI_SERVICES. |
PeiBotDev | The instance to PEI_BOT_DEVICE. |
EFI_INVALID_PARAMETER | Can not get usb io ppi. |
EFI_SUCCESS | Failed to reset the given usb device. |
EFI_STATUS BotStatusPhase | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_BOT_DEVICE * | PeiBotDev, | ||
OUT UINT8 * | TransferStatus, | ||
IN UINT16 | Timeout | ||
) |
Get the command execution status from device.
This function gets the command execution status from device. BOT transfer is composed of three phases: Command, Data, and Status. This is the Status phase.
PeiServices | The pointer of EFI_PEI_SERVICES. |
PeiBotDev | The instance to PEI_BOT_DEVICE. |
TransferStatus | The status of the transaction. |
Timeout | Indicates the maximum time, in millisecond, which the transfer is allowed to complete. |
EFI_DEVICE_ERROR | Successful to get the status of device. |
EFI_SUCCESS | Failed to get the status of device. |
EFI_STATUS PeiAtapiCommand | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN PEI_BOT_DEVICE * | PeiBotDev, | ||
IN VOID * | Command, | ||
IN UINT8 | CommandSize, | ||
IN VOID * | DataBuffer, | ||
IN UINT32 | BufferLength, | ||
IN EFI_USB_DATA_DIRECTION | Direction, | ||
IN UINT16 | TimeOutInMilliSeconds | ||
) |
Send ATAPI command using BOT protocol.
PeiServices | The pointer of EFI_PEI_SERVICES. |
PeiBotDev | The instance to PEI_BOT_DEVICE. |
Command | The command to be sent to ATAPI device. |
CommandSize | The length of the data to be sent. |
DataBuffer | The pointer to the data. |
BufferLength | The length of the data. |
Direction | The direction of the data. |
TimeOutInMilliSeconds | Indicates the maximum time, in millisecond, which the transfer is allowed to complete. |
EFI_DEVICE_ERROR | Successful to get the status of device. |
EFI_SUCCESS | Failed to get the status of device. |