Google
  Web www.spinics.net

[patch ldusb.c] ldusb serial driver now supports ADU devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


The following patch causes the ldusb driver to claim ADU devices.
I have tested it with both an OHCI controller and an UHCI controller
with multiple ADU devices attached.
Note that udev allows symlinking to the /dev/usb/adutux names so that
application code does not need to change.

Question: what is the procedure to remove the adutux driver from the
kernel?



diff -urN linux-2.6.23.11.old/drivers/usb/misc/ldusb.c 
linux-2.6.23.11.new/drivers/usb/misc/ldusb.c
--- linux-2.6.23.11.old/drivers/usb/misc/ldusb.c	2007-12-14 
22:50:05.000000000 -0500
+++ linux-2.6.23.11.new/drivers/usb/misc/ldusb.c	2007-12-20 
17:14:49.420253528 -0500
@@ -65,6 +65,9 @@
  #define USB_VENDOR_ID_MICROCHIP		0x04d8
  #define USB_DEVICE_ID_PICDEM		0x000c

+#define USB_VENDOR_ID_ONTRAK		0x0a07
+#define USB_DEVICE_ID_ONTRAK		0x0064
+
  #ifdef CONFIG_USB_DYNAMIC_MINORS
  #define USB_LD_MINOR_BASE	0
  #else
@@ -92,6 +95,12 @@
  	{ USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_SKIP) },
  	{ USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_CYCLOPS) },
  	{ USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICDEM) },
+	{ USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK) }, 
/* ADU100 */
+        { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+20) }, 
       /* ADU120 */
+        { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+30) }, 
       /* ADU130 */
+        { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+100) }, 
      /* ADU200 */
+        { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+108) }, 
      /* ADU208 */
+        { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+118) }, 
      /* ADU218 */
  	{ }					/* Terminating entry */
  };
  MODULE_DEVICE_TABLE(usb, ld_usb_table);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Home]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Video Projectors]     [PDAs]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [Free Dating]

  Powered by Linux