diff options
author | nyan <nyan@FreeBSD.org> | 2002-09-30 16:41:47 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-09-30 16:41:47 +0000 |
commit | f298368d2019fbe7b70d786842df2c8b1ed80d1a (patch) | |
tree | b9ac9160a1b2a30ad545737396f0e27a3735e07d /sys | |
parent | 33159af0db864cc7f5a47dfe8e45665817acefc5 (diff) | |
download | FreeBSD-src-f298368d2019fbe7b70d786842df2c8b1ed80d1a.zip FreeBSD-src-f298368d2019fbe7b70d786842df2c8b1ed80d1a.tar.gz |
Call bus_set_resource() to set the ioport resource.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/apm/apm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pc98/apm/apm.c b/sys/pc98/apm/apm.c index 914be4e..44a4066 100644 --- a/sys/pc98/apm/apm.c +++ b/sys/pc98/apm/apm.c @@ -914,6 +914,8 @@ apm_probe(device_t dev) if ((vmf.vmf_cx & APM_32BIT_SUPPORT) == 0) return ENXIO; rid = 0; + bus_set_resource(dev, SYS_RES_IOPORT, rid, + APM_NECSMM_PORT, APM_NECSMM_PORTSZ); sc->sc_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, APM_NECSMM_PORT, ~0, APM_NECSMM_PORTSZ, RF_ACTIVE); if (sc->sc_res == NULL) { |