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_crtc_state; 12 struct intel_crtc; 13 struct drm_i915_private; 14 struct drm_property_blob; 15 16 void intel_color_init_hooks(struct drm_i915_private *i915); 17 void intel_crtc_color_init(struct intel_crtc *crtc); 18 int intel_color_check(struct intel_crtc_state *crtc_state); 19 void intel_color_commit_noarm(const struct intel_crtc_state *crtc_state); 20 void intel_color_commit_arm(const struct intel_crtc_state *crtc_state); 21 void intel_color_load_luts(const struct intel_crtc_state *crtc_state); 22 void intel_color_get_config(struct intel_crtc_state *crtc_state); 23 int intel_color_get_gamma_bit_precision(const struct intel_crtc_state *crtc_state); 24 bool intel_color_lut_equal(struct drm_property_blob *blob1, 25 struct drm_property_blob *blob2, 26 u32 gamma_mode, u32 bit_precision); 27 28 #endif /* __INTEL_COLOR_H__ */ 29