Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / platform / coda / imx-vdoa.h
bloba62eab476d58c838c74e8530f9099966cd26f9ac
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2016 Pengutronix
4 */
6 #ifndef IMX_VDOA_H
7 #define IMX_VDOA_H
9 struct vdoa_data;
10 struct vdoa_ctx;
12 #if (defined CONFIG_VIDEO_IMX_VDOA || defined CONFIG_VIDEO_IMX_VDOA_MODULE)
14 struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa);
15 int vdoa_context_configure(struct vdoa_ctx *ctx,
16 unsigned int width, unsigned int height,
17 u32 pixelformat);
18 void vdoa_context_destroy(struct vdoa_ctx *ctx);
20 void vdoa_device_run(struct vdoa_ctx *ctx, dma_addr_t dst, dma_addr_t src);
21 int vdoa_wait_for_completion(struct vdoa_ctx *ctx);
23 #else
25 static inline struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa)
27 return NULL;
30 static inline int vdoa_context_configure(struct vdoa_ctx *ctx,
31 unsigned int width,
32 unsigned int height,
33 u32 pixelformat)
35 return 0;
38 static inline void vdoa_context_destroy(struct vdoa_ctx *ctx) { };
40 static inline void vdoa_device_run(struct vdoa_ctx *ctx,
41 dma_addr_t dst, dma_addr_t src) { };
43 static inline int vdoa_wait_for_completion(struct vdoa_ctx *ctx)
45 return 0;
48 #endif
50 #endif /* IMX_VDOA_H */