Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * V4L2 Image Converter Subdev for Freescale i.MX5/6 SOC
0004  *
0005  * Copyright (c) 2016 Mentor Graphics Inc.
0006  */
0007 #ifndef _IMX_IC_H
0008 #define _IMX_IC_H
0009 
0010 #include <media/v4l2-subdev.h>
0011 
0012 struct imx_ic_priv {
0013     struct device *ipu_dev;
0014     struct ipu_soc *ipu;
0015     struct v4l2_subdev sd;
0016     int    task_id;
0017     void   *task_priv;
0018 };
0019 
0020 struct imx_ic_ops {
0021     const struct v4l2_subdev_ops *subdev_ops;
0022     const struct v4l2_subdev_internal_ops *internal_ops;
0023     const struct media_entity_operations *entity_ops;
0024 
0025     int (*init)(struct imx_ic_priv *ic_priv);
0026     void (*remove)(struct imx_ic_priv *ic_priv);
0027 };
0028 
0029 extern struct imx_ic_ops imx_ic_prp_ops;
0030 extern struct imx_ic_ops imx_ic_prpencvf_ops;
0031 
0032 #endif