xref: /linux-6.15/include/linux/fbcon.h (revision 13ff178c)
1 #ifndef _LINUX_FBCON_H
2 #define _LINUX_FBCON_H
3 
4 #ifdef CONFIG_FRAMEBUFFER_CONSOLE
5 void __init fb_console_init(void);
6 void __exit fb_console_exit(void);
7 int fbcon_fb_registered(struct fb_info *info);
8 void fbcon_fb_unregistered(struct fb_info *info);
9 void fbcon_fb_unbind(struct fb_info *info);
10 void fbcon_suspended(struct fb_info *info);
11 void fbcon_resumed(struct fb_info *info);
12 int fbcon_mode_deleted(struct fb_info *info,
13 		       struct fb_videomode *mode);
14 void fbcon_new_modelist(struct fb_info *info);
15 #else
16 static inline void fb_console_init(void) {}
17 static inline void fb_console_exit(void) {}
18 static inline int fbcon_fb_registered(struct fb_info *info) { return 0; }
19 static inline void fbcon_fb_unregistered(struct fb_info *info) {}
20 static inline void fbcon_fb_unbind(struct fb_info *info) {}
21 static inline void fbcon_suspended(struct fb_info *info) {}
22 static inline void fbcon_resumed(struct fb_info *info) {}
23 static inline int fbcon_mode_deleted(struct fb_info *info,
24 				     struct fb_videomode *mode) { return 0; }
25 static inline void fbcon_new_modelist(struct fb_info *info) {}
26 #endif
27 
28 #endif /* _LINUX_FBCON_H */
29