NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Attempting to add support for RS-232 card



I am attempting to add support for an RS-232 card.

http://www.newegg.com/Product/Product.aspx?Item=N82E16815124082

"PCI two serial ports card with SystemBase Chipset SB16C1052PCI
 Easy Plug & installation automatically selects IRQ and I/O address
 Fully compliant with PCI Local Bus Specification Revision 2.3
 Supports PCI power management Supports PCI IRQ sharing
 feature, saves valuable resources for other add-on cards Compatible
 with industrial standard 16C550 UART On-chip"

Without the puc driver I get:
unknown vendor 0x14a1 product 0x4d02 (serial communications,
interface 0x02, revision 0xb0) at pci0 dev 5 function 0 not configured

Configured in the puc driver and added the following WAG to pucdata.c

{   "newegg Serial Dual PCI 16C650",            /* name */
 {   0x14a1, 0x4d02, 0,      0       },         /* rval[4] */
 {   0xffff, 0xffff, 0,      0       },         /* rmask[4] */
 {
  { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, /* type, bar, offset, flags */
 },
},

(I'll worry about adding the 2nd port after I get the 1st port working.)

It will boot single user, but multiuser gives:

puc0 at pci0 dev 5 function 0: newegg Serial Dual PCI 16C650 (com)
com0 at puc0 port 0: interrupting at eb164 irq 2
com0: ns16550a, working fifo, sc->sc_fifolen == 16
[ ... ]
Setting tty flags.
com0: setting FIFO_TRIGGER_1

unexpected machine check:

    mces    = 0x1
    vector  = 0x660
    param   = 0xfffffc0000006068
    pc      = 0xfffffc000037d900
    ra      = 0xfffffc000037d8c4
    code    = 0x211
    curlwp = 0xfffffc000fa04b40
        pid = 157.1, comm = ttyflags

panic: machine check
syncing disks... 1 1 1 done

Google found what appears to be a linux driver for the card,
perhaps it contains a clue.

http://vbs.ddns.com.br:8000/drives/Drives/DRIVER%20LPT1/SystemBase/Linux/Linux_2.6/

I haven't found BSD support for the SB16C1052PCI, but there are
entries for the 16C650, so I'm hoping that getting this thing working
is just a matter of finding the right numbers to plug in?


Home | Main Index | Thread Index | Old Index