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;
20 fbClass(const char *fb="/dev/fb/0");
26 int showConsole(int state);
27 int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
28 int Available() { return available; }
30 int getNumPages() { return m_number_of_pages; }
32 int setOffset(int off);
34 unsigned int Stride() { return stride; }
35 fb_cmap *CMAP() { return &cmap; }
37 fbClass(const char *fb="/dev/fb/0");
40 // low level gfx stuff
43 static fbClass *getInstance();
47 int islocked() { return locked; }