aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-11-09 12:28:15 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2022-11-09 12:28:15 -0500
commitd72cf8ffe460824fdc97f0a9295a2c4e0231a562 (patch)
tree1cf0d952f5066191eb9700aae882905e8546264c /drivers/gpu/drm/i915/i915_reg.h
parentKVM: x86/pmu: Limit the maximum number of supported AMD GP counters (diff)
parentKVM: s390: pci: Fix allocation size of aift kzdev elements (diff)
downloadlinux-dev-d72cf8ffe460824fdc97f0a9295a2c4e0231a562.tar.xz
linux-dev-d72cf8ffe460824fdc97f0a9295a2c4e0231a562.zip
Merge tag 'kvm-s390-master-6.1-1' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
A PCI allocation fix and a PV clock fix.
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 0b287a59dc2f..da35bb2db26b 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -7420,6 +7420,9 @@ enum skl_power_gate {
#define _DKL_PHY5_BASE 0x16C000
#define _DKL_PHY6_BASE 0x16D000
+#define DKL_REG_TC_PORT(__reg) \
+ (TC_PORT_1 + ((__reg).reg - _DKL_PHY1_BASE) / (_DKL_PHY2_BASE - _DKL_PHY1_BASE))
+
/* DEKEL PHY MMIO Address = Phy base + (internal address & ~index_mask) */
#define _DKL_PCS_DW5 0x14
#define DKL_PCS_DW5(tc_port) _MMIO(_PORT(tc_port, _DKL_PHY1_BASE, \