Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright(c) 2011-2015 Intel Corporation. All rights reserved.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0020  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0021  * SOFTWARE.
0022  */
0023 
0024 #ifndef _I915_VGPU_H_
0025 #define _I915_VGPU_H_
0026 
0027 #include <linux/types.h>
0028 
0029 struct drm_i915_private;
0030 struct i915_ggtt;
0031 
0032 void intel_vgpu_detect(struct drm_i915_private *i915);
0033 bool intel_vgpu_active(struct drm_i915_private *i915);
0034 void intel_vgpu_register(struct drm_i915_private *i915);
0035 bool intel_vgpu_has_full_ppgtt(struct drm_i915_private *i915);
0036 bool intel_vgpu_has_hwsp_emulation(struct drm_i915_private *i915);
0037 bool intel_vgpu_has_huge_gtt(struct drm_i915_private *i915);
0038 
0039 int intel_vgt_balloon(struct i915_ggtt *ggtt);
0040 void intel_vgt_deballoon(struct i915_ggtt *ggtt);
0041 
0042 #endif /* _I915_VGPU_H_ */