hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * V4L2 Image Converter Subdev for Freescale i.MX5/6 SOC
 *
 * Copyright (c) 2016 Mentor Graphics Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
#ifndef _IMX_IC_H
#define _IMX_IC_H
 
#include <media/v4l2-subdev.h>
 
struct imx_ic_priv {
   struct device *dev;
   struct v4l2_subdev sd;
   int    ipu_id;
   int    task_id;
   void   *prp_priv;
   void   *task_priv;
};
 
struct imx_ic_ops {
   const struct v4l2_subdev_ops *subdev_ops;
   const struct v4l2_subdev_internal_ops *internal_ops;
   const struct media_entity_operations *entity_ops;
 
   int (*init)(struct imx_ic_priv *ic_priv);
   void (*remove)(struct imx_ic_priv *ic_priv);
};
 
extern struct imx_ic_ops imx_ic_prp_ops;
extern struct imx_ic_ops imx_ic_prpencvf_ops;
extern struct imx_ic_ops imx_ic_pp_ops;
 
#endif