xref: /dflybsd-src/sys/dev/drm/i915/intel_gvt.h (revision 3f2dd94a569761201b5b0a18b2f697f97fe1b9dc)
11487f786SFrançois Tigeot /*
21487f786SFrançois Tigeot  * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
31487f786SFrançois Tigeot  *
41487f786SFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
51487f786SFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
61487f786SFrançois Tigeot  * to deal in the Software without restriction, including without limitation
71487f786SFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
81487f786SFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
91487f786SFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
101487f786SFrançois Tigeot  *
111487f786SFrançois Tigeot  * The above copyright notice and this permission notice (including the next
121487f786SFrançois Tigeot  * paragraph) shall be included in all copies or substantial portions of the
131487f786SFrançois Tigeot  * Software.
141487f786SFrançois Tigeot  *
151487f786SFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
161487f786SFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
171487f786SFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
181487f786SFrançois Tigeot  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
191487f786SFrançois Tigeot  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
201487f786SFrançois Tigeot  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
211487f786SFrançois Tigeot  * SOFTWARE.
221487f786SFrançois Tigeot  */
231487f786SFrançois Tigeot 
241487f786SFrançois Tigeot #ifndef _INTEL_GVT_H_
251487f786SFrançois Tigeot #define _INTEL_GVT_H_
261487f786SFrançois Tigeot 
271e12ee3bSFrançois Tigeot struct intel_gvt;
281487f786SFrançois Tigeot 
291487f786SFrançois Tigeot #ifdef CONFIG_DRM_I915_GVT
301487f786SFrançois Tigeot int intel_gvt_init(struct drm_i915_private *dev_priv);
311487f786SFrançois Tigeot void intel_gvt_cleanup(struct drm_i915_private *dev_priv);
321487f786SFrançois Tigeot int intel_gvt_init_device(struct drm_i915_private *dev_priv);
331487f786SFrançois Tigeot void intel_gvt_clean_device(struct drm_i915_private *dev_priv);
341487f786SFrançois Tigeot int intel_gvt_init_host(void);
35*3f2dd94aSFrançois Tigeot void intel_gvt_sanitize_options(struct drm_i915_private *dev_priv);
361487f786SFrançois Tigeot #else
intel_gvt_init(struct drm_i915_private * dev_priv)371487f786SFrançois Tigeot static inline int intel_gvt_init(struct drm_i915_private *dev_priv)
381487f786SFrançois Tigeot {
391487f786SFrançois Tigeot 	return 0;
401487f786SFrançois Tigeot }
intel_gvt_cleanup(struct drm_i915_private * dev_priv)411487f786SFrançois Tigeot static inline void intel_gvt_cleanup(struct drm_i915_private *dev_priv)
421487f786SFrançois Tigeot {
431487f786SFrançois Tigeot }
44*3f2dd94aSFrançois Tigeot 
intel_gvt_sanitize_options(struct drm_i915_private * dev_priv)45*3f2dd94aSFrançois Tigeot static inline void intel_gvt_sanitize_options(struct drm_i915_private *dev_priv)
46*3f2dd94aSFrançois Tigeot {
47*3f2dd94aSFrançois Tigeot }
481487f786SFrançois Tigeot #endif
491487f786SFrançois Tigeot 
501487f786SFrançois Tigeot #endif /* _INTEL_GVT_H_ */
51