]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/UefiScsiLib.h
Fix several minor coding style issues.
[mirror_edk2.git] / MdePkg / Include / Library / UefiScsiLib.h
index 4eb9fa36f3499b11baaad6e691d714aad1ade5aa..a1e716384609d864c71381df87ae811e72acd852 100644 (file)
@@ -82,10 +82,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                                Packet to execute.  See HostAdapterStatus, TargetStatus,\r
                                SenseDataLength, and SenseData in that order for\r
                                additional status information.\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
 \r
 **/\r
 EFI_STATUS\r
@@ -337,7 +333,7 @@ ScsiRequestSenseCommand (
   Executes the SCSI Read Capacity command on the SCSI target specified by ScsiIo.\r
   If Timeout is zero, then this function waits indefinitely for the command to complete.\r
   If Timeout is greater than zero, then the command is executed and will timeout after\r
-  Timeout 100 ns units.  The PMI parameter is used to construct the CDB for this SCSI command.\r
+  Timeout 100 ns units.  The Pmi parameter is used to construct the CDB for this SCSI command.\r
   If ScsiIo is NULL, then ASSERT().\r
   If SenseDataLength is NULL, then ASSERT().\r
   If HostAdapterStatus is NULL, then ASSERT().\r
@@ -352,7 +348,7 @@ ScsiRequestSenseCommand (
   @param[out]     TargetStatus         The status of the target.\r
   @param[in, out] DataBuffer           A pointer to a data buffer.\r
   @param[in, out] DataLength           The length of data buffer.\r
-  @param[in]      PMI                  Partial medium indicator.\r
+  @param[in]      Pmi                  Partial medium indicator.\r
 \r
   @retval  EFI_SUCCESS           Command is executed successfully.\r
   @retval  EFI_BAD_BUFFER_SIZE   The SCSI Request Packet was executed, but the entire\r
@@ -377,7 +373,53 @@ ScsiReadCapacityCommand (
      OUT UINT8                 *TargetStatus,\r
   IN OUT VOID                  *DataBuffer,   OPTIONAL\r
   IN OUT UINT32                *DataLength,\r
-  IN     BOOLEAN               PMI\r
+  IN     BOOLEAN               Pmi\r
+  );\r
+\r
+\r
+/**\r
+  Function to submit read capacity16 command.\r
+\r
+  @param  ScsiIo            A pointer to SCSI IO protocol.\r
+  @param  Timeout           The length of timeout period.\r
+  @param  SenseData         A pointer to output sense data.\r
+  @param  SenseDataLength   The length of output sense data.\r
+  @param  HostAdapterStatus The status of Host Adapter.\r
+  @param  TargetStatus      The status of the target.\r
+  @param  DataBuffer        A pointer to a data buffer.\r
+  @param  DataLength        The length of data buffer.\r
+  @param  Pmi               Partial medium indicator.\r
+\r
+  @retval  EFI_SUCCESS            The status of the unit is tested successfully.\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
+  @retval  EFI_NOT_READY          The SCSI Request Packet could not be sent because \r
+                                  there are too many SCSI Command Packets already \r
+                                  queued.\r
+  @retval  EFI_DEVICE_ERROR       A device error occurred while attempting to send \r
+                                  the SCSI Request Packet.\r
+  @retval  EFI_INVALID_PARAMETER  The contents of CommandPacket are invalid.  \r
+  @retval  EFI_UNSUPPORTED        The command described by the SCSI Request Packet\r
+                                  is not supported by the SCSI initiator(i.e., SCSI \r
+                                  Host Controller).\r
+  @retval  EFI_TIMEOUT            A timeout occurred while waiting for the SCSI \r
+                                  Request Packet to execute.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiReadCapacity16Command (\r
+  IN  EFI_SCSI_IO_PROTOCOL  *ScsiIo,\r
+  IN  UINT64                Timeout,\r
+  IN  VOID                  *SenseData,\r
+  IN OUT UINT8              *SenseDataLength,\r
+  OUT UINT8                 *HostAdapterStatus,\r
+  OUT UINT8                 *TargetStatus,\r
+  OUT VOID                  *DataBuffer,\r
+  IN OUT UINT32             *DataLength,\r
+  IN  BOOLEAN               Pmi\r
   );\r
 \r
 \r