author: Thomas Hellström <thomas.hellstrom@linux.intel.com> 2021-06-02 10:38:11 +0200
committer: Thomas Hellström <thomas.hellstrom@linux.intel.com> 2021-06-07 16:07:08 +0200
commit: b7e32bef4ae5f9149276203564b7911fac466588
parent: 3bf3710e3718a5aebdf465343bc1125b6e8cca96
Commit Summary:
Diffstat:
1 file changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h
index e9ad4863d915..cc9de1632dd3 100644
--- a/include/drm/drm_cache.h
+++ b/include/drm/drm_cache.h
@@ -35,6 +35,8 @@
#include <linux/scatterlist.h>
+struct dma_buf_map;
+
void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
void drm_clflush_sg(struct sg_table *st);
void drm_clflush_virt_range(void *addr, unsigned long length);
@@ -70,4 +72,9 @@ static inline bool drm_arch_can_wc_memory(void)
#endif
}
+void drm_memcpy_init_early(void);
+
+void drm_memcpy_from_wc(struct dma_buf_map *dst,
+ const struct dma_buf_map *src,
+ unsigned long len);
#endif