linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ patch 7/7] drivers/serial/jsm: new serial device driver
@ 2005-02-27 23:40 Wen Xiong
  2005-02-28  3:23 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Wen Xiong @ 2005-02-27 23:40 UTC (permalink / raw)
  To: linux-kernel, linux-serial

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

This patch includes drivers/serial/Kconfig, drivers/serial/Makefile, 
serial_core.h and Makefile for jsm device driver.

Signed-off-by: Wen Xiong <wendyx@us.ltcfwd.linux.ibm.com>

[-- Attachment #2: patch7.jasmine --]
[-- Type: text/plain, Size: 3445 bytes --]

diff -Nuar linux-2.6.9.orig/drivers/serial/Kconfig linux-2.6.9.new/drivers/serial/Kconfig
--- linux-2.6.9.orig/drivers/serial/Kconfig	2005-02-18 09:08:04.000000000 -0600
+++ linux-2.6.9.new/drivers/serial/Kconfig	2005-02-27 17:03:04.597029080 -0600
@@ -572,5 +572,20 @@
 
 	  This driver can also be built as a module.  If so, the module
 	  will be called icom.
+
+config SERIAL_JSM
+        tristate "Digi International NEO PCI Support"
+        select SERIAL_CORE
+        help
+          This is a driver for Digi International's Neo series
+          of cards which provide multiple serial ports. You would need
+          something like this to connect more than two modems to your Linux
+          box, for instance in order to become a dial-in server. This driver
+          supports PCI boards only.
+          If you have a card like this, say Y here and read the file
+          <file:Documentation/digidgnc.txt>.
+
+          To compile this driver as a module, choose M here: the
+          module will be called jsm.
 endmenu
 
diff -Nuar linux-2.6.9.orig/drivers/serial/Makefile linux-2.6.9.new/drivers/serial/Makefile
--- linux-2.6.9.orig/drivers/serial/Makefile	2005-02-18 09:08:10.000000000 -0600
+++ linux-2.6.9.new/drivers/serial/Makefile	2005-02-27 17:03:32.251950560 -0600
@@ -37,3 +37,4 @@
 obj-$(CONFIG_SERIAL_DZ) += dz.o
 obj-$(CONFIG_SERIAL_SH_SCI) += sh-sci.o
 obj-$(CONFIG_SERIAL_ICOM) += icom.o
+obj-$(CONFIG_SERIAL_JSM) += jsm/
diff -Nuar linux-2.6.9.orig/drivers/serial/jsm/Makefile linux-2.6.9.new/drivers/serial/jsm/Makefile
--- linux-2.6.9.orig/drivers/serial/jsm/Makefile	1969-12-31 18:00:00.000000000 -0600
+++ linux-2.6.9.new/drivers/serial/jsm/Makefile	2005-02-27 17:01:43.725941288 -0600
@@ -0,0 +1,36 @@
+##################################################################
+# Copyright 2003 Digi International (www.digi.com)
+# Scott H Kilau <Scott_Kilau at digi dot com>
+# 
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.  See the GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# 
+# 
+#       NOTE TO LINUX KERNEL HACKERS:  DO NOT REFORMAT THIS CODE!
+# 
+#       Send any bug fixes/changes to:  Eng.Linux at digi dot com.
+#       Thank you.
+# 
+# 
+##################################################################
+
+#
+# Makefile for Jasmine adapter
+#
+
+obj-$(CONFIG_SERIAL_JSM) += jsm.o
+
+jsm-objs :=    jsm_driver.o jsm_mgmt.o jsm_neo.o\
+               jsm_proc.o jsm_tty.o
+
diff -Nuar linux-2.6.9.orig/include/linux/serial_core.h linux-2.6.9.new/include/linux/serial_core.h
--- linux-2.6.9.orig/include/linux/serial_core.h	2005-02-18 09:31:07.000000000 -0600
+++ linux-2.6.9.new/include/linux/serial_core.h	2005-02-18 09:09:59.000000000 -0600
@@ -86,6 +86,9 @@
 /* IBM icom */
 #define PORT_ICOM	55
 
+/*Digi dgnc */
+#define PORT_JSM	56
+
 #ifdef __KERNEL__
 
 #include <linux/config.h>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ patch 7/7] drivers/serial/jsm: new serial device driver
  2005-02-27 23:40 [ patch 7/7] drivers/serial/jsm: new serial device driver Wen Xiong
@ 2005-02-28  3:23 ` Christoph Hellwig
  2005-03-04 21:08   ` Wen Xiong
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2005-02-28  3:23 UTC (permalink / raw)
  To: Wen Xiong; +Cc: linux-kernel, linux-serial

> +config SERIAL_JSM
> +        tristate "Digi International NEO PCI Support"
> +        select SERIAL_CORE

shouldn't this depend on CONFIG_PCI?

> diff -Nuar linux-2.6.9.orig/drivers/serial/jsm/Makefile linux-2.6.9.new/drivers/serial/jsm/Makefile
> --- linux-2.6.9.orig/drivers/serial/jsm/Makefile	1969-12-31 18:00:00.000000000 -0600
> +++ linux-2.6.9.new/drivers/serial/jsm/Makefile	2005-02-27 17:01:43.725941288 -0600
> @@ -0,0 +1,36 @@
> +##################################################################
> +# Copyright 2003 Digi International (www.digi.com)
> +# Scott H Kilau <Scott_Kilau at digi dot com>
> +# 
> +# This program is free software; you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; either version 2, or (at your option)
> +# any later version.
> +# 
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
> +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
> +# PURPOSE.  See the GNU General Public License for more details.
> +# 
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, write to the Free Software
> +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
> +# 
> +# 
> +#       NOTE TO LINUX KERNEL HACKERS:  DO NOT REFORMAT THIS CODE!
> +# 
> +#       Send any bug fixes/changes to:  Eng.Linux at digi dot com.
> +#       Thank you.
> +# 
> +# 
> +##################################################################
> +
> +#
> +# Makefile for Jasmine adapter
> +#
> +
> +obj-$(CONFIG_SERIAL_JSM) += jsm.o
> +
> +jsm-objs :=    jsm_driver.o jsm_mgmt.o jsm_neo.o\
> +               jsm_proc.o jsm_tty.o
> +

I doubt anyone can register a copyright on a trivial three-line makefile.
Also please use jsm-y instead of jsm-objs.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ patch 7/7] drivers/serial/jsm: new serial device driver
  2005-02-28  3:23 ` Christoph Hellwig
@ 2005-03-04 21:08   ` Wen Xiong
  0 siblings, 0 replies; 3+ messages in thread
From: Wen Xiong @ 2005-03-04 21:08 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Wen Xiong, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2099 bytes --]

Christoph Hellwig wrote:

>>+config SERIAL_JSM
>>+        tristate "Digi International NEO PCI Support"
>>+        select SERIAL_CORE
>>    
>>
>
>shouldn't this depend on CONFIG_PCI?
>
>  
>
>>diff -Nuar linux-2.6.9.orig/drivers/serial/jsm/Makefile linux-2.6.9.new/drivers/serial/jsm/Makefile
>>--- linux-2.6.9.orig/drivers/serial/jsm/Makefile	1969-12-31 18:00:00.000000000 -0600
>>+++ linux-2.6.9.new/drivers/serial/jsm/Makefile	2005-02-27 17:01:43.725941288 -0600
>>@@ -0,0 +1,36 @@
>>+##################################################################
>>+# Copyright 2003 Digi International (www.digi.com)
>>+# Scott H Kilau <Scott_Kilau at digi dot com>
>>+# 
>>+# This program is free software; you can redistribute it and/or modify
>>+# it under the terms of the GNU General Public License as published by
>>+# the Free Software Foundation; either version 2, or (at your option)
>>+# any later version.
>>+# 
>>+# This program is distributed in the hope that it will be useful,
>>+# but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
>>+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>+# PURPOSE.  See the GNU General Public License for more details.
>>+# 
>>+# You should have received a copy of the GNU General Public License
>>+# along with this program; if not, write to the Free Software
>>+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
>>+# 
>>+# 
>>+#       NOTE TO LINUX KERNEL HACKERS:  DO NOT REFORMAT THIS CODE!
>>+# 
>>+#       Send any bug fixes/changes to:  Eng.Linux at digi dot com.
>>+#       Thank you.
>>+# 
>>+# 
>>+##################################################################
>>+
>>+#
>>+# Makefile for Jasmine adapter
>>+#
>>+
>>+obj-$(CONFIG_SERIAL_JSM) += jsm.o
>>+
>>+jsm-objs :=    jsm_driver.o jsm_mgmt.o jsm_neo.o\
>>+               jsm_proc.o jsm_tty.o
>>+
>>    
>>
>
>I doubt anyone can register a copyright on a trivial three-line makefile.
>Also please use jsm-y instead of jsm-objs.
>
>
>  
>
Hi Christoph,

Thanks for your comments here!
wendy

Signed-off-by: Wen Xiong <wendyx@us.ltcfwd.linux.ibm.com>



[-- Attachment #2: patch7.jasmine --]
[-- Type: text/plain, Size: 3353 bytes --]

diff -Nuar linux-2.6.11.org/drivers/serial/Kconfig linux-2.6.11.new/drivers/serial/Kconfig
--- linux-2.6.11.org/drivers/serial/Kconfig	2005-03-04 14:58:19.650874384 -0600
+++ linux-2.6.11.new/drivers/serial/Kconfig	2005-03-04 14:53:06.598937400 -0600
@@ -810,4 +810,19 @@
 	bool "TX39XX/49XX SIO act as standard serial"
 	depends on !SERIAL_8250 && SERIAL_TXX9
 
+config SERIAL_JSM
+        tristate "Digi International NEO PCI Support"
+        select SERIAL_CORE
+        help
+          This is a driver for Digi International's Neo series
+          of cards which provide multiple serial ports. You would need
+          something like this to connect more than two modems to your Linux
+          box, for instance in order to become a dial-in server. This driver
+          supports PCI boards only.
+          If you have a card like this, say Y here and read the file
+          <file:Documentation/jsm.txt>.
+
+          To compile this driver as a module, choose M here: the
+          module will be called jsm.
+
 endmenu
diff -Nuar linux-2.6.11.org/drivers/serial/Makefile linux-2.6.11.new/drivers/serial/Makefile
--- linux-2.6.11.org/drivers/serial/Makefile	2005-03-04 14:58:11.681887760 -0600
+++ linux-2.6.11.new/drivers/serial/Makefile	2005-03-04 14:53:16.985954944 -0600
@@ -49,3 +49,4 @@
 obj-$(CONFIG_SERIAL_MPSC) += mpsc.o
 obj-$(CONFIG_ETRAX_SERIAL) += crisv10.o
 obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o
+obj-$(CONFIG_SERIAL_JSM) += jsm/
diff -Nuar linux-2.6.11.org/drivers/serial/jsm/Makefile linux-2.6.11.new/drivers/serial/jsm/Makefile
--- linux-2.6.11.org/drivers/serial/jsm/Makefile	1969-12-31 18:00:00.000000000 -0600
+++ linux-2.6.11.new/drivers/serial/jsm/Makefile	2005-03-04 14:56:26.655878032 -0600
@@ -0,0 +1,10 @@
+# #######################################################################/
+#
+# Makefile for Jasmine adapter
+#
+
+obj-$(CONFIG_SERIAL_JSM) += jsm.o
+
+jsm-objs :=    jsm_driver.o jsm_mgmt.o jsm_neo.o\
+               jsm_tty.o jsm_sysfs.o
+
diff -Nuar linux-2.6.11.org/include/linux/pci_ids.h linux-2.6.11.new/include/linux/pci_ids.h
--- linux-2.6.11.org/include/linux/pci_ids.h	2005-03-04 14:57:38.115931232 -0600
+++ linux-2.6.11.new/include/linux/pci_ids.h	2005-03-04 15:00:11.796998872 -0600
@@ -1418,6 +1418,15 @@
 #define PCI_DEVICE_ID_DIGI_DF_M_E	0x0071
 #define PCI_DEVICE_ID_DIGI_DF_M_IOM2_A	0x0072
 #define PCI_DEVICE_ID_DIGI_DF_M_A	0x0073
+#define PCI_DEVICE_ID_NEO_4             0x00B0
+#define PCI_DEVICE_ID_NEO_8             0x00B1
+#define PCI_DEVICE_ID_NEO_2DB9          0x00C8
+#define PCI_DEVICE_ID_NEO_2DB9PRI       0x00C9
+#define PCI_DEVICE_ID_NEO_2RJ45         0x00CA
+#define PCI_DEVICE_ID_NEO_2RJ45PRI      0x00CB
+#define PCI_DEVICE_ID_NEO_1_422         0x00CC
+#define PCI_DEVICE_ID_NEO_1_422_485     0x00CD
+#define PCI_DEVICE_ID_NEO_2_422_485     0x00CE
 
 #define PCI_VENDOR_ID_MUTECH		0x1159
 #define PCI_DEVICE_ID_MUTECH_MV1000	0x0001
diff -Nuar linux-2.6.11.org/include/linux/serial_core.h linux-2.6.11.new/include/linux/serial_core.h
--- linux-2.6.11.org/include/linux/serial_core.h	2005-03-04 14:57:26.320993400 -0600
+++ linux-2.6.11.new/include/linux/serial_core.h	2005-03-04 15:00:40.654872952 -0600
@@ -106,6 +106,9 @@
 /* TXX9 type number */
 #define PORT_TXX9       64
 
+/* Digi jsm */
+#define PORT_JSM	65
+
 #ifdef __KERNEL__
 
 #include <linux/config.h>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-04 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-27 23:40 [ patch 7/7] drivers/serial/jsm: new serial device driver Wen Xiong
2005-02-28  3:23 ` Christoph Hellwig
2005-03-04 21:08   ` Wen Xiong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).