diff options
author | Rob Clark <rob@ti.com> | 2012-05-17 08:23:26 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 09:54:16 (GMT) |
commit | 49e2754578b9f99bde18ad318d888a462d271479 (patch) | |
tree | 9bba955211d37225a931ad45076354e2d149147d /include/drm/drm_mode.h | |
parent | 345f3b9035691d2d6e97398039b99fa484653cc4 (diff) | |
download | linux-49e2754578b9f99bde18ad318d888a462d271479.tar.xz |
drm: add bitmask property type
A bitmask property is similar to an enum. The enum value is a bit
position (0-63), and valid property values consist of a mask of
zero or more of (1 << enum_val[n]).
[airlied: 1LL -> 1ULL]
Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mode.h')
-rw-r--r-- | include/drm/drm_mode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 326f2be..5581980 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -230,6 +230,7 @@ struct drm_mode_get_connector { #define DRM_MODE_PROP_IMMUTABLE (1<<2) #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ #define DRM_MODE_PROP_BLOB (1<<4) +#define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ struct drm_mode_property_enum { __u64 value; |