drm/i915: Factor out i915_pvinfo.h
authorZhi Wang <zhi.a.wang@intel.com>
Thu, 16 Jun 2016 12:06:57 +0000 (08:06 -0400)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 18:44:18 +0000 (19:44 +0100)
commit87da603cae438a20d4c0965794c0d3ed8c410893
tree120bb27876bda6c276a08868f3aca1164ff5c44d
parentc37efb9997a5dfdd536a53b736f3b2082054068f
drm/i915: Factor out i915_pvinfo.h

As the PVINFO page definition is used by both GVT-g guest (vGPU) and GVT-g
host (GVT-g kernel device model), factor it out for better code structure.

v7:
- Split the "offsetof" modification into a dedicated patch. (Joonas)

v3:
- Use offsetof to calculate the member offset of PVINFO structure (Joonas)

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466078825-6662-2-git-send-email-zhi.a.wang@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_pvinfo.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_vgpu.h