aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-23 16:02:34 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-23 16:02:34 +0100
commit3da80cb1474b455f4ed3d27aa72441fd145a9898 (patch)
treeb3212c99e0baf74ff51844f19982b3655a58a878 /fbtools.h
parent240bfd19dc983a793e0ef7e2515faf9a2d3fd9c5 (diff)
downloadfbida-3da80cb1474b455f4ed3d27aa72441fd145a9898.tar.gz
start adding a gfx interface
Diffstat (limited to 'fbtools.h')
-rw-r--r--fbtools.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fbtools.h b/fbtools.h
index 469675c..ae53231 100644
--- a/fbtools.h
+++ b/fbtools.h
@@ -1,18 +1,17 @@
+#include "gfx.h"
+
#define FB_ACTIVE 0
#define FB_REL_REQ 1
#define FB_INACTIVE 2
#define FB_ACQ_REQ 3
/* info about videomode - yes I know, quick & dirty... */
-extern struct fb_fix_screeninfo fb_fix;
-extern struct fb_var_screeninfo fb_var;
extern unsigned char *fb_mem;
extern int fb_mem_offset;
extern int fb_switch_state;
/* init + cleanup */
-int fb_probe(void);
-int fb_init(char *device, char *mode, int vt);
+gfxstate *fb_init(char *device, char *mode, int vt);
void fb_cleanup(void);
void fb_catch_exit_signals(void);
void fb_memset(void *addr, int c, size_t len);