0001
0002
0003
0004
0005
0006 #ifndef _SKL_UNIVERSAL_PLANE_H_
0007 #define _SKL_UNIVERSAL_PLANE_H_
0008
0009 #include <linux/types.h>
0010
0011 struct drm_i915_private;
0012 struct intel_crtc;
0013 struct intel_initial_plane_config;
0014 struct intel_plane_state;
0015
0016 enum pipe;
0017 enum plane_id;
0018
0019 struct intel_plane *
0020 skl_universal_plane_create(struct drm_i915_private *dev_priv,
0021 enum pipe pipe, enum plane_id plane_id);
0022
0023 void skl_get_initial_plane_config(struct intel_crtc *crtc,
0024 struct intel_initial_plane_config *plane_config);
0025
0026 int skl_format_to_fourcc(int format, bool rgb_order, bool alpha);
0027
0028 int skl_calc_main_surface_offset(const struct intel_plane_state *plane_state,
0029 int *x, int *y, u32 *offset);
0030
0031 bool icl_is_nv12_y_plane(struct drm_i915_private *dev_priv,
0032 enum plane_id plane_id);
0033 bool icl_is_hdr_plane(struct drm_i915_private *dev_priv, enum plane_id plane_id);
0034
0035 #endif