| .. | .. |
|---|
| 24 | 24 | #ifndef __AMDGPU_ATOMFIRMWARE_H__ |
|---|
| 25 | 25 | #define __AMDGPU_ATOMFIRMWARE_H__ |
|---|
| 26 | 26 | |
|---|
| 27 | +#define get_index_into_master_table(master_table, table_name) (offsetof(struct master_table, table_name) / sizeof(uint16_t)) |
|---|
| 28 | + |
|---|
| 27 | 29 | bool amdgpu_atomfirmware_gpu_supports_virtualization(struct amdgpu_device *adev); |
|---|
| 28 | 30 | void amdgpu_atomfirmware_scratch_regs_init(struct amdgpu_device *adev); |
|---|
| 29 | 31 | int amdgpu_atomfirmware_allocate_fb_scratch(struct amdgpu_device *adev); |
|---|
| 30 | | -int amdgpu_atomfirmware_get_vram_width(struct amdgpu_device *adev); |
|---|
| 31 | | -int amdgpu_atomfirmware_get_vram_type(struct amdgpu_device *adev); |
|---|
| 32 | +int amdgpu_atomfirmware_get_vram_info(struct amdgpu_device *adev, |
|---|
| 33 | + int *vram_width, int *vram_type, int *vram_vendor); |
|---|
| 32 | 34 | int amdgpu_atomfirmware_get_clock_info(struct amdgpu_device *adev); |
|---|
| 33 | 35 | int amdgpu_atomfirmware_get_gfx_info(struct amdgpu_device *adev); |
|---|
| 36 | +bool amdgpu_atomfirmware_mem_ecc_supported(struct amdgpu_device *adev); |
|---|
| 37 | +bool amdgpu_atomfirmware_sram_ecc_supported(struct amdgpu_device *adev); |
|---|
| 38 | +int amdgpu_atomfirmware_get_fw_reserved_fb_size(struct amdgpu_device *adev); |
|---|
| 39 | +int amdgpu_mem_train_support(struct amdgpu_device *adev); |
|---|
| 34 | 40 | |
|---|
| 35 | 41 | #endif |
|---|