Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
gpu
drm
nouveau
nouveau_ioc32.c
Go to the documentation of this file.
1
34
#include <
linux/compat.h
>
35
36
#include <
drm/drmP.h
>
37
38
#include "
nouveau_ioctl.h
"
39
49
long
nouveau_compat_ioctl
(
struct
file
*filp,
unsigned
int
cmd
,
50
unsigned
long
arg
)
51
{
52
unsigned
int
nr
= DRM_IOCTL_NR(cmd);
53
drm_ioctl_compat_t *
fn
=
NULL
;
54
int
ret
;
55
56
if
(nr <
DRM_COMMAND_BASE
)
57
return
drm_compat_ioctl
(filp, cmd, arg);
58
59
#if 0
60
if
(nr <
DRM_COMMAND_BASE
+ DRM_ARRAY_SIZE(
mga_compat_ioctls
))
61
fn = nouveau_compat_ioctls[nr -
DRM_COMMAND_BASE
];
62
#endif
63
if
(fn !=
NULL
)
64
ret = (*fn)(filp,
cmd
,
arg
);
65
else
66
ret =
drm_ioctl
(filp, cmd, arg);
67
68
return
ret
;
69
}
Generated on Thu Jan 10 2013 13:32:50 for Linux Kernel by
1.8.2