summaryrefslogtreecommitdiffstats
path: root/sys/pc98/apm
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-09-30 16:41:47 +0000
committernyan <nyan@FreeBSD.org>2002-09-30 16:41:47 +0000
commitf298368d2019fbe7b70d786842df2c8b1ed80d1a (patch)
treeb9ac9160a1b2a30ad545737396f0e27a3735e07d /sys/pc98/apm
parent33159af0db864cc7f5a47dfe8e45665817acefc5 (diff)
downloadFreeBSD-src-f298368d2019fbe7b70d786842df2c8b1ed80d1a.zip
FreeBSD-src-f298368d2019fbe7b70d786842df2c8b1ed80d1a.tar.gz
Call bus_set_resource() to set the ioport resource.
Diffstat (limited to 'sys/pc98/apm')
-rw-r--r--sys/pc98/apm/apm.c2
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) {
OpenPOWER on IntegriCloud