diff options
author | Pavel Fedin <sonic_amiga@rambler.ru> | 2005-12-09 01:30:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 16:51:43 -0500 |
commit | effac8be4e46aabf22788d24caaa1ae9c295d26d (patch) | |
tree | 0beaddb1afd96058d671f2f29bb1b0f3bf0c8bab | |
parent | 735b0cbb5bbb981d726a465c157f20976794aab0 (diff) |
[PATCH] USB: Support for Posiflex PP-7000 retail printer in Linux
This little patch adds recognition of Posiflex PP-7000 retail printer to
ftdo_sio module. The printer uses FT232BM bridge programmed with custom
VID/PID. The patch posted to lkml and sf.net was for 2.6.11.1 kernel,
here is one reworked for 2.6.12.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 1 | ||||
-rw-r--r-- | drivers/usb/serial/ftdi_sio.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 11da073da178..be8c29f6d562 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -477,6 +477,7 @@ static struct usb_device_id id_table_combined [] = { | |||
477 | { USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16HR_PID) }, | 477 | { USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16HR_PID) }, |
478 | { USB_DEVICE(KOBIL_VID, KOBIL_CONV_B1_PID) }, | 478 | { USB_DEVICE(KOBIL_VID, KOBIL_CONV_B1_PID) }, |
479 | { USB_DEVICE(KOBIL_VID, KOBIL_CONV_KAAN_PID) }, | 479 | { USB_DEVICE(KOBIL_VID, KOBIL_CONV_KAAN_PID) }, |
480 | { USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) }, | ||
480 | { }, /* Optional parameter entry */ | 481 | { }, /* Optional parameter entry */ |
481 | { } /* Terminating entry */ | 482 | { } /* Terminating entry */ |
482 | }; | 483 | }; |
diff --git a/drivers/usb/serial/ftdi_sio.h b/drivers/usb/serial/ftdi_sio.h index 773ea3eca086..deab6661b5f0 100644 --- a/drivers/usb/serial/ftdi_sio.h +++ b/drivers/usb/serial/ftdi_sio.h | |||
@@ -352,6 +352,12 @@ | |||
352 | /* Pyramid Computer GmbH */ | 352 | /* Pyramid Computer GmbH */ |
353 | #define FTDI_PYRAMID_PID 0xE6C8 /* Pyramid Appliance Display */ | 353 | #define FTDI_PYRAMID_PID 0xE6C8 /* Pyramid Appliance Display */ |
354 | 354 | ||
355 | /* | ||
356 | * Posiflex inc retail equipment (http://www.posiflex.com.tw) | ||
357 | */ | ||
358 | #define POSIFLEX_VID 0x0d3a /* Vendor ID */ | ||
359 | #define POSIFLEX_PP7000_PID 0x0300 /* PP-7000II thermal printer */ | ||
360 | |||
355 | /* Commands */ | 361 | /* Commands */ |
356 | #define FTDI_SIO_RESET 0 /* Reset the port */ | 362 | #define FTDI_SIO_RESET 0 /* Reset the port */ |
357 | #define FTDI_SIO_MODEM_CTRL 1 /* Set the modem control register */ | 363 | #define FTDI_SIO_MODEM_CTRL 1 /* Set the modem control register */ |