From 5e4258d92892b578b17edc16f432a81616964258 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Tue, 25 Nov 2008 03:27:04 -0500 Subject: [PATCH] Add fb header --- include/fb.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/fb.h 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 -- 2.43.0