diff options
author | Rob Clark <rob@ti.com> | 2012-05-17 04:23:26 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 05:54:16 -0400 |
commit | 49e2754578b9f99bde18ad318d888a462d271479 (patch) | |
tree | 9bba955211d37225a931ad45076354e2d149147d /include/drm/drm_crtc.h | |
parent | 345f3b9035691d2d6e97398039b99fa484653cc4 (diff) |
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_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b88b28f45f9e..9b33629e654c 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -933,6 +933,10 @@ extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int | |||
933 | const char *name, | 933 | const char *name, |
934 | const struct drm_prop_enum_list *props, | 934 | const struct drm_prop_enum_list *props, |
935 | int num_values); | 935 | int num_values); |
936 | struct drm_property *drm_property_create_bitmask(struct drm_device *dev, | ||
937 | int flags, const char *name, | ||
938 | const struct drm_prop_enum_list *props, | ||
939 | int num_values); | ||
936 | struct drm_property *drm_property_create_range(struct drm_device *dev, int flags, | 940 | struct drm_property *drm_property_create_range(struct drm_device *dev, int flags, |
937 | const char *name, | 941 | const char *name, |
938 | uint64_t min, uint64_t max); | 942 | uint64_t min, uint64_t max); |