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 unsigned int max_cmds); 18 void intel_dsb_finish(struct intel_dsb *dsb); 19 void intel_dsb_cleanup(struct intel_dsb *dsb); 20 void intel_dsb_reg_write(struct intel_dsb *dsb, 21 i915_reg_t reg, u32 val); 22 void intel_dsb_commit(struct intel_dsb *dsb, 23 bool wait_for_vblank); 24 void intel_dsb_wait(struct intel_dsb *dsb); 25 26 #endif 27