video-clcd-versatile.h 719 B

123456789101112131415161718192021222324252627
  1. #ifndef PLAT_CLCD_H
  2. #define PLAT_CLCD_H
  3. #ifdef CONFIG_PLAT_VERSATILE_CLCD
  4. struct clcd_panel *versatile_clcd_get_panel(const char *);
  5. int versatile_clcd_setup_dma(struct clcd_fb *, unsigned long);
  6. int versatile_clcd_mmap_dma(struct clcd_fb *, struct vm_area_struct *);
  7. void versatile_clcd_remove_dma(struct clcd_fb *);
  8. #else
  9. static inline struct clcd_panel *versatile_clcd_get_panel(const char *s)
  10. {
  11. return NULL;
  12. }
  13. static inline int versatile_clcd_setup_dma(struct clcd_fb *fb, unsigned long framesize)
  14. {
  15. return -ENODEV;
  16. }
  17. static inline int versatile_clcd_mmap_dma(struct clcd_fb *fb, struct vm_area_struct *vm)
  18. {
  19. return -ENODEV;
  20. }
  21. static inline void versatile_clcd_remove_dma(struct clcd_fb *fb)
  22. {
  23. }
  24. #endif
  25. #endif