From owner-freebsd-questions Fri Dec 7 13: 9: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id C24B537B416 for ; Fri, 7 Dec 2001 13:09:01 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 54D65BE56; Fri, 7 Dec 2001 13:09:01 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id NAA07188; Fri, 7 Dec 2001 13:09:00 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id fB7L8em19499; Fri, 7 Dec 2001 13:08:40 -0800 (PST) (envelope-from swear@blarg.net) To: Yiping Chen Cc: "'questions@FreeBSD.org'" Subject: Re: Question about Freebsd driver References: From: swear@blarg.net (Gary W. Swearingen) Date: 07 Dec 2001 13:08:39 -0800 In-Reply-To: Message-ID: Lines: 31 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yiping Chen writes: > I have a question about Freebsd driver. > If we want to support some options in driver(like speed and duplex mode > setting) , > user can use this option to change driver configurations. > I am not sure whether freebsd driver support driver parameter. > Can you give me some suggestions? Thanks!! I'm just a FreeBSD user, but I think it's safe to say that you should try to contact the authors of the driver, unless that's you, of course. They'd probably be glad to assist you. I think driver paramters are passed to the driver source code (during the kernel or kernel module build) from their source in the KERNCONF file used to build the kernel (see Handbook). See examples in the "device" and "options" lines in /usr/src/sys/i386/conf/LINT file. I'm not sure how parameters are passed to drivers that are not compiled into the kernel, but are loaded at run time. I suspect that modules which are loaded at boot time get some info via /boot/defaults/loader.conf but I don't know. I suppose that the kernel's "sysctl" (has a man page) mechanism can be used to pass info to drivers, but I don't know how it's done. You're likely to get better info on the freebsd-stable, freebsd-current, freebsd-hackers, or probably a few other mailing lists that cater to software develepers more than users like freebsd-questions does. It's good to see VIA's interest in FreeBSD. Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message