2 * Copyright (C) 2011 Texas Instruments Inc
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.
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.
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
20 #define VPIF_CAPTURE_MAX_CHANNELS 2
28 struct vpif_interface
{
29 enum vpif_if_type if_type
;
35 struct vpif_subdev_info
{
37 struct i2c_board_info board_info
;
41 struct vpif_interface vpif_if
;
44 struct vpif_display_config
{
45 int (*set_clock
)(int, int);
46 struct vpif_subdev_info
*subdevinfo
;
50 const char *card_name
;
54 struct v4l2_input input
;
55 const char *subdev_name
;
58 struct vpif_capture_chan_config
{
59 const struct vpif_input
*inputs
;
63 struct vpif_capture_config
{
64 int (*setup_input_channel_mode
)(int);
65 int (*setup_input_path
)(int, const char *);
66 struct vpif_capture_chan_config chan_config
[VPIF_CAPTURE_MAX_CHANNELS
];
67 struct vpif_subdev_info
*subdev_info
;
69 const char *card_name
;
71 #endif /* _VPIF_TYPES_H */