Freebsd 8rc1 & Puc driver
Boris Samorodov
bsam at ipt.ru
Sun Oct 25 12:42:46 UTC 2009
"P. Moulin" <spamarchive at 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 at 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 at 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
More information about the freebsd-questions
mailing list