drm/i915: Add stub mmio read/write routines to mock device
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Apr 2017 09:21:43 +0000 (10:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Apr 2017 12:37:02 +0000 (13:37 +0100)
commit0757ac8fc7c1dac32be080e6746324ff42b7a9b7
treed33fe918e88138e082323587987d918757b2d409
parente22d8e3c69a9f432b40baaaf3f894a128fdc2222
drm/i915: Add stub mmio read/write routines to mock device

Provide dummy function pointers for the mock device in case we do hit
mmio during testing.

v2: Use ASSIGN_READ/WRITE_MMIO_FUNCS macros

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170412092143.3822-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_uncore.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_uncore.h [new file with mode: 0644]