#ifndef __DISPLAY_H__ #define __DISPLAY_H__ #include "libdrm/drm_mode.h" #include "types.h" /* TEMP */ typedef struct { u32 *data; Size w, h; } Surface; /**/ typedef struct { Size id[2]; u16 *map[2]; Size stride; Size size; } Framebuffer; typedef struct { Framebuffer fb; Surface surface; struct drm_mode_get_connector connector; struct drm_mode_get_encoder encoder; struct drm_mode_crtc crtc; Size devFd, ttyFd; Size active; } Display; extern Display __display; Size display_init( void ); void display_flip( void ); void display_vtswitcher_poll( int timeout ); void display_term( void ); #endif /* __DISPLAY_H__ */