]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix invalid return status to sync with newest UEFI spec 2.1
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 20 Sep 2007 09:59:05 +0000 (09:59 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 20 Sep 2007 09:59:05 +0000 (09:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3900 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/ScsiLib.h
MdePkg/Include/Protocol/ScsiIo.h
MdePkg/Include/Protocol/ScsiPassThru.h
MdePkg/Library/UefiScsiLib/UefiScsiLib.c

index 97634f616b2e6b0c696e734d3c6fbff630c01feb..54fb281f1d4667fca2b169c137a25f6d5dd21a76 100644 (file)
@@ -132,7 +132,7 @@ ScsiInquiryCommand (
   @param[in]     PageCode           Page code.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -184,7 +184,7 @@ ScsiModeSense10Command (
 
   @retval EFI_SUCCESS        Valid data returned
   @retval EFI_SUCCESS        The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -226,7 +226,7 @@ ScsiRequestSenseCommand (
   @param[in]     PMI                Partial medium indicator.
 
   @retval  EFI_SUCCESS                The status of the unit is tested successfully.\r
-  @retval  EFI_WARN_BUFFER_TOO_SMALL  The SCSI Request Packet was executed, \r
+  @retval  EFI_BAD_BUFFER_SIZE        The SCSI Request Packet was executed, \r
                                       but the entire DataBuffer could not be transferred.\r
                                       The actual number of bytes transferred is returned\r
                                       in TransferLength.\r
@@ -272,7 +272,7 @@ ScsiReadCapacityCommand (
   @param[in]     SectorSize         The sector size.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -319,7 +319,7 @@ ScsiRead10Command (
   @param[in]     SectorSize         The sector size.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in InTransferLength.\r
index 1e037059060d0825091b1c44dd26aa6a667b4023..2f94cb8f1450b57c4a1c1a057ad842631e6c7ff9 100644 (file)
@@ -181,7 +181,7 @@ EFI_STATUS
                                     HostAdapterStatus, TargetStatus,\r
                                     SenseDataLength, and SenseData in that order\r
                                     for additional status information.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed,\r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed,\r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength. See HostAdapterStatus,\r
index 8860b24e40d949fc8e4921678e0bba02c40352c1..d351c3ecebcca5a1abfe851fbf6d0b69d1e03ae1 100644 (file)
@@ -105,7 +105,7 @@ typedef struct {
                                     DataBuffer.See HostAdapterStatus, TargetStatus,\r
                                     SenseDataLength,and SenseData in that order\r
                                     for additional status information.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, but the\r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, but the\r
                                     entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength. See HostAdapterStatus,\r
index 20088d5cbfa7d2f490c511e3952af3e83a4c5c4b..6bfc8cfc35a67ee96252044f38a89dce6bc99b55 100644 (file)
@@ -202,7 +202,7 @@ ScsiInquiryCommand (
   @param[in]     PageCode           Page code.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -294,7 +294,7 @@ ScsiModeSense10Command (
 
   @retval EFI_SUCCESS        Valid data returned
   @retval EFI_SUCCESS        The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -374,7 +374,7 @@ ScsiRequestSenseCommand (
   @param[in]     PMI                Partial medium indicator.
 
   @retval  EFI_SUCCESS                The status of the unit is tested successfully.\r
-  @retval  EFI_WARN_BUFFER_TOO_SMALL  The SCSI Request Packet was executed, \r
+  @retval  EFI_BAD_BUFFER_SIZE        The SCSI Request Packet was executed, \r
                                       but the entire DataBuffer could not be transferred.\r
                                       The actual number of bytes transferred is returned\r
                                       in TransferLength.\r
@@ -466,7 +466,7 @@ ScsiReadCapacityCommand (
   @param[in]     SectorSize         The sector size.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in TransferLength.\r
@@ -557,7 +557,7 @@ ScsiRead10Command (
   @param[in]     SectorSize         The sector size.
 
   @retval EFI_SUCCESS               The status of the unit is tested successfully.\r
-  @retval EFI_WARN_BUFFER_TOO_SMALL The SCSI Request Packet was executed, \r
+  @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, \r
                                     but the entire DataBuffer could not be transferred.\r
                                     The actual number of bytes transferred is returned\r
                                     in InTransferLength.\r