2 * Copyright (c) 2016 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.
12 #include <sys/types.h>
24 union bo_handle handles[DRV_MAX_PLANES];
25 uint32_t offsets[DRV_MAX_PLANES];
26 uint32_t sizes[DRV_MAX_PLANES];
27 uint32_t strides[DRV_MAX_PLANES];
28 uint64_t format_modifiers[DRV_MAX_PLANES];
35 struct backend *backend;
38 pthread_mutex_t table_lock;
44 int (*init)(struct driver *drv);
45 void (*close)(struct driver *drv);
46 int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height,
47 drv_format_t format, uint32_t flags);
48 void* (*bo_map)(struct bo *bo);
49 int (*bo_destroy)(struct bo *bo);
50 drv_format_t (*resolve_format)(drv_format_t format);
51 struct format_supported {