diff options
author | peter <peter@FreeBSD.org> | 2000-05-28 10:11:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-28 10:11:49 +0000 |
commit | 6c19cf0ba179cba6c9be34c300ca567129740eac (patch) | |
tree | a764a958d1f2c95494e9c08360d340494354e415 /sys/i386/isa/isa_compat.c | |
parent | 54c29c9155264be119260f0397810913a17f7156 (diff) | |
download | FreeBSD-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.c | 20 |
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; -} |