X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FIpf%2FPcatIo.c;h=97857c298186e7ef1a41895647d9e815afd7cd3a;hp=9979d47c4e0a8b7a46a6434a3c47b3650892d15f;hb=579ac2064ba4dc12ffe8306424e675c08892b5df;hpb=c69dd9dfad3eb97d5e21f520f3ba35d102ec4cfa diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c index 9979d47c4e..97857c2981 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c @@ -1,7 +1,7 @@ /*++ -Copyright (c) 2005, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -21,7 +21,7 @@ Revision History --*/ #include "PcatPciRootBridge.h" -#include "pci22.h" +#include #include "SalProc.h" #include EFI_GUID_DEFINITION (SalSystemTable) @@ -46,8 +46,8 @@ Revision History // // Local variables for performing SAL Proc calls // -static PLABEL mSalProcPlabel; -static CALL_SAL_PROC mGlobalSalProc; +PLABEL mSalProcPlabel; +CALL_SAL_PROC mGlobalSalProc; EFI_STATUS PcatRootBridgeIoIoRead ( @@ -59,8 +59,8 @@ PcatRootBridgeIoIoRead ( ) { PCAT_PCI_ROOT_BRIDGE_INSTANCE *PrivateData; - UINTN InStride; - UINTN OutStride; + UINTN InStride; + UINTN OutStride; UINTN AlignMask; UINTN Address; PTR Buffer; @@ -81,7 +81,7 @@ PcatRootBridgeIoIoRead ( return EFI_INVALID_PARAMETER; } - if (Width < 0 || Width >= EfiPciWidthMaximum) { + if ((UINT32)Width >= EfiPciWidthMaximum) { return EFI_INVALID_PARAMETER; } @@ -163,9 +163,9 @@ PcatRootBridgeIoIoWrite ( ) { PCAT_PCI_ROOT_BRIDGE_INSTANCE *PrivateData; - UINTN InStride; - UINTN OutStride; - UINTN AlignMask; + UINTN InStride; + UINTN OutStride; + UINTN AlignMask; UINTN Address; PTR Buffer; UINT16 Data16; @@ -318,9 +318,9 @@ PcatRootBridgeIoPciRW ( ) { PCAT_PCI_ROOT_BRIDGE_INSTANCE *PrivateData; - UINTN AlignMask; - UINTN InStride; - UINTN OutStride; + UINTN AlignMask; + UINTN InStride; + UINTN OutStride; UINT64 Address; DEFIO_PCI_ADDR *Defio; PTR Buffer;