artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e028d90
)
Unstub drm_gem_ttm_vmap/vunmap.
author
kettenis
<kettenis@openbsd.org>
Thu, 9 Feb 2023 17:19:25 +0000
(17:19 +0000)
committer
kettenis
<kettenis@openbsd.org>
Thu, 9 Feb 2023 17:19:25 +0000
(17:19 +0000)
ok jsg@
sys/dev/pci/drm/drm_gem_ttm_helper.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/drm_gem_ttm_helper.c
b/sys/dev/pci/drm/drm_gem_ttm_helper.c
index
776f4bb
..
1357eb1
100644
(file)
--- 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);
}