From 9aa0df1bf3b76ded4f176fd464732dc0e202d7fb Mon Sep 17 00:00:00 2001 From: ichiro Date: Thu, 27 Mar 2008 04:13:23 +0000 Subject: add device 'E620'on Vodafone. It was tested on Vodafone by Mihai Chelaru and works perfectly. --- sys/dev/usb/uhmodem.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uhmodem.c b/sys/dev/usb/uhmodem.c index e05ff58e06e..3fb9eb45a5a 100644 --- a/sys/dev/usb/uhmodem.c +++ b/sys/dev/usb/uhmodem.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhmodem.c,v 1.3 2008/02/18 05:24:24 dyoung Exp $ */ +/* $NetBSD: uhmodem.c,v 1.4 2008/03/27 04:13:23 ichiro Exp $ */ /* * Copyright (c) 2008 Yojiro UO . @@ -78,7 +78,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.3 2008/02/18 05:24:24 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.4 2008/03/27 04:13:23 ichiro Exp $"); #include #include @@ -158,6 +158,8 @@ struct uhmodem_type { u_int16_t uhmodem_flags; #define E220 0x0001 #define A2502 0x0002 +#define E620 0x0004 /* XXX */ + /* Whether or not it is a device different from E220 is not clear. */ }; Static const struct uhmodem_type uhmodem_devs[] = { @@ -165,6 +167,8 @@ Static const struct uhmodem_type uhmodem_devs[] = { {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 }, 2, E220}, /* ANYDATA / NTT DoCoMo A2502 */ {{ USB_VENDOR_ANYDATA, USB_PRODUCT_ANYDATA_A2502 }, 3, A2502}, + /* HUAWEI E620 */ + {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE }, 3, E620}, }; #define uhmodem_lookup(v, p) ((const struct uhmodem_type *)usb_lookup(uhmodem_devs, v, p)) -- cgit