[SeaBIOS] [PATCH] Make pci memory window configurable.

Gerd Hoffmann kraxel at redhat.com
Thu Apr 28 11:53:53 CEST 2011


This patch makes the memory window for PCI
memory bars configurable via Kconfig.

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 src/Kconfig  |    6 ++++++
 src/config.h |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/Kconfig b/src/Kconfig
index 6d55b23..c68a815 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -187,6 +187,12 @@ menu "Hardware support"
         depends on EXTRA_PCI_ROOTS
         hex "Extra secondary PCI root bus number"
         default 0x00
+    config PCIMEM_START
+	hex "PCI memory window start address"
+	default 0xf0000000
+    config PCIMEM_SIZE
+	hex "PCI memory window size size"
+	default 0x08000000
 
     config USE_SMM
         depends on !COREBOOT
diff --git a/src/config.h b/src/config.h
index 5b40488..4500669 100644
--- a/src/config.h
+++ b/src/config.h
@@ -57,8 +57,8 @@
 #define BUILD_PCIPREFMEM_SIZE     0
 #define BUILD_PCIPREFMEM_END      0
 #else
-#define BUILD_PCIMEM_START        0xf0000000
-#define BUILD_PCIMEM_SIZE         0x08000000    /* half- of pci window */
+#define BUILD_PCIMEM_START        CONFIG_PCIMEM_START
+#define BUILD_PCIMEM_SIZE         CONFIG_PCIMEM_SIZE
 #define BUILD_PCIMEM_END          (BUILD_PCIMEM_START + BUILD_PCIMEM_SIZE)
 #define BUILD_PCIPREFMEM_START    BUILD_PCIMEM_END
 #define BUILD_PCIPREFMEM_SIZE     (BUILD_PCIPREFMEM_END - BUILD_PCIPREFMEM_START)
-- 
1.7.1




More information about the SeaBIOS mailing list