diff options
Diffstat (limited to 'dove_bufmgr.h')
-rw-r--r-- | dove_bufmgr.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/dove_bufmgr.h b/dove_bufmgr.h deleted file mode 100644 index 18fae64..0000000 --- a/dove_bufmgr.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef DRM_DOVE_GEM_H -#define DRM_DOVE_GEM_H - -enum drm_dove_bo_type { - DRM_DOVE_BO_DUMB, - DRM_DOVE_BO_LINEAR, - DRM_DOVE_BO_SHMEM -}; - -struct drm_dove_bufmgr; - -struct drm_dove_bo { - uint32_t ref; - uint32_t handle; - uint32_t size; - uint32_t pitch; - uint32_t phys; - void *ptr; - enum drm_dove_bo_type type; -}; - -int drm_dove_init(int fd, struct drm_dove_bufmgr **mgr); -void drm_dove_fini(struct drm_dove_bufmgr *); - -struct drm_dove_bo *drm_dove_bo_create(struct drm_dove_bufmgr *, - unsigned w, unsigned h, unsigned bpp); -struct drm_dove_bo *drm_dove_bo_create_phys(struct drm_dove_bufmgr *, - uint32_t phys, size_t size); -struct drm_dove_bo *drm_dove_bo_dumb_create(struct drm_dove_bufmgr *, - unsigned w, unsigned h, unsigned bpp); - -/* Create a BO from a global name */ -struct drm_dove_bo *drm_dove_bo_create_from_name(struct drm_dove_bufmgr *, - uint32_t name); - -/* Create a global name from a BO */ -int drm_dove_bo_flink(struct drm_dove_bo *bo, uint32_t *name); - -int drm_dove_bo_map(struct drm_dove_bo *bo); -uint32_t drm_dove_bo_phys(struct drm_dove_bo *bo); -void drm_dove_bo_get(struct drm_dove_bo *bo); -void drm_dove_bo_put(struct drm_dove_bo *bo); -int drm_dove_bo_subdata(struct drm_dove_bo *bo, unsigned long offset, - unsigned long size, const void *data); - -#endif |