4 #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;
19 int m_number_of_pages;
22 fbClass(const char *fb="/dev/fb/0");
28 void enableManualBlit();
29 void disableManualBlit();
30 int showConsole(int state);
31 int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
32 int Available() { return available; }
34 int getNumPages() { return m_number_of_pages; }
36 unsigned long getPhysAddr() { return m_phys_mem; }
38 int setOffset(int off);
41 unsigned int Stride() { return stride; }
42 fb_cmap *CMAP() { return &cmap; }
44 fbClass(const char *fb="/dev/fb/0");
47 // low level gfx stuff
50 static fbClass *getInstance();
54 int islocked() { return locked; }