*\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
}\r
\r
Status = PciIo->Map (\r
- PciIo, EfiPciIoOperationBusMasterRead,\r
+ PciIo, EfiPciIoOperationBusMasterWrite,\r
Packet->InDataBuffer, &InDataBufferLength, &PhysInDataBuffer, &PciAllocMapping\r
);\r
if (EFI_ERROR (Status)) {\r
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
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