Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2008 09:33:27 -0800
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        freebsd-current@FreeBSD.org, rea-fbsd@codelabs.ru
Subject:   Re: Timeda 8-multiport adapter: only 2 ports available
Message-ID:  <5504F326-A933-4850-985D-51E10ECFDA54@mac.com>
In-Reply-To: <92739012@bb.ipt.ru>
References:  <92804393@bb.ipt.ru> <26722819@bb.ipt.ru> <dgryeQY4GEVsW/%2Bo7hiHda0rsyw@Nv45r0f9gWT8HCu35qu0Xm2Zg98> <26719629@bb.ipt.ru> <19F75E66-0535-4982-9726-E2C0A03117EA@mac.com> <u86IhinAe98poBxKoJlfe3b/pNw@TT2a40bhZF2dUby2PPEihZ1bSVY> <94541668@bb.ipt.ru> <BE3580EA-BACC-4FF3-9683-CCDE48858D96@mac.com> <48144979@bb.ipt.ru> <548CF0A3-1B07-49DA-A177-6EA85FD8CF2F@mac.com> <94539778@bb.ipt.ru> <9939E942-A2FC-4240-BC14-527D45C187B7@mac.com> <94529078@bb.ipt.ru> <6581F3A3-63D4-4689-AAAB-951E9DDDD62C@mac.com> <92739012@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On Dec 15, 2008, at 7:58 AM, Boris Samorodov wrote:

> Marcel Moolenaar <xcllnt@mac.com> writes:
>> On Dec 13, 2008, at 5:36 AM, Boris Samorodov wrote:
>>
>>> That's for the line [*]:
>>> -----
>>> --- pucdata.c   (revision 185784)
>>> +++ pucdata.c   (working copy)
>>> @@ -1145,6 +1145,10 @@
>>>       case PUC_CFG_GET_TYPE:
>>>               *res = PUC_TYPE_SERIAL;
>>>               return (0);
>>> +       case PUC_CFG_INIT_PORT:
>>> +               bus_write_1((struct res *)res, 1 /* IER */,   [*]
>>> +                   (port >= 2) ? 0x10 : 0);
>>> +               return (0);
>>>       default:
>>>               break;
>>>       }
>>
>> Argh, (struct res *) must be (struct resource *)...
>
> No go. The same, ports are detected but show garbadge.

One last thing that we could try. If the rclk for the
upper 6 ports is wrong, then the baudrate will not be
as programmed. For all ports we now have an rclk that's
8 times the default (i.e. RCLK*8). See if the baudrate
is 8 times slower than what you specified.

i.e. If you specified a baudrate of 115200, see if you
need to program the other side for 14400. You may want
to pick a baudrate that's yields a more standard rate
when divided by 8.

If this works, then the upper 6 port have a standard
RCLK.

More tricky, but worth to try is RCLK*10. Since we
calculate based on RCLK*8, the baudrate will be 10/8
of what you expect. Specify a baudrate of 92160 to
get 115200 (pick numbers that'll work).

FYI,

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5504F326-A933-4850-985D-51E10ECFDA54>