]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Drivers/SataSiI3132Dxe/SiI3132AtaPassThru.c
EmbeddedPkg: Fix various typos
[mirror_edk2.git] / EmbeddedPkg / Drivers / SataSiI3132Dxe / SiI3132AtaPassThru.c
index 2fb5fd68db01acc8641e850f3a1e1eb8dc81ccce..f6a723adfb28ea8b990a09440792077937af1189 100644 (file)
@@ -2,13 +2,7 @@
 *\r
 *  Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
 *\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
+*  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 *\r
 **/\r
 \r
@@ -104,7 +98,7 @@ SiI3132AtaPassThruCommand (
     }\r
 \r
     Status = PciIo->Map (\r
-               PciIo, EfiPciIoOperationBusMasterRead,\r
+               PciIo, EfiPciIoOperationBusMasterWrite,\r
                Packet->InDataBuffer, &InDataBufferLength, &PhysInDataBuffer, &PciAllocMapping\r
                );\r
     if (EFI_ERROR (Status)) {\r
@@ -139,7 +133,7 @@ SiI3132AtaPassThruCommand (
     OutDataBufferLength = Packet->OutTransferLength * SataDevice->BlockSize;\r
 \r
     Status = PciIo->Map (\r
-               PciIo, EfiPciIoOperationBusMasterWrite,\r
+               PciIo, EfiPciIoOperationBusMasterRead,\r
                Packet->OutDataBuffer, &OutDataBufferLength, &PhysOutDataBuffer, &PciAllocMapping\r
                );\r
     if (EFI_ERROR (Status)) {\r
@@ -640,7 +634,7 @@ SiI3132GetDevice (
     return EFI_UNSUPPORTED;\r
   } else {\r
     *Port = ((SATA_DEVICE_PATH*)DevicePath)->Lun;\r
-    // Return the first Sata Sevice as there should be only one directly connected\r
+    // Return the first Sata Device as there should be only one directly connected\r
     *PortMultiplierPort = ((SATA_SI3132_DEVICE*)SataSiI3132Instance->Ports[*Port].Devices.ForwardLink)->Index;\r
     return EFI_SUCCESS;\r
   }\r