2019-04-29 15:29:24 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_FIFO_UNDERRUN_H__
|
|
|
|
#define __INTEL_FIFO_UNDERRUN_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2025-02-12 18:36:36 +02:00
|
|
|
enum pipe;
|
2023-01-25 20:52:30 +02:00
|
|
|
struct intel_crtc;
|
2025-02-12 18:36:36 +02:00
|
|
|
struct intel_display;
|
2019-04-29 15:29:24 +03:00
|
|
|
|
2025-02-12 18:36:42 +02:00
|
|
|
void intel_init_fifo_underrun_reporting(struct intel_display *display,
|
2023-01-25 20:52:30 +02:00
|
|
|
struct intel_crtc *crtc, bool enable);
|
2025-02-12 18:36:36 +02:00
|
|
|
bool intel_set_cpu_fifo_underrun_reporting(struct intel_display *display,
|
2019-04-29 15:29:24 +03:00
|
|
|
enum pipe pipe, bool enable);
|
2025-02-12 18:36:36 +02:00
|
|
|
bool intel_set_pch_fifo_underrun_reporting(struct intel_display *display,
|
2019-04-29 15:29:24 +03:00
|
|
|
enum pipe pch_transcoder,
|
|
|
|
bool enable);
|
2025-02-12 18:36:42 +02:00
|
|
|
void intel_cpu_fifo_underrun_irq_handler(struct intel_display *display,
|
2019-04-29 15:29:24 +03:00
|
|
|
enum pipe pipe);
|
2025-02-12 18:36:42 +02:00
|
|
|
void intel_pch_fifo_underrun_irq_handler(struct intel_display *display,
|
2019-04-29 15:29:24 +03:00
|
|
|
enum pipe pch_transcoder);
|
2025-02-12 18:36:42 +02:00
|
|
|
void intel_check_cpu_fifo_underruns(struct intel_display *display);
|
|
|
|
void intel_check_pch_fifo_underruns(struct intel_display *display);
|
2019-04-29 15:29:24 +03:00
|
|
|
|
|
|
|
#endif /* __INTEL_FIFO_UNDERRUN_H__ */
|