blob: 350afddb55ba8c1fd276068518de05c78ac280ee [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * IO Edgeport Driver tables
3 *
4 * Copyright (C) 2001
5 * Greg Kroah-Hartman (greg@kroah.com)
6 *
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.
Alan Cox03f0dbf2008-07-22 11:16:34 +010011 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 */
13
14#ifndef IO_TABLES_H
15#define IO_TABLES_H
16
Németh Márton7d40d7e2010-01-10 15:34:24 +010017static const struct usb_device_id edgeport_2port_id_table[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2) },
19 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2I) },
20 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_421) },
21 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_21) },
22 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2_DIN) },
23 { }
24};
25
Németh Márton7d40d7e2010-01-10 15:34:24 +010026static const struct usb_device_id edgeport_4port_id_table[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) },
28 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) },
29 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) },
30 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_MT4X56USB) },
31 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4I) },
32 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8_DUAL_CPU) },
33 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4_DIN) },
34 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_22I) },
35 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_4) },
36 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_COMPATIBLE) },
37 { }
38};
39
Németh Márton7d40d7e2010-01-10 15:34:24 +010040static const struct usb_device_id edgeport_8port_id_table[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8) },
42 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU) },
43 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8I) },
44 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8R) },
45 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8RR) },
46 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_8) },
47 { }
48};
49
Németh Márton7d40d7e2010-01-10 15:34:24 +010050static const struct usb_device_id Epic_port_id_table[] = {
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -080051 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) },
52 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) },
53 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) },
54 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0311) },
55 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0312) },
56 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A758) },
57 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A794) },
58 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A225) },
59 { }
60};
61
Linus Torvalds1da177e2005-04-16 15:20:36 -070062/* Devices that this driver supports */
Németh Márton7d40d7e2010-01-10 15:34:24 +010063static const struct usb_device_id id_table_combined[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070064 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) },
65 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) },
66 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) },
67 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_MT4X56USB) },
68 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2) },
69 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4I) },
70 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2I) },
71 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_421) },
72 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_21) },
73 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8_DUAL_CPU) },
74 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8) },
75 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2_DIN) },
76 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4_DIN) },
77 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU) },
78 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_22I) },
79 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_4) },
80 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_COMPATIBLE) },
81 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8I) },
82 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8R) },
83 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8RR) },
84 { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_8) },
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -080085 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) },
86 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) },
87 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) },
88 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0311) },
89 { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0312) },
90 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A758) },
91 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A794) },
92 { USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A225) },
Alan Cox03f0dbf2008-07-22 11:16:34 +010093 { } /* Terminating entry */
Linus Torvalds1da177e2005-04-16 15:20:36 -070094};
95
Alan Cox03f0dbf2008-07-22 11:16:34 +010096MODULE_DEVICE_TABLE(usb, id_table_combined);
Linus Torvalds1da177e2005-04-16 15:20:36 -070097
Greg Kroah-Hartmanea653702005-06-20 21:15:16 -070098static struct usb_serial_driver edgeport_2port_device = {
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -070099 .driver = {
100 .owner = THIS_MODULE,
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700101 .name = "edgeport_2",
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -0700102 },
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700103 .description = "Edgeport 2 port adapter",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104 .id_table = edgeport_2port_id_table,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105 .num_ports = 2,
106 .open = edge_open,
107 .close = edge_close,
108 .throttle = edge_throttle,
109 .unthrottle = edge_unthrottle,
110 .attach = edge_startup,
Alan Sternf9c99bb2009-06-02 11:53:55 -0400111 .disconnect = edge_disconnect,
112 .release = edge_release,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113 .ioctl = edge_ioctl,
114 .set_termios = edge_set_termios,
115 .tiocmget = edge_tiocmget,
116 .tiocmset = edge_tiocmset,
Alan Cox0bca1b92010-09-16 18:21:40 +0100117 .get_icount = edge_get_icount,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 .write = edge_write,
119 .write_room = edge_write_room,
120 .chars_in_buffer = edge_chars_in_buffer,
121 .break_ctl = edge_break,
122 .read_int_callback = edge_interrupt_callback,
123 .read_bulk_callback = edge_bulk_in_callback,
124 .write_bulk_callback = edge_bulk_out_data_callback,
125};
126
Greg Kroah-Hartmanea653702005-06-20 21:15:16 -0700127static struct usb_serial_driver edgeport_4port_device = {
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -0700128 .driver = {
129 .owner = THIS_MODULE,
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700130 .name = "edgeport_4",
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -0700131 },
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700132 .description = "Edgeport 4 port adapter",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133 .id_table = edgeport_4port_id_table,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 .num_ports = 4,
135 .open = edge_open,
136 .close = edge_close,
137 .throttle = edge_throttle,
138 .unthrottle = edge_unthrottle,
139 .attach = edge_startup,
Alan Sternf9c99bb2009-06-02 11:53:55 -0400140 .disconnect = edge_disconnect,
141 .release = edge_release,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 .ioctl = edge_ioctl,
143 .set_termios = edge_set_termios,
144 .tiocmget = edge_tiocmget,
145 .tiocmset = edge_tiocmset,
Alan Cox0bca1b92010-09-16 18:21:40 +0100146 .get_icount = edge_get_icount,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147 .write = edge_write,
148 .write_room = edge_write_room,
149 .chars_in_buffer = edge_chars_in_buffer,
150 .break_ctl = edge_break,
151 .read_int_callback = edge_interrupt_callback,
152 .read_bulk_callback = edge_bulk_in_callback,
153 .write_bulk_callback = edge_bulk_out_data_callback,
154};
155
Greg Kroah-Hartmanea653702005-06-20 21:15:16 -0700156static struct usb_serial_driver edgeport_8port_device = {
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -0700157 .driver = {
158 .owner = THIS_MODULE,
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700159 .name = "edgeport_8",
Greg Kroah-Hartman18fcac32005-06-20 21:15:16 -0700160 },
Greg Kroah-Hartman269bda12005-06-20 21:15:16 -0700161 .description = "Edgeport 8 port adapter",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 .id_table = edgeport_8port_id_table,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163 .num_ports = 8,
164 .open = edge_open,
165 .close = edge_close,
166 .throttle = edge_throttle,
167 .unthrottle = edge_unthrottle,
168 .attach = edge_startup,
Alan Sternf9c99bb2009-06-02 11:53:55 -0400169 .disconnect = edge_disconnect,
170 .release = edge_release,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171 .ioctl = edge_ioctl,
172 .set_termios = edge_set_termios,
173 .tiocmget = edge_tiocmget,
174 .tiocmset = edge_tiocmset,
Alan Cox0bca1b92010-09-16 18:21:40 +0100175 .get_icount = edge_get_icount,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176 .write = edge_write,
177 .write_room = edge_write_room,
178 .chars_in_buffer = edge_chars_in_buffer,
179 .break_ctl = edge_break,
180 .read_int_callback = edge_interrupt_callback,
181 .read_bulk_callback = edge_bulk_in_callback,
182 .write_bulk_callback = edge_bulk_out_data_callback,
183};
184
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -0800185static struct usb_serial_driver epic_device = {
186 .driver = {
187 .owner = THIS_MODULE,
188 .name = "epic",
189 },
190 .description = "EPiC device",
191 .id_table = Epic_port_id_table,
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -0800192 .num_ports = 1,
193 .open = edge_open,
194 .close = edge_close,
195 .throttle = edge_throttle,
196 .unthrottle = edge_unthrottle,
197 .attach = edge_startup,
Alan Sternf9c99bb2009-06-02 11:53:55 -0400198 .disconnect = edge_disconnect,
199 .release = edge_release,
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -0800200 .ioctl = edge_ioctl,
201 .set_termios = edge_set_termios,
202 .tiocmget = edge_tiocmget,
203 .tiocmset = edge_tiocmset,
Alan Cox0bca1b92010-09-16 18:21:40 +0100204 .get_icount = edge_get_icount,
Greg Kroah-Hartman6e8cf772007-01-18 00:20:19 -0800205 .write = edge_write,
206 .write_room = edge_write_room,
207 .chars_in_buffer = edge_chars_in_buffer,
208 .break_ctl = edge_break,
209 .read_int_callback = edge_interrupt_callback,
210 .read_bulk_callback = edge_bulk_in_callback,
211 .write_bulk_callback = edge_bulk_out_data_callback,
212};
213
Alan Stern7dbe2462012-02-23 14:56:57 -0500214static struct usb_serial_driver * const serial_drivers[] = {
215 &edgeport_2port_device, &edgeport_4port_device,
216 &edgeport_8port_device, &epic_device, NULL
217};
218
Linus Torvalds1da177e2005-04-16 15:20:36 -0700219#endif
220