xref: /openbmc/linux/drivers/gpu/drm/i915/display/intel_dsb.h (revision e65e175b07bef5974045cc42238de99057669ca7)
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;
14 struct intel_dsb;
15 
16 struct intel_dsb *intel_dsb_prepare(struct intel_crtc *crtc);
17 void intel_dsb_cleanup(struct intel_dsb *dsb);
18 void intel_dsb_reg_write(struct intel_dsb *dsb,
19 			 i915_reg_t reg, u32 val);
20 void intel_dsb_indexed_reg_write(struct intel_dsb *dsb,
21 				 i915_reg_t reg, u32 val);
22 void intel_dsb_commit(struct intel_dsb *dsb);
23 
24 #endif
25