@@ -497,11 +497,4 @@ drm_agp_bind_pages(struct drm_device *dev,
return mem;
}
EXPORT_SYMBOL(drm_agp_bind_pages);
-
-void drm_agp_chipset_flush(struct drm_device *dev)
-{
- agp_flush_chipset(dev->agp->bridge);
-}
-EXPORT_SYMBOL(drm_agp_chipset_flush);
-
#endif /* __OS_HAS_AGP */
@@ -1901,7 +1901,7 @@ i915_gem_flush(struct drm_device *dev,
invalidate_domains, flush_domains);
if (flush_domains & I915_GEM_DOMAIN_CPU)
- drm_agp_chipset_flush(dev);
+ agp_flush_chipset(dev->agp->bridge);
if ((invalidate_domains | flush_domains) & I915_GEM_GPU_DOMAINS) {
/*
@@ -2795,7 +2795,7 @@ i915_gem_object_flush_cpu_write_domain(struct drm_gem_object *obj)
return;
i915_gem_clflush_object(obj);
- drm_agp_chipset_flush(dev);
+ agp_flush_chipset(dev->agp->bridge);
old_write_domain = obj->write_domain;
obj->write_domain = 0;
@@ -4962,7 +4962,7 @@ void i915_gem_detach_phys_object(struct drm_device *dev,
kunmap_atomic(dst, KM_USER0);
}
drm_clflush_pages(obj_priv->pages, page_count);
- drm_agp_chipset_flush(dev);
+ agp_flush_chipset(dev->agp->bridge);
i915_gem_object_put_pages(obj);
out:
@@ -5047,7 +5047,7 @@ i915_gem_phys_pwrite(struct drm_device *dev, struct drm_gem_object *obj,
if (ret)
return -EFAULT;
- drm_agp_chipset_flush(dev);
+ agp_flush_chipset(dev->agp->bridge);
return 0;
}
@@ -1341,7 +1341,6 @@ extern DRM_AGP_MEM *drm_agp_allocate_memory(struct agp_bridge_data *bridge, size
extern int drm_agp_free_memory(DRM_AGP_MEM * handle);
extern int drm_agp_bind_memory(DRM_AGP_MEM * handle, off_t start);
extern int drm_agp_unbind_memory(DRM_AGP_MEM * handle);
-extern void drm_agp_chipset_flush(struct drm_device *dev);
/* Stub support (drm_stub.h) */
extern int drm_setmaster_ioctl(struct drm_device *dev, void *data,