Subject: Re: dial in on NetBSD-current
To: Yeng-Chee Su <yenchee@Zeus.csie.nctu.edu.tw>
From: None <Mark_Weaver@brown.edu>
List: current-users
Date: 02/28/1994 13:51:46
> I would like to set up a dial-in port on NetBSD/current. The DTE would be
> locked at 57600, N-8-1. I try to change the CFLAGS to ((CS8 | HUPCL) &
> ~PARENB) in ttydefaults.h and recompile gettytab. Then I use std.57600 for
> tty table. After kill -HUP 1, I can see the TxD/RxD flash madly although
> the line is on-hook. Doesn't it wait carrier detection? What's wrong with
> com driver?
Try the following patch. Unfortunately, it means that you need a
carrier in order to dial out, but it should fix your problem in the
meantime.
Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
diff -u src/sys/arch/i386/isa/com.c.mhw1 src/sys/arch/i386/isa/com.c
--- src/sys/arch/i386/isa/com.c.mhw1 Thu Feb 10 06:13:52 1994
+++ src/sys/arch/i386/isa/com.c Fri Feb 25 15:32:26 1994
@@ -142,7 +142,7 @@
DELAY(1000);
com_addr[unit] = port;
com_active |= 1 << unit;
- comsoftCAR |= 1 << unit; /* XXX */
+/* comsoftCAR |= 1 << unit; /* XXX */
/* look for a NS 16550AF UART with FIFOs */
outb(port+com_fifo, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4);
@@ -481,7 +481,7 @@
tp->t_cflag = cflag;
com = com_addr[unit];
- outb(com+com_ier, IER_ERXRDY | IER_ETXRDY | IER_ERLS /*| IER_EMSC*/);
+ outb(com+com_ier, IER_ERXRDY | IER_ETXRDY | IER_ERLS | IER_EMSC);
if (ospeed == 0) {
(void) commctl(unit, 0, DMSET); /* hang up line */
return(0);
------------------------------------------------------------------------------