36 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2020 Intel Corporation4 */5 6#ifndef _G4X_HDMI_H_7#define _G4X_HDMI_H_8 9#include <linux/types.h>10 11#include "i915_reg_defs.h"12 13enum port;14struct drm_atomic_state;15struct drm_connector;16struct drm_i915_private;17 18#ifdef I91519void g4x_hdmi_init(struct drm_i915_private *dev_priv,20 i915_reg_t hdmi_reg, enum port port);21int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,22 struct drm_atomic_state *state);23#else24static inline void g4x_hdmi_init(struct drm_i915_private *dev_priv,25 i915_reg_t hdmi_reg, int port)26{27}28static inline int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,29 struct drm_atomic_state *state)30{31 return 0;32}33#endif34 35#endif36