omap_vout_vrfb.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * omap_vout_vrfb.h
  3. *
  4. * Copyright (C) 2010 Texas Instruments.
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. *
  10. */
  11. #ifndef OMAP_VOUT_VRFB_H
  12. #define OMAP_VOUT_VRFB_H
  13. #ifdef CONFIG_VIDEO_OMAP2_VOUT_VRFB
  14. void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout);
  15. int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
  16. u32 static_vrfb_allocation);
  17. void omap_vout_release_vrfb(struct omap_vout_device *vout);
  18. int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
  19. unsigned int *count, unsigned int startindex);
  20. int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
  21. struct videobuf_buffer *vb);
  22. void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout);
  23. #else
  24. void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) { }
  25. int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
  26. u32 static_vrfb_allocation)
  27. { return 0; }
  28. void omap_vout_release_vrfb(struct omap_vout_device *vout) { }
  29. int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
  30. unsigned int *count, unsigned int startindex)
  31. { return 0; }
  32. int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
  33. struct videobuf_buffer *vb)
  34. { return 0; }
  35. void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout) { }
  36. #endif
  37. #endif