Home | History | Annotate | Line # | Download | only in display
      1  1.1  riastrad /*	$NetBSD: intel_bw.h,v 1.2 2021/12/18 23:45:29 riastradh Exp $	*/
      2  1.1  riastrad 
      3  1.1  riastrad /* SPDX-License-Identifier: MIT */
      4  1.1  riastrad /*
      5  1.1  riastrad  * Copyright  2019 Intel Corporation
      6  1.1  riastrad  */
      7  1.1  riastrad 
      8  1.1  riastrad #ifndef __INTEL_BW_H__
      9  1.1  riastrad #define __INTEL_BW_H__
     10  1.1  riastrad 
     11  1.1  riastrad #include <drm/drm_atomic.h>
     12  1.1  riastrad 
     13  1.1  riastrad #include "intel_display.h"
     14  1.1  riastrad 
     15  1.1  riastrad struct drm_i915_private;
     16  1.1  riastrad struct intel_atomic_state;
     17  1.1  riastrad struct intel_crtc_state;
     18  1.1  riastrad 
     19  1.1  riastrad struct intel_bw_state {
     20  1.1  riastrad 	struct drm_private_state base;
     21  1.1  riastrad 
     22  1.1  riastrad 	unsigned int data_rate[I915_MAX_PIPES];
     23  1.1  riastrad 	u8 num_active_planes[I915_MAX_PIPES];
     24  1.1  riastrad };
     25  1.1  riastrad 
     26  1.1  riastrad #define to_intel_bw_state(x) container_of((x), struct intel_bw_state, base)
     27  1.1  riastrad 
     28  1.1  riastrad void intel_bw_init_hw(struct drm_i915_private *dev_priv);
     29  1.1  riastrad int intel_bw_init(struct drm_i915_private *dev_priv);
     30  1.1  riastrad void intel_bw_cleanup(struct drm_i915_private *dev_priv);
     31  1.1  riastrad int intel_bw_atomic_check(struct intel_atomic_state *state);
     32  1.1  riastrad void intel_bw_crtc_update(struct intel_bw_state *bw_state,
     33  1.1  riastrad 			  const struct intel_crtc_state *crtc_state);
     34  1.1  riastrad 
     35  1.1  riastrad #endif /* __INTEL_BW_H__ */
     36