Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vpif_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Texas Instruments Inc
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation version 2.
7  *
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.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */
17 #ifndef _VPIF_TYPES_H
18 #define _VPIF_TYPES_H
19 
20 #include <linux/i2c.h>
21 
22 #define VPIF_CAPTURE_MAX_CHANNELS 2
23 #define VPIF_DISPLAY_MAX_CHANNELS 2
24 
29 };
30 
33  unsigned hd_pol:1;
34  unsigned vd_pol:1;
35  unsigned fid_pol:1;
36 };
37 
39  const char *name;
41 };
42 
43 struct vpif_output {
45  const char *subdev_name;
48 };
49 
51  const struct vpif_output *outputs;
53  bool clip_en;
54 };
55 
61  const char *card_name;
62 };
63 
64 struct vpif_input {
65  struct v4l2_input input;
66  const char *subdev_name;
69 };
70 
73  const struct vpif_input *inputs;
75 };
76 
79  int (*setup_input_path)(int, const char *);
83  const char *card_name;
84 };
85 #endif /* _VPIF_TYPES_H */