From f298368d2019fbe7b70d786842df2c8b1ed80d1a Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 30 Sep 2002 16:41:47 +0000 Subject: Call bus_set_resource() to set the ioport resource. --- sys/pc98/apm/apm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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) { -- cgit v1.1