diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2012-03-08 15:44:17 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 14:08:20 -0400 |
commit | 63b1a90da93e019adcafa2b2b1b921fc97debec5 (patch) | |
tree | 1b90018dd9b9ac89207293be1672427ac377c33e /include/media/blackfin/bfin_capture.h | |
parent | f877ed9780f43da51a4544e5b90b7f4a145964ff (diff) |
[media] add blackfin capture bridge driver
This is a v4l2 bridge driver for Blackfin video capture device, support ppi and eppi interface.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/blackfin/bfin_capture.h')
-rw-r--r-- | include/media/blackfin/bfin_capture.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/media/blackfin/bfin_capture.h b/include/media/blackfin/bfin_capture.h new file mode 100644 index 000000000000..2038a8a3f8aa --- /dev/null +++ b/include/media/blackfin/bfin_capture.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef _BFIN_CAPTURE_H_ | ||
2 | #define _BFIN_CAPTURE_H_ | ||
3 | |||
4 | #include <linux/i2c.h> | ||
5 | |||
6 | struct v4l2_input; | ||
7 | struct ppi_info; | ||
8 | |||
9 | struct bcap_route { | ||
10 | u32 input; | ||
11 | u32 output; | ||
12 | }; | ||
13 | |||
14 | struct bfin_capture_config { | ||
15 | /* card name */ | ||
16 | char *card_name; | ||
17 | /* inputs available at the sub device */ | ||
18 | struct v4l2_input *inputs; | ||
19 | /* number of inputs supported */ | ||
20 | int num_inputs; | ||
21 | /* routing information for each input */ | ||
22 | struct bcap_route *routes; | ||
23 | /* i2c bus adapter no */ | ||
24 | int i2c_adapter_id; | ||
25 | /* i2c subdevice board info */ | ||
26 | struct i2c_board_info board_info; | ||
27 | /* ppi board info */ | ||
28 | const struct ppi_info *ppi_info; | ||
29 | /* ppi control */ | ||
30 | unsigned long ppi_control; | ||
31 | /* ppi interrupt mask */ | ||
32 | u32 int_mask; | ||
33 | /* horizontal blanking clocks */ | ||
34 | int blank_clocks; | ||
35 | }; | ||
36 | |||
37 | #endif | ||