blob: 56b9ce4472fc0bc04e25666c0373251dc9267d71 [file] [log] [blame]
Scott Jiang63b1a902012-03-08 17:44:17 -03001#ifndef _BFIN_CAPTURE_H_
2#define _BFIN_CAPTURE_H_
3
4#include <linux/i2c.h>
5
6struct v4l2_input;
7struct ppi_info;
8
9struct bcap_route {
10 u32 input;
11 u32 output;
Scott Jiang45b82592012-11-20 15:49:36 -030012 u32 ppi_control;
Scott Jiang63b1a902012-03-08 17:44:17 -030013};
14
15struct bfin_capture_config {
16 /* card name */
17 char *card_name;
18 /* inputs available at the sub device */
19 struct v4l2_input *inputs;
20 /* number of inputs supported */
21 int num_inputs;
22 /* routing information for each input */
23 struct bcap_route *routes;
24 /* i2c bus adapter no */
25 int i2c_adapter_id;
26 /* i2c subdevice board info */
27 struct i2c_board_info board_info;
28 /* ppi board info */
29 const struct ppi_info *ppi_info;
30 /* ppi control */
31 unsigned long ppi_control;
32 /* ppi interrupt mask */
33 u32 int_mask;
Scott Jiang45b82592012-11-20 15:49:36 -030034 /* horizontal blanking pixels */
35 int blank_pixels;
Scott Jiang63b1a902012-03-08 17:44:17 -030036};
37
38#endif