File: atafb.h

package info (click to toggle)
kernel-source-2.0.32 2.0.32-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 29,648 kB
  • ctags: 86,850
  • sloc: ansic: 542,141; asm: 26,201; makefile: 3,423; sh: 1,195; perl: 727; tcl: 408; cpp: 277; lisp: 211; awk: 134
file content (48 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <linux/fb.h>
#include <linux/console.h>


struct display
{
    int bytes_per_row;		/* offset to one line below */

    int cursor_x;		/* current cursor position */
    int cursor_y;

    int fgcol;			/* text colors */
    int bgcol;

    struct fb_var_screeninfo var;	/* variable infos */
    struct fb_cmap	cmap;		/* colormap */
  
    /* the following three are copies from fb_fix_screeninfo */
    int visual;
    int type;
    int type_aux;

    u_char *bitplane;	        /* pointer to top of physical screen */

    u_char *screen_base;	/* pointer to top of virtual screen */    

    u_char *fontdata;           /* Font associated to this display */
    int fontheight;
    int fontwidth;

    int inverse;		/* != 0 text black on white as default */
    struct vc_data *conp;	/* pointer to console data */
    struct display_switch *dispsw; /* pointers to depth specific functions */
}; 

struct fb_info
{
    char modename[40];		/* name of the at boottime detected video mode */
    struct display *disp;	/* pointer to display variables */
    int (*changevar)(int);	/* tell the console var has changed */
    int (*switch_con)(int);	/* tell the framebuffer to switch consoles */
    int (*updatevar)(int);	/* tell the framebuffer to update the vars */
    void (*blank)(int);		/* tell the framebuffer to (un)blank the screen */
};

struct fb_info *atafb_init(long *);