blob: eb29f1be8a7a5e83fa4da6188dca7caa3491e3ca [file] [log] [blame]
Stéphane Marchesin25a26062014-09-12 16:18:59 -07001/*
Daniele Castagna7a755de2016-12-16 17:32:30 -05002 * Copyright 2014 The Chromium OS Authors. All rights reserved.
Stéphane Marchesin25a26062014-09-12 16:18:59 -07003 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef GBM_PRIV_H
8#define GBM_PRIV_H
9
10#include <stdint.h>
11#include <sys/types.h>
12#include <stdlib.h>
Stéphane Marchesin25a26062014-09-12 16:18:59 -070013
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070014#include "drv.h"
15#include "gbm.h"
Yuly Novikov96c7a3b2015-12-08 22:48:29 -050016
Stéphane Marchesin25a26062014-09-12 16:18:59 -070017struct gbm_device
18{
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070019 struct driver *drv;
Stéphane Marchesin25a26062014-09-12 16:18:59 -070020};
21
22struct gbm_surface
23{
24};
25
26struct gbm_bo
27{
28 struct gbm_device *gbm;
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070029 struct bo *bo;
30 uint32_t gbm_format;
Stéphane Marchesin25a26062014-09-12 16:18:59 -070031 void *user_data;
32 void (*destroy_user_data)(struct gbm_bo *, void *);
33};
34
Stéphane Marchesin25a26062014-09-12 16:18:59 -070035#endif