linux/drivers/gpu/drm/amd/include/amdgpu_reg_state.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright 2023 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef __AMDGPU_REG_STATE_H__
#define __AMDGPU_REG_STATE_H__

enum amdgpu_reg_state {};

enum amdgpu_sysfs_reg_offset {};

struct amdgpu_reg_state_header {};

enum amdgpu_reg_inst_state {};

struct amdgpu_smn_reg_data {};

struct amdgpu_reg_inst_header {};


struct amdgpu_regs_xgmi_v1_0 {};

struct amdgpu_reg_state_xgmi_v1_0 {};

struct amdgpu_regs_wafl_v1_0 {};

struct amdgpu_reg_state_wafl_v1_0 {};

struct amdgpu_regs_pcie_v1_0 {};

struct amdgpu_reg_state_pcie_v1_0 {};

struct amdgpu_regs_usr_v1_0 {};

struct amdgpu_reg_state_usr_v1_0 {};

static inline size_t amdgpu_reginst_size(uint16_t num_inst, size_t inst_size,
					 uint16_t num_regs)
{}

#define amdgpu_asic_get_reg_state_supported(adev)

#define amdgpu_asic_get_reg_state(adev, state, buf, size)


int amdgpu_reg_state_sysfs_init(struct amdgpu_device *adev);
void amdgpu_reg_state_sysfs_fini(struct amdgpu_device *adev);

#endif