From owner-freebsd-current@FreeBSD.ORG Mon Oct 29 19:53:13 2007 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 D557816A41A for ; Mon, 29 Oct 2007 19:53:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C772F13C4D1 for ; Mon, 29 Oct 2007 19:53:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 1D0961A3C1A; Sun, 28 Oct 2007 20:53:28 -0700 (PDT) From: John Baldwin To: "Robert Backhaus" Date: Sun, 28 Oct 2007 23:50:47 -0400 User-Agent: KMail/1.9.7 References: <200710111741.34992.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710282350.48031.jhb@freebsd.org> Cc: current@freebsd.org Subject: Re: New-bus unit wiring via hints.. 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: Mon, 29 Oct 2007 19:53:13 -0000 On Sunday 28 October 2007 07:08:13 pm Robert Backhaus wrote: > Any chance of extending this to the USB bus? The problem of 'wandering > ugen' and 'wandering ulpt' devices has been bothering me for a while > now. > It would also help if it could be used to tell more specific drivers > to leave a device for ugen - for instance, HP USB printers are best > addressed by ugen, and the user mode drivers take it from there. You > loose functionality if you have to talk through the ulpt drivers. You could easily extend it to USB if you can come up with a reasonable way to specify the wiring. You could possibly wire units via hints that specify serial numbers or manfacturer and model strings, etc. However, I'm less familiar with USB so I'm less unsure what specific attributes would be suitable for wiring or not. As far as the second problem, that is not a unit wiring issue per-se. I think uhid(4) currently has a blacklist of devices it ignores (like some APC UPS devices that apcupsd wants to be ugen0 rather than uhid0). You could port that support over to ulpt(4) and add a blacklist to it perhaps. -- John Baldwin