1de2362d3Smrg/*
2de2362d3Smrg * Copyright 2008 Jerome Glisse
3de2362d3Smrg *
4de2362d3Smrg * All Rights Reserved.
5de2362d3Smrg *
6de2362d3Smrg * Permission is hereby granted, free of charge, to any person obtaining
7de2362d3Smrg * a copy of this software and associated documentation files (the
8de2362d3Smrg * "Software"), to deal in the Software without restriction, including
9de2362d3Smrg * without limitation on the rights to use, copy, modify, merge,
10de2362d3Smrg * publish, distribute, sublicense, and/or sell copies of the Software,
11de2362d3Smrg * and to permit persons to whom the Software is furnished to do so,
12de2362d3Smrg * subject to the following conditions:
13de2362d3Smrg *
14de2362d3Smrg * The above copyright notice and this permission notice (including the
15de2362d3Smrg * next paragraph) shall be included in all copies or substantial
16de2362d3Smrg * portions of the Software.
17de2362d3Smrg *
18de2362d3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19de2362d3Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20de2362d3Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21de2362d3Smrg * NON-INFRINGEMENT.  IN NO EVENT SHALL ATI, VA LINUX SYSTEMS AND/OR
22de2362d3Smrg * THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23de2362d3Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24de2362d3Smrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25de2362d3Smrg * DEALINGS IN THE SOFTWARE.
26de2362d3Smrg */
27de2362d3Smrg#ifndef RADEON_DRI2_H
28de2362d3Smrg#define RADEON_DRI2_H
29de2362d3Smrg
3018781e08Smrg#include <xorg-server.h>
3118781e08Smrg
32de2362d3Smrgstruct radeon_dri2 {
3318781e08Smrg    drmVersionPtr     pKernelDRMVersion;
3418781e08Smrg    Bool        available;
35de2362d3Smrg    Bool        enabled;
36de2362d3Smrg    char	*device_name;
37de2362d3Smrg};
38de2362d3Smrg
3918781e08Smrg#ifdef DRI2
4018781e08Smrg
41de2362d3Smrg#include "dri2.h"
42de2362d3SmrgBool radeon_dri2_screen_init(ScreenPtr pScreen);
43de2362d3Smrgvoid radeon_dri2_close_screen(ScreenPtr pScreen);
44de2362d3Smrg
4518781e08Smrg#else
4618781e08Smrg
4718781e08Smrgstatic inline Bool radeon_dri2_screen_init(ScreenPtr pScreen) { return FALSE; }
4818781e08Smrgstatic inline void radeon_dri2_close_screen(ScreenPtr pScreen) {}
49de2362d3Smrg
50de2362d3Smrg#endif
5118781e08Smrg
5218781e08Smrg#endif /* RADEON_DRI2_H */
53