1 commit 2e6ec7cdc09f36be1cbe9aeaccfc45f307fc0060
2 Author: Carlos R. Mafra <crmafra2@gmail.com>
3 Date: Wed Jul 30 12:29:37 2008 -0700
5 drm: remove #define's for non-linux systems
7 There is no point in considering FreeBSD et al. in the linux kernel
10 Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
11 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
12 Signed-off-by: Dave Airlie <airlied@redhat.com>
14 diff --git a/include/drm/drm.h b/include/drm/drm.h
15 index 38d3c6b..0864c69 100644
16 --- a/include/drm/drm.h
17 +++ b/include/drm/drm.h
22 -#if defined(__linux__)
23 #if defined(__KERNEL__)
25 #include <asm/ioctl.h> /* For _IO* macros */
27 #define DRM_IOC_WRITE _IOC_WRITE
28 #define DRM_IOC_READWRITE _IOC_READ|_IOC_WRITE
29 #define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
30 -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
31 -#if defined(__FreeBSD__) && defined(IN_MODULE)
32 -/* Prevent name collision when including sys/ioccom.h */
34 -#include <sys/ioccom.h>
35 -#define ioctl(a,b,c) xf86ioctl(a,b,c)
37 -#include <sys/ioccom.h>
38 -#endif /* __FreeBSD__ && xf86ioctl */
39 -#define DRM_IOCTL_NR(n) ((n) & 0xff)
40 -#define DRM_IOC_VOID IOC_VOID
41 -#define DRM_IOC_READ IOC_OUT
42 -#define DRM_IOC_WRITE IOC_IN
43 -#define DRM_IOC_READWRITE IOC_INOUT
44 -#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
48 #define DRM_MAX_MINOR 15