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.
13 #include <sys/types.h>
26 union bo_handle handles[DRV_MAX_PLANES];
27 uint32_t offsets[DRV_MAX_PLANES];
28 uint32_t sizes[DRV_MAX_PLANES];
29 uint32_t strides[DRV_MAX_PLANES];
30 uint64_t format_modifiers[DRV_MAX_PLANES];
37 struct backend *backend;
41 pthread_mutex_t driver_lock;
51 struct supported_combination {
57 struct combination_list_element {
58 struct supported_combination combination;
59 struct list_head link;
65 int (*init)(struct driver *drv);
66 void (*close)(struct driver *drv);
67 int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height,
68 uint32_t format, uint32_t flags);
69 void* (*bo_map)(struct bo *bo, struct map_info *data, size_t plane);
70 int (*bo_destroy)(struct bo *bo);
71 uint32_t (*resolve_format)(uint32_t format);
72 struct list_head combinations;