cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h

Dag-Erling Smørgrav des at des.no
Thu Jun 3 08:20:14 PDT 2004


"M. Warner Losh" <imp at bsdimp.com> writes:
> des at des.no (Dag-Erling Smørgrav) writes:
> : Scott Long <scottl at freebsd.org> writes:
> : This should be fairly easy to do.  I'll try to come up with some
> : patches.
> How about an API?  How does the driver deal with the global/instance
> variable split?  If I set dev.fxp.gerbil to 1 and dev.fxp.1.gerbil to
> 23?  Is that order dependent?

that's up to the driver author to decide.

so far, what I think I'll do is give each devclass its own context and
node, and place each device's node below the devclass's node, so you
get

dev.fxp.foo
dev.fxp.fxp0.%desc
dev.fxp.fxp0.%driver
dev.fxp.fxp0.%location
dev.fxp.fxp0.bar

you can't have the driver be the parent, because some devices have no
driver (but they all have a class), and I want to use dev.fxp.fxp0
instead of dev.fxp.0 on the off chance that there might be multiple
devices in a class with the same unit number but different names.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list