]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/blobdiff - xf86drm.h
Correctly set DRM_MAX_MINOR for all platforms.
[glsdk/libdrm.git] / xf86drm.h
index 9944d32fca41ddaa879993d4fe7131a7690392c3..496d95d8809e5a3ab3ee6b1583a41cc4937129db 100644 (file)
--- a/xf86drm.h
+++ b/xf86drm.h
 #include <stdint.h>
 #include <drm.h>
 
+#ifndef DRM_MAX_MINOR
+#define DRM_MAX_MINOR   16
+#endif
+
 #if defined(__linux__)
 
 #define DRM_IOCTL_NR(n)                _IOC_NR(n)
@@ -47,8 +51,6 @@
 #define DRM_IOC_WRITE          _IOC_WRITE
 #define DRM_IOC_READWRITE      _IOC_READ|_IOC_WRITE
 #define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
-#define DRM_MAJOR       226
-#define DRM_MAX_MINOR   15
 
 #else /* One of the *BSDs */