soc_camera_platform.h 719 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Generic Platform Camera Driver Header
  3. *
  4. * Copyright (C) 2008 Magnus Damm
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __SOC_CAMERA_H__
  11. #define __SOC_CAMERA_H__
  12. #include <linux/videodev2.h>
  13. #include <media/soc_camera.h>
  14. struct device;
  15. struct soc_camera_platform_info {
  16. int iface;
  17. const char *format_name;
  18. unsigned long format_depth;
  19. struct v4l2_pix_format format;
  20. unsigned long bus_param;
  21. struct device *dev;
  22. int (*set_capture)(struct soc_camera_platform_info *info, int enable);
  23. struct soc_camera_link link;
  24. };
  25. #endif /* __SOC_CAMERA_H__ */