aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/s5p_fimc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/s5p_fimc.h')
-rw-r--r--include/media/s5p_fimc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/media/s5p_fimc.h b/include/media/s5p_fimc.h
index 8587aaf73646..09421a611d73 100644
--- a/include/media/s5p_fimc.h
+++ b/include/media/s5p_fimc.h
@@ -12,6 +12,8 @@
12#ifndef S5P_FIMC_H_ 12#ifndef S5P_FIMC_H_
13#define S5P_FIMC_H_ 13#define S5P_FIMC_H_
14 14
15#include <media/media-entity.h>
16
15enum cam_bus_type { 17enum cam_bus_type {
16 FIMC_ITU_601 = 1, 18 FIMC_ITU_601 = 1,
17 FIMC_ITU_656, 19 FIMC_ITU_656,
@@ -80,4 +82,20 @@ struct fimc_pipeline {
80 struct media_pipeline *m_pipeline; 82 struct media_pipeline *m_pipeline;
81}; 83};
82 84
85/*
86 * Media pipeline operations to be called from within the fimc(-lite)
87 * video node when it is the last entity of the pipeline. Implemented
88 * by corresponding media device driver.
89 */
90struct fimc_pipeline_ops {
91 int (*open)(struct fimc_pipeline *p, struct media_entity *me,
92 bool resume);
93 int (*close)(struct fimc_pipeline *p);
94 int (*set_stream)(struct fimc_pipeline *p, bool state);
95};
96
97#define fimc_pipeline_call(f, op, p, args...) \
98 (!(f) ? -ENODEV : (((f)->pipeline_ops && (f)->pipeline_ops->op) ? \
99 (f)->pipeline_ops->op((p), ##args) : -ENOIOCTLCMD))
100
83#endif /* S5P_FIMC_H_ */ 101#endif /* S5P_FIMC_H_ */