From 011d99fc5f90b1e2b51f7b96688bdcbbb944e104 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 23:34:46 +0100 Subject: VESA mode setting ; displays kogata logo! --- src/common/include/framebuffer.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/common/include/framebuffer.h (limited to 'src/common/include/framebuffer.h') diff --git a/src/common/include/framebuffer.h b/src/common/include/framebuffer.h new file mode 100644 index 0000000..febbfaa --- /dev/null +++ b/src/common/include/framebuffer.h @@ -0,0 +1,19 @@ +#pragma once + +typedef struct { + uint32_t width, height; + uint32_t pitch; // bytes per line + uint32_t bpp; +} framebuffer_info_t; + +typedef struct { + int mode_number; + framebuffer_info_t geom; +} fbdev_mode_info_t; + +#define IOCTL_FBDEV_GET_MODE_INFO 10 +#define IOCTL_FBDEV_SET_MODE 11 + +#define IOCTL_FB_GET_INFO 12 + +/* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3