]> xenbits.xensource.com Git - seabios.git/commitdiff
pci: tweak + comment minimum allocations
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Nov 2013 12:12:04 +0000 (13:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 29 Nov 2013 08:34:14 +0000 (09:34 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/pciinit.c

index 87b562eec2d4087990c2c24f6ad107cf9d3fac1b..cec0aec7160bef38994cd145583536a3ed1caf3a 100644 (file)
@@ -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,