Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
io_tables.h
Go to the documentation of this file.
1 /*
2  * IO Edgeport Driver tables
3  *
4  * Copyright (C) 2001
5  * Greg Kroah-Hartman ([email protected])
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.
11  *
12  */
13 
14 #ifndef IO_TABLES_H
15 #define IO_TABLES_H
16 
17 static const struct usb_device_id edgeport_2port_id_table[] = {
23  { }
24 };
25 
26 static const struct usb_device_id edgeport_4port_id_table[] = {
37  { }
38 };
39 
40 static const struct usb_device_id edgeport_8port_id_table[] = {
47  { }
48 };
49 
50 static const struct usb_device_id Epic_port_id_table[] = {
59  { }
60 };
61 
62 /* Devices that this driver supports */
63 static const struct usb_device_id id_table_combined[] = {
93  { } /* Terminating entry */
94 };
95 
96 MODULE_DEVICE_TABLE(usb, id_table_combined);
97 
98 static struct usb_serial_driver edgeport_2port_device = {
99  .driver = {
100  .owner = THIS_MODULE,
101  .name = "edgeport_2",
102  },
103  .description = "Edgeport 2 port adapter",
104  .id_table = edgeport_2port_id_table,
105  .num_ports = 2,
106  .open = edge_open,
107  .close = edge_close,
108  .throttle = edge_throttle,
109  .unthrottle = edge_unthrottle,
110  .attach = edge_startup,
111  .disconnect = edge_disconnect,
112  .release = edge_release,
113  .port_probe = edge_port_probe,
114  .port_remove = edge_port_remove,
115  .ioctl = edge_ioctl,
116  .set_termios = edge_set_termios,
117  .tiocmget = edge_tiocmget,
118  .tiocmset = edge_tiocmset,
119  .get_icount = edge_get_icount,
120  .write = edge_write,
121  .write_room = edge_write_room,
122  .chars_in_buffer = edge_chars_in_buffer,
123  .break_ctl = edge_break,
124  .read_int_callback = edge_interrupt_callback,
125  .read_bulk_callback = edge_bulk_in_callback,
126  .write_bulk_callback = edge_bulk_out_data_callback,
127 };
128 
129 static struct usb_serial_driver edgeport_4port_device = {
130  .driver = {
131  .owner = THIS_MODULE,
132  .name = "edgeport_4",
133  },
134  .description = "Edgeport 4 port adapter",
135  .id_table = edgeport_4port_id_table,
136  .num_ports = 4,
137  .open = edge_open,
138  .close = edge_close,
139  .throttle = edge_throttle,
140  .unthrottle = edge_unthrottle,
141  .attach = edge_startup,
142  .disconnect = edge_disconnect,
143  .release = edge_release,
144  .port_probe = edge_port_probe,
145  .port_remove = edge_port_remove,
146  .ioctl = edge_ioctl,
147  .set_termios = edge_set_termios,
148  .tiocmget = edge_tiocmget,
149  .tiocmset = edge_tiocmset,
150  .get_icount = edge_get_icount,
151  .write = edge_write,
152  .write_room = edge_write_room,
153  .chars_in_buffer = edge_chars_in_buffer,
154  .break_ctl = edge_break,
155  .read_int_callback = edge_interrupt_callback,
156  .read_bulk_callback = edge_bulk_in_callback,
157  .write_bulk_callback = edge_bulk_out_data_callback,
158 };
159 
160 static struct usb_serial_driver edgeport_8port_device = {
161  .driver = {
162  .owner = THIS_MODULE,
163  .name = "edgeport_8",
164  },
165  .description = "Edgeport 8 port adapter",
166  .id_table = edgeport_8port_id_table,
167  .num_ports = 8,
168  .open = edge_open,
169  .close = edge_close,
170  .throttle = edge_throttle,
171  .unthrottle = edge_unthrottle,
172  .attach = edge_startup,
173  .disconnect = edge_disconnect,
174  .release = edge_release,
175  .port_probe = edge_port_probe,
176  .port_remove = edge_port_remove,
177  .ioctl = edge_ioctl,
178  .set_termios = edge_set_termios,
179  .tiocmget = edge_tiocmget,
180  .tiocmset = edge_tiocmset,
181  .get_icount = edge_get_icount,
182  .write = edge_write,
183  .write_room = edge_write_room,
184  .chars_in_buffer = edge_chars_in_buffer,
185  .break_ctl = edge_break,
186  .read_int_callback = edge_interrupt_callback,
187  .read_bulk_callback = edge_bulk_in_callback,
188  .write_bulk_callback = edge_bulk_out_data_callback,
189 };
190 
191 static struct usb_serial_driver epic_device = {
192  .driver = {
193  .owner = THIS_MODULE,
194  .name = "epic",
195  },
196  .description = "EPiC device",
197  .id_table = Epic_port_id_table,
198  .num_ports = 1,
199  .open = edge_open,
200  .close = edge_close,
201  .throttle = edge_throttle,
202  .unthrottle = edge_unthrottle,
203  .attach = edge_startup,
204  .disconnect = edge_disconnect,
205  .release = edge_release,
206  .port_probe = edge_port_probe,
207  .port_remove = edge_port_remove,
208  .ioctl = edge_ioctl,
209  .set_termios = edge_set_termios,
210  .tiocmget = edge_tiocmget,
211  .tiocmset = edge_tiocmset,
212  .get_icount = edge_get_icount,
213  .write = edge_write,
214  .write_room = edge_write_room,
215  .chars_in_buffer = edge_chars_in_buffer,
216  .break_ctl = edge_break,
217  .read_int_callback = edge_interrupt_callback,
218  .read_bulk_callback = edge_bulk_in_callback,
219  .write_bulk_callback = edge_bulk_out_data_callback,
220 };
221 
222 static struct usb_serial_driver * const serial_drivers[] = {
223  &edgeport_2port_device, &edgeport_4port_device,
224  &edgeport_8port_device, &epic_device, NULL
225 };
226 
227 #endif
228