From owner-freebsd-current@FreeBSD.ORG Thu May 28 22:26:36 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE2F91065749 for ; Thu, 28 May 2009 22:26:36 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id AF1B58FC36 for ; Thu, 28 May 2009 22:26:36 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 7B742FF2F for ; Fri, 29 May 2009 10:26:35 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KlOvd9a-iLmu for ; Fri, 29 May 2009 10:26:31 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP for ; Fri, 29 May 2009 10:26:31 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 0A78E11432; Fri, 29 May 2009 10:26:31 +1200 (NZST) Date: Thu, 28 May 2009 15:26:30 -0700 From: Andrew Thompson To: current@freebsd.org Message-ID: <20090528222630.GF74376@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: ugen and newbus X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 22:26:37 -0000 Hi, On the new usb stack the ugen driver attaches to all usb devices and generates a devd attach event but doesnt actually have a device entry. It either needs to be a device or use a different devd notification. It would be easier if it was a device as that takes care of the housekeeping. I am not sure that the best way to attach it into the device tree, a ugen device represents a physical unit and may have multiple usb drivers attach (like a 3g device with a built in sd reader). ehci0 usbus0 uhub0 umass0 umass1 uhub1 u3g0 umass2 uplcom0 uplcom1 This would become ehci0 usbus0 ugen0 uhub0 ugen1 umass0 ugen2 umass1 ugen3 uhub1 ugen4 u3g0 umass2 ugen5 uplcom0 ugen6 uplcom1 Is that the right way to do it? Andrew