1 /* SPDX-License-Identifier: MIT
3 * Copyright © 2019 Intel Corporation
9 #include <linux/types.h>
13 struct intel_crtc_state
;
30 * free_pos will point the first free entry position
31 * and help in calculating tail of command buffer.
36 * ins_start_offset will help to store start address of the dsb
37 * instuction and help in identifying the batch of auto-increment
43 void intel_dsb_prepare(struct intel_crtc_state
*crtc_state
);
44 void intel_dsb_cleanup(struct intel_crtc_state
*crtc_state
);
45 void intel_dsb_reg_write(const struct intel_crtc_state
*crtc_state
,
46 i915_reg_t reg
, u32 val
);
47 void intel_dsb_indexed_reg_write(const struct intel_crtc_state
*crtc_state
,
48 i915_reg_t reg
, u32 val
);
49 void intel_dsb_commit(const struct intel_crtc_state
*crtc_state
);