Merge tag 'drm-misc-next-2019-05-24' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / intel_pipe_crc.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5
6 #ifndef __INTEL_PIPE_CRC_H__
7 #define __INTEL_PIPE_CRC_H__
8
9 #include <linux/types.h>
10
11 struct drm_crtc;
12 struct intel_crtc;
13
14 #ifdef CONFIG_DEBUG_FS
15 int intel_crtc_set_crc_source(struct drm_crtc *crtc, const char *source_name);
16 int intel_crtc_verify_crc_source(struct drm_crtc *crtc,
17                                  const char *source_name, size_t *values_cnt);
18 const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc,
19                                               size_t *count);
20 void intel_crtc_disable_pipe_crc(struct intel_crtc *crtc);
21 void intel_crtc_enable_pipe_crc(struct intel_crtc *crtc);
22 #else
23 #define intel_crtc_set_crc_source NULL
24 #define intel_crtc_verify_crc_source NULL
25 #define intel_crtc_get_crc_sources NULL
26 static inline void intel_crtc_disable_pipe_crc(struct intel_crtc *crtc)
27 {
28 }
29
30 static inline void intel_crtc_enable_pipe_crc(struct intel_crtc *crtc)
31 {
32 }
33 #endif
34
35 #endif /* __INTEL_PIPE_CRC_H__ */