5 #include <lib/gdi/esize.h>
6 #include <lib/gdi/erect.h>
8 #define LCD_CONTRAST_MIN 0
9 #define LCD_CONTRAST_MAX 63
10 #define LCD_BRIGHTNESS_MIN 0
11 #define LCD_BRIGHTNESS_MAX 255
13 enum op { LED_BRIGHTNESS = 0, LED_DEEPSTANDBY, LED_BLINKINGTIME };
15 #define LED_IOCTL_BRIGHTNESS_NORMAL 0X10
16 #define LED_IOCTL_BRIGHTNESS_DEEPSTANDBY 0X11
17 #define LED_IOCTL_BLINKING_TIME 0X12
18 #define LED_IOCTL_SET_DEFAULT 0X13
27 void setSize(int xres, int yres, int bpp);
29 unsigned char *_buffer;
37 int islocked() { return locked; }
38 bool detected() { return lcdfd >= 0; }
42 __u8 *buffer() { return (__u8*)_buffer; }
43 int stride() { return _stride; }
44 eSize size() { return res; }
45 virtual void update()=0;
49 class eDBoxLCD: public eLCD
51 static eDBoxLCD *instance;
52 unsigned char inverted;
63 static eDBoxLCD *getInstance();
64 void setLED(int value, int option);
65 void setLEDDefault(int normal, int deepstandby, int blinktime);
66 int setLCDContrast(int contrast);
67 int setLCDBrightness(int brightness);
68 void setInverted( unsigned char );
69 bool isOled() const { return !!is_oled; }