/** @file\r
Legacy Region Support\r
\r
- Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are\r
licensed and made available under the terms and conditions of the BSD License\r
#include <Protocol/LegacyRegion2.h>\r
\r
#include <IndustryStandard/Pci.h>\r
+#include <IndustryStandard/Q35MchIch9.h>\r
+#include <IndustryStandard/I440FxPiix4.h>\r
\r
#include <Library/PciLib.h>\r
#include <Library/PcdLib.h>\r
#define PAM_PCI_DEV 0\r
#define PAM_PCI_FUNC 0\r
\r
-#define REG_PAM0_OFFSET 0x59 // Programmable Attribute Map 0\r
-#define REG_PAM1_OFFSET 0x5a // Programmable Attribute Map 1\r
-#define REG_PAM2_OFFSET 0x5b // Programmable Attribute Map 2\r
-#define REG_PAM3_OFFSET 0x5c // Programmable Attribute Map 3\r
-#define REG_PAM4_OFFSET 0x5d // Programmable Attribute Map 4\r
-#define REG_PAM5_OFFSET 0x5e // Programmable Attribute Map 5\r
-#define REG_PAM6_OFFSET 0x5f // Programmable Attribute Map 6\r
+#define REG_PAM0_OFFSET_440 0x59 // Programmable Attribute Map 0\r
+#define REG_PAM1_OFFSET_440 0x5a // Programmable Attribute Map 1\r
+#define REG_PAM2_OFFSET_440 0x5b // Programmable Attribute Map 2\r
+#define REG_PAM3_OFFSET_440 0x5c // Programmable Attribute Map 3\r
+#define REG_PAM4_OFFSET_440 0x5d // Programmable Attribute Map 4\r
+#define REG_PAM5_OFFSET_440 0x5e // Programmable Attribute Map 5\r
+#define REG_PAM6_OFFSET_440 0x5f // Programmable Attribute Map 6\r
+\r
+#define REG_PAM0_OFFSET_Q35 0x90 // Programmable Attribute Map 0\r
+#define REG_PAM1_OFFSET_Q35 0x91 // Programmable Attribute Map 1\r
+#define REG_PAM2_OFFSET_Q35 0x92 // Programmable Attribute Map 2\r
+#define REG_PAM3_OFFSET_Q35 0x93 // Programmable Attribute Map 3\r
+#define REG_PAM4_OFFSET_Q35 0x94 // Programmable Attribute Map 4\r
+#define REG_PAM5_OFFSET_Q35 0x95 // Programmable Attribute Map 5\r
+#define REG_PAM6_OFFSET_Q35 0x96 // Programmable Attribute Map 6\r
\r
#define PAM_BASE_ADDRESS 0xc0000\r
#define PAM_LIMIT_ADDRESS BASE_1MB\r