Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/include/drm Define DRM_I...
details: https://anonhg.NetBSD.org/src/rev/48ef7bbe6e92
branches: riastradh-drm2
changeset: 788108:48ef7bbe6e92
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:16:40 2013 +0000
description:
Define DRM_IOCTL_NR and DRM_MAJOR appropriately for NetBSD.
diffstat:
sys/external/bsd/drm2/dist/include/drm/drmP.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 3b284ecc4052 -r 48ef7bbe6e92 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:16:23 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:16:40 2013 +0000
@@ -311,8 +311,15 @@
typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
unsigned long arg);
+#ifdef __NetBSD__
+/* XXX Kludge...is there a better way to do this? */
+#define DRM_IOCTL_NR(n) \
+ (IOCBASECMD(n) &~ (IOCGROUP(n) << IOCGROUP_SHIFT))
+#define DRM_MAJOR cdevsw_lookup_major(&drm_cdevsw)
+#else
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#define DRM_MAJOR 226
+#endif
#define DRM_AUTH 0x1
#define DRM_MASTER 0x2
Home |
Main Index |
Thread Index |
Old Index