From owner-freebsd-usb@FreeBSD.ORG Mon Feb 9 10:28:47 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5C401065741 for ; Mon, 9 Feb 2009 10:28:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 4E45D8FC19 for ; Mon, 9 Feb 2009 10:28:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=KYdexm-h_BCz4gR_JiIA:9 a=HyeSTgK-9AasV_3WZppzDBkIBMgA:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1192722568; Mon, 09 Feb 2009 11:28:45 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 9 Feb 2009 11:31:10 +0100 User-Agent: KMail/1.9.7 References: <1233734352.1767.55.camel@localhost> <20090204.085606.1630229139.imp@bsdimp.com> <200902091035.26738.nick@anywi.com> In-Reply-To: <200902091035.26738.nick@anywi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902091131.12232.hselasky@c2i.net> Cc: Nick Hibma Subject: Re: USB2 - umass problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 10:28:48 -0000 On Monday 09 February 2009, Nick Hibma wrote: > > : > By some reason devfs semantic was changed: > > : > Instead of /dev/cuaU0.[0-2] and /dev/ttyU0.[0-2], I've get > > : > /dev/cuaU[0-2] /dev/ttyU[0-2] and! /dev/cuau1 /dev/ttyu1 > > : > What is reason for such change (additional port with lowercase 'u' > > : > and U[0-2] instead of more logical U0.[0-2]) ? > > : > > : It is because we are attaching drivers per interface instead of per > > : device. A new modem unit is allocated every time we find a modem, > > : simply put. If the modem has multiple instances in an interface, > > : /dev/cuaU0.[0...] will be created. Else /dev/cuaU... . > > > > Generally, we try not to change the details of how a device attaches > > /dev entries from release to release. Why the change? > > The USB1 u3g driver also attaches to interfaces, but collects all > interfaces in one go, leaving all unused interfaces available for other > drivers (e.g. umass) or claims them (to hide the 'driver disks'). It is the > main reason why I wrote a separate driver in the first place. Otherwise the > UMTS cards could be treated as serial ports without any port singalling. > > It is important to be able to determine in an automated way the 2 or more > serial ports that belong together. As an example: If you create a router > box that automatically configures itself depending on the hardware it > finds, we somehow need to find out which two serial ports are found on each > GPRS/UMTS card, so we can assign the first one to PPP and the other one to > our control application. > This has been fixed in P4 USB. --HPS