Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 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 | void fbcon_get_requirement(struct fb_info *info, |
| 16 | struct fb_blit_caps *caps); |
| 17 | void fbcon_fb_blanked(struct fb_info *info, int blank); |
| 18 | void fbcon_update_vcs(struct fb_info *info, bool all); |
| 19 | void fbcon_remap_all(struct fb_info *info); |
| 20 | int fbcon_set_con2fb_map_ioctl(void __user *argp); |
| 21 | int fbcon_get_con2fb_map_ioctl(void __user *argp); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 22 | #else |
| 23 | static inline void fb_console_init(void) {} |
| 24 | static inline void fb_console_exit(void) {} |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 25 | static inline int fbcon_fb_registered(struct fb_info *info) { return 0; } |
| 26 | static inline void fbcon_fb_unregistered(struct fb_info *info) {} |
| 27 | static inline void fbcon_fb_unbind(struct fb_info *info) {} |
| 28 | static inline void fbcon_suspended(struct fb_info *info) {} |
| 29 | static inline void fbcon_resumed(struct fb_info *info) {} |
| 30 | static inline int fbcon_mode_deleted(struct fb_info *info, |
| 31 | struct fb_videomode *mode) { return 0; } |
| 32 | static inline void fbcon_new_modelist(struct fb_info *info) {} |
| 33 | static inline void fbcon_get_requirement(struct fb_info *info, |
| 34 | struct fb_blit_caps *caps) {} |
| 35 | static inline void fbcon_fb_blanked(struct fb_info *info, int blank) {} |
| 36 | static inline void fbcon_update_vcs(struct fb_info *info, bool all) {} |
| 37 | static inline void fbcon_remap_all(struct fb_info *info) {} |
| 38 | static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; } |
| 39 | static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; } |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 40 | #endif |
| 41 | |
| 42 | #endif /* _LINUX_FBCON_H */ |