aboutsummaryrefslogtreecommitdiffstats
path: root/src/fw/pciinit.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-11-26 13:12:04 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-11-29 09:34:14 +0100
commit67a3c7c461188622dba8622a92a7eac252618a19 (patch)
treed629366fbcaf1c8fb3b954edb6841ed1157340ec /src/fw/pciinit.c
parentf21c0066df641c2d0e383254bb69a42a60c0616c (diff)
downloadseabios-67a3c7c461188622dba8622a92a7eac252618a19.tar.gz
pci: tweak + comment minimum allocations
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/fw/pciinit.c')
-rw-r--r--src/fw/pciinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
index 87b562ee..cec0aec7 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,