Menu

#10 serial pci struct incomplete

open
nobody
None
5
2001-06-08
2001-06-08
dtyree
No

serial pci struct incomplete. Although this may be the
wrong forum to submit.

Structure is:
static struct pci_device_id serial_pci_tbl[] __devinitdata =
{
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_ANY_ID,
PCI_CLASS_COMMUNICATION_SERIAL <<
8, 0xffff00, },
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_ANY_ID,
PCI_CLASS_COMMUNICATION_MODEM <<
8, 0xffff00, },
{ 0, }
};

Structure should be (for multiport enabled configs):
static struct pci_device_id serial_pci_tbl[] __devinitdata =
{
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_ANY_ID,
PCI_CLASS_COMMUNICATION_SERIAL <<
8/**/, 0xffff00, },
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_ANY_ID,

PCI_CLASS_COMMUNICATION_MULTISERIAL <<
8/**/, 0xffff00, },
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_ANY_ID,
PCI_CLASS_COMMUNICATION_MODEM <<
8/**/, 0xffff00, },
{ 0, }
};

Discussion

MongoDB Logo MongoDB