Source
31
31
#include <stdint.h>
32
32
#include <omap_drm.h>
33
33
34
34
struct omap_bo;
35
35
struct omap_device;
36
36
37
37
/* device related functions:
38
38
*/
39
39
40
40
struct omap_device * omap_device_new(int fd);
41
+
struct omap_device * omap_device_ref(struct omap_device *dev);
41
42
void omap_device_del(struct omap_device *dev);
42
43
int omap_get_param(struct omap_device *dev, uint64_t param, uint64_t *value);
43
44
int omap_set_param(struct omap_device *dev, uint64_t param, uint64_t value);
44
45
45
46
/* buffer-object related functions:
46
47
*/
47
48
48
49
struct omap_bo * omap_bo_new(struct omap_device *dev,
49
50
uint32_t size, uint32_t flags);
50
51
struct omap_bo * omap_bo_new_tiled(struct omap_device *dev,
51
52
uint32_t width, uint32_t height, uint32_t flags);
53
+
struct omap_bo * omap_bo_ref(struct omap_bo *bo);
52
54
struct omap_bo * omap_bo_from_name(struct omap_device *dev, uint32_t name);
53
55
struct omap_bo * omap_bo_from_dmabuf(struct omap_device *dev, int fd);
54
56
void omap_bo_del(struct omap_bo *bo);
55
57
int omap_bo_get_name(struct omap_bo *bo, uint32_t *name);
56
58
uint32_t omap_bo_handle(struct omap_bo *bo);
57
59
int omap_bo_dmabuf(struct omap_bo *bo);
58
60
uint32_t omap_bo_size(struct omap_bo *bo);
59
61
void * omap_bo_map(struct omap_bo *bo);
60
62
int omap_bo_cpu_prep(struct omap_bo *bo, enum omap_gem_op op);
61
63
int omap_bo_cpu_fini(struct omap_bo *bo, enum omap_gem_op op);