kobj multiple inheritance

M. Warner Losh imp at bsdimp.com
Mon Sep 22 18:02:09 PDT 2003


In message: <1064266269.68463.42.camel at herring.nlsystems.com>
            Doug Rabson <dfr at nlsystems.com> writes:
: > The goal was to be able to do things like, using cardbus as an example,
: > inheret all of the interfaces of PCI adding in the CIS parsing interface
: > shared with pccard.  CIS parsing is just a list of methods that doesn't
: > make sense to be a "driver class" on its own.
: 
: I think that you can do exactly this with what I've proposed.

I think so too.  However, from a practical point of view, I'm not so
sure that sharing the CIS parsing code is a good idea.  I'm not sure
they are similar enough that it would be a significant win.  The nuts
and bolts of parsing the containers of the CIS entries is the same,
but the details of digging out the information and doing resource
stuff is rather different.  The pccard parsing is rather fragile right
now and would require a big re-write to make this a viable option.

It does make a good example, however, if we were doing things
completely from scratch.  However, there are a number of other
problems in newcard right now that I'd strong recommend against such a
re-write for a while yet...

Warner


More information about the freebsd-arch mailing list