diff options
| author | Lijo Lazar <lijo.lazar@amd.com> | 2025-12-09 11:28:45 +0530 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-03-02 16:46:38 -0500 |
| commit | 4a6ab03731c0cb7fd9c98930ad79eb784a5c72d1 (patch) | |
| tree | b637d7e42c026b77ab68549b5e0b548c8b7f0ceb /drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h | |
| parent | 74b9c49e6d8ba2586081aecd86af96c510092103 (diff) | |
drm/amdgpu: Add pcie64 extended to register block
Add extended pcie 64-bit access method to register access block.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h index e6c0a59973c4..791b3e50ac9c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h @@ -35,6 +35,8 @@ typedef uint32_t (*amdgpu_rreg_ext_t)(struct amdgpu_device *, uint64_t); typedef void (*amdgpu_wreg_ext_t)(struct amdgpu_device *, uint64_t, uint32_t); typedef uint64_t (*amdgpu_rreg64_t)(struct amdgpu_device *, uint32_t); typedef void (*amdgpu_wreg64_t)(struct amdgpu_device *, uint32_t, uint64_t); +typedef uint64_t (*amdgpu_rreg64_ext_t)(struct amdgpu_device *, uint64_t); +typedef void (*amdgpu_wreg64_ext_t)(struct amdgpu_device *, uint64_t, uint64_t); typedef uint32_t (*amdgpu_block_rreg_t)(struct amdgpu_device *, uint32_t, uint32_t); @@ -60,6 +62,8 @@ struct amdgpu_reg_pcie_ind { amdgpu_wreg_ext_t wreg_ext; amdgpu_rreg64_t rreg64; amdgpu_wreg64_t wreg64; + amdgpu_rreg64_ext_t rreg64_ext; + amdgpu_wreg64_ext_t wreg64_ext; amdgpu_rreg_t port_rreg; amdgpu_wreg_t port_wreg; }; @@ -98,13 +102,13 @@ void amdgpu_reg_pcie_ext_wr32(struct amdgpu_device *adev, uint64_t reg, uint32_t v); uint64_t amdgpu_reg_pcie_rd64(struct amdgpu_device *adev, uint32_t reg); void amdgpu_reg_pcie_wr64(struct amdgpu_device *adev, uint32_t reg, uint64_t v); +uint64_t amdgpu_reg_pcie_ext_rd64(struct amdgpu_device *adev, uint64_t reg); +void amdgpu_reg_pcie_ext_wr64(struct amdgpu_device *adev, uint64_t reg, + uint64_t v); uint32_t amdgpu_reg_pciep_rd32(struct amdgpu_device *adev, uint32_t reg); void amdgpu_reg_pciep_wr32(struct amdgpu_device *adev, uint32_t reg, uint32_t v); -typedef uint64_t (*amdgpu_rreg64_ext_t)(struct amdgpu_device *, uint64_t); -typedef void (*amdgpu_wreg64_ext_t)(struct amdgpu_device *, uint64_t, uint64_t); - uint32_t amdgpu_device_rreg(struct amdgpu_device *adev, uint32_t reg, uint32_t acc_flags); uint32_t amdgpu_device_xcc_rreg(struct amdgpu_device *adev, uint32_t reg, |
