-
Currently in IGT we have a library intel_mmio for simple MMIO operations on intel GPU devices, but it is limited only to accessing registers, has a lot of legacy code related to the i915 and offers no support for multi tile. Let's reuse the memory mapping from the previous library and add separate helpers, dedicated to Xe, for registers and GGTT access that support multi tile. v2: - add missing std ifndef/define in header lib/xe_mmio.h v3: - remove vf_id from struct xe_mmio - rename reg to offset in funcs params - change return type for xe_gt_get_tile_id Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: Lukasz Laguna <lukasz.laguna@intel.com> Reviewed-by: Lukasz Laguna <lukasz.laguna@intel.com>