| 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 | enum pipe; | 
|---|
| 12 | struct intel_crtc; | 
|---|
| 13 | struct intel_display; | 
|---|
| 14 |  | 
|---|
| 15 | void intel_init_fifo_underrun_reporting(struct intel_display *display, | 
|---|
| 16 | struct intel_crtc *crtc, bool enable); | 
|---|
| 17 | bool intel_set_cpu_fifo_underrun_reporting(struct intel_display *display, | 
|---|
| 18 | enum pipe pipe, bool enable); | 
|---|
| 19 | bool intel_set_pch_fifo_underrun_reporting(struct intel_display *display, | 
|---|
| 20 | enum pipe pch_transcoder, | 
|---|
| 21 | bool enable); | 
|---|
| 22 | void intel_cpu_fifo_underrun_irq_handler(struct intel_display *display, | 
|---|
| 23 | enum pipe pipe); | 
|---|
| 24 | void intel_pch_fifo_underrun_irq_handler(struct intel_display *display, | 
|---|
| 25 | enum pipe pch_transcoder); | 
|---|
| 26 | void intel_check_cpu_fifo_underruns(struct intel_display *display); | 
|---|
| 27 | void intel_check_pch_fifo_underruns(struct intel_display *display); | 
|---|
| 28 |  | 
|---|
| 29 | #endif /* __INTEL_FIFO_UNDERRUN_H__ */ | 
|---|
| 30 |  | 
|---|