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 
14 void intel_ggtt_gmch_flush(void);
15 int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915);
16 int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt);
17 
18 /* Stubs for non-x86 platforms */
19 #else
20 
intel_ggtt_gmch_flush(void)21 static inline void intel_ggtt_gmch_flush(void) { }
intel_ggtt_gmch_enable_hw(struct drm_i915_private * i915)22 static inline int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915) { return -ENODEV; }
intel_ggtt_gmch_probe(struct i915_ggtt * ggtt)23 static inline int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt) { return -ENODEV; }
24 
25 #endif
26 
27 #endif /* __INTEL_GGTT_GMCH_H__ */
28