1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2016 Pengutronix
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,
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);
25 static inline struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa)
30 static inline int vdoa_context_configure(struct vdoa_ctx *ctx,
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)
50 #endif /* IMX_VDOA_H */