2 * Copyright (C) 2011 Texas Instruments, Inc
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * Rob Clark <rob@ti.com>
37 /* device related functions:
40 struct omap_device * omap_device_new(int fd);
41 void omap_device_del(struct omap_device *dev);
42 int omap_get_param(struct omap_device *dev, uint64_t param, uint64_t *value);
43 int omap_set_param(struct omap_device *dev, uint64_t param, uint64_t value);
45 /* buffer-object related functions:
48 struct omap_bo * omap_bo_new(struct omap_device *dev,
49 uint32_t size, uint32_t flags);
50 struct omap_bo * omap_bo_new_tiled(struct omap_device *dev,
51 uint32_t width, uint32_t height, uint32_t flags);
52 struct omap_bo * omap_bo_from_name(struct omap_device *dev, uint32_t name);
53 void omap_bo_del(struct omap_bo *bo);
54 int omap_bo_get_name(struct omap_bo *bo, uint32_t *name);
55 uint32_t omap_bo_handle(struct omap_bo *bo);
56 int omap_bo_dmabuf(struct omap_bo *bo);
57 uint32_t omap_bo_size(struct omap_bo *bo);
58 void * omap_bo_map(struct omap_bo *bo);
59 int omap_bo_cpu_prep(struct omap_bo *bo, enum omap_gem_op op);
60 int omap_bo_cpu_fini(struct omap_bo *bo, enum omap_gem_op op);
62 #endif /* OMAP_DRMIF_H_ */