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/dist/include/drm Put a guess for what ...



details:   https://anonhg.NetBSD.org/src/rev/07e304dc1fa2
branches:  trunk
changeset: 1028114:07e304dc1fa2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:54:35 2021 +0000

description:
Put a guess for what the netbsd mmap type will be.

Probably the same as drm_gem_mmap_object?


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drm_gem.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3c03172a23e1 -r 07e304dc1fa2 sys/external/bsd/drm2/dist/include/drm/drm_gem.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_gem.h  Sun Dec 19 01:54:28 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_gem.h  Sun Dec 19 01:54:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem.h,v 1.7 2021/12/19 00:59:10 riastradh Exp $    */
+/*     $NetBSD: drm_gem.h,v 1.8 2021/12/19 01:54:35 riastradh Exp $    */
 
 #ifndef __DRM_GEM_H__
 #define __DRM_GEM_H__
@@ -168,7 +168,12 @@
         * drm_gem_prime_mmap().  When @mmap is present @vm_ops is not
         * used, the @mmap callback must set vma->vm_ops instead.
         */
+#ifdef __NetBSD__
+       int (*mmap)(struct drm_device *, off_t, size_t, int, struct uvm_object **,
+           voff_t *, struct file *);
+#else
        int (*mmap)(struct drm_gem_object *obj, struct vm_area_struct *vma);
+#endif
 
        /**
         * @vm_ops:



Home | Main Index | Thread Index | Old Index