aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.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 /gfx.h
parent240bfd19dc983a793e0ef7e2515faf9a2d3fd9c5 (diff)
downloadfbida-3da80cb1474b455f4ed3d27aa72441fd145a9898.tar.gz
start adding a gfx interface
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
new file mode 100644
index 0000000..77ab172
--- /dev/null
+++ b/gfx.h
@@ -0,0 +1,20 @@
+#include <inttypes.h>
+
+typedef struct gfxstate gfxstate;
+
+struct gfxstate {
+ /* info */
+ uint32_t hdisplay;
+ uint32_t vdisplay;
+ uint32_t stride;
+
+ uint32_t bits_per_pixel;
+ uint32_t rlen, glen, blen, tlen;
+ uint32_t roff, goff, boff, toff;
+
+ /* calls */
+ void (*restore_display)(void);
+
+ /* FIXME: legacy */
+ int fb_fd;
+};