11.3Sriastrad/*	$NetBSD: intel_gvt.h,v 1.3 2021/12/19 11:50:24 riastradh Exp $	*/
21.1Sriastrad
31.1Sriastrad/*
41.1Sriastrad * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
51.1Sriastrad *
61.1Sriastrad * Permission is hereby granted, free of charge, to any person obtaining a
71.1Sriastrad * copy of this software and associated documentation files (the "Software"),
81.1Sriastrad * to deal in the Software without restriction, including without limitation
91.1Sriastrad * the rights to use, copy, modify, merge, publish, distribute, sublicense,
101.1Sriastrad * and/or sell copies of the Software, and to permit persons to whom the
111.1Sriastrad * Software is furnished to do so, subject to the following conditions:
121.1Sriastrad *
131.1Sriastrad * The above copyright notice and this permission notice (including the next
141.1Sriastrad * paragraph) shall be included in all copies or substantial portions of the
151.1Sriastrad * Software.
161.1Sriastrad *
171.1Sriastrad * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
181.1Sriastrad * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
191.1Sriastrad * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
201.1Sriastrad * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
211.1Sriastrad * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
221.1Sriastrad * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
231.1Sriastrad * SOFTWARE.
241.1Sriastrad */
251.1Sriastrad
261.1Sriastrad#ifndef _INTEL_GVT_H_
271.1Sriastrad#define _INTEL_GVT_H_
281.1Sriastrad
291.1Sriastradstruct drm_i915_private;
301.1Sriastrad
311.3Sriastrad#if IS_ENABLED(CONFIG_DRM_I915_GVT)
321.1Sriastradint intel_gvt_init(struct drm_i915_private *dev_priv);
331.1Sriastradvoid intel_gvt_driver_remove(struct drm_i915_private *dev_priv);
341.1Sriastradint intel_gvt_init_device(struct drm_i915_private *dev_priv);
351.1Sriastradvoid intel_gvt_clean_device(struct drm_i915_private *dev_priv);
361.1Sriastradint intel_gvt_init_host(void);
371.1Sriastradvoid intel_gvt_sanitize_options(struct drm_i915_private *dev_priv);
381.1Sriastrad#else
391.1Sriastradstatic inline int intel_gvt_init(struct drm_i915_private *dev_priv)
401.1Sriastrad{
411.1Sriastrad	return 0;
421.1Sriastrad}
431.1Sriastrad
441.1Sriastradstatic inline void intel_gvt_driver_remove(struct drm_i915_private *dev_priv)
451.1Sriastrad{
461.1Sriastrad}
471.1Sriastrad
481.1Sriastradstatic inline void intel_gvt_sanitize_options(struct drm_i915_private *dev_priv)
491.1Sriastrad{
501.1Sriastrad}
511.1Sriastrad#endif
521.1Sriastrad
531.1Sriastrad#endif /* _INTEL_GVT_H_ */
54