Timedia 8 port serial pci card problem
Marcel Moolenaar
xcllnt at mac.com
Fri May 16 10:53:27 UTC 2008
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 at mac.com
More information about the freebsd-stable
mailing list