]> code.ossystems Code Review - openembedded-core.git/blob
588c1af70bd407fdbddfb09f5d2ac2358cc735c5
[openembedded-core.git] /
1 commit 2e6ec7cdc09f36be1cbe9aeaccfc45f307fc0060
2 Author: Carlos R. Mafra <crmafra2@gmail.com>
3 Date:   Wed Jul 30 12:29:37 2008 -0700
4
5     drm: remove #define's for non-linux systems
6     
7     There is no point in considering FreeBSD et al.  in the linux kernel
8     source code.
9     
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>
13
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
18 @@ -36,7 +36,6 @@
19  #ifndef _DRM_H_
20  #define _DRM_H_
21  
22 -#if defined(__linux__)
23  #if defined(__KERNEL__)
24  #endif
25  #include <asm/ioctl.h>         /* For _IO* macros */
26 @@ -46,22 +45,6 @@
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 */
33 -#undef ioctl
34 -#include <sys/ioccom.h>
35 -#define ioctl(a,b,c)           xf86ioctl(a,b,c)
36 -#else
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)
45 -#endif
46  
47  #define DRM_MAJOR       226
48  #define DRM_MAX_MINOR   15