Subject: Patch To Fix NetBSD pc532 parities.
To: None <phil@cs.wwu.edu>
From: Julian Howard Stacey <Julian.Howard.Stacey@regent.e-technik.tu-muenchen.de>
List: port-pc532
Date: 07/12/1994 01:42:03
This posting is exclusively concerned with NetBSD-pc532,
it has also been copied to pc532@bungi.com for:
1) folk (like Stuart ;-) that have not yet subscribed
to port-pc532@sun-lamp.cs.berkeley.edu via majordome@sun-lamp...
2) minix/mach folk who are keeping an eye on NetBSD,
waiting to migrate :-)
=====
Following up to my last posting:
> Last problem - Parity & Stop bits (again ;-) :
> but this weird parity & stop bit stuff:
> Monitor 8 None 1
> Nu Kern before login 7 Odd 2
> Nu Kern after login 7 None 2
> Nu Kern after login + script 7 Odd 2
>is a nuisance, so I found:
I found how to defeat the above horror :-) My temporary cludge is this:
---
*** old/src/sys/arch/pc532/dev/scn.c Mon Jul 11 14:15:32 1994
--- new/src/sys/arch/pc532/dev/scn.c Mon Jul 11 23:53:20 1994
***************
*** 177,182 ****
--- 177,187 ----
int out_code;
int x;
+ #ifdef SURFER
+ data_bits = LC_BITS8 ;
+ parity = LC_NONE ;
+ stop_bits = LC_STOP1 ;
+ #endif
/* Get the speed codes. */
getspeedcode(in_speed,in_code);
getspeedcode(out_speed,out_code);
---
+ ident SURFER in sys/arch/pc532/conf/`hostname`
I freely admit this is a filthy cludge, but It Works !
Oh the pleasure & relief of being able to compile
my own custom kernel at last :-) :-)
I've not done this for the pc532 in years, since minix,
(I don't think I ever did with Mach,)
Now the stop bit bogey has been brutally shoved aside,
kermit to my main i486-freebsd works :-),
thus eliminating my need for the complex seyon, & restoring my file transfer
ability (no tape yet).
At a line rate of 38K4, kermit seemed to shift ~22K/sec, that's OK.
One happy hacker :-)
--
Julian Stacey <stacey@freefall.cdrom.com>
Alternates: <julian@pcsbst.pcs.com>,<jhs@regent.e-technik.tu-muenchen.de>
Tel. +49 89 268616 TZ=GMT+1 Munich, Germany
------------------------------------------------------------------------------