diff options
Diffstat (limited to 'linux/drmP.h')
-rw-r--r-- | linux/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h index 384390de..495277f6 100644 --- a/linux/drmP.h +++ b/linux/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); /******************************************************************/ |