Hi,

This patch adds the required entries for the usb broadband 
modem in the Subject:

http://www.tctmobile.com/global/content/view/full/1837

This is the only device I've owned that changes productID 
when switching from umass to modem mode: it's 0xf000 in 
storage mode and then becomes 0x0000 in modem mode.

I'm using it on a daily basis for my "train sessions" 
and it's working reliably...

ciao,
david


Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.49
diff -N -u -p umsm.c
--- umsm.c      7 Sep 2009 20:26:13 -0000       1.49
+++ umsm.c      9 Oct 2009 06:46:44 -0000
@@ -199,6 +199,9 @@ static const struct umsm_type umsm_devs[] = {
        {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AC885U }, 0},
        {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_TRUINSTALL }, DEV_TRUINSTALL},
 
+       {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_f000 }, DEV_UMASS3},
+       {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_0000 }, 0},
+
        {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300 }, 0},
 
        {{ USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CNU510 }, 0}, /* ??? */
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.451
diff -N -u -p usbdevs
--- usbdevs     20 Sep 2009 12:53:36 -0000      1.451
+++ usbdevs     9 Oct 2009 06:46:48 -0000
@@ -527,6 +527,7 @@ vendor MEINBERG             0x1938  Meinberg Funkuhren
 vendor QUALCOMM3       0x19d2  Qualcomm Inc.
 vendor QUANTA          0x1a32  Quanta
 vendor WCH2            0x1a86  QinHeng Electronics
+vendor TCTMOBILE       0x1bbb  TCT Mobile International Ltd.
 vendor LONGCHEER       0x1c9e  Longcheer Technology
 vendor PEGATRON                0x1d4d  Pegatron
 vendor AIRTIES         0x1eda  AirTies
@@ -2939,6 +2940,10 @@ product SWEEX ZD1211             0x1809  ZD1211
 
 /* Syntech Information products */
 product SYNTECH SERIAL         0x0001  Serial
+
+/* TCT Mobile International Ltd. products */
+product TCTMOBILE f000         0xf000  TCT Mobile International Ltd. f000
+product TCTMOBILE 0000         0x0000  TCT Mobile International Ltd. 0000
 
 /* Tangtop products */
 product TANGTOP USBPS2         0x0001  USBPS2
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.461
diff -N -u -p usbdevs.h
--- usbdevs.h   20 Sep 2009 12:53:51 -0000      1.461
+++ usbdevs.h   9 Oct 2009 06:46:57 -0000
@@ -534,6 +534,7 @@
 #define        USB_VENDOR_QUALCOMM3    0x19d2          /* Qualcomm Inc. */
 #define        USB_VENDOR_QUANTA       0x1a32          /* Quanta */
 #define        USB_VENDOR_WCH2 0x1a86          /* QinHeng Electronics */
+#define        USB_VENDOR_TCTMOBILE    0x1bbb  /* TCT Mobile International 
Ltd. */
 #define        USB_VENDOR_LONGCHEER    0x1c9e          /* Longcheer Technology 
*/
 #define        USB_VENDOR_PEGATRON     0x1d4d          /* Pegatron */
 #define        USB_VENDOR_AIRTIES      0x1eda          /* AirTies */
@@ -2946,6 +2947,10 @@
 
 /* Syntech Information products */
 #define        USB_PRODUCT_SYNTECH_SERIAL      0x0001          /* Serial */
+
+/* TCT Mobile International Ltd. products */
+#define USB_PRODUCT_TCTMOBILE_f000     0xf000          /* TCT Mobile 
International Ltd. f000 */
+#define USB_PRODUCT_TCTMOBILE_0000     0x0000          /* TCT Mobile 
International Ltd. 0000 */
 
 /* Tangtop products */
 #define        USB_PRODUCT_TANGTOP_USBPS2      0x0001          /* USBPS2 */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.455
diff -N -u -p usbdevs_data.h
--- usbdevs_data.h      20 Sep 2009 12:53:51 -0000      1.455
+++ usbdevs_data.h      9 Oct 2009 06:47:01 -0000
@@ -6734,6 +6734,14 @@ const struct usb_known_product usb_known_products[] = 
            "Serial",
        },
        {
+           USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_f000,
+           "TCT Mobile International Ltd. f000",
+       },
+       {
+           USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_0000,
+           "TCT Mobile International Ltd. 0000",
+       },
+       {
            USB_VENDOR_TANGTOP, USB_PRODUCT_TANGTOP_USBPS2,
            "USBPS2",
        },
@@ -9316,6 +9324,10 @@ const struct usb_known_vendor usb_known_vendors[] = {
        {
            USB_VENDOR_WCH2,
            "QinHeng Electronics",
+       },
+       {
+           USB_VENDOR_TCTMOBILE, 
+           "TCT Mobile International Ltd.",
        },
        {
            USB_VENDOR_LONGCHEER,

Reply via email to