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