Subject: sparc zs running higher than 38400 ?
To: None <port-sparc@NetBSD.ORG, torek@bsdi.com>
From: matthew green <mrg@splode.eterna.com.au>
List: port-sparc
Date: 04/09/1997 10:25:13
hi peoples.
last night i had a very good reason to talk to a modem at 76800bps
(it was hard wired at that speed), so, after a little bit of looking
and investigating, i made this change:
Index: zs.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/dev/zs.c,v
retrieving revision 1.45
diff -c -r1.45 zs.c
*** zs.c 1996/12/10 22:55:08 1.45
--- zs.c 1997/04/09 00:23:16
***************
*** 1384,1391 ****
--- 1384,1393 ----
return (0);
}
tmp = BPS_TO_TCONST(PCLK / 16, tmp);
+ #if 0
if (tmp < 2)
return (EINVAL);
+ #endif
cflag = t->c_cflag;
tp->t_ispeed = tp->t_ospeed = TCONST_TO_BPS(PCLK / 16, tmp);
which allowed me to run "cu -l /dev/ttyb -s 76800" and talk to the
modem. it seemed to work Just Fine. (i had to hack kermit to know
that NetBSD can talk at 76800 -- but that's another problem :-)
chris, is that test from your code, and if so, what was it's purpose ?
if it wasn't, does anyone know it's purpose ?
thanks,
.mrg.