diff options
author | Russell King <rmk_cubox@arm.linux.org.uk> | 2013-09-22 15:26:08 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2013-09-22 15:26:08 +0100 |
commit | e12400fad24fcff3a3a493cf9cce74dd2a5c8861 (patch) | |
tree | f0375afba3ec93d9a85e22befc3d88b4910bbcf0 /armada_bufmgr.c | |
parent | 9f6a79fa87732674b3083e0128fc2100e8e7269c (diff) |
Remove drm_armada_bo_create_phys()
We no longer need this function, because we can do everything via the
dma_buf passing methods. So, get rid of this.
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
Diffstat (limited to 'armada_bufmgr.c')
-rw-r--r-- | armada_bufmgr.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/armada_bufmgr.c b/armada_bufmgr.c index ee9d176..22a2a14 100644 --- a/armada_bufmgr.c +++ b/armada_bufmgr.c @@ -271,40 +271,6 @@ static void armada_bo_cache_put(struct armada_bo *bo) armada_bo_free(bo); } -struct drm_armada_bo *drm_armada_bo_create_phys(struct drm_armada_bufmgr *mgr, - uint32_t phys, size_t size) -{ - struct armada_bo *bo; - int fd = mgr->fd; - - bo = calloc(1, sizeof *bo); - if (bo) { - struct drm_armada_gem_create_phys arg; - int ret; - - memset(&arg, 0, sizeof(arg)); - arg.phys = phys; - arg.size = size; - - ret = drmIoctl(fd, DRM_IOCTL_ARMADA_GEM_CREATE_PHYS, &arg); - if (ret) { - free(bo); - return NULL; - } - bo->bo.ref = 1; - bo->bo.handle = arg.handle; - bo->bo.size = size; - bo->bo.type = DRM_ARMADA_BO_LINEAR; - bo->alloc_size = size; - bo->ref = 1; - bo->mgr = mgr; - - /* Add it to the handle hash table */ - assert(drmHashInsert(mgr->handle_hash, bo->bo.handle, bo) == 0); - } - return &bo->bo; -} - struct drm_armada_bo *drm_armada_bo_create(struct drm_armada_bufmgr *mgr, unsigned w, unsigned h, unsigned bpp) { |