From owner-freebsd-stable@FreeBSD.ORG Fri May 16 10:53: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 460DC106566B for ; Fri, 16 May 2008 10:53:27 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.77]) by mx1.freebsd.org (Postfix) with ESMTP id 0ACBD8FC18 for ; Fri, 16 May 2008 10:53:27 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpin125.mac.com (smtpin125-bge351000 [10.150.68.125]) by smtpoutm.mac.com (Xserve/smtpout014/MantshX 4.0) with ESMTP id m4GArQkM022771 for ; Fri, 16 May 2008 03:53:26 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.2.70] ([24.114.252.230]) by smtpin125.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K0Y00G0RJL1YG30@smtpin125.mac.com> for freebsd-stable@freebsd.org; Fri, 16 May 2008 03:53:26 -0700 (PDT) Message-id: <7C738CA6-9F66-44B4-A1AF-9CC3F80DB6BC@mac.com> From: Marcel Moolenaar To: Thomas Vogt In-reply-to: <65DED12A-0263-4281-ADAC-CBF2A7857D5E@bsdunix.ch> Date: Fri, 16 May 2008 03:53:24 -0700 References: <65DED12A-0263-4281-ADAC-CBF2A7857D5E@bsdunix.ch> 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 10:53:27 -0000 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; -- Marcel Moolenaar xcllnt@mac.com