USB: add EPIC support to the io_edgeport driver
This patch adds EPiC support to the io_edgeport driver which adds support for a number of NCR printers: - NCR (Axiohm) 7401-K580 printer - NCR (TEC) 7401-K590 printer, 7402-K592 - NCR (TEC) 7167, 7168 printers - NCR (TEC) 7197, 7198, F306, F307, F309 printers - NCR (Axiohm) 7194 printer - NCR (Axiohm) 7158 printer and a few more. It is based on the 2.6.19 kernel. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
20b2e28fc5
commit
6e8cf7751f
@@ -47,6 +47,18 @@ static struct usb_device_id edgeport_8port_id_table [] = {
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct usb_device_id Epic_port_id_table [] = {
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0311) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0312) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A758) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A794) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A225) },
|
||||
{ }
|
||||
};
|
||||
|
||||
/* Devices that this driver supports */
|
||||
static struct usb_device_id id_table_combined [] = {
|
||||
{ USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) },
|
||||
@@ -70,6 +82,14 @@ static struct usb_device_id id_table_combined [] = {
|
||||
{ USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8R) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8RR) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_412_8) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0311) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0312) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A758) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A794) },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_AXIOHM, AXIOHM_DEVICE_ID_EPIC_A225) },
|
||||
{ } /* Terminating entry */
|
||||
};
|
||||
|
||||
@@ -165,5 +185,35 @@ static struct usb_serial_driver edgeport_8port_device = {
|
||||
.write_bulk_callback = edge_bulk_out_data_callback,
|
||||
};
|
||||
|
||||
static struct usb_serial_driver epic_device = {
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "epic",
|
||||
},
|
||||
.description = "EPiC device",
|
||||
.id_table = Epic_port_id_table,
|
||||
.num_interrupt_in = 1,
|
||||
.num_bulk_in = 1,
|
||||
.num_bulk_out = 1,
|
||||
.num_ports = 1,
|
||||
.open = edge_open,
|
||||
.close = edge_close,
|
||||
.throttle = edge_throttle,
|
||||
.unthrottle = edge_unthrottle,
|
||||
.attach = edge_startup,
|
||||
.shutdown = edge_shutdown,
|
||||
.ioctl = edge_ioctl,
|
||||
.set_termios = edge_set_termios,
|
||||
.tiocmget = edge_tiocmget,
|
||||
.tiocmset = edge_tiocmset,
|
||||
.write = edge_write,
|
||||
.write_room = edge_write_room,
|
||||
.chars_in_buffer = edge_chars_in_buffer,
|
||||
.break_ctl = edge_break,
|
||||
.read_int_callback = edge_interrupt_callback,
|
||||
.read_bulk_callback = edge_bulk_in_callback,
|
||||
.write_bulk_callback = edge_bulk_out_data_callback,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user