fimc-isp-video.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
  3. *
  4. * Copyright (C) 2013 Samsung Electronics Co., Ltd.
  5. * Sylwester Nawrocki <s.nawrocki@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef FIMC_ISP_VIDEO__
  12. #define FIMC_ISP_VIDEO__
  13. #include <media/videobuf2-v4l2.h>
  14. #include "fimc-isp.h"
  15. #ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE
  16. int fimc_isp_video_device_register(struct fimc_isp *isp,
  17. struct v4l2_device *v4l2_dev,
  18. enum v4l2_buf_type type);
  19. void fimc_isp_video_device_unregister(struct fimc_isp *isp,
  20. enum v4l2_buf_type type);
  21. void fimc_isp_video_irq_handler(struct fimc_is *is);
  22. #else
  23. static inline void fimc_isp_video_irq_handler(struct fimc_is *is)
  24. {
  25. }
  26. static inline int fimc_isp_video_device_register(struct fimc_isp *isp,
  27. struct v4l2_device *v4l2_dev,
  28. enum v4l2_buf_type type)
  29. {
  30. return 0;
  31. }
  32. void fimc_isp_video_device_unregister(struct fimc_isp *isp,
  33. enum v4l2_buf_type type)
  34. {
  35. }
  36. #endif /* !CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE */
  37. #endif /* FIMC_ISP_VIDEO__ */