Scott Jiang | 63b1a90 | 2012-03-08 17:44:17 -0300 | [diff] [blame] | 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 |