Date: Fri, 16 May 2008 03:53:24 -0700 From: Marcel Moolenaar <xcllnt@mac.com> To: Thomas Vogt <freebsdlists@bsdunix.ch> Cc: freebsd-stable@freebsd.org Subject: Re: Timedia 8 port serial pci card problem Message-ID: <7C738CA6-9F66-44B4-A1AF-9CC3F80DB6BC@mac.com> In-Reply-To: <65DED12A-0263-4281-ADAC-CBF2A7857D5E@bsdunix.ch> References: <65DED12A-0263-4281-ADAC-CBF2A7857D5E@bsdunix.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 16, 2008, at 1:17 AM, Thomas Vogt wrote: > FreeBSD detects it with: "puc0: <Timedia technology 8 Port Serial> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7C738CA6-9F66-44B4-A1AF-9CC3F80DB6BC>