| 1 | /* SPDX-License-Identifier: MIT */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Copyright © 2019 Intel Corporation | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef __INTEL_CRT_H__ | 
|---|
| 7 | #define __INTEL_CRT_H__ | 
|---|
| 8 |  | 
|---|
| 9 | #include "i915_reg_defs.h" | 
|---|
| 10 |  | 
|---|
| 11 | enum pipe; | 
|---|
| 12 | struct drm_encoder; | 
|---|
| 13 | struct intel_display; | 
|---|
| 14 |  | 
|---|
| 15 | #ifdef I915 | 
|---|
| 16 | bool intel_crt_port_enabled(struct intel_display *display, | 
|---|
| 17 | i915_reg_t adpa_reg, enum pipe *pipe); | 
|---|
| 18 | void intel_crt_init(struct intel_display *display); | 
|---|
| 19 | void intel_crt_reset(struct drm_encoder *encoder); | 
|---|
| 20 | #else | 
|---|
| 21 | static inline bool intel_crt_port_enabled(struct intel_display *display, | 
|---|
| 22 | i915_reg_t adpa_reg, enum pipe *pipe) | 
|---|
| 23 | { | 
|---|
| 24 | return false; | 
|---|
| 25 | } | 
|---|
| 26 | static inline void intel_crt_init(struct intel_display *display) | 
|---|
| 27 | { | 
|---|
| 28 | } | 
|---|
| 29 | static inline void intel_crt_reset(struct drm_encoder *encoder) | 
|---|
| 30 | { | 
|---|
| 31 | } | 
|---|
| 32 | #endif | 
|---|
| 33 |  | 
|---|
| 34 | #endif /* __INTEL_CRT_H__ */ | 
|---|
| 35 |  | 
|---|