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.
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
,
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
);
33 static inline struct vdoa_ctx
*vdoa_context_create(struct vdoa_data
*vdoa
)
38 static inline int vdoa_context_configure(struct vdoa_ctx
*ctx
,
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
)
58 #endif /* IMX_VDOA_H */