5 #include <lib/base/eerror.h>
10 unsigned int xRes, yRes, stride, bpp;
12 struct fb_var_screeninfo screeninfo, oldscreen;
14 __u16 red[256], green[256], blue[256], trans[256];
15 static fbClass *instance;
18 int m_number_of_pages;
21 int showConsole(int state);
22 int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
23 int Available() { return available; }
25 int getNumPages() { return m_number_of_pages; }
27 int setOffset(int off);
29 unsigned int Stride() { return stride; }
30 fb_cmap *CMAP() { return &cmap; }
32 fbClass(const char *fb="/dev/fb/0");
35 static fbClass *getInstance();
37 // low level gfx stuff
42 int islocked() { return locked; }