1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef __XYLON_DRM_PROPERTY_H__
18#define __XYLON_DRM_PROPERTY_H__
19
20#define XYLON_DRM_PROPERTY_ALPHA_MIN 0
21#define XYLON_DRM_PROPERTY_ALPHA_MAX 255
22#define XYLON_DRM_PROPERTY_COLOR_MIN 0
23#define XYLON_DRM_PROPERTY_COLOR_MAX 0xFFFFFFFF
24
25extern const struct drm_prop_enum_list property_layer_update[];
26extern const struct drm_prop_enum_list property_pixel_data_polarity[];
27extern const struct drm_prop_enum_list property_pixel_data_trigger[];
28extern const struct drm_prop_enum_list property_control[];
29extern const struct drm_prop_enum_list property_color_transparency[];
30extern const struct drm_prop_enum_list property_interlace[];
31
32int xylon_drm_property_size(const struct drm_prop_enum_list *list);
33
34int xylon_drm_property_create_list(struct drm_device *dev,
35 struct drm_mode_object *base,
36 struct drm_property **prop,
37 const struct drm_prop_enum_list *list,
38 const char *name,
39 int size);
40int xylon_drm_property_create_range(struct drm_device *dev,
41 struct drm_mode_object *base,
42 struct drm_property **prop,
43 const char *name,
44 u64 min, u64 max, u64 init);
45
46#endif
47