1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright �� 2022 Intel Corporation 4 */ 5 6#ifndef __INTEL_GGTT_GMCH_H__ 7#define __INTEL_GGTT_GMCH_H__ 8 9#include "intel_gtt.h" 10 11/* For x86 platforms */ 12#if IS_ENABLED(CONFIG_X86) 13 14void intel_ggtt_gmch_flush(void); 15int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915); 16int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt); 17 18/* Stubs for non-x86 platforms */ 19#else 20 21static inline void intel_ggtt_gmch_flush(void) { } 22static inline int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915) { return -ENODEV; } 23static inline int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt) { return -ENODEV; } 24 25#endif 26 27#endif /* __INTEL_GGTT_GMCH_H__ */ 28