From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 17:07:03 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 626251065675 for ; Thu, 11 Dec 2008 17:07:03 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7928FC14 for ; Thu, 11 Dec 2008 17:07:03 +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 sbansal-mbp.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KBQ00LKM27KW630@asmtp014.mac.com> for freebsd-current@FreeBSD.org; Thu, 11 Dec 2008 09:06:57 -0800 (PST) Message-id: From: Marcel Moolenaar To: Boris Samorodov In-reply-to: <94541668@bb.ipt.ru> Date: Thu, 11 Dec 2008 09:06:56 -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> 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: Thu, 11 Dec 2008 17:07:03 -0000 On Dec 11, 2008, at 6:36 AM, Boris Samorodov wrote: > Hello Eygene, Marcel and All, > > > I've found some DOS/Linux docs/programs at the producers's site > and unzipped them: > ftp://ftp.ipt.ru/pub/sunix/ > > > Eygene Ryabinkin writes: > >> Boris, could you please add the line >> ----- >> printf("%s: BAS, handle is 0x%lx, tag is 0x%x\n", __func__, >> (unsigned long)bas->bsh, (unsigned int)bas->bst); >> ----- >> to the beginning of ns8250_probe() and show the results. Good suggestion, Eygene! Summary: port 1: IO=0xec00; IIR=0x1, 0xc1; MCR=0x0, 0x8 port 2: IO=0xec08; IIR=0x1, 0xc1; MCR=0x0, 0x8 port 3: IO=0xe880; IIR=0x1; MCR=0x40 port 4: IO=0xe888; IIR=0x1; MCR=0x40 port 5: IO=0xe800; IIR=0x1; MCR=0x40 port 6: IO=0xe480; IIR=0x1; MCR=0x40 port 7: IO=0xe400; IIR=0x1; MCR=0x40 port 8: IO=0xe080; IIR=0x1; MCR=0x40 For ports 3-8, the MCR has a value that's not liked by uart(4). I think we need to know what that value means. Are the ports disabled? Are they in a non-standard mode? Is it just a non-standard status bit that's set and we should ignore it? etc... Boris: can you apply the following patch and see if uart(4) attaches to all ports? If yes, can you see if those ports actually work as well? Index: uart_dev_ns8250.c =================================================================== --- uart_dev_ns8250.c (revision 185784) +++ uart_dev_ns8250.c (working copy) @@ -241,7 +241,7 @@ if (val & 0x30) return (ENXIO); val = uart_getreg(bas, REG_MCR); - if (val & 0xe0) + if (val & 0xa0) return (ENXIO); return (0); Thanks. -- Marcel Moolenaar xcllnt@mac.com