summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-02-09 17:19:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-02-09 17:19:26 +0000
commit1df0ec9bfbc9a8c3f01b653a60ecacc6ba2d617f (patch)
tree6a7f2a31187606f50d8ce2beeb280feb07e96df8 /sys/dev
parent00c22de2eaed225cae551dfe0e8514209562a337 (diff)
Unstub drm_gem_ttm_vmap/vunmap.
ok jsg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drm_gem_ttm_helper.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_gem_ttm_helper.c b/sys/dev/pci/drm/drm_gem_ttm_helper.c
index 776f4bbf201..1357eb168df 100644
--- a/sys/dev/pci/drm/drm_gem_ttm_helper.c
+++ b/sys/dev/pci/drm/drm_gem_ttm_helper.c
@@ -24,12 +24,17 @@ drm_gem_ttm_mmap(struct drm_gem_object *obj,
int
drm_gem_ttm_vmap(struct drm_gem_object *obj, struct iosys_map *ism)
{
- STUB();
- return -ENOSYS;
+ struct ttm_buffer_object *tbo =
+ container_of(obj, struct ttm_buffer_object, base);
+
+ return ttm_bo_vmap(tbo, ism);
}
void
drm_gem_ttm_vunmap(struct drm_gem_object *obj, struct iosys_map *ism)
{
- STUB();
+ struct ttm_buffer_object *tbo =
+ container_of(obj, struct ttm_buffer_object, base);
+
+ ttm_bo_vunmap(tbo, ism);
}