drm/xe/pf: Introduce helper functions for use by PF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 10 Apr 2024 17:03:35 +0000 (19:03 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 12 Apr 2024 14:23:28 +0000 (16:23 +0200)
commit25f2e04b91d4fefbf9ee4890d774f82c8570ccc5
tree632a9fcdec243ed036b4b4bb35f652ec6cf5b756
parent0bdd5b16ba0444f41d538f5927cb9b995d684594
drm/xe/pf: Introduce helper functions for use by PF

PF driver will maintain VF's configuration data mostly on the
GT level, but some internal data is located at the device level.

To allow easy access to that data from the GT level functions, and
to minimize code duplications, introduce set of helper functions
and macros for explicit use by the PF driver.

We will use these helpers in upcoming patches.

Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240410170338.1199-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sriov_pf_helpers.h [new file with mode: 0644]