Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:54:35 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/include/drm: drm_gem.h

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

Probably the same as drm_gem_mmap_object?

Author: Maya Rashish <m...@netbsd.org>


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.7 src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.8
--- src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.7	Sun Dec 19 00:59:10 2021
+++ src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h	Sun Dec 19 01:54:35 2021
@@ -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 @@ struct drm_gem_object_funcs {
 	 * 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:

Reply via email to