Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
6bcfe8ea DK |
2 | #ifndef __DRM_FB_DMA_HELPER_H__ |
3 | #define __DRM_FB_DMA_HELPER_H__ | |
2e3b3c42 | 4 | |
9d10fc26 BG |
5 | #include <linux/types.h> |
6 | ||
b0906904 | 7 | struct drm_device; |
2e3b3c42 | 8 | struct drm_framebuffer; |
196594ef | 9 | struct drm_plane_state; |
2e3b3c42 | 10 | |
4a83c26a | 11 | struct drm_gem_dma_object *drm_fb_dma_get_gem_obj(struct drm_framebuffer *fb, |
2e3b3c42 LPC |
12 | unsigned int plane); |
13 | ||
6bcfe8ea | 14 | dma_addr_t drm_fb_dma_get_gem_addr(struct drm_framebuffer *fb, |
4636ce93 YF |
15 | struct drm_plane_state *state, |
16 | unsigned int plane); | |
17 | ||
6bcfe8ea | 18 | void drm_fb_dma_sync_non_coherent(struct drm_device *drm, |
b0906904 PC |
19 | struct drm_plane_state *old_state, |
20 | struct drm_plane_state *state); | |
21 | ||
2e3b3c42 LPC |
22 | #endif |
23 |