From ac9488f26528394856b94bda0797f5bd9c69a26a Mon Sep 17 00:00:00 2001 From: Yang Zhong Date: Thu, 30 Mar 2017 18:32:53 +0800 Subject: qboot: enable mmconfig Need to enable mmconfig in qboot and also need to reserve mmconfig space in bios. Signed-off-by: Yang Zhong 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 --- include/bios.h | 1 + include/pci.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.1