Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / include / drm / drm_format_helper.h
blob5f9e370324684b15430800683e8a50f63147da4f
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2016 Noralf Trønnes
4 */
6 #ifndef __LINUX_DRM_FORMAT_HELPER_H
7 #define __LINUX_DRM_FORMAT_HELPER_H
9 struct drm_framebuffer;
10 struct drm_rect;
12 void drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb,
13 struct drm_rect *clip);
14 void drm_fb_memcpy_dstclip(void __iomem *dst, void *vaddr,
15 struct drm_framebuffer *fb,
16 struct drm_rect *clip);
17 void drm_fb_swab(void *dst, void *src, struct drm_framebuffer *fb,
18 struct drm_rect *clip, bool cached);
19 void drm_fb_xrgb8888_to_rgb565(void *dst, void *vaddr,
20 struct drm_framebuffer *fb,
21 struct drm_rect *clip, bool swab);
22 void drm_fb_xrgb8888_to_rgb565_dstclip(void __iomem *dst, unsigned int dst_pitch,
23 void *vaddr, struct drm_framebuffer *fb,
24 struct drm_rect *clip, bool swab);
25 void drm_fb_xrgb8888_to_rgb888_dstclip(void __iomem *dst, unsigned int dst_pitch,
26 void *vaddr, struct drm_framebuffer *fb,
27 struct drm_rect *clip);
28 void drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb,
29 struct drm_rect *clip);
31 #endif /* __LINUX_DRM_FORMAT_HELPER_H */