xref: /linux/include/linux/fbcon.h (revision a4819ac1913e78e41c8406df481a661d9469c350)
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
fb_console_init(void)33 static inline void fb_console_init(void) {}
fb_console_exit(void)34 static inline void fb_console_exit(void) {}
fbcon_fb_registered(struct fb_info * info)35 static inline int fbcon_fb_registered(struct fb_info *info) { return 0; }
fbcon_fb_unregistered(struct fb_info * info)36 static inline void fbcon_fb_unregistered(struct fb_info *info) {}
fbcon_fb_unbind(struct fb_info * info)37 static inline void fbcon_fb_unbind(struct fb_info *info) {}
fbcon_suspended(struct fb_info * info)38 static inline void fbcon_suspended(struct fb_info *info) {}
fbcon_resumed(struct fb_info * info)39 static inline void fbcon_resumed(struct fb_info *info) {}
fbcon_mode_deleted(struct fb_info * info,struct fb_videomode * mode)40 static inline int fbcon_mode_deleted(struct fb_info *info,
41 				     struct fb_videomode *mode) { return 0; }
fbcon_delete_modelist(struct list_head * head)42 static inline void fbcon_delete_modelist(struct list_head *head) {}
fbcon_new_modelist(struct fb_info * info)43 static inline void fbcon_new_modelist(struct fb_info *info) {}
fbcon_get_requirement(struct fb_info * info,struct fb_blit_caps * caps)44 static inline void fbcon_get_requirement(struct fb_info *info,
45 					 struct fb_blit_caps *caps) {}
fbcon_fb_blanked(struct fb_info * info,int blank)46 static inline void fbcon_fb_blanked(struct fb_info *info, int blank) {}
fbcon_modechange_possible(struct fb_info * info,struct fb_var_screeninfo * var)47 static inline int  fbcon_modechange_possible(struct fb_info *info,
48 				struct fb_var_screeninfo *var) { return 0; }
fbcon_update_vcs(struct fb_info * info,bool all)49 static inline void fbcon_update_vcs(struct fb_info *info, bool all) {}
fbcon_remap_all(struct fb_info * info)50 static inline void fbcon_remap_all(struct fb_info *info) {}
fbcon_set_con2fb_map_ioctl(void __user * argp)51 static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; }
fbcon_get_con2fb_map_ioctl(void __user * argp)52 static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; }
53 #endif
54 
55 #endif /* _LINUX_FBCON_H */
56