summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2024-04-23 20:04:33 +0200
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2024-04-24 15:10:40 +0200
commit1cb4db30cf685709584743d8bf8a0db2eac620c9 (patch)
treee77c3b5eedebb474c7dae60545fde5d21ab2e778 /tools/lib/python
parent8f21f82d8b7652e11e6800612e34547bffdc7fd2 (diff)
drm/xe: Add helper to calculate adjusted register offset
Our MMIO accessing functions automatically adjust addresses for the media registers based on mmio.adj_limit and mmio.adj_offset logic. Move it to the separate helper to avoid code duplication and to allow using it by the upcoming changes to PF driver code. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240423180436.2089-3-michal.wajdeczko@intel.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions