Subject: Re: serial port access hangs ** FIX **
To: Colin Wood <cwood@ichips.intel.com>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 12/16/1997 18:07:18
> I assume you've probably already realized this, but....what patch? ;-)
Doh!
This one!
Take care,
Bill
*** /sys/arch/mac68k/dev/zs.c Mon Dec 15 14:05:26 1997
--- zs.c Tue Dec 16 09:52:36 1997
***************
*** 1,4 ****
! /* $NetBSD: zs.c,v 1.15.2.1 1997/11/04 23:04:35 mellon Exp $ */
/*
* Copyright (c) 1996 Bill Studenmund
--- 1,4 ----
! /* $NetBSD: zs.c,v 1.18 1997/12/16 17:53:12 wrstuden Exp $ */
/*
* Copyright (c) 1996 Bill Studenmund
***************
*** 300,305 ****
--- 300,312 ----
cs->cs_brg_clk = ZS_STD_BRG; /* RTxC is 230400*16, so use 230400 */
cs->cs_defspeed = zs_defspeed[zsc_unit][channel];
cs->cs_defcflag = zs_def_cflag;
+
+ /* Make these correspond to cs_defcflag (-crtscts) */
+ cs->cs_rr0_dcd = ZSRR0_DCD;
+ cs->cs_rr0_cts = 0;
+ cs->cs_wr5_dtr = ZSWR5_DTR;
+ cs->cs_wr5_rts = 0;
+
#ifdef __notyet__
cs->cs_slave_type = ZS_SLAVE_NONE;
#endif
***************
*** 1102,1107 ****
--- 1109,1116 ----
/* If we time out, turn off the abort ability! */
}
+ #ifdef DDB
Debugger();
+ #endif
}