From: Gerd Hoffmann Date: Tue, 26 Nov 2013 12:12:04 +0000 (+0100) Subject: pci: tweak + comment minimum allocations X-Git-Tag: rel-1.7.4~29 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=67a3c7c461188622dba8622a92a7eac252618a19;p=seabios.git pci: tweak + comment minimum allocations Signed-off-by: Gerd Hoffmann --- diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index 87b562e..cec0aec 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -20,9 +20,9 @@ #include "util.h" // pci_setup #include "x86.h" // outb -#define PCI_DEVICE_MEM_MIN 0x1000 -#define PCI_BRIDGE_IO_MIN 0x1000 -#define PCI_BRIDGE_MEM_MIN 0x100000 +#define PCI_DEVICE_MEM_MIN (1<<12) // 4k == page size +#define PCI_BRIDGE_MEM_MIN (1<<21) // 2M == hugepage size +#define PCI_BRIDGE_IO_MIN 0x1000 // mandated by pci bridge spec enum pci_region_type { PCI_REGION_TYPE_IO,