30 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2019 Intel Corporation4 */5 6#ifndef __INTEL_FIFO_UNDERRUN_H__7#define __INTEL_FIFO_UNDERRUN_H__8 9#include <linux/types.h>10 11struct drm_i915_private;12struct intel_crtc;13enum pipe;14 15void intel_init_fifo_underrun_reporting(struct drm_i915_private *i915,16 struct intel_crtc *crtc, bool enable);17bool intel_set_cpu_fifo_underrun_reporting(struct drm_i915_private *dev_priv,18 enum pipe pipe, bool enable);19bool intel_set_pch_fifo_underrun_reporting(struct drm_i915_private *dev_priv,20 enum pipe pch_transcoder,21 bool enable);22void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,23 enum pipe pipe);24void intel_pch_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,25 enum pipe pch_transcoder);26void intel_check_cpu_fifo_underruns(struct drm_i915_private *dev_priv);27void intel_check_pch_fifo_underruns(struct drm_i915_private *dev_priv);28 29#endif /* __INTEL_FIFO_UNDERRUN_H__ */30