xref: /openbmc/linux/include/linux/fbcon.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
16104c370SDaniel Vetter #ifndef _LINUX_FBCON_H
26104c370SDaniel Vetter #define _LINUX_FBCON_H
36104c370SDaniel Vetter 
46104c370SDaniel Vetter #ifdef CONFIG_FRAMEBUFFER_CONSOLE
56104c370SDaniel Vetter void __init fb_console_init(void);
66104c370SDaniel Vetter void __exit fb_console_exit(void);
797b67986SDaniel Vetter int fbcon_fb_registered(struct fb_info *info);
897b67986SDaniel Vetter void fbcon_fb_unregistered(struct fb_info *info);
90e0f3250SDaniel Vetter void fbcon_fb_unbind(struct fb_info *info);
1050c50563SDaniel Vetter void fbcon_suspended(struct fb_info *info);
1150c50563SDaniel Vetter void fbcon_resumed(struct fb_info *info);
1213ff178cSDaniel Vetter int fbcon_mode_deleted(struct fb_info *info,
1313ff178cSDaniel Vetter 		       struct fb_videomode *mode);
1413ff178cSDaniel Vetter void fbcon_new_modelist(struct fb_info *info);
150526c223SDaniel Vetter void fbcon_get_requirement(struct fb_info *info,
160526c223SDaniel Vetter 			   struct fb_blit_caps *caps);
177a625549SDaniel Vetter void fbcon_fb_blanked(struct fb_info *info, int blank);
18*e64242caSHelge Deller int  fbcon_modechange_possible(struct fb_info *info,
19*e64242caSHelge Deller 			       struct fb_var_screeninfo *var);
209e146700SDaniel Vetter void fbcon_update_vcs(struct fb_info *info, bool all);
211cd51b5dSDaniel Vetter void fbcon_remap_all(struct fb_info *info);
22fe2d70d6SDaniel Vetter int fbcon_set_con2fb_map_ioctl(void __user *argp);
23fe2d70d6SDaniel Vetter int fbcon_get_con2fb_map_ioctl(void __user *argp);
246104c370SDaniel Vetter #else
fb_console_init(void)25dfc8e916SArnd Bergmann static inline void fb_console_init(void) {}
fb_console_exit(void)26dfc8e916SArnd Bergmann static inline void fb_console_exit(void) {}
fbcon_fb_registered(struct fb_info * info)2797b67986SDaniel Vetter static inline int fbcon_fb_registered(struct fb_info *info) { return 0; }
fbcon_fb_unregistered(struct fb_info * info)2897b67986SDaniel Vetter static inline void fbcon_fb_unregistered(struct fb_info *info) {}
fbcon_fb_unbind(struct fb_info * info)290e0f3250SDaniel Vetter static inline void fbcon_fb_unbind(struct fb_info *info) {}
fbcon_suspended(struct fb_info * info)3050c50563SDaniel Vetter static inline void fbcon_suspended(struct fb_info *info) {}
fbcon_resumed(struct fb_info * info)3150c50563SDaniel Vetter static inline void fbcon_resumed(struct fb_info *info) {}
fbcon_mode_deleted(struct fb_info * info,struct fb_videomode * mode)3213ff178cSDaniel Vetter static inline int fbcon_mode_deleted(struct fb_info *info,
3313ff178cSDaniel Vetter 				     struct fb_videomode *mode) { return 0; }
fbcon_new_modelist(struct fb_info * info)3413ff178cSDaniel Vetter static inline void fbcon_new_modelist(struct fb_info *info) {}
fbcon_get_requirement(struct fb_info * info,struct fb_blit_caps * caps)350526c223SDaniel Vetter static inline void fbcon_get_requirement(struct fb_info *info,
360526c223SDaniel Vetter 					 struct fb_blit_caps *caps) {}
fbcon_fb_blanked(struct fb_info * info,int blank)377a625549SDaniel Vetter static inline void fbcon_fb_blanked(struct fb_info *info, int blank) {}
fbcon_modechange_possible(struct fb_info * info,struct fb_var_screeninfo * var)38*e64242caSHelge Deller static inline int  fbcon_modechange_possible(struct fb_info *info,
39*e64242caSHelge Deller 				struct fb_var_screeninfo *var) { return 0; }
fbcon_update_vcs(struct fb_info * info,bool all)409e146700SDaniel Vetter static inline void fbcon_update_vcs(struct fb_info *info, bool all) {}
fbcon_remap_all(struct fb_info * info)411cd51b5dSDaniel Vetter static inline void fbcon_remap_all(struct fb_info *info) {}
fbcon_set_con2fb_map_ioctl(void __user * argp)42fe2d70d6SDaniel Vetter static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; }
fbcon_get_con2fb_map_ioctl(void __user * argp)43fe2d70d6SDaniel Vetter static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; }
446104c370SDaniel Vetter #endif
456104c370SDaniel Vetter 
466104c370SDaniel Vetter #endif /* _LINUX_FBCON_H */
47