From owner-freebsd-questions@FreeBSD.ORG Sat May 14 12:06:11 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D59E16A4CE for ; Sat, 14 May 2005 12:06:11 +0000 (GMT) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFF9143D77 for ; Sat, 14 May 2005 12:06:10 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by pih-relay06.plus.net with esmtp (Exim) id 1DWvPF-0004xI-AT for freebsd-questions@freebsd.org; Sat, 14 May 2005 13:06:09 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Sat, 14 May 2005 13:05:59 +0100 User-Agent: KMail/1.8 References: <42857A92.3020000@eldocomp.com> In-Reply-To: <42857A92.3020000@eldocomp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505141305.59707.ian@codepad.net> Subject: Re: Loading USB Drivers with Parameters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 12:06:11 -0000 On Saturday 14 May 2005 05:12, William Bloom wrote: > I've had occasion to want to be able to load the ucom driver while > customizing how it attaches devices. Especially, I have the Qualcomm 5220 > EVDO modem card in mind, which can function as a USB serial device but does > not make itself known as a generic serial device. It happens that Linux > can use its stock serial USB driver for the 5220 by loading it with some > parameters... > > modprobe usbserial vendor=0xf3d product=0x0112 > > ...that direct the driver to attach a specified vendor/product. > > It's not apparent to me that FreeBSD has a comparable feature for its USB > drivers (or ucom in particular). In fact, there isn't any way (well, not > mentioned on the kldload man page) to pass parameters of any kind to ucom. > > How would one solve this problem in FreeBSD? Would one have to create a > new, specialized USB driver that works in concert with the ucom device > driver after the fashion of the uplcom or umct drivers? > > > Bill device.hints can be used to tell drivers where to attach I think. -- /Xian "The eternal mystery of the world is its comprehensibility." Albert Einstein