Current-Users archive

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

Adding the Huawei EM770W to u3g(4)



                        Hi current-users@,

I would like to commit the patch attached to -current, which adds the
Huawei EM770W modem to the u3g(4) driver.

It works as expected on my WeTab tablet computer, exposing a total of
four serial devices. ttyU0 replies to AT commands, while it seems that
GPS data can be obtained through ttyU3; I haven't tested this yet though.

Let me know if that's fine to import; likewise, it seems OpenBSD's
equivalent driver, umsm(4), lists additional devices we could add as well.

HTH,
-- 
khorben
? ukbd.c.patched
Index: u3g.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/u3g.c,v
retrieving revision 1.25
diff -p -u -r1.25 u3g.c
--- u3g.c       4 Aug 2012 12:55:06 -0000       1.25
+++ u3g.c       3 Oct 2012 23:19:27 -0000
@@ -185,6 +185,7 @@ static const struct usb_devno u3g_devs[]
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 },
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1820 },
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 },
+       { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W },
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765 },
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE },
        /* OEM: Merlin */
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.628
diff -p -u -r1.628 usbdevs
--- usbdevs     3 Oct 2012 06:57:36 -0000       1.628
+++ usbdevs     3 Oct 2012 23:19:29 -0000
@@ -1673,6 +1673,7 @@ product HTC ANDROID               0x0ffe  Android
 /* Huawei Technologies products */
 product HUAWEI MOBILE          0x1001  Huawei Mobile
 product HUAWEI E220            0x1003  Huawei E220
+product HUAWEI EM770W          0x1404  Huawei EM770W
 product HUAWEI E1750           0x140c  Huawei E1750
 product HUAWEI E1750INIT       0x1446  Huawei E1750 USB CD
 product HUAWEI K3765           0x1465  Huawei K3765
Index: usbdevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.620
diff -p -u -r1.620 usbdevs.h
--- usbdevs.h   3 Oct 2012 06:58:03 -0000       1.620
+++ usbdevs.h   3 Oct 2012 23:19:33 -0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdevs.h,v 1.620 2012/10/03 06:58:03 mlelstv Exp $    */
+/*     $NetBSD$        */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -1680,6 +1680,7 @@
 /* Huawei Technologies products */
 #define        USB_PRODUCT_HUAWEI_MOBILE       0x1001          /* Huawei 
Mobile */
 #define        USB_PRODUCT_HUAWEI_E220 0x1003          /* Huawei E220 */
+#define        USB_PRODUCT_HUAWEI_EM770W       0x1404          /* Huawei 
EM770W */
 #define        USB_PRODUCT_HUAWEI_E1750        0x140c          /* Huawei E1750 
*/
 #define        USB_PRODUCT_HUAWEI_E1750INIT    0x1446          /* Huawei E1750 
USB CD */
 #define        USB_PRODUCT_HUAWEI_K3765        0x1465          /* Huawei K3765 
*/
Index: usbdevs_data.h
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.621
diff -p -u -r1.621 usbdevs_data.h
--- usbdevs_data.h      3 Oct 2012 06:58:03 -0000       1.621
+++ usbdevs_data.h      3 Oct 2012 23:19:34 -0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdevs_data.h,v 1.621 2012/10/03 06:58:03 mlelstv Exp $       
*/
+/*     $NetBSD$        */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -5235,6 +5235,10 @@ const struct usb_product usb_products[] 
            "Huawei E220",
        },
        {
+           USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W,
+           "Huawei EM770W",
+       },
+       {
            USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750,
            "Huawei E1750",
        },
@@ -9827,4 +9831,4 @@ const struct usb_product usb_products[] 
            "Prestige",
        },
 };
-const int usb_nproducts = 1928;
+const int usb_nproducts = 1929;


Home | Main Index | Thread Index | Old Index