ir-usb.c (32078f915d1acab356080b144aa89fe3487f3979) ir-usb.c (68e24113457e437b1576670f2419b77ed0531e9e)
1/*
2 * USB IR Dongle driver
3 *
4 * Copyright (C) 2001-2002 Greg Kroah-Hartman (greg@kroah.com)
5 * Copyright (C) 2002 Gary Brubaker (xavyer@ix.netcom.com)
6 * Copyright (C) 2010 Johan Hovold (jhovold@gmail.com)
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 63 unchanged lines hidden (view full) ---

72 { USB_DEVICE(0x08e9, 0x0100) }, /* XTNDAccess */
73 { USB_DEVICE(0x09c4, 0x0011) }, /* ACTiSys ACT-IR2000U */
74 { USB_INTERFACE_INFO(USB_CLASS_APP_SPEC, USB_SUBCLASS_IRDA, 0) },
75 { } /* Terminating entry */
76};
77
78MODULE_DEVICE_TABLE(usb, ir_id_table);
79
1/*
2 * USB IR Dongle driver
3 *
4 * Copyright (C) 2001-2002 Greg Kroah-Hartman (greg@kroah.com)
5 * Copyright (C) 2002 Gary Brubaker (xavyer@ix.netcom.com)
6 * Copyright (C) 2010 Johan Hovold (jhovold@gmail.com)
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 63 unchanged lines hidden (view full) ---

72 { USB_DEVICE(0x08e9, 0x0100) }, /* XTNDAccess */
73 { USB_DEVICE(0x09c4, 0x0011) }, /* ACTiSys ACT-IR2000U */
74 { USB_INTERFACE_INFO(USB_CLASS_APP_SPEC, USB_SUBCLASS_IRDA, 0) },
75 { } /* Terminating entry */
76};
77
78MODULE_DEVICE_TABLE(usb, ir_id_table);
79
80static struct usb_driver ir_driver = {
81 .name = "ir-usb",
82 .id_table = ir_id_table,
83};
84
85static struct usb_serial_driver ir_device = {
86 .driver = {
87 .owner = THIS_MODULE,
88 .name = "ir-usb",
89 },
90 .description = "IR Dongle",
91 .id_table = ir_id_table,
92 .num_ports = 1,

--- 338 unchanged lines hidden (view full) ---

431{
432 int retval;
433
434 if (buffer_size) {
435 ir_device.bulk_in_size = buffer_size;
436 ir_device.bulk_out_size = buffer_size;
437 }
438
80static struct usb_serial_driver ir_device = {
81 .driver = {
82 .owner = THIS_MODULE,
83 .name = "ir-usb",
84 },
85 .description = "IR Dongle",
86 .id_table = ir_id_table,
87 .num_ports = 1,

--- 338 unchanged lines hidden (view full) ---

426{
427 int retval;
428
429 if (buffer_size) {
430 ir_device.bulk_in_size = buffer_size;
431 ir_device.bulk_out_size = buffer_size;
432 }
433
439 retval = usb_serial_register_drivers(&ir_driver, serial_drivers);
434 retval = usb_serial_register_drivers(serial_drivers, KBUILD_MODNAME, ir_id_table);
440 if (retval == 0)
441 printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
442 DRIVER_DESC "\n");
443 return retval;
444}
445
446static void __exit ir_exit(void)
447{
435 if (retval == 0)
436 printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
437 DRIVER_DESC "\n");
438 return retval;
439}
440
441static void __exit ir_exit(void)
442{
448 usb_serial_deregister_drivers(&ir_driver, serial_drivers);
443 usb_serial_deregister_drivers(serial_drivers);
449}
450
451
452module_init(ir_init);
453module_exit(ir_exit);
454
455MODULE_AUTHOR(DRIVER_AUTHOR);
456MODULE_DESCRIPTION(DRIVER_DESC);
457MODULE_LICENSE("GPL");
458
459module_param(debug, bool, S_IRUGO | S_IWUSR);
460MODULE_PARM_DESC(debug, "Debug enabled or not");
461module_param(xbof, int, 0);
462MODULE_PARM_DESC(xbof, "Force specific number of XBOFs");
463module_param(buffer_size, int, 0);
464MODULE_PARM_DESC(buffer_size, "Size of the transfer buffers");
465
444}
445
446
447module_init(ir_init);
448module_exit(ir_exit);
449
450MODULE_AUTHOR(DRIVER_AUTHOR);
451MODULE_DESCRIPTION(DRIVER_DESC);
452MODULE_LICENSE("GPL");
453
454module_param(debug, bool, S_IRUGO | S_IWUSR);
455MODULE_PARM_DESC(debug, "Debug enabled or not");
456module_param(xbof, int, 0);
457MODULE_PARM_DESC(xbof, "Force specific number of XBOFs");
458module_param(buffer_size, int, 0);
459MODULE_PARM_DESC(buffer_size, "Size of the transfer buffers");
460