aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.h
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-03-28 11:31:57 +0000
committerkraxel <kraxel>2004-03-28 11:31:57 +0000
commite9e9684117719204929821028ba9dbb7915ea119 (patch)
tree6dd2d71940b33a9f960945335e9124ef4fea9fe7 /fbtools.h
downloadfbida-e9e9684117719204929821028ba9dbb7915ea119.tar.gz
Initial revision
Diffstat (limited to 'fbtools.h')
-rw-r--r--fbtools.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/fbtools.h b/fbtools.h
new file mode 100644
index 0000000..469675c
--- /dev/null
+++ b/fbtools.h
@@ -0,0 +1,23 @@
+#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);
+void fb_cleanup(void);
+void fb_catch_exit_signals(void);
+void fb_memset(void *addr, int c, size_t len);
+
+/* console switching */
+int fb_switch_init(void);
+void fb_switch_release(void);
+void fb_switch_acquire(void);