perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / drivers / media / platform / coda / imx-vdoa.h
blob967576b2a06a0163bf73cc1d55b1b98c77e74514
1 /*
2 * Copyright (C) 2016 Pengutronix
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef IMX_VDOA_H
15 #define IMX_VDOA_H
17 struct vdoa_data;
18 struct vdoa_ctx;
20 #if (defined CONFIG_VIDEO_IMX_VDOA || defined CONFIG_VIDEO_IMX_VDOA_MODULE)
22 struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa);
23 int vdoa_context_configure(struct vdoa_ctx *ctx,
24 unsigned int width, unsigned int height,
25 u32 pixelformat);
26 void vdoa_context_destroy(struct vdoa_ctx *ctx);
28 void vdoa_device_run(struct vdoa_ctx *ctx, dma_addr_t dst, dma_addr_t src);
29 int vdoa_wait_for_completion(struct vdoa_ctx *ctx);
31 #else
33 static inline struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa)
35 return NULL;
38 static inline int vdoa_context_configure(struct vdoa_ctx *ctx,
39 unsigned int width,
40 unsigned int height,
41 u32 pixelformat)
43 return 0;
46 static inline void vdoa_context_destroy(struct vdoa_ctx *ctx) { };
48 static inline void vdoa_device_run(struct vdoa_ctx *ctx,
49 dma_addr_t dst, dma_addr_t src) { };
51 static inline int vdoa_wait_for_completion(struct vdoa_ctx *ctx)
53 return 0;
56 #endif
58 #endif /* IMX_VDOA_H */