brintos

brintos / linux-shallow public Read only

0
0
Text · 682 B · 370bf32 Raw
28 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2022 Intel Corporation4 */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#else20 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#endif26 27#endif /* __INTEL_GGTT_GMCH_H__ */28