+++ /dev/null
---- X11-driver-firegl-8.23.7/common/lib/modules/fglrx/build_mod/firegl_public.c.orig 2006-04-15 02:25:12.183912250 +0200
-+++ X11-driver-firegl-8.23.7/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-04-15 02:25:28.484931000 +0200
-@@ -21,6 +21,8 @@
- !!! since it requires changes to linux/init/main.c.
- #endif /* !MODULE */
-
-+#define __AGP__ 1
-+
- // ============================================================
- #include <linux/version.h>
- #ifdef MODVERSIONS
+++ /dev/null
---- XFree86-driver-firegl-3.2.5/lib/modules/fglrx/build_mod/make.sh.org 2003-09-21 13:27:52.000000000 +0200
-+++ XFree86-driver-firegl-3.2.5/lib/modules/fglrx/build_mod/make.sh 2003-09-21 13:29:03.000000000 +0200
-@@ -47,7 +47,7 @@
-
- # ==============================================================
- # system/kernel identification
--uname_r=`uname -r`
-+uname_r=`rpm -q kernel-headers |awk -F- '{print $3}'`
- uname_v=`uname -v`
- uname_s=`uname -s`
- uname_m=`uname -m`
+++ /dev/null
---- a/lib/modules/fglrx/build_mod/agpgart_be.c 2005-05-06 19:38:20.097954488 +0200
-+++ b/lib/modules/fglrx/build_mod/agpgart_be.c 2005-05-06 18:33:55.722009576 +0200
-@@ -6185,6 +6185,18 @@
- "Via",
- "Apollo P4M266",
- via_generic_setup },
-+ { PCI_DEVICE_ID_VIA_8380_0,
-+ PCI_VENDOR_ID_VIA,
-+ AMD_8151,
-+ "AMD",
-+ "On-CPU GART",
-+ amd_8151_setup },
-+ { PCI_DEVICE_ID_VIA_8385_0,
-+ PCI_VENDOR_ID_VIA,
-+ AMD_8151,
-+ "AMD",
-+ "On-CPU GART",
-+ amd_8151_setup },
- { 0,
- PCI_VENDOR_ID_VIA,
- VIA_GENERIC,
---- a/lib/modules/fglrx/build_mod/agp.h 2005-05-06 19:38:19.671019392 +0200
-+++ b/lib/modules/fglrx/build_mod/agp.h 2005-05-06 18:37:10.403413504 +0200
-@@ -202,6 +202,8 @@
- #define SIS_GENERIC _X(SIS_GENERIC)
- #define AMD_GENERIC _X(AMD_GENERIC)
- #define AMD_IRONGATE _X(AMD_IRONGATE)
-+ #define PCI_DEVICE_ID_VIA_8380_0 0x0204
-+ #define PCI_DEVICE_ID_VIA_8385_0 0x3188
- // #define AMD_IGD4 _X(AMD_IGD4)
- // #define AMD_IGD4_2P _X(AMD_IGD4_2P)
- #define AMD_761 _X(AMD_761)