xref: /linux/drivers/gpu/drm/i915/display/intel_dsb.h (revision c6fbb759)
1 /* SPDX-License-Identifier: MIT
2  *
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef _INTEL_DSB_H
7 #define _INTEL_DSB_H
8 
9 #include <linux/types.h>
10 
11 #include "i915_reg_defs.h"
12 
13 struct intel_crtc_state;
14 
15 void intel_dsb_prepare(struct intel_crtc_state *crtc_state);
16 void intel_dsb_cleanup(struct intel_crtc_state *crtc_state);
17 void intel_dsb_reg_write(const struct intel_crtc_state *crtc_state,
18 			 i915_reg_t reg, u32 val);
19 void intel_dsb_indexed_reg_write(const struct intel_crtc_state *crtc_state,
20 				 i915_reg_t reg, u32 val);
21 void intel_dsb_commit(const struct intel_crtc_state *crtc_state);
22 
23 #endif
24