]> Git Repo - linux.git/blob - drivers/gpu/drm/i915/display/intel_link_bw.h
net: wan: Add framer framework support
[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 bpp_limit_reached_pipes;
20         /* in 1/16 bpp units */
21         int max_bpp_x16[I915_MAX_PIPES];
22 };
23
24 void intel_link_bw_init_limits(struct drm_i915_private *i915,
25                                struct intel_link_bw_limits *limits);
26 int intel_link_bw_reduce_bpp(struct intel_atomic_state *state,
27                              struct intel_link_bw_limits *limits,
28                              u8 pipe_mask,
29                              const char *reason);
30 bool intel_link_bw_set_bpp_limit_for_pipe(struct intel_atomic_state *state,
31                                           const struct intel_link_bw_limits *old_limits,
32                                           struct intel_link_bw_limits *new_limits,
33                                           enum pipe pipe);
34 int intel_link_bw_atomic_check(struct intel_atomic_state *state,
35                                struct intel_link_bw_limits *new_limits);
36
37 #endif
This page took 0.036215 seconds and 4 git commands to generate.