drm/i915: Extract intel_mmio_bar()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 Oct 2022 15:41:57 +0000 (18:41 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 20 Oct 2022 14:31:22 +0000 (17:31 +0300)
commit5bfcff516c89c57be6cd90af1d64529a51228ac1
tree94d6c287eb2adc1a1d3348a0898f68ad8b6a2887
parent6667d78a1123d237d66e34923754ebca97d06d39
drm/i915: Extract intel_mmio_bar()

We have the same code to determine the MMIO BAR in
two places. Collect it to a single place.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221005154159.18750-1-ville.syrjala@linux.intel.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_pci_config.h