diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-02 13:54:04 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-02 13:54:04 +1100 |
commit | a7a2cc315c8a5e51b08538d102ec3229c966ac87 (patch) | |
tree | ae337f98e400b6fe729498adca03b1960b4f2eb4 /drivers/char/drm/drmP.h | |
parent | 925142431bd653175b80ae153bd7a8bc13628bde (diff) | |
download | op-kernel-dev-a7a2cc315c8a5e51b08538d102ec3229c966ac87.zip op-kernel-dev-a7a2cc315c8a5e51b08538d102ec3229c966ac87.tar.gz |
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 6681429..295de65 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, typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd, unsigned long arg); +#define DRM_AUTH 0x1 +#define DRM_MASTER 0x2 +#define DRM_ROOT_ONLY 0x4 + typedef struct drm_ioctl_desc { drm_ioctl_t *func; - int auth_needed; - int root_only; + int flags; } drm_ioctl_desc_t; typedef struct drm_devstate { @@ -370,6 +373,7 @@ typedef struct drm_buf_entry { /** File private data */ typedef struct drm_file { int authenticated; + int master; int minor; pid_t pid; uid_t uid; |