From ee7cd3e6b622a8c40236ac26270e369bc28af007 Mon Sep 17 00:00:00 2001 From: pk33 Date: Sun, 3 Nov 2024 01:39:28 +0100 Subject: modesetting tweaks --- include/display.h | 9 +++++---- include/libdrm/.xf86drmMode.h.swp | Bin 0 -> 16384 bytes include/options.h | 7 +++++++ include/system.h | 5 ++++- 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 include/libdrm/.xf86drmMode.h.swp (limited to 'include') 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 Binary files /dev/null and b/include/libdrm/.xf86drmMode.h.swp 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__ **/ -- cgit v1.2.3