bfin_capture.h 756 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _BFIN_CAPTURE_H_
  2. #define _BFIN_CAPTURE_H_
  3. #include <linux/i2c.h>
  4. struct v4l2_input;
  5. struct ppi_info;
  6. struct bcap_route {
  7. u32 input;
  8. u32 output;
  9. u32 ppi_control;
  10. };
  11. struct bfin_capture_config {
  12. /* card name */
  13. char *card_name;
  14. /* inputs available at the sub device */
  15. struct v4l2_input *inputs;
  16. /* number of inputs supported */
  17. int num_inputs;
  18. /* routing information for each input */
  19. struct bcap_route *routes;
  20. /* i2c bus adapter no */
  21. int i2c_adapter_id;
  22. /* i2c subdevice board info */
  23. struct i2c_board_info board_info;
  24. /* ppi board info */
  25. const struct ppi_info *ppi_info;
  26. /* ppi control */
  27. unsigned long ppi_control;
  28. /* ppi interrupt mask */
  29. u32 int_mask;
  30. /* horizontal blanking pixels */
  31. int blank_pixels;
  32. };
  33. #endif