Netmos 9845 patch kernel 2.4.30
Hi
Support for some Netmos multi-io boards is in kernel 2.4.30, but not for the 9845 chip (4S/1P). Here is a simple patch to add support for this card. I have (not fully) tested all of the serial ports with this patch (currently only with an echo test > /dev/ttyS# on the machine with the card and minicom running on the other machine).
Please note that the patch was basically taken from the link provided at
http://www.ussg.iu.edu/hypermail/linux/kernel/0310.3/0813.html
pci_ids.h 2005-05-03 15:59:34.000000000 +0200 renamed from pci_ids.h.orig 2005-04-04 03:42:20.000000000 +0200 +1 -0
@@ -2055,6 +2055,7 @@ #define PCI_DEVICE_ID_NETMOS_9805 0x9805 #define PCI_DEVICE_ID_NETMOS_9815 0x9815 #define PCI_DEVICE_ID_NETMOS_9835 0x9835 +#define PCI_DEVICE_ID_NETMOS_9845 0x9845 #define PCI_DEVICE_ID_NETMOS_9855 0x9855 #define PCI_SUBVENDOR_ID_EXSYS 0xd84d
parport_serial.c 2005-05-03 16:05:33.000000000 +0200 renamed from parport_serial.c.orig 2004-08-08 01:26:04.000000000 +0200 +4 -0
@@ -34,6 +34,7 @@ titan_210l, netmos_9735, netmos_9835, + netmos_9845, avlab_1s1p, avlab_1s1p_650, avlab_1s1p_850,
@@ -74,6 +75,7 @@ /* titan_210l */ { 1, { { 3, -1 }, } }, /* netmos_9735 (not tested) */ { 1, { { 2, -1 }, } }, /* netmos_9835 */ { 1, { { 2, -1 }, } }, + /* netmos_9845 */ { 1, { { 4, -1 }, } }, /* avlab_1s1p */ { 1, { { 1, 2}, } }, /* avlab_1s1p_650 */ { 1, { { 1, 2}, } }, /* avlab_1s1p_850 */ { 1, { { 1, 2}, } },
@@ -100,6 +102,8 @@ PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9735 }, { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9835 }, + { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9845, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9845 }, /* PCI_VENDOR_ID_AVLAB/Intek21 has another bunch of cards ...*/ { 0x14db, 0x2110, PCI_ANY_ID, PCI_ANY_ID, 0, 0, avlab_1s1p}, { 0x14db, 0x2111, PCI_ANY_ID, PCI_ANY_ID, 0, 0, avlab_1s1p_650},
@@ -181,6 +185,7 @@ /* titan_210l */ { SPCI_FL_BASE1 | SPCI_FL_BASE_TABLE, 2,
921600 },
/* netmos_9735 (n/t)*/ { SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 2,
115200 },
/* netmos_9835 */ { SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 2,
115200 },
+/* netmos_9845 */ { SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 4,
115200 },
/* avlab_1s1p (n/t) */ { SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 1,
115200 },
/* avlab_1s1p_650 (nt)*/{ SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 1,
115200 },
/* avlab_1s1p_850 (nt)*/{ SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE, 1,
115200 },
Jacques