[PATCH] agpgart splitup and cleanup for 2.5.25

From: Greg KH (greg@kroah.com)
Date: Thu Jul 11 2002 - 18:02:23 EST


So there I was, trying to remove pci_find_device() and pci_find_class()
from the 2.5 kernel (it's an old depreciated api, so don't start
complaining...) when I ran across the agpgart code which uses
pci_find_class(). I realized I'd have to fix this driver to use the
"new" pci api if I had a chance of getting rid of pci_find_class().
Dave Jones had previously split up this driver into some very nice
logical parts, and it has been living successfully in his tree for a
while now.

So I took that patch, and cleaned it up a bit more (removed some
unneeded typedefs, whitespace changes, moved the Config.in and
Configure.help stuff to the drivers/char/agp directory) and ported the
driver to the pci_register_module() api. It seems to work for me, so I
would appreciate it if other people tested it out before I sent it on to
Linus for inclusion in the main 2.5 tree.

It can be found at:
        http://www.kernel.org/pub/linux/kernel/people/gregkh/misc/agpgart-2.5.25.patch.bz2

Here's the diffstat output of it:
 drivers/char/Config.help | 87
 drivers/char/Config.in | 15
 drivers/char/agp/Config.help | 88
 drivers/char/agp/Config.in | 14
 drivers/char/agp/Makefile | 13
 drivers/char/agp/agp.h | 348 +-
 drivers/char/agp/agpgart_be-ali.c | 265 ++
 drivers/char/agp/agpgart_be-amd.c | 408 +++
 drivers/char/agp/agpgart_be-hp.c | 394 +++
 drivers/char/agp/agpgart_be-i460.c | 595 ++++
 drivers/char/agp/agpgart_be-i810.c | 594 ++++
 drivers/char/agp/agpgart_be-i8x0.c | 720 +++++
 drivers/char/agp/agpgart_be-sis.c | 142 +
 drivers/char/agp/agpgart_be-sworks.c | 626 +++++
 drivers/char/agp/agpgart_be-via.c | 151 +
 drivers/char/agp/agpgart_be.c | 4368 +++--------------------------------
 drivers/char/agp/agpgart_fe.c | 15
 include/linux/agp_backend.h | 6
 include/linux/agpgart.h | 10
 19 files changed, 4682 insertions(+), 4177 deletions(-)

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:21 EST