public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] support for Posiflex PP-7000 retail printer for ftdi_sio driver
@ 2005-12-07 14:37 Pavel Fedin
  0 siblings, 0 replies; only message in thread
From: Pavel Fedin @ 2005-12-07 14:37 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

  This little patch adds an ability to recognize Posiflex PP-7000 retail printer for ftdi_sio 
driver. The printer uses FT232BM USB-serial brigde but is programmed with custom VID and PID.
  The patch is made for 2.6.11.1 kernel but is extremely easy to adapt to newer versions. I also 
posted it to "Patches" page on sf.net project. I wrote to project admin a letter asking to give me 
an access to their CVS but got no reply.

  Kind regards

[-- Attachment #2: ftdi_sio_posiflex_pp7000-2.6.11.1.diff --]
[-- Type: text/x-patch, Size: 1320 bytes --]

--- linux-2.6.11.1/drivers/usb/serial/ftdi_sio.c.orig	2005-03-04 20:26:42.000000000 +0300
+++ linux-2.6.11.1/drivers/usb/serial/ftdi_sio.c	2005-12-06 22:47:20.000000000 +0300
@@ -488,6 +488,7 @@
 	{ USB_DEVICE_VER(BANDB_VID, BANDB_USTL4_PID, 0x400, 0xffff) },
 	{ USB_DEVICE_VER(BANDB_VID, BANDB_USO9ML2_PID, 0x400, 0xffff) },
 	{ USB_DEVICE_VER(FTDI_VID, EVER_ECO_PRO_CDS, 0x400, 0xffff) },
+	{ USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) },
 	{ }						/* Terminating entry */
 };
 
@@ -611,6 +612,7 @@
 	{ USB_DEVICE(BANDB_VID, BANDB_USTL4_PID) },
 	{ USB_DEVICE(BANDB_VID, BANDB_USO9ML2_PID) },
 	{ USB_DEVICE(FTDI_VID, EVER_ECO_PRO_CDS) },
+	{ USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) },
 	{ }						/* Terminating entry */
 };
 
--- linux-2.6.11.1/drivers/usb/serial/ftdi_sio.h.orig	2005-03-04 20:26:44.000000000 +0300
+++ linux-2.6.11.1/drivers/usb/serial/ftdi_sio.h	2005-12-05 22:22:27.000000000 +0300
@@ -246,6 +246,12 @@
 
 #define	EVER_ECO_PRO_CDS	0xe520	/* RS-232 converter */
 
+/*
+ * Posiflex inc retail equipment (http://www.posiflex.com.tw)
+ */
+#define POSIFLEX_VID		0x0d3a  /* Vendor ID */
+#define POSIFLEX_PP7000_PID	0x0300  /* PP-7000II thermal printer */
+
 /* Commands */
 #define FTDI_SIO_RESET 		0 /* Reset the port */
 #define FTDI_SIO_MODEM_CTRL 	1 /* Set the modem control register */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-07 14:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 14:37 [PATCH] support for Posiflex PP-7000 retail printer for ftdi_sio driver Pavel Fedin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox