#include "amdgpu.h"
#include "amdgpu_atombios.h"
#include "nbio_v7_0.h"
#include "nbio/nbio_7_0_default.h"
#include "nbio/nbio_7_0_offset.h"
#include "nbio/nbio_7_0_sh_mask.h"
#include "nbio/nbio_7_0_smn.h"
#include "vega10_enum.h"
#include <uapi/linux/kfd_ioctl.h>
#define smnNBIF_MGCG_CTRL_LCLK …
static void nbio_v7_0_remap_hdp_registers(struct amdgpu_device *adev)
{ … }
static u32 nbio_v7_0_get_rev_id(struct amdgpu_device *adev)
{ … }
static void nbio_v7_0_mc_access_enable(struct amdgpu_device *adev, bool enable)
{ … }
static u32 nbio_v7_0_get_memsize(struct amdgpu_device *adev)
{ … }
static void nbio_v7_0_sdma_doorbell_range(struct amdgpu_device *adev, int instance,
bool use_doorbell, int doorbell_index, int doorbell_size)
{ … }
static void nbio_v7_0_vcn_doorbell_range(struct amdgpu_device *adev, bool use_doorbell,
int doorbell_index, int instance)
{ … }
static void nbio_v7_0_enable_doorbell_aperture(struct amdgpu_device *adev,
bool enable)
{ … }
static void nbio_v7_0_enable_doorbell_selfring_aperture(struct amdgpu_device *adev,
bool enable)
{ … }
static void nbio_v7_0_ih_doorbell_range(struct amdgpu_device *adev,
bool use_doorbell, int doorbell_index)
{ … }
static uint32_t nbio_7_0_read_syshub_ind_mmr(struct amdgpu_device *adev, uint32_t offset)
{ … }
static void nbio_7_0_write_syshub_ind_mmr(struct amdgpu_device *adev, uint32_t offset,
uint32_t data)
{ … }
static void nbio_v7_0_update_medium_grain_clock_gating(struct amdgpu_device *adev,
bool enable)
{ … }
static void nbio_v7_0_update_medium_grain_light_sleep(struct amdgpu_device *adev,
bool enable)
{ … }
static void nbio_v7_0_get_clockgating_state(struct amdgpu_device *adev,
u64 *flags)
{ … }
static void nbio_v7_0_ih_control(struct amdgpu_device *adev)
{ … }
static u32 nbio_v7_0_get_hdp_flush_req_offset(struct amdgpu_device *adev)
{ … }
static u32 nbio_v7_0_get_hdp_flush_done_offset(struct amdgpu_device *adev)
{ … }
static u32 nbio_v7_0_get_pcie_index_offset(struct amdgpu_device *adev)
{ … }
static u32 nbio_v7_0_get_pcie_data_offset(struct amdgpu_device *adev)
{ … }
const struct nbio_hdp_flush_reg nbio_v7_0_hdp_flush_reg = …;
static void nbio_v7_0_init_registers(struct amdgpu_device *adev)
{ … }
#define MMIO_REG_HOLE_OFFSET …
static void nbio_v7_0_set_reg_remap(struct amdgpu_device *adev)
{ … }
const struct amdgpu_nbio_funcs nbio_v7_0_funcs = …;