Subject: Re: [q] Speed of modem port
To: None <wrstuden@loki.stanford.edu>
From: Shunsuke Masuda <mi-nami@mahoroba.or.jp>
List: port-mac68k
Date: 12/05/1997 17:39:57
Hello,

From: wrstuden@loki.stanford.edu (Bill Studenmund)
Subject: Re: [q] Speed of modem port
Date: Thu, 4 Dec 1997 10:58:55 -0800 (PST)

> xcs->cs_clocks[0].flags = ZSC_RTXBRG;
> 
> change it to:
> 
> xcs->cs_clocks[0].flags = ZSC_RTXBRG | ZSC_RTXDIV;

Following your instruction and recompiling a kernel,I told 
Booter1.11.0 to set the speed of modem port to 230400,
dmesg said,
>zsc0 channel 0: d_speed 9600 DCD clk 0 CTS clk 0
>zstty0 at zsc0 channel 0
>zsc0 channel 1: d_speed 9600 DCD clk 0 CTS clk 0
>zstty1 at zsc0 channel 1

I thought this happened because function "zs_cn_check_speed" returns 0
when "mac68k_machine.modem_d_speed" which Booter setenvs as 
SERIAL_MODEM_DSPEED is 230400.

So I changed "zs_defspeed" to 230400,recompiled with ZSMACDEBUG,
then
>zsc0 channel 0: d_speed 230400 DCD clk 0 CTS clk 0
>zstty0 at zsc0 channel 0
>zsc0 channel 1: d_speed 230400 DCD clk 0 CTS clk 0
>zstty1 at zsc0 channel 1
.....(snip).....
>Checking for rate 230400. Found source #0.
>Rate is  230400, tc is   65535, source no.  0, flags    4
>Registers are: 4 40, 11 0, 14 0
>
>Checking for rate 230400. Found source #0.
>Rate is  230400, tc is   65535, source no.  0, flags    4
>Registers are: 4 40, 11 0, 14 0

I'm not sure if it is working, and am afraid of my misunderstanding.


Shunsuke Masuda