]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c
BeagleBoardPkg: Removing ipf which is no longer supported from edk2.
[mirror_edk2.git] / DuetPkg / PciRootBridgeNoEnumerationDxe / Ipf / PcatIo.c
index f6d8c80fc0d76141e0b989581b38096067741be7..97857c298186e7ef1a41895647d9e815afd7cd3a 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2005, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2005 - 2012, 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
@@ -21,7 +21,7 @@ Revision History
 --*/\r
 \r
 #include "PcatPciRootBridge.h"\r
-#include "pci22.h"\r
+#include <IndustryStandard/Pci.h>\r
 #include "SalProc.h"\r
 \r
 #include EFI_GUID_DEFINITION (SalSystemTable)\r
@@ -59,8 +59,8 @@ PcatRootBridgeIoIoRead (
   )\r
 {\r
   PCAT_PCI_ROOT_BRIDGE_INSTANCE *PrivateData;\r
-  UINTN                                InStride;\r
-  UINTN                                OutStride;\r
+  UINTN                         InStride;\r
+  UINTN                         OutStride;\r
   UINTN                         AlignMask;\r
   UINTN                         Address;\r
   PTR                           Buffer;\r
@@ -81,7 +81,7 @@ PcatRootBridgeIoIoRead (
     return EFI_INVALID_PARAMETER;\r
   }\r
     \r
-  if (Width < 0 || Width >= EfiPciWidthMaximum) {\r
+  if ((UINT32)Width >= EfiPciWidthMaximum) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -163,9 +163,9 @@ PcatRootBridgeIoIoWrite (
   )\r
 {\r
   PCAT_PCI_ROOT_BRIDGE_INSTANCE  *PrivateData;\r
-  UINTN                                 InStride;\r
-  UINTN                                 OutStride;\r
-  UINTN                                 AlignMask;\r
+  UINTN                          InStride;\r
+  UINTN                          OutStride;\r
+  UINTN                          AlignMask;\r
   UINTN                          Address;\r
   PTR                            Buffer;\r
   UINT16                         Data16;\r
@@ -318,9 +318,9 @@ PcatRootBridgeIoPciRW (
   )\r
 {\r
   PCAT_PCI_ROOT_BRIDGE_INSTANCE  *PrivateData;\r
-  UINTN                                 AlignMask;\r
-  UINTN                                 InStride;\r
-  UINTN                                 OutStride;\r
+  UINTN                          AlignMask;\r
+  UINTN                          InStride;\r
+  UINTN                          OutStride;\r
   UINT64                         Address;\r
   DEFIO_PCI_ADDR                 *Defio;\r
   PTR                            Buffer;\r