]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Csm/CsmSupportLib/LegacyRegion.h
OvmfPkg/LegacyRegion: Support legacy region manipulation of Q35
[mirror_edk2.git] / OvmfPkg / Csm / CsmSupportLib / LegacyRegion.h
index 805df8656f09dcbbe151505fd29a7e63de8d470b..f755a2a359e52293578611b10d174d291a8da495 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -21,6 +21,8 @@
 #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