--- firegl_public.c-orig 2005-01-22 13:06:54.979098000 +0200 +++ firegl_public.c 2005-01-22 22:14:03.395750408 +0200 @@ -2800,6 +2800,37 @@ int ATI_API_CALL __ke_vm_map(struct file #if LINUX_VERSION_CODE >= 0x020400 +#if LINUX_VERSION_CODE >= 0x02060b + +typedef struct { + void (*free_memory)(struct agp_memory *); + struct agp_memory * (*allocate_memory)(size_t, u32); + int (*bind_memory)(struct agp_memory *, off_t); + int (*unbind_memory)(struct agp_memory *); + void (*enable)(u32); + int (*acquire)(void); + void (*release)(void); + int (*copy_info)(struct agp_kern_info *); +} drm_agp_t; + +static const drm_agp_t drm_agp = { + &agp_free_memory, + &agp_allocate_memory, + &agp_bind_memory, + &agp_unbind_memory, + &agp_enable, + &agp_backend_acquire, + &agp_backend_release, + &agp_copy_info +}; +#undef DRM_AGP_MODULE_GET +#undef DRM_AGP_MODULE_PUT + +#define DRM_AGP_MODULE_GET &drm_agp +#define DRM_AGP_MODULE_PUT + +#endif + static const drm_agp_t *drm_agp_module_stub = NULL; #define AGP_FUNCTIONS 8