Remove all object with mmaps in CloseScreen, so that drmClose actually calls the...
[nouveau] / src / nv_dri.h
1 #ifndef _NOUVEAU_DRI_
2 #define _NOUVEAU_DRI_
3
4 #include "xf86drm.h"
5 #include "drm.h"
6 #include "nouveau_drm.h"
7
8 typedef struct {
9         uint32_t device_id;     /**< \brief PCI device ID */
10         uint32_t width;         /**< \brief width in pixels of display */
11         uint32_t height;        /**< \brief height in scanlines of display */
12         uint32_t depth;         /**< \brief depth of display (15, 16, 24) */
13         uint32_t bpp;           /**< \brief bit depth of display (16, 32) */
14
15         uint32_t bus_type;      /**< \brief ths bus type */
16         uint32_t bus_mode;      /**< \brief bus mode (used for AGP, maybe also for PCI-E ?) */
17
18         uint32_t front_offset;  /**< \brief front buffer offset */
19         uint32_t front_pitch;   /**< \brief front buffer pitch */
20         uint32_t back_offset;   /**< \brief private back buffer offset */
21         uint32_t back_pitch;    /**< \brief private back buffer pitch */
22         uint32_t depth_offset;  /**< \brief private depth buffer offset */
23         uint32_t depth_pitch;   /**< \brief private depth buffer pitch */
24
25 } NOUVEAUDRIRec, *NOUVEAUDRIPtr;
26
27 #endif
28