Date: Mon, 22 Sep 2003 19:02:08 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: dfr@nlsystems.com Cc: arch@freebsd.org Subject: Re: kobj multiple inheritance Message-ID: <20030922.190208.46315325.imp@bsdimp.com> In-Reply-To: <1064266269.68463.42.camel@herring.nlsystems.com> References: <1064261482.68463.13.camel@herring.nlsystems.com> <1448210000.1064263540@aslan.btc.adaptec.com> <1064266269.68463.42.camel@herring.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <1064266269.68463.42.camel@herring.nlsystems.com> Doug Rabson <dfr@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030922.190208.46315325.imp>