Google luky.org euqset.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH]: add Ever UPS vendor/product id to ftdi_sio driver


Hi,

This patch allows to use ftdi_sio driver with Ever ECO Pro CDS UPS.
Patch was tested on pre-2.6.10 kernel.

Signed-Off: Arkadiusz Miskiewicz <arekm@xxxxxxxxxxxxx>

--- drivers/usb/serial/ftdi_sio.h.org 2005-01-13 16:32:21.000000000 +0100
+++ drivers/usb/serial/ftdi_sio.h 2005-01-13 16:37:33.000000000 +0100
@@ -240,6 +240,12 @@
 #define FTDI_RM_VID  0x0403 /* Vendor  Id */
 #define FTDI_RMCANVIEW_PID 0xfd60 /* Product Id */
 
+/*
+ * EVER Eco Pro UPS (http://www.ever.com.pl/)
+ */
+
+#define EVER_ECO_PRO_CDS 0xe520 /* RS-232 converter */
+
 /* Commands */
 #define FTDI_SIO_RESET   0 /* Reset the port */
 #define FTDI_SIO_MODEM_CTRL  1 /* Set the modem control register */
--- drivers/usb/serial/ftdi_sio.c.org 2005-01-13 16:32:26.000000000 +0100
+++ drivers/usb/serial/ftdi_sio.c 2005-01-13 17:04:12.000000000 +0100
@@ -372,6 +372,7 @@
  { USB_DEVICE_VER(BANDB_VID, BANDB_USOTL4_PID, 0, 0x3ff) },
  { USB_DEVICE_VER(BANDB_VID, BANDB_USTL4_PID, 0, 0x3ff) },
  { USB_DEVICE_VER(BANDB_VID, BANDB_USO9ML2_PID, 0, 0x3ff) },
+ { USB_DEVICE_VER(FTDI_VID, EVER_ECO_PRO_CDS, 0, 0x3ff) },
  { }      /* Terminating entry */
 };
 
@@ -486,6 +487,7 @@
  { USB_DEVICE_VER(BANDB_VID, BANDB_USOTL4_PID, 0x400, 0xffff) },
  { 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) },
  { }      /* Terminating entry */
 };
 
@@ -608,6 +610,7 @@
  { USB_DEVICE(BANDB_VID, BANDB_USOTL4_PID) },
  { USB_DEVICE(BANDB_VID, BANDB_USTL4_PID) },
  { USB_DEVICE(BANDB_VID, BANDB_USO9ML2_PID) },
+ { USB_DEVICE(FTDI_VID, EVER_ECO_PRO_CDS) },
  { }      /* Terminating entry */
 };
 

-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


$B$3$N>pJs$,$"$J$?$NC5$7$F$$?$b$N$+$I$&$+A*Br$7$F$/$@$5$!#(B
yes/$B$^$5$K$3$l$@!*(B   no/$B0c$&$J$!(B   part/$B0lIt8+$D$+$C$?(B   try/$B$3$l$G;n$7$F$_$k(B

$B$"$J$?$,C5$7$F$$?>pJs$O$I$N$h$&$J$3$H$+!"$4<+M3$K5-F~2<$5$!#FC$K!V$^$5$K$3$l$@!*!W$H8@$&>l9g$O5-F~$r$*4j$$7$^$9!#(B
$BNc(B:$B!VJ#?t$N%^%7%s$+$i(BCATV$B7PM3$G(Bipmasquerade$B$rMxMQ$7$F(BWeb$B$r;2>H$7$?$>l9g$N@_Dj$K$D$$F!W(B
Follow-Ups: