summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-08-30 11:34:51 +0000
committerDave Airlie <airlied@linux.ie>2004-08-30 11:34:51 +0000
commitda6b44849763fac5ccb7d7511128454c6c2a92c7 (patch)
treeeeacf7b240241350c040dc4751f4a4c3d9d52502 /linux-core/drmP.h
parent7809efc8c32520e6b25c143ee3276edbf534ed14 (diff)
implement drm_core_check_feature and use it .. looks lots nicer
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 384390de..495277f6 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -683,6 +683,11 @@ typedef struct drm_device {
u32 driver_features;
} drm_device_t;
+static __inline__ int drm_core_check_feature(struct drm_device *dev, int feature)
+{
+ return ((dev->driver_features & feature) ? 1 : 0);
+}
+
extern void DRM(driver_register_fns)(struct drm_device *dev);
/******************************************************************/