diff options
author | dim <dim@FreeBSD.org> | 2013-12-29 20:23:08 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-29 20:23:08 +0000 |
commit | 6a5519cacac5101e3bf00a44c465c56b17ecc931 (patch) | |
tree | 0a85899407402f349cfc410fb2d768770e6240c2 /sys/dev/scc | |
parent | a094e35450d9b8cef5acd70ddf2f7d38fbf274eb (diff) | |
download | FreeBSD-src-6a5519cacac5101e3bf00a44c465c56b17ecc931.zip FreeBSD-src-6a5519cacac5101e3bf00a44c465c56b17ecc931.tar.gz |
In sys/dev/scc, remove unused static function scc_setmreg(). While
here, invoke scc_getmreg() in two more places where it can be used.
Reviewed by: marcel
MFC after: 3 days
Diffstat (limited to 'sys/dev/scc')
-rw-r--r-- | sys/dev/scc/scc_dev_z8530.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/dev/scc/scc_dev_z8530.c b/sys/dev/scc/scc_dev_z8530.c index 0920d45..764819f 100644 --- a/sys/dev/scc/scc_dev_z8530.c +++ b/sys/dev/scc/scc_dev_z8530.c @@ -66,15 +66,6 @@ struct scc_class scc_z8530_class = { }; /* Multiplexed I/O. */ -static __inline void -scc_setmreg(struct scc_bas *bas, int ch, int reg, int val) -{ - - scc_setreg(bas, ch + REG_CTRL, reg); - scc_barrier(bas); - scc_setreg(bas, ch + REG_CTRL, val); -} - static __inline uint8_t scc_getmreg(struct scc_bas *bas, int ch, int reg) { @@ -146,9 +137,7 @@ z8530_bfe_ipend(struct scc_softc *sc) if (ip & IP_TIB) ch[1]->ch_ipend |= SER_INT_TXIDLE; if (ip & IP_SIA) { - scc_setreg(bas, CHAN_A + REG_CTRL, CR_RSTXSI); - scc_barrier(bas); - bes = scc_getreg(bas, CHAN_A + REG_CTRL); + bes = scc_getmreg(bas, CHAN_A, CR_RSTXSI); if (bes & BES_BRK) ch[0]->ch_ipend |= SER_INT_BREAK; sig = ch[0]->ch_hwsig; @@ -164,9 +153,7 @@ z8530_bfe_ipend(struct scc_softc *sc) ch[0]->ch_ipend |= SER_INT_OVERRUN; } if (ip & IP_SIB) { - scc_setreg(bas, CHAN_B + REG_CTRL, CR_RSTXSI); - scc_barrier(bas); - bes = scc_getreg(bas, CHAN_B + REG_CTRL); + bes = scc_getmreg(bas, CHAN_B, CR_RSTXSI); if (bes & BES_BRK) ch[1]->ch_ipend |= SER_INT_BREAK; sig = ch[1]->ch_hwsig; |