Skip to content

Commit 1a23fe7

Browse files
sachinamilgao4
authored andcommitted
MdeModulePkg: Update AtaPassThru to UEFI 2.10A
UEFI 2.10A Specification has added a new error case to EFI_ATA_PASS_THRU_PROTOCOL.GetNextDevice API which handles port multiplier not being connected to the Port. Signed-off-by: Sachin Ganesh <[email protected]>
1 parent 114b54e commit 1a23fe7

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

MdeModulePkg/Bus/Ata/AhciPei/AhciPeiPassThru.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ AhciAtaPassThruGetNextPort (
384384
If PortMultiplierPort is the port multiplier port number of the last ATA device
385385
on the port of the ATA controller, then EFI_NOT_FOUND is returned.
386386
387+
When port multiplier is not connected to the Port, GetNextDevice() may either return
388+
EFI_SUCCESS and set PortMultiplierPort to 0xFFFF or return EFI_NOT_FOUND (in which case the
389+
PortMultiplierPort value is undefined).
390+
387391
@param[in] This The PPI instance pointer.
388392
@param[in] Port The port number present on the ATA controller.
389393
@param[in,out] PortMultiplierPort On input, a pointer to the port multiplier

MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,10 @@ AtaPassThruGetNextPort (
15411541
If PortMultiplierPort is the port multiplier port number of the last ATA device on the port of
15421542
the ATA controller, then EFI_NOT_FOUND is returned.
15431543
1544+
When port multiplier is not connected to the Port, GetNextDevice() may either return
1545+
EFI_SUCCESS and set PortMultiplierPort to 0xFFFF or return EFI_NOT_FOUND (in which case the
1546+
PortMultiplierPort value is undefined).
1547+
15441548
@param[in] This A pointer to the EFI_ATA_PASS_THRU_PROTOCOL instance.
15451549
@param[in] Port The port number present on the ATA controller.
15461550
@param[in, out] PortMultiplierPort On input, a pointer to the port multiplier port number of an

MdeModulePkg/Include/Ppi/AtaPassThru.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ EFI_STATUS
141141
If PortMultiplierPort is the port multiplier port number of the last ATA device
142142
on the port of the ATA controller, then EFI_NOT_FOUND is returned.
143143
144+
When port multiplier is not connected to the Port, GetNextDevice() may either return
145+
EFI_SUCCESS and set PortMultiplierPort to 0xFFFF or return EFI_NOT_FOUND (in which case the
146+
PortMultiplierPort value is undefined).
147+
144148
@param[in] This The PPI instance pointer.
145149
@param[in] Port The port number present on the ATA controller.
146150
@param[in,out] PortMultiplierPort On input, a pointer to the port multiplier

0 commit comments

Comments
 (0)