diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-01 21:54:04 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-01 21:54:04 -0500 |
commit | a7a2cc315c8a5e51b08538d102ec3229c966ac87 (patch) | |
tree | ae337f98e400b6fe729498adca03b1960b4f2eb4 /drivers/char/drm/drmP.h | |
parent | 925142431bd653175b80ae153bd7a8bc13628bde (diff) |
drm: move ioctl flags to a bit field of flags
From: Dave Airlie
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r-- | drivers/char/drm/drmP.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 66814291949..295de65b708 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -272,10 +272,13 @@ typedef int drm_ioctl_t(struct inode *inode, struct file *filp, | |||
272 | typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd, | 272 | typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd, |
273 | unsigned long arg); | 273 | unsigned long arg); |
274 | 274 | ||
275 | #define DRM_AUTH 0x1 | ||
276 | #define DRM_MASTER 0x2 | ||
277 | #define DRM_ROOT_ONLY 0x4 | ||
278 | |||
275 | typedef struct drm_ioctl_desc { | 279 | typedef struct drm_ioctl_desc { |
276 | drm_ioctl_t *func; | 280 | drm_ioctl_t *func; |
277 | int auth_needed; | 281 | int flags; |
278 | int root_only; | ||
279 | } drm_ioctl_desc_t; | 282 | } drm_ioctl_desc_t; |
280 | 283 | ||
281 | typedef struct drm_devstate { | 284 | typedef struct drm_devstate { |
@@ -370,6 +373,7 @@ typedef struct drm_buf_entry { | |||
370 | /** File private data */ | 373 | /** File private data */ |
371 | typedef struct drm_file { | 374 | typedef struct drm_file { |
372 | int authenticated; | 375 | int authenticated; |
376 | int master; | ||
373 | int minor; | 377 | int minor; |
374 | pid_t pid; | 378 | pid_t pid; |
375 | uid_t uid; | 379 | uid_t uid; |