Hi. Let's make all PCIMEM_xxx and PCIPREFMEM_xxx configurable and thus remove CONFIG_OLD_PCIMEM_ASSIGNMENT.
On Thu, Apr 28, 2011 at 11:53:53AM +0200, Gerd Hoffmann wrote:
This patch makes the memory window for PCI memory bars configurable via Kconfig.
Signed-off-by: Gerd Hoffmann kraxel@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
SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios