mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 20:35:17 +07:00
drm/i915: Add _TRANS2()
A new macro that is going to be added in a further patch will need to adjust the offset returned by _MMIO_TRANS2(), so here adding _TRANS2() and moving most of the implementation of _MMIO_TRANS2() to it and while at it taking the opportunity to rename pipe to trans. Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Dhinakaran Pandiyan <dhinakaran.pandiya@intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiya@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190730224753.14907-2-jose.souza@intel.com
This commit is contained in:
parent
46c63d2499
commit
270b9991cd
@ -251,9 +251,10 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
|
||||
#define _MMIO_PIPE2(pipe, reg) _MMIO(INTEL_INFO(dev_priv)->pipe_offsets[pipe] - \
|
||||
INTEL_INFO(dev_priv)->pipe_offsets[PIPE_A] + (reg) + \
|
||||
DISPLAY_MMIO_BASE(dev_priv))
|
||||
#define _MMIO_TRANS2(pipe, reg) _MMIO(INTEL_INFO(dev_priv)->trans_offsets[(pipe)] - \
|
||||
INTEL_INFO(dev_priv)->trans_offsets[TRANSCODER_A] + (reg) + \
|
||||
DISPLAY_MMIO_BASE(dev_priv))
|
||||
#define _TRANS2(tran, reg) (INTEL_INFO(dev_priv)->trans_offsets[(tran)] - \
|
||||
INTEL_INFO(dev_priv)->trans_offsets[TRANSCODER_A] + (reg) + \
|
||||
DISPLAY_MMIO_BASE(dev_priv))
|
||||
#define _MMIO_TRANS2(tran, reg) _MMIO(_TRANS2(tran, reg))
|
||||
#define _CURSOR2(pipe, reg) _MMIO(INTEL_INFO(dev_priv)->cursor_offsets[(pipe)] - \
|
||||
INTEL_INFO(dev_priv)->cursor_offsets[PIPE_A] + (reg) + \
|
||||
DISPLAY_MMIO_BASE(dev_priv))
|
||||
|
Loading…
Reference in New Issue
Block a user