From owner-freebsd-current@FreeBSD.ORG Mon Dec 15 17:33:34 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCC391065675 for ; Mon, 15 Dec 2008 17:33:34 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id C248F8FC1A for ; Mon, 15 Dec 2008 17:33:34 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from acheng-t60.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KBX00E58I3UN830@asmtp017.mac.com> for freebsd-current@FreeBSD.org; Mon, 15 Dec 2008 09:33:31 -0800 (PST) Message-id: <5504F326-A933-4850-985D-51E10ECFDA54@mac.com> From: Marcel Moolenaar To: Boris Samorodov In-reply-to: <92739012@bb.ipt.ru> Date: Mon, 15 Dec 2008 09:33:27 -0800 References: <92804393@bb.ipt.ru> <26722819@bb.ipt.ru> <26719629@bb.ipt.ru> <19F75E66-0535-4982-9726-E2C0A03117EA@mac.com> <94541668@bb.ipt.ru> <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> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-current@FreeBSD.org, rea-fbsd@codelabs.ru Subject: Re: Timeda 8-multiport adapter: only 2 ports available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 17:33:34 -0000 On Dec 15, 2008, at 7:58 AM, Boris Samorodov wrote: > Marcel Moolenaar 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