Changeset - f9aab7275d4e
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 years ago 2017-06-11 21:10:28
drewp@bigasterisk.com
try to patch dmx module for new kernel. doesn't work though
Ignore-this: 98abee03a2264234b7fec1700a2b3e68
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
dmx_usb_module/dmx_usb.c
Show inline comments
 
@@ -43,50 +43,50 @@
 
#endif
 

	
 
/* Use our own dbg macro */
 
#undef dbg
 
#define dbg(format, arg...) do { if (debug) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg); } while (0)
 

	
 
#ifndef info
 
#define info(format, arg...) do { printk(KERN_INFO __FILE__ ": " format "\n" , ## arg); } while (0)
 
#endif
 

	
 
#ifndef err
 
#define err(format, arg...) do { printk(KERN_INFO __FILE__ ": (error) " format "\n" , ## arg); } while (0)
 
#endif
 

	
 
/* Version Information */
 
#define DRIVER_VERSION "v0.1.20111215"
 
#define DRIVER_AUTHOR "Erwin Rol, erwin@erwinrol.com"
 
#define DRIVER_DESC "DMX USB Driver"
 

	
 
/* Module parameters */
 
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) )
 
MODULE_PARM(debug, "i");
 
MODULE_PARM_DESC(debug, "Debug enabled or not");
 
#else
 
module_param(debug, bool, S_IRUGO | S_IWUSR);
 
MODULE_PARM_DESC(debug, "Debug enabled or not");
 
//module_param(debug, bool, S_IRUGO | S_IWUSR);
 
//MODULE_PARM_DESC(debug, "Debug enabled or not");
 
#endif
 

	
 
static struct usb_device_id dmx_usb_table [] = {
 
	{ USB_DEVICE_VER(FTDI_VID, FTDI_8U232AM_PID, 0x400, 0xffff) },
 
	{ USB_DEVICE_VER(FTDI_VID, FTDI_8U232AM_ALT_PID, 0x400, 0xffff) },
 
	{ }                                             /* Terminating entry */
 
};
 

	
 
MODULE_DEVICE_TABLE (usb, dmx_usb_table);
 

	
 
/* Get a minor range for your devices from the usb maintainer */
 
#define DMX_USB_MINOR_BASE	192
 

	
 
/* Structure to hold all of our device specific stuff */
 
struct dmx_usb_device {
 
	struct usb_device *	udev;			/* save off the usb device pointer */
 
	struct usb_interface *	interface;		/* the interface for this device */
 
	unsigned char		minor;			/* the starting minor number for this device */
 
	unsigned char		num_ports;		/* the number of ports this device has */
 
	char			num_interrupt_in;	/* number of interrupt in endpoints we have */
 
	char			num_bulk_in;		/* number of bulk in endpoints we have */
 
	char			num_bulk_out;		/* number of bulk out endpoints we have */
 

	
 
	unsigned char *		bulk_in_buffer;		/* the buffer to receive data */
0 comments (0 inline, 0 general)