TianoCore EDK2 master
Loading...
Searching...
No Matches
AtaPassThru.h File Reference

Go to the source code of this file.

Data Structures

struct  EFI_ATA_PASS_THRU_MODE
 
struct  _EFI_ATA_COMMAND_BLOCK
 
struct  _EFI_ATA_STATUS_BLOCK
 
struct  EFI_ATA_PASS_THRU_COMMAND_PACKET
 
struct  _EFI_ATA_PASS_THRU_PROTOCOL
 

Macros

#define EFI_ATA_PASS_THRU_PROTOCOL_GUID
 
#define EFI_ATA_PASS_THRU_ATTRIBUTES_PHYSICAL   0x0001
 
#define EFI_ATA_PASS_THRU_ATTRIBUTES_LOGICAL   0x0002
 
#define EFI_ATA_PASS_THRU_ATTRIBUTES_NONBLOCKIO   0x0004
 
#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_HARDWARE_RESET   0x00
 
#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_SOFTWARE_RESET   0x01
 
#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_NON_DATA   0x02
 
#define EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_IN   0x04
 
#define EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_OUT   0x05
 
#define EFI_ATA_PASS_THRU_PROTOCOL_DMA   0x06
 
#define EFI_ATA_PASS_THRU_PROTOCOL_DMA_QUEUED   0x07
 
#define EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_DIAGNOSTIC   0x08
 
#define EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_RESET   0x09
 
#define EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_IN   0x0A
 
#define EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_OUT   0x0B
 
#define EFI_ATA_PASS_THRU_PROTOCOL_FPDMA   0x0C
 
#define EFI_ATA_PASS_THRU_PROTOCOL_RETURN_RESPONSE   0xFF
 
#define EFI_ATA_PASS_THRU_LENGTH_BYTES   0x80
 
#define EFI_ATA_PASS_THRU_LENGTH_MASK   0x70
 
#define EFI_ATA_PASS_THRU_LENGTH_NO_DATA_TRANSFER   0x00
 
#define EFI_ATA_PASS_THRU_LENGTH_FEATURES   0x10
 
#define EFI_ATA_PASS_THRU_LENGTH_SECTOR_COUNT   0x20
 
#define EFI_ATA_PASS_THRU_LENGTH_TPSIU   0x30
 
#define EFI_ATA_PASS_THRU_LENGTH_COUNT   0x0F
 

Typedefs

typedef struct _EFI_ATA_PASS_THRU_PROTOCOL EFI_ATA_PASS_THRU_PROTOCOL
 
typedef struct _EFI_ATA_COMMAND_BLOCK EFI_ATA_COMMAND_BLOCK
 
typedef struct _EFI_ATA_STATUS_BLOCK EFI_ATA_STATUS_BLOCK
 
typedef UINT8 EFI_ATA_PASS_THRU_CMD_PROTOCOL
 
typedef UINT8 EFI_ATA_PASS_THRU_LENGTH
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_PASSTHRU) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort, IN OUT EFI_ATA_PASS_THRU_COMMAND_PACKET *Packet, IN EFI_EVENT Event OPTIONAL)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_NEXT_PORT) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN OUT UINT16 *Port)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_NEXT_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN OUT UINT16 *PortMultiplierPort)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_BUILD_DEVICE_PATH) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort, OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINT16 *Port, OUT UINT16 *PortMultiplierPort)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_RESET_PORT) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port)
 
typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_RESET_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort)
 

Variables

EFI_GUID gEfiAtaPassThruProtocolGuid
 

Detailed Description

The EFI_ATA_PASS_THRU_PROTOCOL provides information about an ATA controller and the ability to send ATA Command Blocks to any ATA device attached to that ATA controller. The information includes the attributes of the ATA controller.

Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Revision Reference:
This Protocol was introduced in UEFI Specification 2.3.

Definition in file AtaPassThru.h.

Macro Definition Documentation

◆ EFI_ATA_PASS_THRU_ATTRIBUTES_LOGICAL

#define EFI_ATA_PASS_THRU_ATTRIBUTES_LOGICAL   0x0002

If this bit is set, then the EFI_ATA_PASS_THRU_PROTOCOL interface is for logical devices on the ATA controller.

Definition at line 38 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_ATTRIBUTES_NONBLOCKIO

#define EFI_ATA_PASS_THRU_ATTRIBUTES_NONBLOCKIO   0x0004

If this bit is set, then the EFI_ATA_PASS_THRU_PROTOCOL interface supports non blocking I/O. Every EFI_ATA_PASS_THRU_PROTOCOL must support blocking I/O. The support of non-blocking I/O is optional.

Definition at line 44 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_ATTRIBUTES_PHYSICAL

#define EFI_ATA_PASS_THRU_ATTRIBUTES_PHYSICAL   0x0001

If this bit is set, then the EFI_ATA_PASS_THRU_PROTOCOL interface is for physical devices on the ATA controller.

Definition at line 33 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_BYTES

#define EFI_ATA_PASS_THRU_LENGTH_BYTES   0x80

Definition at line 98 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_COUNT

#define EFI_ATA_PASS_THRU_LENGTH_COUNT   0x0F

Definition at line 106 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_FEATURES

#define EFI_ATA_PASS_THRU_LENGTH_FEATURES   0x10

Definition at line 102 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_MASK

#define EFI_ATA_PASS_THRU_LENGTH_MASK   0x70

Definition at line 100 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_NO_DATA_TRANSFER

#define EFI_ATA_PASS_THRU_LENGTH_NO_DATA_TRANSFER   0x00

Definition at line 101 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_SECTOR_COUNT

#define EFI_ATA_PASS_THRU_LENGTH_SECTOR_COUNT   0x20

Definition at line 103 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH_TPSIU

#define EFI_ATA_PASS_THRU_LENGTH_TPSIU   0x30

Definition at line 104 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_ATA_HARDWARE_RESET

#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_HARDWARE_RESET   0x00

Definition at line 82 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_ATA_NON_DATA

#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_NON_DATA   0x02

Definition at line 84 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_ATA_SOFTWARE_RESET

#define EFI_ATA_PASS_THRU_PROTOCOL_ATA_SOFTWARE_RESET   0x01

Definition at line 83 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_DIAGNOSTIC

#define EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_DIAGNOSTIC   0x08

Definition at line 89 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_RESET

#define EFI_ATA_PASS_THRU_PROTOCOL_DEVICE_RESET   0x09

Definition at line 90 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_DMA

#define EFI_ATA_PASS_THRU_PROTOCOL_DMA   0x06

Definition at line 87 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_DMA_QUEUED

#define EFI_ATA_PASS_THRU_PROTOCOL_DMA_QUEUED   0x07

Definition at line 88 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_FPDMA

#define EFI_ATA_PASS_THRU_PROTOCOL_FPDMA   0x0C

Definition at line 93 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_GUID

#define EFI_ATA_PASS_THRU_PROTOCOL_GUID
Value:
{ \
0x1d3de7f0, 0x807, 0x424f, {0xaa, 0x69, 0x11, 0xa5, 0x4e, 0x19, 0xa4, 0x6f } \
}

Definition at line 17 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_IN

#define EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_IN   0x04

Definition at line 85 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_OUT

#define EFI_ATA_PASS_THRU_PROTOCOL_PIO_DATA_OUT   0x05

Definition at line 86 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_RETURN_RESPONSE

#define EFI_ATA_PASS_THRU_PROTOCOL_RETURN_RESPONSE   0xFF

Definition at line 94 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_IN

#define EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_IN   0x0A

Definition at line 91 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_OUT

#define EFI_ATA_PASS_THRU_PROTOCOL_UDMA_DATA_OUT   0x0B

Definition at line 92 of file AtaPassThru.h.

Typedef Documentation

◆ EFI_ATA_PASS_THRU_BUILD_DEVICE_PATH

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_BUILD_DEVICE_PATH) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort, OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)

Used to allocate and build a device path node for an ATA device on an ATA controller.

The BuildDevicePath() function allocates and builds a single device node for the ATA device specified by Port and PortMultiplierPort. If the ATA device specified by Port and PortMultiplierPort is not present on the ATA controller, then EFI_NOT_FOUND is returned. If DevicePath is NULL, then EFI_INVALID_PARAMETER is returned. If there are not enough resources to allocate the device path node, then EFI_OUT_OF_RESOURCES is returned.

Otherwise, DevicePath is allocated with the boot service AllocatePool(), the contents of DevicePath are initialized to describe the ATA device specified by Port and PortMultiplierPort, and EFI_SUCCESS is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]PortPort specifies the port number of the ATA device for which a device path node is to be allocated and built.
[in]PortMultiplierPortThe port multiplier port number of the ATA device for which a device path node is to be allocated and built. If there is no port multiplier, then specify 0xFFFF.
[out]DevicePathA pointer to a single device path node that describes the ATA device specified by Port and PortMultiplierPort. This function is responsible for allocating the buffer DevicePath with the boot service AllocatePool(). It is the caller's responsibility to free DevicePath when the caller is finished with DevicePath.
Return values
EFI_SUCCESSThe device path node that describes the ATA device specified by Port and PortMultiplierPort was allocated and returned in DevicePath.
EFI_NOT_FOUNDThe ATA device specified by Port and PortMultiplierPort does not exist on the ATA controller.
EFI_INVALID_PARAMETERDevicePath is NULL.
EFI_OUT_OF_RESOURCESThere are not enough resources to allocate DevicePath.

Definition at line 330 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_CMD_PROTOCOL

typedef UINT8 EFI_ATA_PASS_THRU_CMD_PROTOCOL

Definition at line 80 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_GET_DEVICE

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINT16 *Port, OUT UINT16 *PortMultiplierPort)

Used to translate a device path node to a port number and port multiplier port number.

The GetDevice() function determines the port and port multiplier port number associated with the ATA device described by DevicePath. If DevicePath is a device path node type that the ATA Pass Thru driver supports, then the ATA Pass Thru driver will attempt to translate the contents DevicePath into a port number and port multiplier port number.

If this translation is successful, then that port number and port multiplier port number are returned in Port and PortMultiplierPort, and EFI_SUCCESS is returned.

If DevicePath, Port, or PortMultiplierPort are NULL, then EFI_INVALID_PARAMETER is returned.

If DevicePath is not a device path node type that the ATA Pass Thru driver supports, then EFI_UNSUPPORTED is returned.

If DevicePath is a device path node type that the ATA Pass Thru driver supports, but there is not a valid translation from DevicePath to a port number and port multiplier port number, then EFI_NOT_FOUND is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]DevicePathA pointer to the device path node that describes an ATA device on the ATA controller.
[out]PortOn return, points to the port number of an ATA device on the ATA controller.
[out]PortMultiplierPortOn return, points to the port multiplier port number of an ATA device on the ATA controller.
Return values
EFI_SUCCESSDevicePath was successfully translated to a port number and port multiplier port number, and they were returned in Port and PortMultiplierPort.
EFI_INVALID_PARAMETERDevicePath is NULL.
EFI_INVALID_PARAMETERPort is NULL.
EFI_INVALID_PARAMETERPortMultiplierPort is NULL.
EFI_UNSUPPORTEDThis driver does not support the device path node type in DevicePath.
EFI_NOT_FOUNDA valid translation from DevicePath to a port number and port multiplier port number does not exist.

Definition at line 375 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_GET_NEXT_DEVICE

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_NEXT_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN OUT UINT16 *PortMultiplierPort)

Used to retrieve the list of legal port multiplier port numbers for ATA devices on a port of an ATA controller. These can either be the list of port multiplier ports where ATA devices are actually present on port or the list of legal port multiplier ports on that port. Regardless, the caller of this function must probe the port number and port multiplier port number returned to see if an ATA device is actually present.

The GetNextDevice() function retrieves the port multiplier port number of an ATA device present on a port of an ATA controller.

If PortMultiplierPort points to a port multiplier port number value that was returned on a previous call to GetNextDevice(), then the port multiplier port number of the next ATA device on the port of the ATA controller is returned in PortMultiplierPort, and EFI_SUCCESS is returned.

If PortMultiplierPort points to 0xFFFF, then the port multiplier port number of the first ATA device on port of the ATA controller is returned in PortMultiplierPort and EFI_SUCCESS is returned.

If PortMultiplierPort is not 0xFFFF and the value pointed to by PortMultiplierPort was not returned on a previous call to GetNextDevice(), then EFI_INVALID_PARAMETER is returned.

If PortMultiplierPort is the port multiplier port number of the last ATA device on the port of the ATA controller, then EFI_NOT_FOUND is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]PortThe port number present on the ATA controller.
[in,out]PortMultiplierPortOn input, a pointer to the port multiplier port number of an ATA device present on the ATA controller. If on input a PortMultiplierPort of 0xFFFF is specified, then the port multiplier port number of the first ATA device is returned. On output, a pointer to the port multiplier port number of the next ATA device present on an ATA controller.
Return values
EFI_SUCCESSThe port multiplier port number of the next ATA device on the port of the ATA controller was returned in PortMultiplierPort.
EFI_NOT_FOUNDThere are no more ATA devices on this port of the ATA controller.
EFI_INVALID_PARAMETERPortMultiplierPort is not 0xFFFF, and PortMultiplierPort was not returned on a previous call to GetNextDevice().

Definition at line 290 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_GET_NEXT_PORT

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_GET_NEXT_PORT) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN OUT UINT16 *Port)

Used to retrieve the list of legal port numbers for ATA devices on an ATA controller. These can either be the list of ports where ATA devices are actually present or the list of legal port numbers for the ATA controller. Regardless, the caller of this function must probe the port number returned to see if an ATA device is actually present at that location on the ATA controller.

The GetNextPort() function retrieves the port number on an ATA controller. If on input Port is 0xFFFF, then the port number of the first port on the ATA controller is returned in Port and EFI_SUCCESS is returned.

If Port is a port number that was returned on a previous call to GetNextPort(), then the port number of the next port on the ATA controller is returned in Port, and EFI_SUCCESS is returned. If Port is not 0xFFFF and Port was not returned on a previous call to GetNextPort(), then EFI_INVALID_PARAMETER is returned.

If Port is the port number of the last port on the ATA controller, then EFI_NOT_FOUND is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in,out]PortOn input, a pointer to the port number on the ATA controller. On output, a pointer to the next port number on the ATA controller. An input value of 0xFFFF retrieves the first port number on the ATA controller.
Return values
EFI_SUCCESSThe next port number on the ATA controller was returned in Port.
EFI_NOT_FOUNDThere are no more ports on this ATA controller.
EFI_INVALID_PARAMETERPort is not 0xFFFF and Port was not returned on a previous call to GetNextPort().

Definition at line 241 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_LENGTH

typedef UINT8 EFI_ATA_PASS_THRU_LENGTH

Definition at line 96 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PASSTHRU

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_PASSTHRU) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort, IN OUT EFI_ATA_PASS_THRU_COMMAND_PACKET *Packet, IN EFI_EVENT Event OPTIONAL)

Sends an ATA command to an ATA device that is attached to the ATA controller. This function supports both blocking I/O and non-blocking I/O. The blocking I/O functionality is required, and the non-blocking I/O functionality is optional.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]PortThe port number of the ATA device to send the command.
[in]PortMultiplierPortThe port multiplier port number of the ATA device to send the command. If there is no port multiplier, then specify 0xFFFF.
[in,out]PacketA pointer to the ATA command to send to the ATA device specified by Port and PortMultiplierPort.
[in]EventIf non-blocking I/O is not supported then Event is ignored, and blocking I/O is performed. If Event is NULL, then blocking I/O is performed. If Event is not NULL and non blocking I/O is supported, then non-blocking I/O is performed, and Event will be signaled when the ATA command completes.
Return values
EFI_SUCCESSThe ATA command was sent by the host. For bi-directional commands, InTransferLength bytes were transferred from InDataBuffer. For write and bi-directional commands, OutTransferLength bytes were transferred by OutDataBuffer.
EFI_BAD_BUFFER_SIZEThe ATA command was not executed. The number of bytes that could be transferred is returned in InTransferLength. For write and bi-directional commands, OutTransferLength bytes were transferred by OutDataBuffer.
EFI_NOT_READYThe ATA command could not be sent because there are too many ATA commands already queued. The caller may retry again later.
EFI_DEVICE_ERRORA device error occurred while attempting to send the ATA command.
EFI_INVALID_PARAMETERPort, PortMultiplierPort, or the contents of Acb are invalid. The ATA command was not sent, so no additional status information is available.

Definition at line 200 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_PROTOCOL

Definition at line 22 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_RESET_DEVICE

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_RESET_DEVICE) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port, IN UINT16 PortMultiplierPort)

Resets an ATA device that is connected to an ATA controller.

The ResetDevice() function resets the ATA device specified by Port and PortMultiplierPort. If this ATA controller does not support a device reset operation, then EFI_UNSUPPORTED is returned.

If Port or PortMultiplierPort are not in a valid range for this ATA controller, then EFI_INVALID_PARAMETER is returned.

If a device error occurs while executing that device reset operation, then EFI_DEVICE_ERROR is returned.

If a timeout occurs during the execution of the device reset operation, then EFI_TIMEOUT is returned.

If the device reset operation is completed, then EFI_SUCCESS is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]PortPort represents the port number of the ATA device to be reset.
[in]PortMultiplierPortThe port multiplier port number of the ATA device to reset. If there is no port multiplier, then specify 0xFFFF.
Return values
EFI_SUCCESSThe ATA device specified by Port and PortMultiplierPort was reset.
EFI_UNSUPPORTEDThe ATA controller does not support a device reset operation.
EFI_INVALID_PARAMETERPort or PortMultiplierPort are invalid.
EFI_DEVICE_ERRORA device error occurred while attempting to reset the ATA device specified by Port and PortMultiplierPort.
EFI_TIMEOUTA timeout occurred while attempting to reset the ATA device specified by Port and PortMultiplierPort.

Definition at line 446 of file AtaPassThru.h.

◆ EFI_ATA_PASS_THRU_RESET_PORT

typedef EFI_STATUS(EFIAPI * EFI_ATA_PASS_THRU_RESET_PORT) (IN EFI_ATA_PASS_THRU_PROTOCOL *This, IN UINT16 Port)

Resets a specific port on the ATA controller. This operation also resets all the ATA devices connected to the port.

The ResetChannel() function resets an a specific port on an ATA controller. This operation resets all the ATA devices connected to that port. If this ATA controller does not support a reset port operation, then EFI_UNSUPPORTED is returned.

If a device error occurs while executing that port reset operation, then EFI_DEVICE_ERROR is returned.

If a timeout occurs during the execution of the port reset operation, then EFI_TIMEOUT is returned.

If the port reset operation is completed, then EFI_SUCCESS is returned.

Parameters
[in]ThisA pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
[in]PortThe port number on the ATA controller.
Return values
EFI_SUCCESSThe ATA controller port was reset.
EFI_UNSUPPORTEDThe ATA controller does not support a port reset operation.
EFI_DEVICE_ERRORA device error occurred while attempting to reset the ATA port.
EFI_TIMEOUTA timeout occurred while attempting to reset the ATA port.

Definition at line 408 of file AtaPassThru.h.