drm/i915/gvt: Add mmio iterator intel_gvt_for_each_tracked_mmio()
authorChangbin Du <changbin.du@intel.com>
Mon, 23 Oct 2017 03:46:43 +0000 (11:46 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:48:32 +0000 (11:48 +0800)
commit7cb16018f5b4f04bc58a8752bfd11067bafeb552
tree1fcdc5ce418464bdeed2e6f8f94d1822ee46019b
parent4023f301d28fb18aac225fef59592a44b9fd42b3
drm/i915/gvt: Add mmio iterator intel_gvt_for_each_tracked_mmio()

This patch add a function intel_gvt_for_each_tracked_mmio() to
iterate each tracked mmio. The caller don't be aware of how the
tracked mmios are presented internally.

v2: remove snapshot_hw_mmio_registers().

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/firmware.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/mmio.h