--- agpgart_be.c.orig 2004-12-14 09:55:47.000000000 -0800 +++ agpgart_be.c 2005-01-24 17:09:15.000000000 -0800 @@ -117,6 +117,10 @@ #include #include +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) +#define pci_find_class pci_get_class +#endif + #if (LINUX_VERSION_CODE >= 0x020400) #define FGL_PM_PRESENT #else @@ -6469,6 +6473,7 @@ // FGL - end +#ifdef __x86_64__ static int agp_check_supported_device(struct pci_dev *dev) { @@ -6483,13 +6488,16 @@ return 0; } +#endif /* Supported Device Scanning routine */ static int __init agp_find_supported_device(void) { struct pci_dev *dev = NULL; +#ifdef __x86_64__ u8 cap_ptr = 0x00; +#endif // locate host bridge device #ifdef __x86_64__