diff options
-rw-r--r-- | sys/dev/scc/scc_core.c | 4 | ||||
-rw-r--r-- | sys/dev/scc/scc_dev_z8530.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/scc/scc_core.c b/sys/dev/scc/scc_core.c index c9cda51..17be686 100644 --- a/sys/dev/scc/scc_core.c +++ b/sys/dev/scc/scc_core.c @@ -119,7 +119,7 @@ scc_bfe_attach(device_t dev) } else sc = sc0; - size = abs(cl->cl_range); + size = abs(cl->cl_range) << sc->sc_bas.regshft; mtx_init(&sc->sc_hwmtx, "scc_hwmtx", NULL, MTX_SPIN); @@ -351,7 +351,7 @@ scc_bfe_probe(device_t dev, u_int regshft, u_int rclk) if (device_get_desc(dev) == NULL) device_set_desc(dev, cl->name); - size = abs(cl->cl_range); + size = abs(cl->cl_range) << regshft; /* * Allocate the register resource. We assume that all SCCs have a diff --git a/sys/dev/scc/scc_dev_z8530.c b/sys/dev/scc/scc_dev_z8530.c index 6b17047..3d63c22 100644 --- a/sys/dev/scc/scc_dev_z8530.c +++ b/sys/dev/scc/scc_dev_z8530.c @@ -62,7 +62,7 @@ struct scc_class scc_z8530_class = { .cl_channels = 2, .cl_class = SCC_CLASS_Z8530, .cl_modes = SCC_MODE_ASYNC | SCC_MODE_BISYNC | SCC_MODE_HDLC, - .cl_range = (CHAN_B - CHAN_A) << 1, + .cl_range = CHAN_B - CHAN_A, }; /* Multiplexed I/O. */ |