aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-25 13:47:30 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-27 07:19:45 -0400
commit6d5cd9cb1e32e4f4e4468704430b26bcb0bfb129 (patch)
tree8dbb4943c5bafc999421d395d8a1f656bbb35ca0 /include/drm
parentdbf7bff074d5fdc87c61b1b41d8e809109cf0bf8 (diff)
drm: add helper to clflush a virtual address range
Useful when the page is already mapped to copy date in/out. For -stable because the next patch (fixing phys obj pwrite) needs this little helper function. Tested-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 92f0981b5fb8..d33597bcc77c 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1332,6 +1332,7 @@ extern int drm_remove_magic(struct drm_master *master, drm_magic_t magic);
1332 1332
1333/* Cache management (drm_cache.c) */ 1333/* Cache management (drm_cache.c) */
1334void drm_clflush_pages(struct page *pages[], unsigned long num_pages); 1334void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
1335void drm_clflush_virt_range(char *addr, unsigned long length);
1335 1336
1336 /* Locking IOCTL support (drm_lock.h) */ 1337 /* Locking IOCTL support (drm_lock.h) */
1337extern int drm_lock(struct drm_device *dev, void *data, 1338extern int drm_lock(struct drm_device *dev, void *data,