1 #include <linux/fb.h>
2 #include <linux/console.h>
3
4
5 structdisplay 6 { 7 intbytes_per_row; /* offset to one line below */ 8
9 intcursor_x; /* current cursor position */ 10 intcursor_y;
11
12 intfgcol; /* text colors */ 13 intbgcol;
14
15 structfb_var_screeninfovar; /* variable infos */ 16 structfb_cmapcmap; /* colormap */ 17
18 /* the following three are copies from fb_fix_screeninfo */ 19 intvisual;
20 inttype;
21 inttype_aux;
22
23 u_char *bitplane; /* pointer to top of physical screen */ 24
25 u_char *screen_base; /* pointer to top of virtual screen */ 26
27 u_char *fontdata; /* Font associated to this display */ 28 intfontheight;
29 intfontwidth;
30
31 intinverse; /* != 0 text black on white as default */ 32 structvc_data *conp; /* pointer to console data */ 33 structdisplay_switch *dispsw; /* pointers to depth specific functions */ 34 };
35
36 structfb_info 37 { 38 charmodename[40]; /* name of the at boottime detected video mode */ 39 structdisplay *disp; /* pointer to display variables */ 40 int (*changevar)(int); /* tell the console var has changed */ 41 int (*switch_con)(int); /* tell the framebuffer to switch consoles */ 42 int (*updatevar)(int); /* tell the framebuffer to update the vars */ 43 void (*blank)(int); /* tell the framebuffer to (un)blank the screen */ 44 };
45
46 structfb_info *atafb_init(long *);
47
48