zio.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * ZIO Motherboard USB driver
  3. *
  4. * Copyright (C) 2010 Zilogic Systems <code@zilogic.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License version
  8. * 2 as published by the Free Software Foundation.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/init.h>
  12. #include <linux/tty.h>
  13. #include <linux/module.h>
  14. #include <linux/usb.h>
  15. #include <linux/usb/serial.h>
  16. #include <linux/uaccess.h>
  17. static const struct usb_device_id id_table[] = {
  18. { USB_DEVICE(0x1CBE, 0x0103) },
  19. { },
  20. };
  21. MODULE_DEVICE_TABLE(usb, id_table);
  22. static struct usb_driver zio_driver = {
  23. .name = "zio",
  24. .disconnect = usb_serial_disconnect,
  25. .id_table = id_table,
  26. };
  27. static struct usb_serial_driver zio_device = {
  28. .driver = {
  29. .owner = THIS_MODULE,
  30. .name = "zio",
  31. },
  32. .id_table = id_table,
  33. .num_ports = 1,
  34. };
  35. static struct usb_serial_driver * const serial_drivers[] = {
  36. &zio_device, NULL
  37. };
  38. module_usb_serial_driver(zio_driver, serial_drivers);
  39. MODULE_LICENSE("GPL");