]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: IndustryStandard/Q35MchIch9.h: add PCIEXBAR macros
authorLaszlo Ersek <lersek@redhat.com>
Thu, 3 Mar 2016 18:04:28 +0000 (19:04 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 10 Mar 2016 20:26:29 +0000 (21:26 +0100)
Section 5.1.16 ("PCIEXBAR -- PCI Express Register Range Base Address") in
Intel document #316966-002 (already referenced near the top of this header
file) describes the Q35 DRAM Controller register that configures the
memory-mapped PCI config space (also known as MMCONFIG, and ECAM /
Enhanced Configuration Access Method).

In this patch we add the macros we'll need later. We'll only support the
256 MB memory-mapped config space -- enough for buses [0, 255].

Cc: Gabriel Somlo <somlo@cmu.edu>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Cc: Michał Zegan <webczat_200@poczta.onet.pl>
Ref: https://github.com/tianocore/edk2/issues/32
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Gabriel Somlo <somlo@cmu.edu>
Tested-by: Michał Zegan <webczat_200@poczta.onet.pl>
OvmfPkg/Include/IndustryStandard/Q35MchIch9.h

index 18b34a3d4f4ecd2925f3e66f03649e2e32b70892..4dc2c39901c13523660e4adf3a446ef82f646b66 100644 (file)
 #define MCH_GGC               0x52\r
 #define MCH_GGC_IVD             BIT1\r
 \r
+#define MCH_PCIEXBAR_LOW      0x60\r
+#define MCH_PCIEXBAR_LOWMASK    0x0FFFFFFF\r
+#define MCH_PCIEXBAR_BUS_FF     0\r
+#define MCH_PCIEXBAR_EN         BIT0\r
+\r
+#define MCH_PCIEXBAR_HIGH     0x64\r
+#define MCH_PCIEXBAR_HIGHMASK   0xFFFFFFF0\r
+\r
 #define MCH_SMRAM             0x9D\r
 #define MCH_SMRAM_D_LCK         BIT4\r
 #define MCH_SMRAM_G_SMRAME      BIT3\r