linux/drivers/gpu/drm/xylon/xylon_property.h
<<
>>
Prefs
   1/*
   2 * Xylon DRM property header
   3 *
   4 * Copyright (C) 2014 Xylon d.o.o.
   5 * Author: Davor Joja <davor.joja@logicbricks.com>
   6 *
   7 * This software is licensed under the terms of the GNU General Public
   8 * License version 2, as published by the Free Software Foundation, and
   9 * may be copied, distributed, and modified under those terms.
  10 *
  11 * This program is distributed in the hope that it will be useful,
  12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14 * GNU General Public License for more details.
  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 /* __XYLON_DRM_PROPERTY_H__ */
  47