summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-02-13 12:46:28 +0000
committerphk <phk@FreeBSD.org>1998-02-13 12:46:28 +0000
commit76528cc622637526fe2545d99fd21a2c6f39e9c4 (patch)
tree93a9b69fd7cbfbcfaa3a59dc4588bf3dfdb8dd8b /sys/dev/cy
parent3a8117ec4ddcc05573335ac5f170bf00089f52da (diff)
downloadFreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.zip
FreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.tar.gz
Implement the spirit but not the letter of Terrys hot-char patch.
The differences Terrys patch and this patch are: * Remove a lot of un-needed comments. * Don't put l_hotchar at the front of stuct linesw, there is no need to. * Use the #defines for the hotchar in the SLIP and PPP line disciplines
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c13
-rw-r--r--sys/dev/cy/cy_isa.c13
2 files changed, 4 insertions, 22 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index bb78e29..8661f3e 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.59 1997/12/28 06:23:03 bde Exp $
+ * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $
*/
#include "opt_compat.h"
@@ -2420,16 +2420,7 @@ disc_optim(tp, t, com)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
tp->t_state &= ~TS_CAN_BYPASS_L_RINT;
- /*
- * Prepare to reduce input latency for packet
- * discplines with a end of packet character.
- */
- if (tp->t_line == SLIPDISC)
- com->hotchar = 0xc0;
- else if (tp->t_line == PPPDISC)
- com->hotchar = 0x7e;
- else
- com->hotchar = 0;
+ com->hotchar = linesw[tp->t_line].l_hotchar;
#ifndef SOFT_HOTCHAR
iobase = com->iobase;
cd_outb(iobase, CD1400_CAR, com->cy_align, com->unit & CD1400_CAR_CHAN);
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index bb78e29..8661f3e 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.59 1997/12/28 06:23:03 bde Exp $
+ * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $
*/
#include "opt_compat.h"
@@ -2420,16 +2420,7 @@ disc_optim(tp, t, com)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
tp->t_state &= ~TS_CAN_BYPASS_L_RINT;
- /*
- * Prepare to reduce input latency for packet
- * discplines with a end of packet character.
- */
- if (tp->t_line == SLIPDISC)
- com->hotchar = 0xc0;
- else if (tp->t_line == PPPDISC)
- com->hotchar = 0x7e;
- else
- com->hotchar = 0;
+ com->hotchar = linesw[tp->t_line].l_hotchar;
#ifndef SOFT_HOTCHAR
iobase = com->iobase;
cd_outb(iobase, CD1400_CAR, com->cy_align, com->unit & CD1400_CAR_CHAN);
OpenPOWER on IntegriCloud