xref: /dflybsd-src/sys/dev/drm/i915/i915_vgpu.h (revision 3f2dd94a569761201b5b0a18b2f697f97fe1b9dc)
1477eb7f9SFrançois Tigeot /*
2477eb7f9SFrançois Tigeot  * Copyright(c) 2011-2015 Intel Corporation. All rights reserved.
3477eb7f9SFrançois Tigeot  *
4477eb7f9SFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
5477eb7f9SFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
6477eb7f9SFrançois Tigeot  * to deal in the Software without restriction, including without limitation
7477eb7f9SFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8477eb7f9SFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
9477eb7f9SFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
10477eb7f9SFrançois Tigeot  *
11477eb7f9SFrançois Tigeot  * The above copyright notice and this permission notice (including the next
12477eb7f9SFrançois Tigeot  * paragraph) shall be included in all copies or substantial portions of the
13477eb7f9SFrançois Tigeot  * Software.
14477eb7f9SFrançois Tigeot  *
15477eb7f9SFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16477eb7f9SFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17477eb7f9SFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18477eb7f9SFrançois Tigeot  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19477eb7f9SFrançois Tigeot  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20477eb7f9SFrançois Tigeot  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21477eb7f9SFrançois Tigeot  * SOFTWARE.
22477eb7f9SFrançois Tigeot  */
23477eb7f9SFrançois Tigeot 
24477eb7f9SFrançois Tigeot #ifndef _I915_VGPU_H_
25477eb7f9SFrançois Tigeot #define _I915_VGPU_H_
26477eb7f9SFrançois Tigeot 
271487f786SFrançois Tigeot #include "i915_pvinfo.h"
28477eb7f9SFrançois Tigeot 
291487f786SFrançois Tigeot void i915_check_vgpu(struct drm_i915_private *dev_priv);
30*3f2dd94aSFrançois Tigeot 
31*3f2dd94aSFrançois Tigeot bool intel_vgpu_has_full_48bit_ppgtt(struct drm_i915_private *dev_priv);
32*3f2dd94aSFrançois Tigeot 
33*3f2dd94aSFrançois Tigeot static inline bool
intel_vgpu_has_hwsp_emulation(struct drm_i915_private * dev_priv)34*3f2dd94aSFrançois Tigeot intel_vgpu_has_hwsp_emulation(struct drm_i915_private *dev_priv)
35*3f2dd94aSFrançois Tigeot {
36*3f2dd94aSFrançois Tigeot 	return dev_priv->vgpu.caps & VGT_CAPS_HWSP_EMULATION;
37*3f2dd94aSFrançois Tigeot }
38*3f2dd94aSFrançois Tigeot 
391487f786SFrançois Tigeot int intel_vgt_balloon(struct drm_i915_private *dev_priv);
401487f786SFrançois Tigeot void intel_vgt_deballoon(struct drm_i915_private *dev_priv);
41477eb7f9SFrançois Tigeot 
42477eb7f9SFrançois Tigeot #endif /* _I915_VGPU_H_ */
43