BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 18495cfe1cf5f7fc6f6b0c8c12d7f34dfded1be0 / include / sys / fb.h

// Related

Nucleus

Barry System headers (remove libc dependency) 18495cf (3 years, 2 months ago)
diff --git a/include/sys/fb.h b/include/sys/fb.h
new file mode 100644
index 0000000..f75a75f
--- /dev/null
+++ b/include/sys/fb.h
@@ -0,0 +1,26 @@
+#ifndef _SYS_FB_H
+#define _SYS_FB_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+/* ioctl() calls */
+enum FrameBufferIoctls {
+	FBIOGET_VSCREENINFO,
+	FBIOPUT_VSCREENINFO,
+	FBIOGET_FSCREENINFO,
+};
+
+/* Structure for fixed framebuffer info */
+typedef struct FBFixInfo {
+	uintptr_t fbmem;
+	size_t fbmemLen;
+} FBFixInfo;
+
+/* Structure for variable framebuffer info */
+typedef struct FBVarInfo {
+	uint32_t xres, yres;
+	uint32_t bpp;
+} FBVarInfo;
+
+#endif