--- ../drm.orig/drm_agpsupport.h 2005-01-22 06:42:55.000000000 +0100 +++ drm_agpsupport.h 2005-01-26 22:25:46.000000000 +0100 @@ -37,6 +37,21 @@ #if __REALLY_HAVE_AGP +/* + * Interface between drm and agp code. When agp initializes, it makes + * the below structure available via inter_module_register(), drm might + * use it. Keith Owens 28 Oct 2000. + */ +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; #define DRM_AGP_GET (drm_agp_t *)inter_module_get("drm_agp") #define DRM_AGP_PUT inter_module_put("drm_agp")