drm/i915: Add _TRANS2()
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 30 Jul 2019 22:47:51 +0000 (15:47 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 13 Aug 2019 22:51:12 +0000 (15:51 -0700)
commit270b9991cdb03df39916afa7184c783fc5b512b5
treeb6cc80679eda4b94fd4d0cf66c09d0e7913f8961
parent46c63d2499b12902ed30847100af6c26228e878c
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
drivers/gpu/drm/i915/i915_reg.h