mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 11:11:13 +07:00
366b6200f7
No need for this function to be accessible outside of intel_bw.c. Avoid including the i915_drv.h mega header from other header files to make further header cleanup easier. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/6c898ec6511af47c1c5b679e516dc757cd207146.1565085691.git.jani.nikula@intel.com
33 lines
792 B
C
33 lines
792 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_BW_H__
|
|
#define __INTEL_BW_H__
|
|
|
|
#include <drm/drm_atomic.h>
|
|
|
|
#include "intel_display.h"
|
|
|
|
struct drm_i915_private;
|
|
struct intel_atomic_state;
|
|
struct intel_crtc_state;
|
|
|
|
struct intel_bw_state {
|
|
struct drm_private_state base;
|
|
|
|
unsigned int data_rate[I915_MAX_PIPES];
|
|
u8 num_active_planes[I915_MAX_PIPES];
|
|
};
|
|
|
|
#define to_intel_bw_state(x) container_of((x), struct intel_bw_state, base)
|
|
|
|
void intel_bw_init_hw(struct drm_i915_private *dev_priv);
|
|
int intel_bw_init(struct drm_i915_private *dev_priv);
|
|
int intel_bw_atomic_check(struct intel_atomic_state *state);
|
|
void intel_bw_crtc_update(struct intel_bw_state *bw_state,
|
|
const struct intel_crtc_state *crtc_state);
|
|
|
|
#endif /* __INTEL_BW_H__ */
|