xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/intel_color.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: intel_color.h,v 1.2 2021/12/18 23:45:29 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 /*
5  * Copyright © 2019 Intel Corporation
6  */
7 
8 #ifndef __INTEL_COLOR_H__
9 #define __INTEL_COLOR_H__
10 
11 #include <linux/types.h>
12 
13 struct intel_crtc_state;
14 struct intel_crtc;
15 struct drm_property_blob;
16 
17 void intel_color_init(struct intel_crtc *crtc);
18 int intel_color_check(struct intel_crtc_state *crtc_state);
19 void intel_color_commit(const struct intel_crtc_state *crtc_state);
20 void intel_color_load_luts(const struct intel_crtc_state *crtc_state);
21 void intel_color_get_config(struct intel_crtc_state *crtc_state);
22 int intel_color_get_gamma_bit_precision(const struct intel_crtc_state *crtc_state);
23 bool intel_color_lut_equal(struct drm_property_blob *blob1,
24 			   struct drm_property_blob *blob2,
25 			   u32 gamma_mode, u32 bit_precision);
26 
27 #endif /* __INTEL_COLOR_H__ */
28