1 /* $NetBSD: intel_fifo_underrun.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 /* 5 * Copyright © 2019 Intel Corporation 6 */ 7 8 #ifndef __INTEL_FIFO_UNDERRUN_H__ 9 #define __INTEL_FIFO_UNDERRUN_H__ 10 11 #include <linux/types.h> 12 13 #include "intel_display.h" 14 15 struct drm_i915_private; 16 17 bool intel_set_cpu_fifo_underrun_reporting(struct drm_i915_private *dev_priv, 18 enum pipe pipe, bool enable); 19 bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv, 20 enum pipe pch_transcoder, 21 bool enable); 22 void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv, 23 enum pipe pipe); 24 void intel_pch_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv, 25 enum pipe pch_transcoder); 26 void intel_check_cpu_fifo_underruns(struct drm_i915_private *dev_priv); 27 void intel_check_pch_fifo_underruns(struct drm_i915_private *dev_priv); 28 29 #endif /* __INTEL_FIFO_UNDERRUN_H__ */ 30