summaryrefslogtreecommitdiff
path: root/armada_bufmgr.c
diff options
context:
space:
mode:
authorRussell King <rmk_cubox@arm.linux.org.uk>2013-06-13 14:40:54 +0100
committerRussell King <rmk@arm.linux.org.uk>2013-09-22 15:19:01 +0100
commit96f9d8df1381ad3a51f78b1804454f870f999618 (patch)
tree9eccc86ace19300c8a7359d07adbd969b779f2c8 /armada_bufmgr.c
parent0f0a44812dc57b9bb37346e344bcf50235fa4d94 (diff)
Remove drm_armada_bo_phys() and its associated ioctl
drm_armada_bo_phys() is no longer necessary with dmabuf support, so drop it from the library. Also get rid of the bo "phys" member. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'armada_bufmgr.c')
-rw-r--r--armada_bufmgr.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/armada_bufmgr.c b/armada_bufmgr.c
index 6b9e667..8122269 100644
--- a/armada_bufmgr.c
+++ b/armada_bufmgr.c
@@ -282,7 +282,6 @@ struct drm_armada_bo *drm_armada_bo_create_phys(struct drm_armada_bufmgr *mgr,
bo->bo.ref = 1;
bo->bo.handle = arg.handle;
bo->bo.size = size;
- bo->bo.phys = phys;
bo->bo.type = DRM_ARMADA_BO_LINEAR;
bo->alloc_size = size;
bo->ref = 1;
@@ -511,20 +510,6 @@ int drm_armada_bo_map(struct drm_armada_bo *dbo)
return 0;
}
-uint32_t drm_armada_bo_phys(struct drm_armada_bo *dbo)
-{
- struct armada_bo *bo = to_armada_bo(dbo);
- struct drm_armada_gem_prop arg;
- int ret, fd = bo->mgr->fd;
-
- memset(&arg, 0, sizeof(arg));
- arg.handle = bo->bo.handle;
-
- ret = drmIoctl(fd, DRM_IOCTL_ARMADA_GEM_PROP, &arg);
-
- return ret ? -1 : (uint32_t)arg.phys;
-}
-
int drm_armada_bo_subdata(struct drm_armada_bo *dbo, unsigned long offset,
unsigned long size, const void *data)
{