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: <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;

Thats it. It works with your patch

dmesg:
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
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: <Non-standard ns8250 class UART with FIFOs> on puc0
uart0: [FILTER]
uart0: fast interrupt
uart1: <Non-standard ns8250 class UART with FIFOs> on puc0
uart1: [FILTER]
uart1: fast interrupt
uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
uart2: [FILTER]
uart2: fast interrupt
uart3: <Non-standard ns8250 class UART with FIFOs> on puc0
uart3: [FILTER]
uart3: fast interrupt
uart4: <Non-standard ns8250 class UART with FIFOs> on puc0
uart4: [FILTER]
uart4: fast interrupt
uart5: <Non-standard ns8250 class UART with FIFOs> on puc0
uart5: [FILTER]
uart5: fast interrupt
uart6: <Non-standard ns8250 class UART with FIFOs> on puc0
uart6: [FILTER]
uart6: fast interrupt
uart7: <Non-standard ns8250 class UART with FIFOs> on puc0
uart7: [FILTER]
uart7: fast interrupt

Thank you,
Thomas

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to