From owner-freebsd-usb@FreeBSD.ORG Mon Feb 9 15:58:19 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 781A6106564A for ; Mon, 9 Feb 2009 15:58:19 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 31F0D8FC1D for ; Mon, 9 Feb 2009 15:58:19 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n19FsDWM025769; Mon, 9 Feb 2009 08:54:13 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 09 Feb 2009 08:54:17 -0700 (MST) Message-Id: <20090209.085417.1342145568.imp@bsdimp.com> To: nick@anywi.com From: "M. Warner Losh" In-Reply-To: <200902091035.26738.nick@anywi.com> References: <200902041044.27663.hselasky@c2i.net> <20090204.085606.1630229139.imp@bsdimp.com> <200902091035.26738.nick@anywi.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org 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 15:58:19 -0000 In message: <200902091035.26738.nick@anywi.com> Nick Hibma writes: : > : > 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. If the devices have serial numbers, then I think that's published in the sysctl tree... Warner