Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2022 Intel Corporation
0004  */
0005 
0006 #ifndef __INTEL_GGTT_GMCH_H__
0007 #define __INTEL_GGTT_GMCH_H__
0008 
0009 #include "intel_gtt.h"
0010 
0011 /* For x86 platforms */
0012 #if IS_ENABLED(CONFIG_X86)
0013 
0014 void intel_ggtt_gmch_flush(void);
0015 int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915);
0016 int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt);
0017 
0018 /* Stubs for non-x86 platforms */
0019 #else
0020 
0021 static inline void intel_ggtt_gmch_flush(void) { }
0022 static inline int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915) { return -ENODEV; }
0023 static inline int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt) { return -ENODEV; }
0024 
0025 #endif
0026 
0027 #endif /* __INTEL_GGTT_GMCH_H__ */