From owner-freebsd-current@FreeBSD.ORG Tue Dec 23 15:31:40 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 7B1E91065673 for ; Tue, 23 Dec 2008 15:31:40 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (mail.inse.ru [144.206.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 310818FC14 for ; Tue, 23 Dec 2008 15:31:40 +0000 (UTC) (envelope-from rik@inse.ru) Received: from [127.0.0.1] (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTPSA id 245E933C73; Tue, 23 Dec 2008 18:11:41 +0300 (MSK) Message-ID: <4950FFAD.3050107@inse.ru> Date: Tue, 23 Dec 2008 18:11:41 +0300 From: Roman Kurakin User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Boris Samorodov 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> In-Reply-To: <92739012@bb.ipt.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Marcel Moolenaar , 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: Tue, 23 Dec 2008 15:31:40 -0000 Boris Samorodov writes: > 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. > This is just cause the 0x10 is only here. IMHO it should be in all places where we write IER. But in the uart code the value of IER is filtered with 0xf0. Next time I'll come to you with hardware loopbacks and I'll try to find the patch for speed outodetection to check if baud rate is the only problem. I hope 0x10 just change baud factor and it is linear factor ;-) rik > Thank you for your efforts. > > > WBR >