]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/ScsiPassThru.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Protocol / ScsiPassThru.h
index ee498e0ec32e35b9a788d691a94e6aba1de455c2..7dcead10f9e1361d0e3d7f98a2f8f86934b5bd46 100644 (file)
@@ -1,21 +1,21 @@
 /** @file\r
   SCSI Pass Through protocol as defined in EFI 1.1.\r
-  This protocol allows information about a SCSI channel to be collected, \r
+  This protocol allows information about a SCSI channel to be collected,\r
   and allows SCSI Request Packets to be sent to any SCSI devices on a SCSI\r
-  channel even if those devices are not boot devices. This protocol is attached \r
-  to the device handle of each SCSI channel in a system that the protocol \r
-  supports, and can be used for diagnostics. It may also be used to build \r
+  channel even if those devices are not boot devices. This protocol is attached\r
+  to the device handle of each SCSI channel in a system that the protocol\r
+  supports, and can be used for diagnostics. It may also be used to build\r
   a Block I/O driver for SCSI hard drives and SCSI CD-ROM or DVD drives to\r
   allow those devices to become boot devices.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -66,30 +66,92 @@ typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL  EFI_SCSI_PASS_THRU_PROTOCOL;
 #define EFI_SCSI_STATUS_TARGET_QUEUE_FULL                 0x28  // queue full\r
 \r
 typedef struct {\r
+  ///\r
+  /// The timeout, in 100 ns units, to use for the execution of this SCSI\r
+  /// Request Packet. A Timeout value of 0 means that this function\r
+  /// will wait indefinitely for the SCSI Request Packet to execute. If\r
+  /// Timeout is greater than zero, then this function will return\r
+  /// EFI_TIMEOUT if the time required to execute the SCSI Request\r
+  /// Packet is greater than Timeout.\r
+  ///\r
   UINT64  Timeout;\r
+  ///\r
+  /// A pointer to the data buffer to transfer between the SCSI\r
+  /// controller and the SCSI device. Must be aligned to the boundary\r
+  /// specified in the IoAlign field of the\r
+  /// EFI_SCSI_PASS_THRU_MODE structure.\r
+  ///\r
   VOID    *DataBuffer;\r
+  ///\r
+  /// A pointer to the sense data that was generated by the execution of\r
+  /// the SCSI Request Packet.\r
+  ///\r
   VOID    *SenseData;\r
+  ///\r
+  /// A pointer to buffer that contains the Command Data Block to\r
+  /// send to the SCSI device.\r
+  ///\r
   VOID    *Cdb;\r
+  ///\r
+  /// On Input, the size, in bytes, of InDataBuffer. On output, the\r
+  /// number of bytes transferred between the SCSI controller and the SCSI device.\r
+  ///\r
   UINT32  TransferLength;\r
+  ///\r
+  /// The length, in bytes, of the buffer Cdb. The standard values are\r
+  /// 6, 10, 12, and 16, but other values are possible if a variable length CDB is used.\r
+  ///\r
   UINT8   CdbLength;\r
+  ///\r
+  /// The direction of the data transfer. 0 for reads, 1 for writes. A\r
+  /// value of 2 is Reserved for Bi-Directional SCSI commands.\r
+  ///\r
   UINT8   DataDirection;\r
+  ///\r
+  /// The status of the SCSI Host Controller that produces the SCSI\r
+  /// bus where the SCSI device attached when the SCSI Request\r
+  /// Packet was executed on the SCSI Controller.\r
+  ///\r
   UINT8   HostAdapterStatus;\r
+  ///\r
+  /// The status returned by the SCSI device when the SCSI Request\r
+  /// Packet was executed.\r
+  ///\r
   UINT8   TargetStatus;\r
+  ///\r
+  /// On input, the length in bytes of the SenseData buffer. On\r
+  /// output, the number of bytes written to the SenseData buffer.\r
+  ///\r
   UINT8   SenseDataLength;\r
 } EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET;\r
 \r
 typedef struct {\r
+  ///\r
+  /// A Null-terminated Unicode string that represents the printable name of the SCSI controller.\r
+  ///\r
   CHAR16  *ControllerName;\r
+  ///\r
+  /// A Null-terminated Unicode string that represents the printable name of the SCSI channel.\r
+  ///\r
   CHAR16  *ChannelName;\r
+  ///\r
+  /// The Target ID of the host adapter on the SCSI channel.\r
+  ///\r
   UINT32  AdapterId;\r
+  ///\r
+  /// Additional information on the attributes of the SCSI channel.\r
+  ///\r
   UINT32  Attributes;\r
+  ///\r
+  /// Supplies the alignment requirement for any buffer used in a data transfer.\r
+  ///\r
   UINT32  IoAlign;\r
 } EFI_SCSI_PASS_THRU_MODE;\r
 \r
 /**\r
-  Sends a SCSI Request Packet to a SCSI device that is attached to \r
-  the SCSI channel. This function supports both blocking I/O and \r
-  non-blocking I/O.  The blocking I/O functionality is required, \r
+  Sends a SCSI Request Packet to a SCSI device that is attached to\r
+  the SCSI channel. This function supports both blocking I/O and\r
+  non-blocking I/O.  The blocking I/O functionality is required,\r
   and the non-blocking I/O functionality is optional.\r
 \r
   @param  This   Protocol instance pointer.\r
@@ -109,8 +171,8 @@ typedef struct {
 \r
   @retval EFI_SUCCESS               The SCSI Request Packet was sent by the host, and\r
                                     TransferLength bytes were transferred to/from\r
-                                    DataBuffer.See HostAdapterStatus, TargetStatus,\r
-                                    SenseDataLength,and SenseData in that order\r
+                                    DataBuffer. See HostAdapterStatus, TargetStatus,\r
+                                    SenseDataLength, and SenseData in that order\r
                                     for additional status information.\r
   @retval EFI_BAD_BUFFER_SIZE       The SCSI Request Packet was executed, but the\r
                                     entire DataBuffer could not be transferred.\r
@@ -136,7 +198,7 @@ typedef struct {
                                     Request Packet to execute. See HostAdapterStatus,\r
                                     TargetStatus, SenseDataLength, and SenseData in\r
                                     that order for additional status information.\r
-                                    \r
+\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -149,7 +211,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Used to retrieve the list of legal Target IDs for SCSI devices \r
+  Used to retrieve the list of legal Target IDs for SCSI devices\r
   on a SCSI channel.\r
 \r
   @param  This   Protocol instance pointer.\r
@@ -161,7 +223,7 @@ EFI_STATUS
                  Target ID of the first SCSI device present on\r
                  a SCSI channel.\r
   @param  Lun    On input, a pointer to the LUN of a SCSI device\r
-                 present on the SCSI channel.On output, a pointer\r
+                 present on the SCSI channel. On output, a pointer\r
                  to the LUN of the next SCSI device present on a\r
                  SCSI channel.\r
 \r
@@ -181,7 +243,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Used to allocate and build a device path node for a SCSI device \r
+  Used to allocate and build a device path node for a SCSI device\r
   on a SCSI channel.\r
 \r
   @param  This       Protocol instance pointer.\r
@@ -249,7 +311,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Resets a SCSI channel.This operation resets all the \r
+  Resets a SCSI channel.This operation resets all the\r
   SCSI devices connected to the SCSI channel.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -298,7 +360,7 @@ EFI_STATUS
 \r
 ///\r
 /// The EFI_SCSI_PASS_THRU_PROTOCOL provides information about a SCSI channel and\r
-/// the ability to send SCI Request Packets to any SCSI device attached to that SCSI channel. The\r
+/// the ability to send SCSI Request Packets to any SCSI device attached to that SCSI channel. The\r
 /// information includes the Target ID of the host controller on the SCSI channel, the attributes of\r
 /// the SCSI channel, the printable name for the SCSI controller, and the printable name of the\r
 /// SCSI channel.\r