summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-18 01:42:43 +0000
committerimp <imp@FreeBSD.org>2005-09-18 01:42:43 +0000
commit7808a8bb7e11b8965d0a3d7833345e3ede2b9c3d (patch)
tree6deadc9f137471c02ca1d075575acdca70cc2c11 /sys/amd64/pci
parent55babf09d20f3890eef0dc5ef0e9a0b00a7f0cc7 (diff)
downloadFreeBSD-src-7808a8bb7e11b8965d0a3d7833345e3ede2b9c3d.zip
FreeBSD-src-7808a8bb7e11b8965d0a3d7833345e3ede2b9c3d.tar.gz
MFi386: pci attribute allocation fixes.
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index d4949a0..15eccf7 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -273,7 +273,7 @@ SYSCTL_ULONG(_hw_pci, OID_AUTO, host_mem_start, CTLFLAG_RDTUN,
"Limit the host bridge memory to being above this address. Must be\n\
set at boot via a tunable.");
-static struct resource *
+struct resource *
legacy_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
u_long start, u_long end, u_long count, u_int flags)
{
@@ -291,6 +291,8 @@ legacy_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
*/
if (type == SYS_RES_MEMORY && start == 0UL && end == ~0UL)
start = legacy_host_mem_start;
+ if (type == SYS_RES_IOPORT && start == 0UL && end == ~0UL)
+ start = 0x1000;
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
count, flags));
}
OpenPOWER on IntegriCloud