1 /* 2 * Copyright 2023 Google LLC 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #include <stdint.h> 7 #include <stddef.h> 8 #include "common/amd_family.h" 9 #include "drm-uapi/amdgpu_drm.h" 10 11 struct amdgpu_device { 12 const char *name; 13 enum radeon_family radeon_family; 14 15 struct drm_amdgpu_info_hw_ip hw_ip_gfx; 16 struct drm_amdgpu_info_hw_ip hw_ip_compute; 17 18 struct drm_amdgpu_info_firmware fw_gfx_me; 19 struct drm_amdgpu_info_firmware fw_gfx_pfp; 20 struct drm_amdgpu_info_firmware fw_gfx_mec; 21 22 uint32_t mmr_regs[256 * 3]; 23 uint32_t mmr_reg_count; 24 25 struct drm_amdgpu_info_device dev; 26 struct drm_amdgpu_memory_info mem; 27 }; 28 29 extern const struct amdgpu_device amdgpu_devices[]; 30 extern const size_t num_amdgpu_devices; 31