diff options
author | Robert Noland <rnoland@2hip.net> | 2009-11-25 15:09:24 -0600 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-11-25 15:09:24 -0600 |
commit | 6f66de982ad6ee6967ec61a7399e600bdd9e5887 (patch) | |
tree | 1290fde13cf642b2d988c513cb8f3d15f395f72a /xf86drm.h | |
parent | 9558f6377ffee680d6bec0808bc113b3139b0d5f (diff) |
Correctly set DRM_MAX_MINOR for all platforms.
DRM_MAJOR is platform specific, but not used outside of xf86drm.c
that I can find.
Diffstat (limited to 'xf86drm.h')
-rw-r--r-- | xf86drm.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -39,6 +39,10 @@ #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 */ |