drm/i915: Use of BARs names instead of numbers
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Fri, 5 Aug 2022 15:59:58 +0000 (17:59 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 10 Aug 2022 10:11:14 +0000 (13:11 +0300)
commit6bba2b30d29cbba78ba0f935210108e74dbe7ab3
tree9f7dcd444a8b4ae964b650debfef16f8b01072e3
parent1ed88a816d0037ea6fec1be18dfa9db8ee7196a7
drm/i915: Use of BARs names instead of numbers

At the moment, when we refer to some PCI BAR we use the number of
this BAR in the code. The meaning of BARs between different platforms
may be different. Therefore, in order to organize the code,
let's start using defined names instead of numbers.

v2: Add lost header in cfg_space.c

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220805155959.1983584-2-piotr.piorkowski@intel.com
drivers/gpu/drm/i915/display/intel_lpe_audio.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_region_lmem.c
drivers/gpu/drm/i915/gvt/cfg_space.c
drivers/gpu/drm/i915/intel_pci_config.h