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