Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 2009 15:42:44 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        "P. Moulin" <spamarchive@calyopea.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Freebsd 8rc1 & Puc driver
Message-ID:  <86839483@ipt.ru>
In-Reply-To: <4AE35DE8.2030607@calyopea.com> (P. Moulin's message of "Sat\, 24 Oct 2009 22\:04\:56 %2B0200")
References:  <4AE35DE8.2030607@calyopea.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"P. Moulin" <spamarchive@calyopea.com> writes:

> I have a multi-serial card with an Oxford OX16PCI954 on it.
> Whatever I do, the oxford chip is not recognized.

How many serial ports does it have?

> in dmesg:
> pci0: <simple comms, UART> at device 12.0 (no driver attached)
>
> and in pciconf -lv :
> none1@pci0:0:12:0:      class=0x070006 card=0x00000000 chip=0x950c1415
> rev=0x00
> hdr=0x00
>     vendor     = 'Oxford Semiconductor Ltd'
>     class      = simple comms
>     subclass   = UART

Sometimes just adding a definition of the chip may help. Let's try it
(assuming that the card has four serial ports):
-----
--- sys/dev/puc/pucdata.c.orig	2009-10-25 15:23:41.000000000 +0300
+++ sys/dev/puc/pucdata.c	2009-10-25 15:29:32.000000000 +0300
@@ -643,6 +643,12 @@
 	    PUC_PORT_4S, 0x10, 0, 8,
 	},
 
+	{   0x1415, 0x950c, 0xffff, 0,
+	    "Oxford Semiconductor OX16PCI954 UARTs",
+	    DEFAULT_RCLK,
+	    PUC_PORT_4S, 0x10, 0, 8,
+	},
+
 	{   0x1415, 0x9511, 0xffff, 0,
 	    "Oxford Semiconductor OX9160/OX16PCI954 UARTs (function 1)",
 	    DEFAULT_RCLK,
-----

> none2@pci0:0:12:1:      class=0x068000 card=0x00000000 chip=0x95101415
> rev=0x00
> hdr=0x00
>     vendor     = 'Oxford Semiconductor Ltd'
>     device     = 'PCI Interface (disabled) (OX16PCI954)'
>     class      = bridge

Is it the same card?

> Can somebody tell me why the second PCI interface is flagged
> "disabled" ? How can I solve this ?
>
> (I have loaded puc from loader.conf, without more success).

Both kernel modules (uart and puc) should be compiled in kernel
or loaded as modules. And I don't use kernel module sio for a long
time. Since uart and sio use the same hardware they shouldn't be
used simultaneously. I used to have lines at my kernel:
-----
nodevice sio
device uart
device puc
-----

> PS: (un)works the same way with freebsd 7.2 & 8.0rc1....

-- 
WBR, bsam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86839483>