]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiScsiLib/UefiScsiLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / UefiScsiLib / UefiScsiLib.c
index d399e2344fa6dd194edc50ba89f889601a78582c..62a73e27731cafe466804ed789f134d045590d6d 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   UEFI SCSI Library implementation\r
 \r
-  Copyright (c) 2006 - 2015, 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
+  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
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
-  \r
+\r
 #include <IndustryStandard/Scsi.h>\r
-  \r
-  \r
+\r
+\r
   //\r
   // Scsi Command Length\r
   //\r
@@ -97,7 +97,7 @@ typedef struct {
                                     optional and may be NULL.\r
   @param[in, out] SenseDataLength   On input, a pointer to the length in bytes of\r
                                     the SenseData buffer. On output, a pointer to\r
-                                    the number of bytes written to the SenseData buffer. \r
+                                    the number of bytes written to the SenseData buffer.\r
   @param[out]     HostAdapterStatus The status of the SCSI Host Controller that produces\r
                                     the SCSI bus containing the SCSI target specified by\r
                                     ScsiIo when the SCSI Request Packet was executed.\r
@@ -107,7 +107,7 @@ typedef struct {
                                     by ScsiIo when the SCSI Request Packet was executed\r
                                     on the SCSI Host Controller. See the EFI SCSI I/O\r
                                     Protocol in the UEFI Specification for details on\r
-                                    the possible return values. \r
+                                    the possible return values.\r
 \r
   @retval EFI_SUCCESS               The command was executed successfully.\r
                                     See HostAdapterStatus, TargetStatus, SenseDataLength,\r
@@ -215,7 +215,7 @@ ScsiTestUnitReadyCommand (
                                          If SenseDataLength is 0, then this parameter\r
                                          is optional and may be NULL.\r
   @param[in, out] SenseDataLength        On input, the length in bytes of the SenseData buffer.\r
-                                         On output, the number of bytes written to the SenseData buffer. \r
+                                         On output, the number of bytes written to the SenseData buffer.\r
   @param[out]     HostAdapterStatus      The status of the SCSI Host Controller that\r
                                          produces the SCSI bus containing the SCSI\r
                                          target specified by ScsiIo when the SCSI\r
@@ -227,12 +227,12 @@ ScsiTestUnitReadyCommand (
                                          executed on the SCSI Host Controller.\r
                                          See the EFI SCSI I/O Protocol in the UEFI\r
                                          Specification for details on the possible\r
-                                         return values. \r
+                                         return values.\r
   @param[in, out] InquiryDataBuffer      A pointer to inquiry data that was generated\r
                                          by the execution of the SCSI Request Packet.\r
                                          This buffer must be allocated by the caller.\r
                                          If InquiryDataLength is 0, then this parameter\r
-                                         is optional and may be NULL. \r
+                                         is optional and may be NULL.\r
   @param[in, out] InquiryDataLength      On input, a pointer to the length in bytes\r
                                          of the InquiryDataBuffer buffer.\r
                                          On output, a pointer to the number of bytes\r
@@ -364,7 +364,7 @@ ScsiInquiryCommandEx (
                                          If SenseDataLength is 0, then this parameter\r
                                          is optional and may be NULL.\r
   @param[in, out] SenseDataLength        On input, the length in bytes of the SenseData buffer.\r
-                                         On output, the number of bytes written to the SenseData buffer. \r
+                                         On output, the number of bytes written to the SenseData buffer.\r
   @param[out]     HostAdapterStatus      The status of the SCSI Host Controller that\r
                                          produces the SCSI bus containing the SCSI\r
                                          target specified by ScsiIo when the SCSI\r
@@ -376,12 +376,12 @@ ScsiInquiryCommandEx (
                                          executed on the SCSI Host Controller.\r
                                          See the EFI SCSI I/O Protocol in the UEFI\r
                                          Specification for details on the possible\r
-                                         return values. \r
+                                         return values.\r
   @param[in, out] InquiryDataBuffer      A pointer to inquiry data that was generated\r
                                          by the execution of the SCSI Request Packet.\r
                                          This buffer must be allocated by the caller.\r
                                          If InquiryDataLength is 0, then this parameter\r
-                                         is optional and may be NULL. \r
+                                         is optional and may be NULL.\r
   @param[in, out] InquiryDataLength      On input, a pointer to the length in bytes\r
                                          of the InquiryDataBuffer buffer.\r
                                          On output, a pointer to the number of bytes\r
@@ -389,7 +389,7 @@ ScsiInquiryCommandEx (
   @param[in]      EnableVitalProductData If TRUE, then the supported vital product\r
                                          data is returned in InquiryDataBuffer.\r
                                          If FALSE, then the standard inquiry data is\r
-                                         returned in InquiryDataBuffer. \r
+                                         returned in InquiryDataBuffer.\r
 \r
   @retval EFI_SUCCESS                    The command was executed successfully. See HostAdapterStatus,\r
                                          TargetStatus, SenseDataLength, and SenseData in that order\r
@@ -481,7 +481,7 @@ ScsiInquiryCommand (
                                      If SenseDataLength is 0, then this parameter\r
                                      is optional and may be NULL.\r
   @param[in, out]  SenseDataLength   On input, the length in bytes of the SenseData buffer.\r
-                                     On output, the number of bytes written to the SenseData buffer. \r
+                                     On output, the number of bytes written to the SenseData buffer.\r
   @param[out]     HostAdapterStatus  The status of the SCSI Host Controller that\r
                                      produces the SCSI bus containing the SCSI target\r
                                      specified by ScsiIo when the SCSI Request Packet\r
@@ -497,14 +497,14 @@ ScsiInquiryCommand (
                                      execution of the SCSI Request Packet.  This\r
                                      buffer must be allocated by the caller. If\r
                                      DataLength is 0, then this parameter is optional\r
-                                     and may be NULL. \r
+                                     and may be NULL.\r
   @param[in, out]  DataLength        On input, a pointer to the length in bytes of\r
                                      the DataBuffer buffer.  On output, a pointer\r
                                      to the number of bytes written to the DataBuffer\r
-                                     buffer. \r
+                                     buffer.\r
   @param[in]      DBDField           Specifies the DBD field of the CDB for this SCSI Command.\r
-  @param[in]      PageControl        Specifies the PC field of the CDB for this SCSI Command. \r
-  @param[in]      PageCode           Specifies the Page Control field of the CDB for this SCSI Command. \r
+  @param[in]      PageControl        Specifies the PC field of the CDB for this SCSI Command.\r
+  @param[in]      PageCode           Specifies the Page Control field of the CDB for this SCSI Command.\r
 \r
   @retval EFI_SUCCESS                The command was executed successfully.\r
                                      See HostAdapterStatus, TargetStatus, SenseDataLength,\r