diff options
Diffstat (limited to 'armada_bufmgr.c')
-rw-r--r-- | armada_bufmgr.c | 15 |
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) { |