zio.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. .probe = usb_serial_probe,
  25. .disconnect = usb_serial_disconnect,
  26. .id_table = id_table,
  27. };
  28. static struct usb_serial_driver zio_device = {
  29. .driver = {
  30. .owner = THIS_MODULE,
  31. .name = "zio",
  32. },
  33. .id_table = id_table,
  34. .num_ports = 1,
  35. };
  36. static struct usb_serial_driver * const serial_drivers[] = {
  37. &zio_device, NULL
  38. };
  39. module_usb_serial_driver(zio_driver, serial_drivers);
  40. MODULE_LICENSE("GPL");