]> Git Repo - linux.git/blob - drivers/gpu/drm/i915/display/intel_link_bw.h
Merge patch series "riscv: Extension parsing fixes"
[linux.git] / drivers / gpu / drm / i915 / display / intel_link_bw.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023 Intel Corporation
4  */
5
6 #ifndef __INTEL_LINK_BW_H__
7 #define __INTEL_LINK_BW_H__
8
9 #include <linux/types.h>
10
11 #include "intel_display_limits.h"
12
13 struct drm_i915_private;
14
15 struct intel_atomic_state;
16 struct intel_crtc_state;
17
18 struct intel_link_bw_limits {
19         u8 force_fec_pipes;
20         u8 bpp_limit_reached_pipes;
21         /* in 1/16 bpp units */
22         int max_bpp_x16[I915_MAX_PIPES];
23 };
24
25 void intel_link_bw_init_limits(struct intel_atomic_state *state,
26                                struct intel_link_bw_limits *limits);
27 int intel_link_bw_reduce_bpp(struct intel_atomic_state *state,
28                              struct intel_link_bw_limits *limits,
29                              u8 pipe_mask,
30                              const char *reason);
31 bool intel_link_bw_set_bpp_limit_for_pipe(struct intel_atomic_state *state,
32                                           const struct intel_link_bw_limits *old_limits,
33                                           struct intel_link_bw_limits *new_limits,
34                                           enum pipe pipe);
35 int intel_link_bw_atomic_check(struct intel_atomic_state *state,
36                                struct intel_link_bw_limits *new_limits);
37
38 #endif
This page took 0.037324 seconds and 4 git commands to generate.