diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
commit | 2140d01b277fa2ab698e66dda69e434f0be7bd13 (patch) | |
tree | 3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/cy/cy.c | |
parent | d443a4f573fc2d711f482fe749463c0007b462d0 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=130077
Diffstat (limited to 'sys/dev/cy/cy.c')
-rw-r--r-- | sys/dev/cy/cy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index c6e72205f9d8..8e1a56cdc1c7 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -748,7 +748,7 @@ open_top: * the true carrier. */ if (com->prev_modem_status & MSR_DCD || mynor & CALLOUT_MASK) - (*linesw[tp->t_line].l_modem)(tp, 1); + ttyld_modem(tp, 1); } /* * Wait for DCD if necessary. @@ -762,7 +762,7 @@ open_top: goto out; goto open_top; } - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = ttyld_open(tp, dev); disc_optim(tp, &tp->t_termios, com); if (tp->t_state & TS_ISOPEN && mynor & CALLOUT_MASK) com->active_out = TRUE; @@ -793,7 +793,7 @@ sioclose(dev, flag, mode, td) tp = com->tp; s = spltty(); cd_etc(com, CD1400_ETC_STOPBREAK); - (*linesw[tp->t_line].l_close)(tp, flag); + ttyld_close(tp, flag); disc_optim(tp, &tp->t_termios, com); comhardclose(com); ttyclose(tp); @@ -919,7 +919,7 @@ siowrite(dev, uio, flag) * sessions are raw anyhow. */ #else - return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); + return (ttyld_write(tp, uio, flag)); #endif } @@ -1018,7 +1018,7 @@ sioinput(com) if (line_status & LSR_PE) recv_data |= TTY_PE; } - (*linesw[tp->t_line].l_rint)(recv_data, tp); + ttyld_rint(tp, recv_data); critical_enter(); COM_LOCK(); } while (buf < com->iptr); @@ -1772,7 +1772,7 @@ repeat: com->state &= ~CS_ODONE; COM_UNLOCK(); critical_exit(); - (*linesw[tp->t_line].l_start)(tp); + ttyld_start(tp); } if (com_events == 0) break; |