aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
commitc47476d7e6801deffc8b3c057d0fbf7d2335a0c2 (patch)
treebc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/pc98
parentac6c1372f4ebb24615370e358640100e663f6746 (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/sio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index d128658bf222..3e793680ea2b 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -795,7 +795,7 @@ sioprobe(dev, xrid, rclk, noprobe)
} else if (iod.if_type == COM_IF_MODEM_CARD ||
iod.if_type == COM_IF_RSA98III ||
isa_get_vendorid(dev)) {
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
if_16550a_type[iod.if_type & 0x0f].iatsz, RF_ACTIVE);
} else {
port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
@@ -803,8 +803,8 @@ sioprobe(dev, xrid, rclk, noprobe)
if_16550a_type[iod.if_type & 0x0f].iatsz, RF_ACTIVE);
}
#else
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, IO_COMSIZE, RF_ACTIVE);
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ IO_COMSIZE, RF_ACTIVE);
#endif
if (!port)
return (ENXIO);
@@ -1384,7 +1384,7 @@ sioattach(dev, xrid, rclk)
} else if (if_type == COM_IF_MODEM_CARD ||
if_type == COM_IF_RSA98III ||
isa_get_vendorid(dev)) {
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
if_16550a_type[if_type & 0x0f].iatsz, RF_ACTIVE);
} else {
port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
@@ -1392,8 +1392,8 @@ sioattach(dev, xrid, rclk)
if_16550a_type[if_type & 0x0f].iatsz, RF_ACTIVE);
}
#else
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, IO_COMSIZE, RF_ACTIVE);
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ IO_COMSIZE, RF_ACTIVE);
#endif
if (!port)
return (ENXIO);