hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/i915/selftests/mock_uncore.c
....@@ -26,21 +26,24 @@
2626
2727 #define __nop_write(x) \
2828 static void \
29
-nop_write##x(struct drm_i915_private *dev_priv, i915_reg_t reg, u##x val, bool trace) { }
29
+nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
3030 __nop_write(8)
3131 __nop_write(16)
3232 __nop_write(32)
3333
3434 #define __nop_read(x) \
3535 static u##x \
36
-nop_read##x(struct drm_i915_private *dev_priv, i915_reg_t reg, bool trace) { return 0; }
36
+nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
3737 __nop_read(8)
3838 __nop_read(16)
3939 __nop_read(32)
4040 __nop_read(64)
4141
42
-void mock_uncore_init(struct drm_i915_private *i915)
42
+void mock_uncore_init(struct intel_uncore *uncore,
43
+ struct drm_i915_private *i915)
4344 {
44
- ASSIGN_WRITE_MMIO_VFUNCS(i915, nop);
45
- ASSIGN_READ_MMIO_VFUNCS(i915, nop);
45
+ intel_uncore_init_early(uncore, i915);
46
+
47
+ ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
48
+ ASSIGN_RAW_READ_MMIO_VFUNCS(uncore, nop);
4649 }