1 /* Public domain. */ 2 3 #ifndef _LINUX_FB_H 4 #define _LINUX_FB_H 5 6 #include <sys/types.h> 7 #include <linux/slab.h> 8 #include <linux/notifier.h> 9 #include <linux/backlight.h> 10 #include <linux/kgdb.h> 11 12 struct fb_var_screeninfo { 13 int pixclock; 14 uint32_t width; 15 uint32_t height; 16 }; 17 18 struct fb_info { 19 struct fb_var_screeninfo var; 20 char *screen_buffer; 21 void *par; 22 int fbcon_rotate_hint; 23 bool skip_vt_switch; 24 }; 25 26 #define FB_BLANK_UNBLANK 0 27 #define FB_BLANK_NORMAL 1 28 #define FB_BLANK_HSYNC_SUSPEND 2 29 #define FB_BLANK_VSYNC_SUSPEND 3 30 #define FB_BLANK_POWERDOWN 4 31 32 #define FBINFO_STATE_RUNNING 0 33 #define FBINFO_STATE_SUSPENDED 1 34 35 #define FB_ROTATE_UR 0 36 #define FB_ROTATE_CW 1 37 #define FB_ROTATE_UD 2 38 #define FB_ROTATE_CCW 3 39 40 #define framebuffer_alloc(flags, device) \ 41 kzalloc(sizeof(struct fb_info), GFP_KERNEL) 42 43 #define fb_set_suspend(x, y) 44 45 #endif 46