blob: c7d8ab359454730258be17ef3bc139c306c1a1a2 [file] [log] [blame]
Forest Bond52720982010-02-05 11:30:28 -05001/*
2 * Copyright (C) 2001-2005 Greg Kroah-Hartman (greg@kroah.com)
3 * Copyright (C) 2009 Outpost Embedded, LLC
4 */
5
6#include <linux/kernel.h>
7#include <linux/init.h>
8#include <linux/tty.h>
9#include <linux/module.h>
10#include <linux/usb.h>
11#include <linux/usb/serial.h>
12
13
14#define DRIVER_VERSION "v1.0"
15#define DRIVER_DESC "ViVOpay USB Serial Driver"
16
17#define VIVOPAY_VENDOR_ID 0x1d5f
18
19
20static struct usb_device_id id_table [] = {
21 /* ViVOpay 8800 */
22 { USB_DEVICE(VIVOPAY_VENDOR_ID, 0x1004) },
23 { },
24};
25
26MODULE_DEVICE_TABLE(usb, id_table);
27
28static struct usb_driver vivopay_serial_driver = {
29 .name = "vivopay-serial",
Forest Bond52720982010-02-05 11:30:28 -050030 .id_table = id_table,
Forest Bond52720982010-02-05 11:30:28 -050031};
32
33static struct usb_serial_driver vivopay_serial_device = {
34 .driver = {
35 .owner = THIS_MODULE,
36 .name = "vivopay-serial",
37 },
38 .id_table = id_table,
Forest Bond52720982010-02-05 11:30:28 -050039 .num_ports = 1,
40};
41
Alan Stern29618e92012-02-23 14:57:32 -050042static struct usb_serial_driver * const serial_drivers[] = {
43 &vivopay_serial_device, NULL
44};
45
Greg Kroah-Hartmanb99dab02012-02-28 13:12:43 -080046module_usb_serial_driver(vivopay_serial_driver, serial_drivers);
Forest Bond52720982010-02-05 11:30:28 -050047
48MODULE_AUTHOR("Forest Bond <forest.bond@outpostembedded.com>");
49MODULE_DESCRIPTION(DRIVER_DESC);
50MODULE_VERSION(DRIVER_VERSION);
51MODULE_LICENSE("GPL");