Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

puc card

From: Juan Vera <core.lists.openbsd-tech(at)core-sdi.com>
Date: Thu Nov 28 2002 - 18:13:16 EST


I'm trying to include puc(4) support
for a SUNIX 4018A card. It's a pci
card with 2 parallel ports. I changed
/sys/dev/pci/pucdata.c and pcidevs.h to include it and now one of the ports
seems to work (both lpt and lpa) fine,
this was included on pucdata.c:

        /* SUNIX Parallel Dual PCI: 2P */
        {   /* "SUNIX Parallel Dual PCI", */
            {   PCI_VENDOR_SUNIX, PCI_PRODUCT_SUNIX_7268, 0,      0       },
             {   0xffff, 0xffff,                         0,      0       },
            {

{ PUC_PORT_TYPE_LPT, 0x18, 0x00 },
{ PUC_PORT_TYPE_LPT, 0x20, 0x00 },
}, },

and on pcidevs.h:

#define PCI_VENDOR_SUNIX 0x1409 /* Sunix DUAL Parallel */

...

#define PCI_PRODUCT_SUNIX_7268 0x7268 /* I/O */

that above produces this on dmesg:

puc0 at pci0 dev 19 function 0 vendor 0x1409 product 0x7268 rev 0x01: lpt, lpt lpt0 at puc0 port 0: interrupting at irq 10 puc0: lpt port uses unmapped BAR (0x20)

changing 0x18 and 0x20 on pucdata.c produces some changes and from time to time (ie using 0x18 and 0x1c) the two ports appear listed both with the same 'interrupting at irq 10' that, I think, is the problem and then none allows printing.

Do you need help?X

I'm only guessing here, those changes where just copied from existing devices on pucdata and pcidevs.

I can't find how to get the real values to use there. Documentation included with the card speaks only about linux (available here:
http://www.sunix.com.tw/smio/product/pciio/parallel/4018a.htm) but I don't know how to check pci devs data in the same way that is presented on, say, /proc/pci on linux.

What should do I next?

thanks

  • for a personal reply use: Juan Vera <juan@mail.servers.core-sdi.com>
Received on Thu Nov 28 18:14:28 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:27 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library