summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa_compat.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-28 10:11:49 +0000
committerpeter <peter@FreeBSD.org>2000-05-28 10:11:49 +0000
commit6c19cf0ba179cba6c9be34c300ca567129740eac (patch)
treea764a958d1f2c95494e9c08360d340494354e415 /sys/i386/isa/isa_compat.c
parent54c29c9155264be119260f0397810913a17f7156 (diff)
downloadFreeBSD-src-6c19cf0ba179cba6c9be34c300ca567129740eac.zip
FreeBSD-src-6c19cf0ba179cba6c9be34c300ca567129740eac.tar.gz
Remove haveseen_iobase() - it is no longer called from anywhere in the
kernel.
Diffstat (limited to 'sys/i386/isa/isa_compat.c')
-rw-r--r--sys/i386/isa/isa_compat.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c
index 6eda6eb..5f328f0 100644
--- a/sys/i386/isa/isa_compat.c
+++ b/sys/i386/isa/isa_compat.c
@@ -296,23 +296,3 @@ isa_wrap_old_drivers(void)
devclass_add_driver(isa_devclass, driver);
}
}
-
-int
-haveseen_iobase(struct isa_device *dvp, int size)
-{
- int rid;
- struct resource *res;
- device_t dev = dvp->id_device;
- int base = dvp->id_iobase;
-
- /*
- * Ask for resource 1 so that we don't hurt our hints. In theory
- * this should work, but....
- */
- rid = 1;
- res = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &rid, base, base + size, size, RF_ACTIVE);
- if (res)
- bus_release_resource(dev, SYS_RES_IOPORT, rid, res);
- return res ? 0 : 1;
-}
OpenPOWER on IntegriCloud