Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ispccp2.h
Go to the documentation of this file.
1 /*
2  * ispccp2.h
3  *
4  * TI OMAP3 ISP - CCP2 module
5  *
6  * Copyright (C) 2010 Nokia Corporation
7  * Copyright (C) 2010 Texas Instruments, Inc.
8  *
9  * Contacts: Laurent Pinchart <[email protected]>
10  * Sakari Ailus <[email protected]>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2 as
14  * published by the Free Software Foundation.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24  * 02110-1301 USA
25  */
26 
27 #ifndef OMAP3_ISP_CCP2_H
28 #define OMAP3_ISP_CCP2_H
29 
30 #include <linux/videodev2.h>
31 
32 struct isp_device;
33 struct isp_csiphy;
34 
35 /* Sink and source ccp2 pads */
36 #define CCP2_PAD_SINK 0
37 #define CCP2_PAD_SOURCE 1
38 #define CCP2_PADS_NUM 2
39 
40 /* CCP2 input media entity */
45 };
46 
47 /* CCP2 output media entity */
52 };
53 
54 
55 /* Logical channel configuration */
57  int crc;
61 };
62 
63 /* Memory channel configuration */
70 };
71 
72 /* CCP2 device */
75  struct v4l2_mbus_framefmt formats[CCP2_PADS_NUM];
77 
83  struct isp_csiphy *phy;
88 };
89 
90 /* Function declarations */
91 int omap3isp_ccp2_init(struct isp_device *isp);
92 void omap3isp_ccp2_cleanup(struct isp_device *isp);
94  struct v4l2_device *vdev);
96 void omap3isp_ccp2_isr(struct isp_ccp2_device *ccp2);
97 
98 #endif /* OMAP3_ISP_CCP2_H */