Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/drm drm_gem_cma_dumb_map_offset is no ...
details: https://anonhg.NetBSD.org/src/rev/af9f0a2b7511
branches: trunk
changeset: 1027835:af9f0a2b7511
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 00:55:18 2021 +0000
description:
drm_gem_cma_dumb_map_offset is no more.
diffstat:
sys/external/bsd/drm2/drm/drm_gem_cma_helper.c | 34 +------------------------
1 files changed, 2 insertions(+), 32 deletions(-)
diffs (55 lines):
diff -r baa760236d6f -r af9f0a2b7511 sys/external/bsd/drm2/drm/drm_gem_cma_helper.c
--- a/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c Sun Dec 19 00:55:09 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c Sun Dec 19 00:55:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_gem_cma_helper.c,v 1.10 2020/02/22 19:46:48 chs Exp $ */
+/* $NetBSD: drm_gem_cma_helper.c,v 1.11 2021/12/19 00:55:18 riastradh Exp $ */
/*-
* Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.10 2020/02/22 19:46:48 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.11 2021/12/19 00:55:18 riastradh Exp $");
#include <drm/drmP.h>
#include <drm/drm_gem_cma_helper.h>
@@ -171,36 +171,6 @@
return 0;
}
-int
-drm_gem_cma_dumb_map_offset(struct drm_file *file_priv, struct drm_device *ddev,
- uint32_t handle, uint64_t *offset)
-{
- struct drm_gem_object *gem_obj;
- struct drm_gem_cma_object *obj;
- int error;
-
- gem_obj = drm_gem_object_lookup(ddev, file_priv, handle);
- if (gem_obj == NULL)
- return -ENOENT;
-
- obj = to_drm_gem_cma_obj(gem_obj);
-
- if (drm_vma_node_has_offset(&obj->base.vma_node) == 0) {
- error = drm_gem_create_mmap_offset(&obj->base);
- if (error)
- goto done;
- } else {
- error = 0;
- }
-
- *offset = drm_vma_node_offset_addr(&obj->base.vma_node);
-
-done:
- drm_gem_object_unreference_unlocked(&obj->base);
-
- return error;
-}
-
static int
drm_gem_cma_fault(struct uvm_faultinfo *ufi, vaddr_t vaddr,
struct vm_page **pps, int npages, int centeridx, vm_prot_t access_type,
Home |
Main Index |
Thread Index |
Old Index