From owner-FreeBSD-users-jp@jp.FreeBSD.org Mon Feb 13 23:11:00 2006
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id k1DEB0Y69182;
	Mon, 13 Feb 2006 23:11:00 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from smtp.ruby.ocn.ne.jp (ruby.ocn.ne.jp [222.146.40.76])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id k1DEAxN69174
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 13 Feb 2006 23:10:59 +0900 (JST)
	(envelope-from toshi@ruby.ocn.ne.jp)
Received: from localhost (p6194-ipadfx01sizuokaden.shizuoka.ocn.ne.jp [219.160.179.194])
	by smtp.ruby.ocn.ne.jp (Postfix) with ESMTP id A80493FC5
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 13 Feb 2006 23:10:57 +0900 (JST)
Message-Id: <20060213.231146.193694098.tsaitoh@tutms.tut.ac.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
From: toshi@ruby.ocn.ne.jp
In-Reply-To: <20060130.021301.193680291.toshi@ruby.ocn.ne.jp>
References: <20060130.021301.193680291.toshi@ruby.ocn.ne.jp>
X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7  69F6 C055 9F8A 0D49 F8FC
X-Mailer: Mew version 4.2.50 on Emacs 22.0.50 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Mon_Feb_13_23_11_46_2006_720)--"
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 13 Feb 2006 23:11:46 +0900
X-Sequence: FreeBSD-users-jp 89217
Subject: [FreeBSD-users-jp 89217] Re: FOMA F900iC
 =?ISO-2022-JP?B?GyRCJEgbKEI=?= USB
 =?ISO-2022-JP?B?GyRCJWIlRyVgJEclUSUxJUMlSERMPy4bKEI=?=
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: toshi@ruby.ocn.ne.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

----Next_Part(Mon_Feb_13_23_11_46_2006_720)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

In message: <20060130.021301.193680291.toshi@ruby.ocn.ne.jp>
            SAITOU Toshihide <toshi@ruby.ocn.ne.jp> writes:

> FOMA $BMQ$N(B USB $B%b%G%`$,;H$($k$HCN$j:G6a$N(B CURRENT $B$K(B F900iC
> $B$H(B IO Data $B$N(B USB-3GF $B$H$$$&AH9g$o$;$G;n$7$F$_$^$7$?$,$^$@%Q(B
> $B%1%C%HDL?.$K$O@.8y$7$F$$$^$;$s!#(B

foma6.pdf <http://www.nttdocomo.co.jp/binary/pdf/corporate/technology/document/foma/foma6.pdf>

$B$N(B 18 $BJG!$I=(B 6.2-2 $B$N%1!<%Q%S%j%F%#!<$KAjEv$9$kCM$O(B 0x03 $B$G(B
AT $B%3%^%s%I$K$b1~Ez$7$F$$$^$9$,F1I=$N@bL@(B

   bmCapabilities $B$NCM$,(B0x03 $B$N>l9g$O!"!V(BData Class
   Interface$B!W$H!V(BCommunication Class Interface$B!W$NN>J}$G(B AT
   $B%3%^%s%IE>Aw2DG=$G$"$k$3$H$r<($9!#!J$?$@$7!"$3$N>l9g$G$b!"(B
   $B!V(BData Class Interface $B!W$H!V(BCommunication Class
   Interface$B!W$G%5%]!<%H$9$k%3%^%s%I$O0[$J$k>l9g$,$"$k!#!K(B
   Copyright$B!J(BC$B!K(B 2004, NTT DoCoMo, Inc. All Rights Reserved.

$B$+$i;!$9$k$H$3$NC<Kv$O(B Data Class Interface $B$+$i$N(B ATD$B!JH/8F!K(B
$B$O%5%]!<%H$7$F$J$/$F!$$3$NE@$K4X$7$F(B ufoma(4) $B$N(B BUGS $B$N5-=R(B:

   Only modems with multiplexed commands and data are
   supported at the moment.

$B$K3:Ev$7$F$7$^$$:#$N$H$3$m$O;H$($J$$5$$,$7$F$-$^$7$?!%;DG0(B :-)
# $B%$%s%A%-$G$$$$$N$G%@%$%d%k$7$F(B PPP $B$9$k=Q$O$J$$$+$J$!(B...

$B$^$?$3$NC<Kv$G$O;0HVL\$N%$%s%?!<%U%'!<%9$r%"%C%?%A$9$k$H$3$m(B
$B$G%Q%K%C%/$7$^$9$,$3$l$K3:Ev$9$k%G%#%9%/%j%W%?$rE:IU$7$F$*$-(B
$B$^$9!%(B

$BsnF#!w8P@>;T(B

----Next_Part(Mon_Feb_13_23_11_46_2006_720)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="descriptors.txt"

ports/sysutils/udesc_dump $B$N=PNO$+$iH4?h(B
----------------------------------------------------------------------
	Standard Interface Descriptor:
	  bLength            9
	  bDescriptorType    04
	  bInterfaceNumber   5
	  bAlternateSetting  0
	  bNumEndpoints      1
	  bInterfaceClass    02
	  bInterfaceSubClass 88
	  bInterfaceProtocol 01
	  iInterface         0

		Descriptor:
		  bLength            5
		  bDescriptorType    24
		  bDescriptorSubtype 00
		05 24 00 10 01 

		Descriptor:
		  bLength            5
		  bDescriptorType    24
		  bDescriptorSubtype 06
		05 24 06 05 06 

		Descriptor:
		  bLength            5
		  bDescriptorType    44
		  bDescriptorSubtype 11
		05 44 11 06 02 
----------------------------------------------------------------------

----Next_Part(Mon_Feb_13_23_11_46_2006_720)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=diff

--- ufoma.c.orig	Mon Feb 13 21:35:35 2006
+++ ufoma.c	Mon Feb 13 21:35:35 2006
@@ -954,13 +954,21 @@
 	id = usbd_get_interface_descriptor(sc->sc_ctl_iface);
 
 	sc->sc_is_ucom = 1;
+
 	cmd = ufoma_get_intconf(cd, id, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM);
+        if (cmd == NULL) {
+                DPRINTF(("ufoma_get_intconf: no CM desc\n"));
+                return -1;
+        }
 	sc->sc_cm_cap = cmd->bmCapabilities;
+
 	acm = ufoma_get_intconf(cd, id, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM);
+        if (cmd == NULL) {
+                DPRINTF(("ufoma_get_intconf: no ACM desc\n"));
+                return -1;
+        }
 	sc->sc_acm_cap = acm->bmCapabilities;
 	
-	if(cmd == NULL)
-		return -1;
 	sc->sc_data_iface_no = cmd->bDataInterface;
 	printf("%s: data interface %d, has %sCM over data, has %sbreak\n",
 	    devname, sc->sc_data_iface_no,

----Next_Part(Mon_Feb_13_23_11_46_2006_720)----
