blob: 63fc7b213b326b1f7b2517ea9ddc8163939f9cac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#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];
u32 *map[2];
Size stride;
Size size;
} Framebuffer;
typedef struct {
Framebuffer fb;
Surface surface;
struct drm_mode_crtc crtc;
struct drm_mode_modeinfo mode;
struct drm_mode_get_connector connector;
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__ */
|