1eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke/*
2eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * Copyright © 2011 Intel Corporation
3eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke *
4eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * Permission is hereby granted, free of charge, to any person obtaining a
5eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * copy of this software and associated documentation files (the "Software"),
6eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * to deal in the Software without restriction, including without limitation
7eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * and/or sell copies of the Software, and to permit persons to whom the
9eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * Software is furnished to do so, subject to the following conditions:
10eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke *
11eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * The above copyright notice and this permission notice (including the next
12eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * paragraph) shall be included in all copies or substantial portions of the
13eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * Software.
14eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke *
15eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * DEALINGS IN THE SOFTWARE.
23eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke *
24eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke * Authors:
25eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke *    Benjamin Franzke <benjaminfranzke@googlemail.com>
26eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke */
27eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
28eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke#ifndef _COMMON_DRM_H_
29eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke#define _COMMON_DRM_H_
30eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
31eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke#include "gbmint.h"
32eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
33eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzkeenum gbm_drm_driver_type {
34eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   GBM_DRM_DRIVER_TYPE_DRI,
35eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   GBM_DRM_DRIVER_TYPE_GALLIUM,
36eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke};
37eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
38eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzkestruct gbm_drm_device {
39eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   struct gbm_device base;
40eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   enum gbm_drm_driver_type type;
41eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   char *driver_name;
42eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke};
43eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
44eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzkestruct gbm_drm_bo {
45eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke   struct gbm_bo base;
46eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke};
47eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke
48eddcecbf74da26716509c047b95e85b00c12bab4Benjamin Franzke#endif
49