On 6/8/26 21:47, Shahyan Soltani wrote:
> Move struct amdgpu_allowed_register_entry from monolithics amdgpu.h file into
> existing amdgpu_reg_access.h file.
> 
> This is part of the ongoing effort to reduce the size of amdgpu.h into their 
> own respective
> separate headers.
> 
> Signed-off-by: Shahyan Soltani <[email protected]>

Reviewed-by: Christian König <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h            | 8 --------
>  drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h | 8 ++++++++
>  2 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index 85d040184d13..a29987567a0b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -433,14 +433,6 @@ int amdgpu_file_to_fpriv(struct file *filp, struct 
> amdgpu_fpriv **fpriv);
>   */
>  int amdgpu_benchmark(struct amdgpu_device *adev, int test_number);
>  
> -/*
> - * ASIC specific register table accessible by UMD
> - */
> -struct amdgpu_allowed_register_entry {
> -     uint32_t reg_offset;
> -     bool grbm_indexed;
> -};
> -
>  /*
>   * ASIC specific functions.
>   */
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h
> index a1011af6b52b..320c30ce4a62 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.h
> @@ -89,6 +89,14 @@ struct amdgpu_reg_access {
>       struct amdgpu_reg_smn_ext smn;
>  };
>  
> +/*
> + * ASIC specific register table accessible by UMD
> + */
> +struct amdgpu_allowed_register_entry {
> +     uint32_t reg_offset;
> +     bool grbm_indexed;
> +};
> +
>  void amdgpu_reg_access_init(struct amdgpu_device *adev);
>  uint32_t amdgpu_reg_smc_rd32(struct amdgpu_device *adev, uint32_t reg);
>  void amdgpu_reg_smc_wr32(struct amdgpu_device *adev, uint32_t reg, uint32_t 
> v);

Reply via email to