aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/hypercall.h
diff options
context:
space:
mode:
authorJike Song <jike.song@intel.com>2016-11-03 06:38:35 -0400
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-11-10 02:45:15 -0500
commit9ec1e66b8084f24d41046bd9711fbd7ec6e3850f (patch)
tree0774390a13bc2709b32309bd24ded3d841d1d64b /drivers/gpu/drm/i915/gvt/hypercall.h
parent7b3343b7e804bb89ad24a0a8c4e8e1010a418f14 (diff)
drm/i915/gvt: refactor intel_gvt_io_emulation_ops to be intel_gvt_ops
There are currently 4 methods in intel_gvt_io_emulation_ops to emulate CFG/MMIO reading/writing for intel vGPU. A possibly better scope is: add 3 more methods for vgpu create/destroy/reset respectively, and rename the ops to 'intel_gvt_ops', then pass it to the MPT module (say the future kvmgt) to use: they are all methods for external usage. Signed-off-by: Jike Song <jike.song@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/hypercall.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/hypercall.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/gvt/hypercall.h b/drivers/gpu/drm/i915/gvt/hypercall.h
index f3e926340983..30e543f5a703 100644
--- a/drivers/gpu/drm/i915/gvt/hypercall.h
+++ b/drivers/gpu/drm/i915/gvt/hypercall.h
@@ -33,15 +33,6 @@
33#ifndef _GVT_HYPERCALL_H_ 33#ifndef _GVT_HYPERCALL_H_
34#define _GVT_HYPERCALL_H_ 34#define _GVT_HYPERCALL_H_
35 35
36struct intel_gvt_io_emulation_ops {
37 int (*emulate_cfg_read)(void *, unsigned int, void *, unsigned int);
38 int (*emulate_cfg_write)(void *, unsigned int, void *, unsigned int);
39 int (*emulate_mmio_read)(void *, u64, void *, unsigned int);
40 int (*emulate_mmio_write)(void *, u64, void *, unsigned int);
41};
42
43extern struct intel_gvt_io_emulation_ops intel_gvt_io_emulation_ops;
44
45/* 36/*
46 * Specific GVT-g MPT modules function collections. Currently GVT-g supports 37 * Specific GVT-g MPT modules function collections. Currently GVT-g supports
47 * both Xen and KVM by providing dedicated hypervisor-related MPT modules. 38 * both Xen and KVM by providing dedicated hypervisor-related MPT modules.