aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYang Zhong <yang.zhong@intel.com>2017-03-30 18:32:53 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-03-30 10:47:29 +0200
commitac9488f26528394856b94bda0797f5bd9c69a26a (patch)
treeb014a3d8bb551b6c63f9e6954e76500fe1508448 /include
parentea7d0e304775e81c07269e22b4412d328c3fb2fa (diff)
downloadqboot-ac9488f26528394856b94bda0797f5bd9c69a26a.zip
qboot-ac9488f26528394856b94bda0797f5bd9c69a26a.tar.gz
qboot-ac9488f26528394856b94bda0797f5bd9c69a26a.tar.bz2
qboot: enable mmconfig
Need to enable mmconfig in qboot and also need to reserve mmconfig space in bios. Signed-off-by: Yang Zhong <yang.zhong@intel.com> Message-Id: <1490869973-4562-1-git-send-email-yang.zhong@intel.com> [Do not affect e820 memory map on i440FX chipset. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/bios.h1
-rw-r--r--include/pci.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/bios.h b/include/bios.h
index bc96f87..df60c5a 100644
--- a/include/bios.h
+++ b/include/bios.h
@@ -40,6 +40,7 @@ extern void bios_int15(void);
extern void setup_pci(void);
extern void setup_hw(void);
+extern bool setup_mmconfig(void);
extern void extract_acpi(void);
extern void boot_from_fwcfg(void);
extern bool boot_from_cbfs(void *base, size_t sz);
diff --git a/include/pci.h b/include/pci.h
index bb37b86..7f40f38 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -72,4 +72,7 @@ static inline uint8_t pci_config_readb(uint16_t bdf, uint32_t addr)
#define PCI_DEVICE_ID_INTEL_82371SB_1 0x7010
#define PCI_DEVICE_ID_INTEL_82371AB 0x7111
+#define PCIE_MMCONFIG_BASE 0xb0000000
+#define PCIE_MMCONFIG_SIZE (256 * 1024 * 1024)
+
#endif