Support for S3 boot script lib. This file defined some internal macro and internal\r
data structure\r
\r
- Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
#include <Library/PcdLib.h>\r
#include <Library/SmbusLib.h>\r
#include <Library/IoLib.h>\r
-#include <Library/PciLib.h>\r
+#include <Library/PciSegmentLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/TimerLib.h>\r
#define MAX_IO_ADDRESS 0xFFFF\r
\r
//\r
-// Macro to convert a UEFI PCI address to a PCI Library PCI address\r
+// Macro to convert a UEFI PCI address + segment to a PCI Segment Library PCI address\r
//\r
-#define PCI_ADDRESS_ENCODE(A) (UINTN)PCI_LIB_ADDRESS( \\r
- ((((UINTN)(A))& 0xff000000) >> 24), ((((UINTN)(A)) &0x00ff0000) >> 16), ((((UINTN)(A)) & 0xff00) >> 8), ((RShiftU64 ((A), 32) & 0xfff) | ((A)& 0xff)) \\r
- )\r
-\r
-\r
+#define PCI_ADDRESS_ENCODE(S, A) PCI_SEGMENT_LIB_ADDRESS( \\r
+ S, \\r
+ ((((UINTN)(A)) & 0xff000000) >> 24), \\r
+ ((((UINTN)(A)) & 0x00ff0000) >> 16), \\r
+ ((((UINTN)(A)) & 0xff00) >> 8), \\r
+ ((RShiftU64 ((A), 32) & 0xfff) | ((A) & 0xff)) \\r
+ )\r
\r
typedef union {\r
UINT8 volatile *Buf;\r