Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef IO_TABLES_H |
| 15 | #define IO_TABLES_H |
| 16 | |
| 17 | static struct usb_device_id edgeport_2port_id_table [] = { |
| 18 | { 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 | |
| 26 | static struct usb_device_id edgeport_4port_id_table [] = { |
| 27 | { 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 | |
| 40 | static struct usb_device_id edgeport_8port_id_table [] = { |
| 41 | { 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 | |
| 50 | /* Devices that this driver supports */ |
| 51 | static struct usb_device_id id_table_combined [] = { |
| 52 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) }, |
| 53 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) }, |
| 54 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) }, |
| 55 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_MT4X56USB) }, |
| 56 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2) }, |
| 57 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4I) }, |
| 58 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2I) }, |
| 59 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_421) }, |
| 60 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_21) }, |
| 61 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8_DUAL_CPU) }, |
| 62 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8) }, |
| 63 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2_DIN) }, |
| 64 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4_DIN) }, |
| 65 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU) }, |
| 66 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_22I) }, |
| 67 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_4) }, |
| 68 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_COMPATIBLE) }, |
| 69 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8I) }, |
| 70 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8R) }, |
| 71 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8RR) }, |
| 72 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_8) }, |
| 73 | { } /* Terminating entry */ |
| 74 | }; |
| 75 | |
| 76 | MODULE_DEVICE_TABLE (usb, id_table_combined); |
| 77 | |
Greg Kroah-Hartman | ea65370 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 78 | static struct usb_serial_driver edgeport_2port_device = { |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 79 | .driver = { |
| 80 | .owner = THIS_MODULE, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 81 | .name = "edgeport_2", |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 82 | }, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 83 | .description = "Edgeport 2 port adapter", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 84 | .id_table = edgeport_2port_id_table, |
| 85 | .num_interrupt_in = 1, |
| 86 | .num_bulk_in = 1, |
| 87 | .num_bulk_out = 1, |
| 88 | .num_ports = 2, |
| 89 | .open = edge_open, |
| 90 | .close = edge_close, |
| 91 | .throttle = edge_throttle, |
| 92 | .unthrottle = edge_unthrottle, |
| 93 | .attach = edge_startup, |
| 94 | .shutdown = edge_shutdown, |
| 95 | .ioctl = edge_ioctl, |
| 96 | .set_termios = edge_set_termios, |
| 97 | .tiocmget = edge_tiocmget, |
| 98 | .tiocmset = edge_tiocmset, |
| 99 | .write = edge_write, |
| 100 | .write_room = edge_write_room, |
| 101 | .chars_in_buffer = edge_chars_in_buffer, |
| 102 | .break_ctl = edge_break, |
| 103 | .read_int_callback = edge_interrupt_callback, |
| 104 | .read_bulk_callback = edge_bulk_in_callback, |
| 105 | .write_bulk_callback = edge_bulk_out_data_callback, |
| 106 | }; |
| 107 | |
Greg Kroah-Hartman | ea65370 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 108 | static struct usb_serial_driver edgeport_4port_device = { |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 109 | .driver = { |
| 110 | .owner = THIS_MODULE, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 111 | .name = "edgeport_4", |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 112 | }, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 113 | .description = "Edgeport 4 port adapter", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | .id_table = edgeport_4port_id_table, |
| 115 | .num_interrupt_in = 1, |
| 116 | .num_bulk_in = 1, |
| 117 | .num_bulk_out = 1, |
| 118 | .num_ports = 4, |
| 119 | .open = edge_open, |
| 120 | .close = edge_close, |
| 121 | .throttle = edge_throttle, |
| 122 | .unthrottle = edge_unthrottle, |
| 123 | .attach = edge_startup, |
| 124 | .shutdown = edge_shutdown, |
| 125 | .ioctl = edge_ioctl, |
| 126 | .set_termios = edge_set_termios, |
| 127 | .tiocmget = edge_tiocmget, |
| 128 | .tiocmset = edge_tiocmset, |
| 129 | .write = edge_write, |
| 130 | .write_room = edge_write_room, |
| 131 | .chars_in_buffer = edge_chars_in_buffer, |
| 132 | .break_ctl = edge_break, |
| 133 | .read_int_callback = edge_interrupt_callback, |
| 134 | .read_bulk_callback = edge_bulk_in_callback, |
| 135 | .write_bulk_callback = edge_bulk_out_data_callback, |
| 136 | }; |
| 137 | |
Greg Kroah-Hartman | ea65370 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 138 | static struct usb_serial_driver edgeport_8port_device = { |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 139 | .driver = { |
| 140 | .owner = THIS_MODULE, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 141 | .name = "edgeport_8", |
Greg Kroah-Hartman | 18fcac3 | 2005-06-20 21:15:16 -0700 | [diff] [blame] | 142 | }, |
Greg Kroah-Hartman | 269bda1 | 2005-06-20 21:15:16 -0700 | [diff] [blame^] | 143 | .description = "Edgeport 8 port adapter", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 144 | .id_table = edgeport_8port_id_table, |
| 145 | .num_interrupt_in = 1, |
| 146 | .num_bulk_in = 1, |
| 147 | .num_bulk_out = 1, |
| 148 | .num_ports = 8, |
| 149 | .open = edge_open, |
| 150 | .close = edge_close, |
| 151 | .throttle = edge_throttle, |
| 152 | .unthrottle = edge_unthrottle, |
| 153 | .attach = edge_startup, |
| 154 | .shutdown = edge_shutdown, |
| 155 | .ioctl = edge_ioctl, |
| 156 | .set_termios = edge_set_termios, |
| 157 | .tiocmget = edge_tiocmget, |
| 158 | .tiocmset = edge_tiocmset, |
| 159 | .write = edge_write, |
| 160 | .write_room = edge_write_room, |
| 161 | .chars_in_buffer = edge_chars_in_buffer, |
| 162 | .break_ctl = edge_break, |
| 163 | .read_int_callback = edge_interrupt_callback, |
| 164 | .read_bulk_callback = edge_bulk_in_callback, |
| 165 | .write_bulk_callback = edge_bulk_out_data_callback, |
| 166 | }; |
| 167 | |
| 168 | #endif |
| 169 | |