xref: /linux/drivers/gpu/drm/i915/display/intel_fifo_underrun.h (revision 9f2c9170934eace462499ba0bfe042cc72900173)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_FIFO_UNDERRUN_H__
7 #define __INTEL_FIFO_UNDERRUN_H__
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 enum pipe;
13 
14 bool intel_set_cpu_fifo_underrun_reporting(struct drm_i915_private *dev_priv,
15 					   enum pipe pipe, bool enable);
16 bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv,
17 					   enum pipe pch_transcoder,
18 					   bool enable);
19 void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,
20 					 enum pipe pipe);
21 void intel_pch_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,
22 					 enum pipe pch_transcoder);
23 void intel_check_cpu_fifo_underruns(struct drm_i915_private *dev_priv);
24 void intel_check_pch_fifo_underruns(struct drm_i915_private *dev_priv);
25 
26 #endif /* __INTEL_FIFO_UNDERRUN_H__ */
27