aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sab/sab.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-01-08 04:30:30 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-01-08 04:30:30 +0000
commita6517875d0aa0d8fbe2aa471110c8d75ae9d98e4 (patch)
treed4942ec5a8d4e6fe18d8cdd4833ed2c40bb541ac /sys/dev/sab/sab.c
parent88a8ca8569e10b65964b64f58486a9be26da60ec (diff)
downloadsrc-a6517875d0aa0d8fbe2aa471110c8d75ae9d98e4.tar.gz
src-a6517875d0aa0d8fbe2aa471110c8d75ae9d98e4.zip
Notes
Diffstat (limited to 'sys/dev/sab/sab.c')
-rw-r--r--sys/dev/sab/sab.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c
index 88e13d636479..46f0b3b71f78 100644
--- a/sys/dev/sab/sab.c
+++ b/sys/dev/sab/sab.c
@@ -446,12 +446,14 @@ sabtty_attach(device_t dev)
case 0: /* port A */
sc->sc_pvr_dtr = SAB_PVR_DTR_A;
sc->sc_pvr_dsr = SAB_PVR_DSR_A;
- sc->sc_bh = sc->sc_parent->sc_bh + SAB_CHAN_A;
+ bus_space_subregion(sc->sc_bt, sc->sc_parent->sc_bh,
+ SAB_CHAN_A, SAB_CHANLEN, &sc->sc_bh);
break;
case 1: /* port B */
sc->sc_pvr_dtr = SAB_PVR_DTR_B;
sc->sc_pvr_dsr = SAB_PVR_DSR_B;
- sc->sc_bh = sc->sc_parent->sc_bh + SAB_CHAN_B;
+ bus_space_subregion(sc->sc_bt, sc->sc_parent->sc_bh,
+ SAB_CHAN_B, SAB_CHANLEN, &sc->sc_bh);
break;
default:
return (ENXIO);