diff options
| author | Mike Silbersack <silby@FreeBSD.org> | 2003-03-19 01:48:14 +0000 |
|---|---|---|
| committer | Mike Silbersack <silby@FreeBSD.org> | 2003-03-19 01:48:14 +0000 |
| commit | af498ca9eb6e23defa7ddbead6fd1323ffeaedd8 (patch) | |
| tree | 46660d13bad28cff49fa4b1c1eb7af774e51f1cb | |
| parent | ba39e1347e84f3813d3580eec70de9ac2a0442a2 (diff) | |
Notes
| -rw-r--r-- | sys/pci/if_xl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 2077c3cd3dad..e7a11bfacff5 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -1738,6 +1738,14 @@ fail_fres: bus_release_resource(dev, SYS_RES_MEMORY, XL_PCI_FUNCMEM, sc->xl_fres); fail_res: + if (sc->xl_flags & XL_FLAG_USE_MMIO) { + rid = XL_PCI_LOMEM; + res = SYS_RES_MEMORY; + } else { + rid = XL_PCI_LOIO; + res = SYS_RES_IOPORT; + } + bus_release_resource(dev, res, rid, sc->xl_res); fail: XL_UNLOCK(sc); |
