Make PCI_ALLOW_UNSUPPORTED_IO_RANGE an option until the ISA address
problem is fixed at the bridge level. This is needed for some newer laptops that have the cardbus bridge not on pci0.
This commit is contained in:
parent
b8cffde5dc
commit
7a852c22ce
@ -417,6 +417,7 @@ MSGBUF_SIZE opt_msgbuf.h
|
||||
# PCI related options
|
||||
PCI_QUIET opt_pci.h
|
||||
PCI_ENABLE_IO_MODES opt_pci.h
|
||||
PCI_ALLOW_UNSUPPORTED_IO_RANGE opt_pci.h
|
||||
|
||||
# NFS options
|
||||
NFS_MINATTRTIMO opt_nfs.h
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include <pci/pcireg.h>
|
||||
|
||||
#include "pcib_if.h"
|
||||
#include "opt_pci.h"
|
||||
|
||||
/*
|
||||
* Bridge-specific data.
|
||||
@ -281,6 +282,10 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
|
||||
*/
|
||||
switch (type) {
|
||||
case SYS_RES_IOPORT:
|
||||
if (start < sc->iobase)
|
||||
start = sc->iobase;
|
||||
if (end > sc->iolimit && start < end)
|
||||
end = sc->iolimit;
|
||||
if ((start < sc->iobase) || (end > sc->iolimit)) {
|
||||
device_printf(dev, "device %s%d requested unsupported I/O range 0x%lx-0x%lx"
|
||||
" (decoding 0x%x-0x%x)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user