Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Dec 2001 12:33:26 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Yiping Chen <YipingChen@via.com.tw>
Cc:        "'current@FreeBSD.org'" <current@FreeBSD.org>
Subject:   Re: Question about Freebsd driver 
Message-ID:  <200112092033.fB9KXQe01376@mass.dis.org>
In-Reply-To: Your message of "Fri, 07 Dec 2001 22:43:28 %2B0800." <AAC504441CD3D51190540050DA92E076458F7C@exchtp02.via.com.tw> 

next in thread | previous in thread | raw e-mail | index | archive | help

> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112092033.fB9KXQe01376>