| 1 | #ifndef _LINUX_FBCON_H |
| 2 | #define _LINUX_FBCON_H |
| 3 | |
| 4 | #include <linux/compiler_types.h> |
| 5 | |
| 6 | struct fb_blit_caps; |
| 7 | struct fb_info; |
| 8 | struct fb_var_screeninfo; |
| 9 | struct fb_videomode; |
| 10 | |
| 11 | #ifdef CONFIG_FRAMEBUFFER_CONSOLE |
| 12 | void __init fb_console_init(void); |
| 13 | void __exit fb_console_exit(void); |
| 14 | int fbcon_fb_registered(struct fb_info *info); |
| 15 | void fbcon_fb_unregistered(struct fb_info *info); |
| 16 | void fbcon_fb_unbind(struct fb_info *info); |
| 17 | void fbcon_suspended(struct fb_info *info); |
| 18 | void fbcon_resumed(struct fb_info *info); |
| 19 | int fbcon_mode_deleted(struct fb_info *info, |
| 20 | struct fb_videomode *mode); |
| 21 | void fbcon_delete_modelist(struct list_head *head); |
| 22 | void fbcon_new_modelist(struct fb_info *info); |
| 23 | void fbcon_get_requirement(struct fb_info *info, |
| 24 | struct fb_blit_caps *caps); |
| 25 | void fbcon_fb_blanked(struct fb_info *info, int blank); |
| 26 | int fbcon_modechange_possible(struct fb_info *info, |
| 27 | struct fb_var_screeninfo *var); |
| 28 | void fbcon_update_vcs(struct fb_info *info, bool all); |
| 29 | void fbcon_remap_all(struct fb_info *info); |
| 30 | int fbcon_set_con2fb_map_ioctl(void __user *argp); |
| 31 | int fbcon_get_con2fb_map_ioctl(void __user *argp); |
| 32 | #else |
| 33 | static inline void fb_console_init(void) {} |
| 34 | static inline void fb_console_exit(void) {} |
| 35 | static inline int fbcon_fb_registered(struct fb_info *info) { return 0; } |
| 36 | static inline void fbcon_fb_unregistered(struct fb_info *info) {} |
| 37 | static inline void fbcon_fb_unbind(struct fb_info *info) {} |
| 38 | static inline void fbcon_suspended(struct fb_info *info) {} |
| 39 | static inline void fbcon_resumed(struct fb_info *info) {} |
| 40 | static inline int fbcon_mode_deleted(struct fb_info *info, |
| 41 | struct fb_videomode *mode) { return 0; } |
| 42 | static inline void fbcon_delete_modelist(struct list_head *head) {} |
| 43 | static inline void fbcon_new_modelist(struct fb_info *info) {} |
| 44 | static inline void fbcon_get_requirement(struct fb_info *info, |
| 45 | struct fb_blit_caps *caps) {} |
| 46 | static inline void fbcon_fb_blanked(struct fb_info *info, int blank) {} |
| 47 | static inline int fbcon_modechange_possible(struct fb_info *info, |
| 48 | struct fb_var_screeninfo *var) { return 0; } |
| 49 | static inline void fbcon_update_vcs(struct fb_info *info, bool all) {} |
| 50 | static inline void fbcon_remap_all(struct fb_info *info) {} |
| 51 | static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; } |
| 52 | static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; } |
| 53 | #endif |
| 54 | |
| 55 | #endif /* _LINUX_FBCON_H */ |
| 56 | |