mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matt C <wago@phlinux.com>
To: tytso@mit.edu,
	The Linux Kernel Mailing List  <linux-kernel@vger.kernel.org>,
	<marcelo@conectiva.com.br>
Subject: [PATCH] [2.4] [Trivial] (re)add support for comtrol rocketport 4J
Date: Sun, 10 Aug 2003 15:51:53 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0308101547180.8918-200000@fubar.phlinux.com> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 270 bytes --]

Hi Theodore, LKML:

I'm not quite sure this stopped working (worked under 2.4.19), but this 
patch adds support for the Comtrol Rocketport 4J 4-port rs232 PCI card. 
I've tested under 2.4.21, and verified that the support is still missing 
in 2.4.22-rc2.

thanks

-matt

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1696 bytes --]

--- linux-2.4.22-rc2/drivers/char/rocket.c	2001-09-21 10:55:22.000000000 -0700
+++ linux-2.4.21g1/drivers/char/rocket.c	2003-08-10 15:27:26.000000000 -0700
@@ -1944,6 +1944,10 @@
 		str = "8J";
 		max_num_aiops = 1;
 		break;
+	case PCI_DEVICE_ID_RP4J:
+		str = "4J";
+		max_num_aiops = 1;
+		break;
 	case PCI_DEVICE_ID_RP16INTF:
 		str = "16";
 		max_num_aiops = 2;
@@ -2006,6 +2010,10 @@
 			PCI_DEVICE_ID_RP8J, i, &bus, &device_fn)) 
 			if (register_PCI(count+boards_found, bus, device_fn))
 				count++;
+		if (!pcibios_find_device(PCI_VENDOR_ID_RP,
+			PCI_DEVICE_ID_RP4J, i, &bus, &device_fn)) 
+			if (register_PCI(count+boards_found, bus, device_fn))
+				count++;
 		if(!pcibios_find_device(PCI_VENDOR_ID_RP,
 			PCI_DEVICE_ID_RP8OCTA, i, &bus, &device_fn)) 
 			if(register_PCI(count+boards_found, bus, device_fn))
@@ -2031,6 +2039,10 @@
 			if(register_PCI(count+boards_found, bus, device_fn))
 				count++;
 		if(!pcibios_find_device(PCI_VENDOR_ID_RP,
+			PCI_DEVICE_ID_RP4J, i, &bus, &device_fn)) 
+			if(register_PCI(count+boards_found, bus, device_fn))
+				count++;
+		if(!pcibios_find_device(PCI_VENDOR_ID_RP,
 			PCI_DEVICE_ID_RPP4, i, &bus, &device_fn)) 
 			if(register_PCI(count+boards_found, bus, device_fn))
 				count++;
--- linux-2.4.22-rc2/drivers/char/rocket_int.h	2003-08-10 15:35:13.000000000 -0700
+++ linux-2.4.21g1/drivers/char/rocket_int.h	2003-08-10 15:27:31.000000000 -0700
@@ -1200,6 +1199,9 @@
 #ifndef PCI_DEVICE_ID_RP8J
 #define PCI_DEVICE_ID_RP8J		0x0006
 #endif
+#ifndef PCI_DEVICE_ID_RP4J
+#define PCI_DEVICE_ID_RP4J		0x0007
+#endif
 #ifndef PCI_DEVICE_ID_RPP4
 #define PCI_DEVICE_ID_RPP4		0x000A
 #endif

                 reply	other threads:[~2003-08-10 22:51 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=Pine.LNX.4.44.0308101547180.8918-200000@fubar.phlinux.com \
    --to=wago@phlinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=tytso@mit.edu \
    /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®