>From: Tim Waugh <twaugh@redhat.com>
>On Fri, Dec 15, 2000 at 02:21:25PM +0100, Gaspar Bakos wrote:
>> The current setup uses an ISA bus card with two extra parallel ports (one
>> for the telescope irq7, 0x378, another for the dome/building 0x278)
>> I will have to upgrade to PCI. Could anyone tell me which PCI cards are
>> supported and by what kernel modules/programs?
>The authoritative answer comes from linux/drivers/misc/parport_pc.c:
>it lists the PCI vendor and device IDs for all supported cards.
From pci.ids from pciutils-2.1.8, it looks like it might
be possible to match all parallel PCI cards by class:
C 07 Communication controller
[...]
01 Parallel controller
00 SPP
01 BiDir
02 ECP
03 IEEE1284
fe IEEE1284 Target
So, I wonder if that pci_device_id declarations in
parport_pc.c could be replaced with something like:
static struct pci_device_id parport_pc_pci_tbl[] __devinitdata = {
{
class: PCI_CLASS_COMMUNICATION_PARALLEL << 8,
class_mask: 0xFFFFFC, /* lower 2 bits can be 0, 1, 2 or 3. */
},
{ } /* Terminating entry */
};
I believe that, in theory, that last byte of the PCI class
is supposed to identify the register-level interface, so the
drivers should be compatible, hopefully.
I have not tried this, and I do not know if all of the
currently listed board export this PCI class (although I would
imagine that they would). If not, then the particular board
that did not export this class information would still have to be
included.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Tue Dec 19 2000 - 14:02:05 EST