summaryrefslogtreecommitdiffstats
path: root/sys/dev/rp
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
committerphk <phk@FreeBSD.org>2004-06-04 16:02:56 +0000
commitba3920e2a2eb1a3101ab8286d24d58fef6fd73aa (patch)
tree3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/rp
parent958f9d7c7609eaa9fcabd83035ded33f80da2f0d (diff)
downloadFreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.zip
FreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.tar.gz
Machine generated patch which changes linedisc calls from accessing
linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit.
Diffstat (limited to 'sys/dev/rp')
-rw-r--r--sys/dev/rp/rp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c
index feff480..f99f403 100644
--- a/sys/dev/rp/rp.c
+++ b/sys/dev/rp/rp.c
@@ -660,7 +660,7 @@ static void rp_do_receive(struct rp_port *rp, struct tty *tp,
else if (CharNStat & STMRCVROVRH)
rp->rp_overflows++;
- (*linesw[tp->t_line].l_rint)(ch, tp);
+ ttyld_rint(tp, ch);
ToRecv--;
}
/*
@@ -702,7 +702,7 @@ static void rp_do_receive(struct rp_port *rp, struct tty *tp,
}
ch = (u_char) rp_readch1(cp,sGetTxRxDataIO(cp));
spl = spltty();
- (*linesw[tp->t_line].l_rint)(ch, tp);
+ ttyld_rint(tp, ch);
splx(spl);
ToRecv--;
}
@@ -731,12 +731,12 @@ static void rp_handle_port(struct rp_port *rp)
if(IntMask & DELTA_CD) {
if(ChanStatus & CD_ACT) {
if(!(tp->t_state & TS_CARR_ON) ) {
- (void)(*linesw[tp->t_line].l_modem)(tp, 1);
+ (void)ttyld_modem(tp, 1);
}
} else {
if((tp->t_state & TS_CARR_ON)) {
- (void)(*linesw[tp->t_line].l_modem)(tp, 0);
- if((*linesw[tp->t_line].l_modem)(tp, 0) == 0) {
+ (void)ttyld_modem(tp, 0);
+ if(ttyld_modem(tp, 0) == 0) {
rphardclose(rp);
}
}
@@ -784,7 +784,7 @@ static void rp_do_poll(void *not_used)
tp->t_state &= ~(TS_BUSY);
if(!(tp->t_state & TS_TTSTOP) &&
(count <= rp->rp_restart)) {
- (*linesw[tp->t_line].l_start)(tp);
+ ttyld_start(tp);
}
}
}
@@ -1068,7 +1068,7 @@ open_top:
ChanStatus = sGetChanStatus(&rp->rp_channel);
if((IntMask & DELTA_CD) || IS_CALLOUT(dev)) {
if((ChanStatus & CD_ACT) || IS_CALLOUT(dev)) {
- (void)(*linesw[tp->t_line].l_modem)(tp, 1);
+ (void)ttyld_modem(tp, 1);
}
}
@@ -1087,7 +1087,7 @@ open_top:
goto out;
goto open_top;
}
- error = (*linesw[tp->t_line].l_open)(dev, tp);
+ error = ttyld_open(tp, dev);
rp_disc_optim(tp, &tp->t_termios);
if(tp->t_state & TS_ISOPEN && IS_CALLOUT(dev))
@@ -1130,7 +1130,7 @@ rpclose(dev, flag, mode, td)
tp = rp->rp_tty;
oldspl = spltty();
- (*linesw[tp->t_line].l_close)(tp, flag);
+ ttyld_close(tp, flag);
rp_disc_optim(tp, &tp->t_termios);
rphardclose(rp);
@@ -1207,7 +1207,7 @@ rpwrite(dev, uio, flag)
return(error);
}
- error = (*linesw[tp->t_line].l_write)(tp, uio, flag);
+ error = ttyld_write(tp, uio, flag);
return error;
}
OpenPOWER on IntegriCloud