Skip to contentSkip to conversation

Support for Netmos 6 port 16550a serial card

PATCH root 1 participant 1 message Sep 11, 2003

Subsystems (2)
lore
Share & tools
lore

root

author
#0 lore raw

Follows a trivial patch to add support of a popular serial card in Brazil that contains 6 standard 16550A uarts with a Netmos PCI glue. Only adds the apropriate entries to the proper pci and serial ids. Please apply.

drivers/char/serial.c +7 -0
diff -urN linux-2.4.22/drivers/char/serial.c linux-2.4.22/drivers/char/serial.c
@@ -4370,6 +4370,8 @@
 	pbn_computone_4,
 	pbn_computone_6,
 	pbn_computone_8,
+
+	netmos_9845
 };
 
 static struct pci_board pci_boards[] __devinitdata = {
@@ -4478,6 +4480,7 @@
 		0x40, 2, NULL, 0x200 },
 	{ SPCI_FL_BASE0, 8, 921600, /* IOMEM */		   /* pbn_computone_8 */
 		0x40, 2, NULL, 0x200 },
+	{ SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 6, 115200 },			   /* netmos_9845 */
 };
 
 /*
@@ -4921,6 +4924,10 @@
 		PCI_ANY_ID, PCI_ANY_ID, 0, 0,
 		pbn_dci_pccom8 },
 
+	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9845,
+		PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9845
+		},
+
        { 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,
drivers/pci/pci.ids +1 -0
diff -urN linux-2.4.22/drivers/pci/pci.ids linux-2.4.22/drivers/pci/pci.ids
@@ -7217,6 +7217,7 @@
 9710  NetMos Technology
 	9815  VScom 021H-EP2 2 port parallel adaptor
 	9835  222N-2 I/O Card (2S+1P)
+	9845  6 port 16550a serial card
 a0a0  AOPEN Inc.
 a0f1  UNISYS Corporation
 a200  NEC Corporation