blob: 2cba60d90c7983222b956302b5d142da64195448 [file] [log] [blame]
Arthur Huillet36045fb2005-04-22 15:06:59 -07001/*
2 * HP4x Calculators Serial USB driver
3 *
4 * Copyright (C) 2005 Arthur Huillet (ahuillet@users.sf.net)
Greg KH35ecc482005-04-22 15:06:59 -07005 * Copyright (C) 2001-2005 Greg Kroah-Hartman (greg@kroah.com)
Arthur Huillet36045fb2005-04-22 15:06:59 -07006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
Alan Cox3a262b22008-07-22 11:12:05 +010012 * See Documentation/usb/usb-serial.txt for more information on using this
13 * driver
Arthur Huillet36045fb2005-04-22 15:06:59 -070014 */
15
Arthur Huillet36045fb2005-04-22 15:06:59 -070016#include <linux/kernel.h>
Arthur Huillet36045fb2005-04-22 15:06:59 -070017#include <linux/init.h>
Arthur Huillet36045fb2005-04-22 15:06:59 -070018#include <linux/tty.h>
Arthur Huillet36045fb2005-04-22 15:06:59 -070019#include <linux/module.h>
Arthur Huillet36045fb2005-04-22 15:06:59 -070020#include <linux/usb.h>
Greg Kroah-Hartmana9698882006-07-11 21:22:58 -070021#include <linux/usb/serial.h>
Arthur Huillet36045fb2005-04-22 15:06:59 -070022
Arthur Huillet36045fb2005-04-22 15:06:59 -070023#define DRIVER_DESC "HP4x (48/49) Generic Serial driver"
24
25#define HP_VENDOR_ID 0x03f0
26#define HP49GP_PRODUCT_ID 0x0121
27
Németh Márton7d40d7e2010-01-10 15:34:24 +010028static const struct usb_device_id id_table[] = {
Arthur Huillet36045fb2005-04-22 15:06:59 -070029 { USB_DEVICE(HP_VENDOR_ID, HP49GP_PRODUCT_ID) },
30 { } /* Terminating entry */
31};
32
33MODULE_DEVICE_TABLE(usb, id_table);
34
Greg Kroah-Hartmanea653702005-06-20 21:15:16 -070035static struct usb_serial_driver hp49gp_device = {
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -070036 .driver = {
37 .owner = THIS_MODULE,
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -070038 .name = "hp4X",
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -070039 },
Arthur Huillet36045fb2005-04-22 15:06:59 -070040 .id_table = id_table,
Arthur Huillet36045fb2005-04-22 15:06:59 -070041 .num_ports = 1,
42};
43
Alan Stern97b6b6d2012-02-23 14:56:32 -050044static struct usb_serial_driver * const serial_drivers[] = {
45 &hp49gp_device, NULL
46};
47
Greg Kroah-Hartman68e24112012-05-08 15:46:14 -070048module_usb_serial_driver(serial_drivers, id_table);
Arthur Huillet36045fb2005-04-22 15:06:59 -070049
50MODULE_DESCRIPTION(DRIVER_DESC);
Arthur Huillet36045fb2005-04-22 15:06:59 -070051MODULE_LICENSE("GPL");