On Tuesday 10 June 2003 6:57 pm, Linus Torvalds wrote:
> On Tue, 10 Jun 2003, Dave Jones wrote:
> > (In fact the agpgart code
> > really doesn't handle this concept at all due to the extensive
> > usage of aperture type macros/typedefs).
>
> Why _is_ that AGP code using those silly thing in the first place?
>
> I actually looked at writing an AGP subdriver without using any of
> the common AGP infrastructure (just writing the "insert_entries()"
> and "remove_entries()" functions directly, without caring about those
> broken AGP "generic helper functions") and it looked _simpler_ than
> much of the crap that is there now.
This is more-or-less how the FreeBSD agp driver works for what its
worth. The chipset minidrivers are responsible for initialising the
aperture and inserting/removing entries. Common code in the main driver
handles the ioctl and kernel programming interfaces.
>
> It's sad when the helper functions end up being more bother than
> help.
You are welcome to use the FreeBSD driver as a starting point - just
leave my copyright in there :-)
--
Doug Rabson Mail: [EMAIL PROTECTED]
Phone: +44 20 8348 6160
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel