xref: /linux/drivers/gpu/drm/i915/gt/intel_ggtt_gmch.h (revision e7d759f31ca295d589f7420719c311870bb3166f)
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 
21 static inline void intel_ggtt_gmch_flush(void) { }
22 static inline int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915) { return -ENODEV; }
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