--- agpgart_be.c.orig 2006-01-11 23:27:26.000000000 +0100 +++ agpgart_be.c 2006-01-11 23:28:51.000000000 +0100 @@ -127,6 +127,8 @@ #ifdef FGL_PM_PRESENT #include +// needed for suspend/resume to compile clean with 2.6.15: +#include #endif #include #include --- firegl_public.c.orig 2006-01-11 06:15:04.000000000 +0100 +++ firegl_public.c 2006-01-12 22:55:18.000000000 +0100 @@ -412,6 +412,9 @@ { "NULL", NULL } // Terminate List!!! }; + + + static struct proc_dir_entry *firegl_proc_init( device_t *dev, int minor, struct proc_dir_entry *root, @@ -1636,13 +1639,15 @@ return copy_to_user(to, from, size); } + int ATI_API_CALL __ke_verify_area(int type, const void * addr, unsigned long size) { -#ifdef access_ok +//#ifdef access_ok +// workaround for fglrx: Unknown symbol verify_area return access_ok(type,addr,size) ? 0 : -EFAULT; -#else - return verify_area(type, addr, size); -#endif +//#else +// return verify_area(type, addr, size); +//#endif } int ATI_API_CALL __ke_get_pci_device_info(__ke_pci_dev_t* dev, __ke_pci_device_info_t *pinfo) @@ -2621,7 +2626,7 @@ pMmPage = virt_to_page(kaddr); -#if 0 +#if LINUX_VERSION_CODE >= 0x02060f // WARNING WARNINIG WARNNING WARNNING WARNNING WARNNING WARNNING WARNNING // Don't increment page usage count, cause ctx pages are allocated // with drm_alloc_pages, which marks all pages as reserved. Reserved