1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright �� 2019 Intel Corporation 4 */ 5 6#ifndef __INTEL_COLOR_H__ 7#define __INTEL_COLOR_H__ 8 9#include <linux/types.h> 10 11struct intel_crtc_state; 12struct intel_crtc; 13struct drm_i915_private; 14struct drm_property_blob; 15 16void intel_color_init_hooks(struct drm_i915_private *i915); 17int intel_color_init(struct drm_i915_private *i915); 18void intel_color_crtc_init(struct intel_crtc *crtc); 19int intel_color_check(struct intel_crtc_state *crtc_state); 20void intel_color_prepare_commit(struct intel_crtc_state *crtc_state); 21void intel_color_cleanup_commit(struct intel_crtc_state *crtc_state); 22bool intel_color_uses_dsb(const struct intel_crtc_state *crtc_state); 23void intel_color_wait_commit(const struct intel_crtc_state *crtc_state); 24void intel_color_commit_noarm(const struct intel_crtc_state *crtc_state); 25void intel_color_commit_arm(const struct intel_crtc_state *crtc_state); 26void intel_color_post_update(const struct intel_crtc_state *crtc_state); 27void intel_color_load_luts(const struct intel_crtc_state *crtc_state); 28void intel_color_get_config(struct intel_crtc_state *crtc_state); 29bool intel_color_lut_equal(const struct intel_crtc_state *crtc_state, 30 const struct drm_property_blob *blob1, 31 const struct drm_property_blob *blob2, 32 bool is_pre_csc_lut); 33void intel_color_assert_luts(const struct intel_crtc_state *crtc_state); 34 35#endif /* __INTEL_COLOR_H__ */ 36