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