Unix Technical Forum

puc(4) addition for Commell MP-954GPS

This is a discussion on puc(4) addition for Commell MP-954GPS within the mailing.openbsd.tech forums, part of the OpenBSD category; --> This is for a Commell mini PCI card, with two com ports on a header and a GPS module ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:33 AM
Stuart Henderson
 
Posts: n/a
Default puc(4) addition for Commell MP-954GPS

This is for a Commell mini PCI card, with two com ports on a
header and a GPS module wired to one of the other ports on the
OXmPCI954.

The 954GPS device presents two IDs:

0x950c - not listed in the data sheet http://www.softio.com/oxmpci954ds.pdf
this has the 3 com ports. Verified against Windows inf which calls it "triple
com port".

0x9510 - listed as 'disabled' in the data sheet; the Windows inf
just calls it 'PCI Function' and doesn't appear to attach it so I've
done something similar, I'm not sure if that's the correct approach.

(They also have a similar MP-954, with no GPS and 4 com ports.
I don't have one to tell which IDs but, since they provide one
Windows driver for both cards, it's unlikely to be 0x950c.
Probably 9501 or 9504 as the mpci954 is meant to be compatible).

With this diff, the following dmesg lines result.

puc0 at pci0 dev 17 function 0 "Oxford OXmPCI954" rev 0x00: ports: 3 com
pccom2 at puc0 port 0 irq 11: st16650, 32 byte fifo
pccom3 at puc0 port 1 irq 11: st16650, 32 byte fifo
pccom4 at puc0 port 2 irq 11: st16650, 32 byte fifo
"Oxford OXmPCI954 Disabled" rev 0x00 at pci0 dev 17 function 1 not configured

Tested on armish and i386, all ports work ok. e.g.
hw.sensors.nmea0.timedelta0=-0.265651 secs (GPS), OK, Thu Oct 11 14:50:02.734

Index: sys/dev/pci/pcidevs
================================================== =================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1270
diff -u -p -r1.1270 pcidevs
--- sys/dev/pci/pcidevs 8 Oct 2007 09:20:57 -0000 1.1270
+++ sys/dev/pci/pcidevs 11 Oct 2007 14:31:13 -0000
@@ -3279,6 +3279,8 @@ product OXFORD2 OX16PCI954 0x9501 OX16PC
product OXFORD2 OX16PCI954K 0x9504 OX16PCI954K
product OXFORD2 EXSYS_EX41092 0x950a Exsys EX-41092
product OXFORD2 OXCB950 0x950b OXCB950
+product OXFORD2 OXmPCI954 0x950c OXmPCI954
+product OXFORD2 OXmPCI954D 0x9510 OXmPCI954 Disabled
product OXFORD2 EXSYS_EX41098 0x9511 Exsys EX-41098
product OXFORD2 OX16PCI954P 0x9513 OX16PCI954 Parallel
product OXFORD2 OX16PCI952 0x9521 OX16PCI952
Index: sys/dev/pci/pucdata.c
================================================== =================
RCS file: /cvs/src/sys/dev/pci/pucdata.c,v
retrieving revision 1.48
diff -u -p -r1.48 pucdata.c
--- sys/dev/pci/pucdata.c 8 Jun 2007 12:44:41 -0000 1.48
+++ sys/dev/pci/pucdata.c 11 Oct 2007 14:29:49 -0000
@@ -858,6 +858,17 @@ const struct puc_device_description puc_
},
},

+ /* Commell MP-954GPS, GPS and 2 COM */
+ { /* "Oxford Semiconductor OX16mPCI954 UARTs", */
+ { PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OXmPCI954, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ*4 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ*4 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ*4 },
+ },
+ },
+
/* Oxford Semiconductor OX16PCI954K PCI UARTs */
{ /* "Oxford Semiconductor OX16PCI954K UARTs", */
{ PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCI954K, 0, 0 },
Index: share/man/man4/puc.4
================================================== =================
RCS file: /cvs/src/share/man/man4/puc.4,v
retrieving revision 1.37
diff -u -p -r1.37 puc.4
--- share/man/man4/puc.4 8 Jun 2007 12:44:41 -0000 1.37
+++ share/man/man4/puc.4 11 Oct 2007 14:53:31 -0000
@@ -66,6 +66,7 @@ The driver currently supports the follow
.It Tn "Avlab PCI 2S (2 port serial)"
.It Tn "Boca Research Turbo Serial 654 (4 port serial)"
.It Tn "Boca Research Turbo Serial 658 (8 port serial)"
+.It Tn "Commell MP-954GPS Mini PCI (2 port serial and GPS)"
.It Tn "Decision Computer Inc PCCOM PCI 2 Port (2 port serial)"
.It Tn "Decision Computer Inc PCCOM PCI 4 Port (4 port serial)"
.It Tn "Decision Computer Inc PCCOM PCI 8 Port (8 port serial)"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com