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 11 struct intel_atomic_state; 12 struct intel_crtc_state; 13 struct intel_crtc; 14 struct drm_i915_private; 15 struct drm_property_blob; 16 17 void intel_color_init_hooks(struct drm_i915_private *i915); 18 int intel_color_init(struct drm_i915_private *i915); 19 void intel_color_crtc_init(struct intel_crtc *crtc); 20 int intel_color_check(struct intel_atomic_state *state, 21 struct intel_crtc *crtc); 22 void intel_color_prepare_commit(struct intel_atomic_state *state, 23 struct intel_crtc *crtc); 24 void intel_color_cleanup_commit(struct intel_crtc_state *crtc_state); 25 bool intel_color_uses_dsb(const struct intel_crtc_state *crtc_state); 26 void intel_color_wait_commit(const struct intel_crtc_state *crtc_state); 27 void intel_color_commit_noarm(const struct intel_crtc_state *crtc_state); 28 void intel_color_commit_arm(const struct intel_crtc_state *crtc_state); 29 void intel_color_post_update(const struct intel_crtc_state *crtc_state); 30 void intel_color_load_luts(const struct intel_crtc_state *crtc_state); 31 void intel_color_get_config(struct intel_crtc_state *crtc_state); 32 bool intel_color_lut_equal(const struct intel_crtc_state *crtc_state, 33 const struct drm_property_blob *blob1, 34 const struct drm_property_blob *blob2, 35 bool is_pre_csc_lut); 36 void intel_color_assert_luts(const struct intel_crtc_state *crtc_state); 37 38 #endif /* __INTEL_COLOR_H__ */ 39