2019-04-05 14:00:04 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_CRT_H__
|
|
|
|
#define __INTEL_CRT_H__
|
|
|
|
|
2022-01-27 15:43:34 -08:00
|
|
|
#include "i915_reg_defs.h"
|
2019-04-05 14:00:04 +03:00
|
|
|
|
|
|
|
enum pipe;
|
|
|
|
struct drm_encoder;
|
2024-10-29 12:52:57 +02:00
|
|
|
struct intel_display;
|
2019-04-05 14:00:04 +03:00
|
|
|
|
2023-09-12 14:06:39 +03:00
|
|
|
#ifdef I915
|
2024-10-29 12:52:57 +02:00
|
|
|
bool intel_crt_port_enabled(struct intel_display *display,
|
2019-04-05 14:00:04 +03:00
|
|
|
i915_reg_t adpa_reg, enum pipe *pipe);
|
2024-10-29 12:52:57 +02:00
|
|
|
void intel_crt_init(struct intel_display *display);
|
2019-04-05 14:00:04 +03:00
|
|
|
void intel_crt_reset(struct drm_encoder *encoder);
|
2023-09-12 14:06:39 +03:00
|
|
|
#else
|
2024-10-29 12:52:57 +02:00
|
|
|
static inline bool intel_crt_port_enabled(struct intel_display *display,
|
2023-09-12 14:06:39 +03:00
|
|
|
i915_reg_t adpa_reg, enum pipe *pipe)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2024-10-29 12:52:57 +02:00
|
|
|
static inline void intel_crt_init(struct intel_display *display)
|
2023-09-12 14:06:39 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void intel_crt_reset(struct drm_encoder *encoder)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
2019-04-05 14:00:04 +03:00
|
|
|
|
|
|
|
#endif /* __INTEL_CRT_H__ */
|