/*++\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
--*/\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
)\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
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
)\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
)\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