From owner-freebsd-current Sun Dec 9 12:28:18 2001 Delivered-To: freebsd-current@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id F257537B416 for ; Sun, 9 Dec 2001 12:28:09 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.3) with ESMTP id fB9KXQe01376; Sun, 9 Dec 2001 12:33:28 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200112092033.fB9KXQe01376@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Yiping Chen Cc: "'current@FreeBSD.org'" Subject: Re: Question about Freebsd driver In-reply-to: Your message of "Fri, 07 Dec 2001 22:43:28 +0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 09 Dec 2001 12:33:26 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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 or something else. Can you give me some > suggestions? Thanks!! From the question, I infer that you are referring to Ethernet device drivers. In the FreeBSD model, devices fit into one or more of a set of classes. Each class has an established, device-independant mechanism for controlling driver parameters. In the case of Ethernet drivers, parameters are controlled via the driver's ioctl interface. You should be able to find good examples of this in the source for other drivers similar to your own. If you have more specific questions, please feel free to ask them here. Regards, Mike -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message