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