2 * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
11 #include <sys/types.h>
15 #define GBM_MAX_PLANES 4
20 struct gbm_driver *driver;
30 struct gbm_device *gbm;
36 union gbm_bo_handle handles[GBM_MAX_PLANES];
37 uint32_t offsets[GBM_MAX_PLANES];
38 uint32_t sizes[GBM_MAX_PLANES];
39 uint32_t strides[GBM_MAX_PLANES];
42 void (*destroy_user_data)(struct gbm_bo *, void *);
48 int (*init)(struct gbm_device *gbm);
49 void (*close)(struct gbm_device *gbm);
50 int (*bo_create)(struct gbm_bo *bo, uint32_t width, uint32_t height, uint32_t format, uint32_t flags);
51 int (*bo_destroy)(struct gbm_bo *bo);
52 struct format_supported {
54 enum gbm_bo_flags usage;