1 /* fbpad's framebuffer interface */
2 #define FBDEV "/dev/fb0"
4 /* fb_mode() interpretation */
5 #define FBM_BPP(m) (((m) >> 16) & 0x0f) /* bytes per pixel (4 bits) */
6 #define FBM_CLR(m) ((m) & 0x0fff) /* bits per color (12 bits) */
7 #define FBM_ORD(m) (((m) >> 20) & 0x07) /* color order (3 bits) */
10 int fb_init(char *dev
);
12 unsigned fb_mode(void);
17 unsigned fb_val(int r
, int g
, int b
);