From owner-freebsd-stable@FreeBSD.ORG Fri May 16 13:36:27 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADD071065675 for ; Fri, 16 May 2008 13:36:27 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id 68EB08FC39 for ; Fri, 16 May 2008 13:36:27 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from localhost (localhost.bsdunix.ch [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id 733265DBF; Fri, 16 May 2008 15:36:26 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by localhost (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C0fhvpYjEyb3; Fri, 16 May 2008 15:36:26 +0200 (CEST) Received: from 192.168.1.105.local.home (3.noc.solnet.ch [212.101.0.3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTP id E0DEF5D45; Fri, 16 May 2008 15:36:25 +0200 (CEST) Message-Id: <81B25D8A-5EE6-4C18-A170-15ADACA8B3C7@bsdunix.ch> From: Thomas Vogt To: Marcel Moolenaar In-Reply-To: <7C738CA6-9F66-44B4-A1AF-9CC3F80DB6BC@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Fri, 16 May 2008 15:36:25 +0200 References: <65DED12A-0263-4281-ADAC-CBF2A7857D5E@bsdunix.ch> <7C738CA6-9F66-44B4-A1AF-9CC3F80DB6BC@mac.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-stable@freebsd.org Subject: Re: Timedia 8 port serial pci card problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 13:36:27 -0000 Hi Marcel Am 16.05.2008 um 12:53 schrieb Marcel Moolenaar: > > On May 16, 2008, at 1:17 AM, Thomas Vogt wrote: > >> FreeBSD detects it with: "puc0: >> port 0xe500-0xe51f,0xe520-0xe52f,0xe530-0xe537,0xe538-0xe53f, >> 0xe540-0xe547,0xe548-0xe54f irq 10 at device 14.0 on pci0" . But it >> only adds 3 uart ports instead of 8. Any idea what i can do? > > Can you try the following (white-space corrupted) patch: > > Index: pucdata.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/puc/pucdata.c,v > retrieving revision 1.59.2.1 > diff -u -r1.59.2.1 pucdata.c > --- pucdata.c 26 Feb 2008 09:33:57 -0000 1.59.2.1 > +++ pucdata.c 16 May 2008 10:48:25 -0000 > @@ -1116,7 +1116,7 @@ > *res = (port == 1 || port == 3) ? 8 : 0; > return (0); > case PUC_CFG_GET_RID: > - *res = 0x10 + ((port > 3) ? port - 2 : port >> 1); > + *res = 0x10 + ((port > 3) ? port - 2 : port >> 1) * 4; > return (0); > case PUC_CFG_GET_TYPE: > *res = PUC_TYPE_SERIAL; Thats it. It works with your patch dmesg: puc0: port 0xe500-0xe51f, 0xe520-0xe52f,0xe530-0xe537,0xe538-0xe53f,0xe540-0xe547,0xe548-0xe54f irq 10 at device 14.0 on pci0 puc0: Reserved 0x20 bytes for rid 0x10 type 4 at 0xe500 puc0: Reserved 0x10 bytes for rid 0x14 type 4 at 0xe520 puc0: Reserved 0x8 bytes for rid 0x18 type 4 at 0xe530 puc0: Reserved 0x8 bytes for rid 0x1c type 4 at 0xe538 puc0: Reserved 0x8 bytes for rid 0x20 type 4 at 0xe540 puc0: Reserved 0x8 bytes for rid 0x24 type 4 at 0xe548 puc0: [FILTER] uart0: on puc0 uart0: [FILTER] uart0: fast interrupt uart1: on puc0 uart1: [FILTER] uart1: fast interrupt uart2: on puc0 uart2: [FILTER] uart2: fast interrupt uart3: on puc0 uart3: [FILTER] uart3: fast interrupt uart4: on puc0 uart4: [FILTER] uart4: fast interrupt uart5: on puc0 uart5: [FILTER] uart5: fast interrupt uart6: on puc0 uart6: [FILTER] uart6: fast interrupt uart7: on puc0 uart7: [FILTER] uart7: fast interrupt Thank you, Thomas