aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/display.h9
-rw-r--r--include/libdrm/.xf86drmMode.h.swpbin0 -> 16384 bytes
-rw-r--r--include/options.h7
-rw-r--r--include/system.h5
4 files changed, 16 insertions, 5 deletions
diff --git a/include/display.h b/include/display.h
index efaf6f9..63fc7b2 100644
--- a/include/display.h
+++ b/include/display.h
@@ -14,7 +14,7 @@ typedef struct {
typedef struct {
Size id[2];
- u16 *map[2];
+ u32 *map[2];
Size stride;
Size size;
} Framebuffer;
@@ -24,11 +24,12 @@ typedef struct {
Framebuffer fb;
Surface surface;
- struct drm_mode_get_connector connector;
- struct drm_mode_get_encoder encoder;
struct drm_mode_crtc crtc;
+ struct drm_mode_modeinfo mode;
+ struct drm_mode_get_connector connector;
+
+ Size devfd, ttyfd;
- Size devFd, ttyFd;
Size active;
} Display;
diff --git a/include/libdrm/.xf86drmMode.h.swp b/include/libdrm/.xf86drmMode.h.swp
new file mode 100644
index 0000000..fcb3dfc
--- /dev/null
+++ b/include/libdrm/.xf86drmMode.h.swp
Binary files differ
diff --git a/include/options.h b/include/options.h
index 0c70cce..4b6f765 100644
--- a/include/options.h
+++ b/include/options.h
@@ -2,6 +2,13 @@
#define __OPTIONS_H__
+/**/
+#define DRM_DEVICE "/dev/dri/card0"
+#define DRM_MODE "1024x768"
+#define DRM_RATE 75
+/**/
+
+
#define NEAR 1.0;
#define FAR 24.0
diff --git a/include/system.h b/include/system.h
index c30a9fd..6260013 100644
--- a/include/system.h
+++ b/include/system.h
@@ -5,7 +5,10 @@
err e33_ioctl( Size fd, unsigned long req, void *arg );
-boolean _strcomp( String s1, String s2 );
+boolean strcomp( String s1, String s2 );
+void clear_tty( void);
+void vprint_tty( String fmt, ... );
+err get_line (char *buff, size_t sz, char *fmt, ...);
#endif /** __SYSTEM_H__ **/