Skip to contentSkip to conversation

support for Posiflex PP-7000 retail printer for ftdi_sio driver

PATCH New Pavel Fedin 1 participant 1 message Dec 7, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support for Posiflex PP-7000 retail printer for ftdi_sio driver

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

drivers/usb/serial/ftdi_sio.c renamed from drivers/usb/serial/ftdi_sio.c.orig +2 -0
@@ -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 */
 };
 
drivers/usb/serial/ftdi_sio.h renamed from drivers/usb/serial/ftdi_sio.h.orig +6 -0
@@ -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 */