Module Name: src
Committed By: riastradh
Date: Sun Dec 19 00:57:21 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/dist/include/drm: drm_ioctl.h
Log Message:
Restore netbsd definition of drm_ioctl
Author: Maya Rashish <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/drm2/dist/include/drm/drm_ioctl.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_ioctl.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drm_ioctl.h:1.2 src/sys/external/bsd/drm2/dist/include/drm/drm_ioctl.h:1.3
--- src/sys/external/bsd/drm2/dist/include/drm/drm_ioctl.h:1.2 Sat Dec 18 23:45:46 2021
+++ src/sys/external/bsd/drm2/dist/include/drm/drm_ioctl.h Sun Dec 19 00:57:21 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_ioctl.h,v 1.2 2021/12/18 23:45:46 riastradh Exp $ */
+/* $NetBSD: drm_ioctl.h,v 1.3 2021/12/19 00:57:21 riastradh Exp $ */
/*
* Internal Header for the Direct Rendering Manager
@@ -169,7 +169,11 @@ struct drm_ioctl_desc {
}
int drm_ioctl_permit(u32 flags, struct drm_file *file_priv);
+#ifdef __NetBSD__
+int drm_ioctl(struct file *, unsigned long, void *);
+#else
long drm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
+#endif
long drm_ioctl_kernel(struct file *, drm_ioctl_t, void *, u32);
#ifdef CONFIG_COMPAT
long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);