drm/amdgpu: Move XCP_INST_MASK amdgpu_xcp.h

Move the common macro for xcp manger to amdgpu_xcp.h

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Hawking Zhang 2025-06-06 00:26:07 +08:00 committed by Alex Deucher
parent dcfe45bd86
commit 7cd88efd16
2 changed files with 3 additions and 3 deletions

View file

@ -41,6 +41,9 @@
#define AMDGPU_XCP_OPS_KFD (1 << 0)
#define XCP_INST_MASK(num_inst, xcp_id) \
(num_inst ? GENMASK(num_inst - 1, 0) << (xcp_id * num_inst) : 0)
struct amdgpu_fpriv;
enum AMDGPU_XCP_IP_BLOCK {

View file

@ -31,9 +31,6 @@
#include "sdma_v4_4_2.h"
#include "amdgpu_ip.h"
#define XCP_INST_MASK(num_inst, xcp_id) \
(num_inst ? GENMASK(num_inst - 1, 0) << (xcp_id * num_inst) : 0)
void aqua_vanjaram_doorbell_index_init(struct amdgpu_device *adev)
{
int i;