Serial console changes:

* Enable FIFO with trigger level 1.
* Set DTR and RTS so terminals are happy.
* Do not set IEN.
This commit is contained in:
mycroft 1996-10-06 01:42:45 +00:00
parent 67cd067f25
commit 6ea58d5fae
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dca.c,v 1.25 1996/09/02 06:43:45 mycroft Exp $ */
/* $NetBSD: dca.c,v 1.26 1996/10/06 01:42:45 mycroft Exp $ */
/*
* Copyright (c) 1995, 1996 Jason R. Thorpe. All rights reserved.
@ -871,8 +871,9 @@ dcainit(dca, rate)
dca->dca_ier = rate >> 8;
dca->dca_cfcr = CFCR_8BITS;
dca->dca_ier = IER_ERXRDY | IER_ETXRDY;
dca->dca_fifo = FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_14;
dca->dca_mcr |= MCR_IEN;
dca->dca_fifo =
FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1;
dca->dca_mcr = MCR_DTR | MCR_RTS;
DELAY(100);
stat = dca->dca_iir;
splx(s);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dca.c,v 1.9 1996/02/26 21:51:25 thorpej Exp $ */
/* $NetBSD: dca.c,v 1.10 1996/10/06 01:42:48 mycroft Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -104,6 +104,9 @@ dcainit(cp)
dca->dca_data = DCABRD(9600) & 0xFF;
dca->dca_ier = DCABRD(9600) >> 8;
dca->dca_cfcr = CFCR_8BITS;
dca->dca_fifo =
FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1;
dca->dca_mcr = MCR_DTR | MCR_RTS;
}
/* ARGSUSED */