nouveau: Factor out common winsys bits into libnouveaudrm.a
[mesa.git] / src / gallium / winsys / drm / nouveau / common / nouveau_screen.h
1 #ifndef __NOUVEAU_SCREEN_H__
2 #define __NOUVEAU_SCREEN_H__
3
4 #include <stdint.h>
5
6 struct nouveau_device;
7 struct nouveau_dri;
8
9 struct nouveau_screen {
10 struct nouveau_device *device;
11
12 uint32_t front_offset;
13 uint32_t front_pitch;
14 uint32_t front_cpp;
15 uint32_t front_height;
16
17 void *nvc;
18 };
19
20 int
21 nouveau_screen_init(struct nouveau_dri *nv_dri, int dev_fd,
22 struct nouveau_screen *nv_screen);
23
24 void
25 nouveau_screen_cleanup(struct nouveau_screen *nv_screen);
26
27 #endif