mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jacques Basson <jacques_basson@myrealbox.com>
To: linux-kernel@vger.kernel.org
Subject: Netmos 9845 patch kernel 2.4.30
Date: Tue, 03 May 2005 16:17:30 +0200	[thread overview]
Message-ID: <1115129850.4908.5.camel@lancelot.advanced-imaging-technologies> (raw)

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

diff -Naur pci_ids.h.orig pci_ids.h
--- pci_ids.h.orig      2005-04-04 03:42:20.000000000 +0200
+++ pci_ids.h   2005-05-03 15:59:34.000000000 +0200
@@ -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

diff -Naur parport_serial.c.orig parport_serial.c
--- parport_serial.c.orig       2004-08-08 01:26:04.000000000 +0200
+++ parport_serial.c    2005-05-03 16:05:33.000000000 +0200
@@ -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


                 reply	other threads:[~2005-05-03 14:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1115129850.4908.5.camel@lancelot.advanced-imaging-technologies \
    --to=jacques_basson@myrealbox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®