public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Fedin <sonic_amiga@rambler.ru>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] support for Posiflex PP-7000 retail printer for ftdi_sio driver
Date: Wed, 07 Dec 2005 17:37:02 +0300	[thread overview]
Message-ID: <4396F38E.1020200@rambler.ru> (raw)

[-- 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 */

                 reply	other threads:[~2005-12-07 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4396F38E.1020200@rambler.ru \
    --to=sonic_amiga@rambler.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox