summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_tty.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-02-24 02:42:26 +0000
committermarcel <marcel@FreeBSD.org>2006-02-24 02:42:26 +0000
commit67667966d85f253fec426bd28019edb73cb86baf (patch)
tree2a8134eba8a1731bcd603f54809a6adaa5306cc2 /sys/dev/uart/uart_tty.c
parent2646169b8f17fa344ce923a042854742e95bc592 (diff)
downloadFreeBSD-src-67667966d85f253fec426bd28019edb73cb86baf.zip
FreeBSD-src-67667966d85f253fec426bd28019edb73cb86baf.tar.gz
MFp4:
Stop using our local UART_IPEND_* and instead use the global SER_INT_* as defined in <sys/serial.h>.
Diffstat (limited to 'sys/dev/uart/uart_tty.c')
-rw-r--r--sys/dev/uart/uart_tty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index ad0c5d1..601c377 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -307,12 +307,12 @@ uart_tty_intr(void *arg)
return;
pend = atomic_readandclear_32(&sc->sc_ttypend);
- if (!(pend & UART_IPEND_MASK))
+ if (!(pend & SER_INT_MASK))
return;
tp = sc->sc_u.u_tty.tp;
- if (pend & UART_IPEND_RXREADY) {
+ if (pend & SER_INT_RXREADY) {
while (!uart_rx_empty(sc) && !(tp->t_state & TS_TBLOCK)) {
xc = uart_rx_get(sc);
c = xc & 0xff;
@@ -324,13 +324,13 @@ uart_tty_intr(void *arg)
}
}
- if (pend & UART_IPEND_BREAK) {
+ if (pend & SER_INT_BREAK) {
if (tp != NULL && !(tp->t_iflag & IGNBRK))
ttyld_rint(tp, 0);
}
- if (pend & UART_IPEND_SIGCHG) {
- sig = pend & UART_IPEND_SIGMASK;
+ if (pend & SER_INT_SIGCHG) {
+ sig = pend & SER_INT_SIGMASK;
if (sig & SER_DDCD)
ttyld_modem(tp, sig & SER_DCD);
if ((sig & SER_DCTS) && (tp->t_cflag & CCTS_OFLOW) &&
@@ -343,7 +343,7 @@ uart_tty_intr(void *arg)
}
}
- if (pend & UART_IPEND_TXIDLE) {
+ if (pend & SER_INT_TXIDLE) {
tp->t_state &= ~TS_BUSY;
ttyld_start(tp);
}
OpenPOWER on IntegriCloud