diff options
author | Rob Clark | 2012-06-05 12:28:22 -0500 |
---|---|---|
committer | Rob Clark | 2012-06-08 09:27:21 -0500 |
commit | 7b228e900f59cda3cafb60692be9dd7aced6ad96 (patch) | |
tree | a83fb716e3567ec9af83466a4de1b5241fc57c5f /include | |
parent | 86dece4cf2f7180b854fbd318fa1a57793f0deac (diff) | |
download | libdrm-7b228e900f59cda3cafb60692be9dd7aced6ad96.tar.gz libdrm-7b228e900f59cda3cafb60692be9dd7aced6ad96.tar.xz libdrm-7b228e900f59cda3cafb60692be9dd7aced6ad96.zip |
Add support for bitmask properties
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]).
Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'include')
-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 f303d94c..62ba997f 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h | |||
@@ -226,6 +226,7 @@ struct drm_mode_get_connector { | |||
226 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) | 226 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) |
227 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ | 227 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ |
228 | #define DRM_MODE_PROP_BLOB (1<<4) | 228 | #define DRM_MODE_PROP_BLOB (1<<4) |
229 | #define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ | ||
229 | 230 | ||
230 | struct drm_mode_property_enum { | 231 | struct drm_mode_property_enum { |
231 | __u64 value; | 232 | __u64 value; |