Code Scrub: Corrected some retvals according to the spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6574 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4 2008-11-18 06:57:25 +00:00
parent 7b05e2c958
commit 940a892b9a
1 changed files with 28 additions and 27 deletions

View File

@ -351,15 +351,16 @@ ScsiRequestSenseCommand (
@param[in, out] DataLength The length of data buffer. @param[in, out] DataLength The length of data buffer.
@param[in] PMI Partial medium indicator. @param[in] PMI Partial medium indicator.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS Command is executed successfully.
@retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
not be transferred. The actual number of bytes transferred is returned in DataLength. DataBuffer could not be transferred. The actual
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many number of bytes transferred is returned in DataLength.
SCSI Command Packets already queued. @retval EFI_NOT_READY The SCSI Request Packet could not be sent because
@retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet. there are too many SCSI Command Packets already queued.
@retval EFI_UNSUPPORTED The command described by the SCSI Request Packet is not supported by @retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet.
the SCSI initiator(i.e., SCSI Host Controller) @retval EFI_UNSUPPORTED The command described by the SCSI Request Packet
@retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute. is not supported by the SCSI initiator(i.e., SCSI Host Controller)
@retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute.
**/ **/
EFI_STATUS EFI_STATUS
@ -403,15 +404,15 @@ ScsiReadCapacityCommand (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS Command is executed successfully.
@retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many
SCSI Command Packets already queued. SCSI Command Packets already queued.
@retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet. @retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet.
@retval EFI_UNSUPPORTED The command described by the SCSI Request Packet is not supported by @retval EFI_UNSUPPORTED The command described by the SCSI Request Packet is not supported by
the SCSI initiator(i.e., SCSI Host Controller) the SCSI initiator(i.e., SCSI Host Controller)
@retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute. @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute.
**/ **/
EFI_STATUS EFI_STATUS
@ -455,15 +456,15 @@ ScsiRead10Command (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS Command is executed successfully.
@retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many
SCSI Command Packets already queued. SCSI Command Packets already queued.
@retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet. @retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet.
@retval EFI_UNSUPPORTED The command described by the SCSI Request Packet is not supported by @retval EFI_UNSUPPORTED The command described by the SCSI Request Packet is not supported by
the SCSI initiator(i.e., SCSI Host Controller) the SCSI initiator(i.e., SCSI Host Controller)
@retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute. @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request Packet to execute.
**/ **/
EFI_STATUS EFI_STATUS