From: Joshua Wise Date: Tue, 25 Nov 2008 08:27:04 +0000 (-0500) Subject: Add fb header X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/5e4258d92892b578b17edc16f432a81616964258?ds=inline;hp=34a7d0d2f76c71165cc643d5b48061786a83fc87 Add fb header --- diff --git a/include/fb.h b/include/fb.h new file mode 100644 index 0000000..9ade9e7 --- /dev/null +++ b/include/fb.h @@ -0,0 +1,28 @@ +#ifndef __FB_H +#define __FB_H + +struct fbdevice; +struct vmode; + +typedef enum { + FB_RGB888 +} format_t; + +typedef void (*getvmode_t)(void *); + +struct vmode { + int text:1; + int xres, yres, bytestride; + format_t format; +}; + +struct fbdevice { + unsigned char *fbaddr; + void *priv; + getvmode_t getvmode; + struct vmode curmode; +}; + +extern struct fbdevice *fb; + +#endif