diff options
author | Rob Clark <robclark@freedesktop.org> | 2013-10-12 12:16:44 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2014-11-24 19:56:50 -0500 |
commit | fb4177046de19730a784c3c16e4b73aab0ec6e41 (patch) | |
tree | 7801e10d14aa85d38b94fd868b7124587f22ad28 /include/drm | |
parent | c2c0346e1f5ddec4f6497d7c6359157c5f32d442 (diff) |
update signed/object prop types
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_mode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 76fd76bf..476e7049 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -239,6 +239,21 @@ struct drm_mode_get_connector { #define DRM_MODE_PROP_BLOB (1<<4) #define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ +/* non-extended types: legacy bitmask, one bit per type: */ +#define DRM_MODE_PROP_LEGACY_TYPE ( \ + DRM_MODE_PROP_RANGE | \ + DRM_MODE_PROP_ENUM | \ + DRM_MODE_PROP_BLOB | \ + DRM_MODE_PROP_BITMASK) + +/* extended-types: rather than continue to consume a bit per type, + * grab a chunk of the bits to use as integer type id. + */ +#define DRM_MODE_PROP_EXTENDED_TYPE 0x0000ffc0 +#define DRM_MODE_PROP_TYPE(n) ((n) << 6) +#define DRM_MODE_PROP_OBJECT DRM_MODE_PROP_TYPE(1) +#define DRM_MODE_PROP_SIGNED_RANGE DRM_MODE_PROP_TYPE(2) + struct drm_mode_property_enum { __u64 value; char name[DRM_PROP_NAME_LEN]; |