~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/amd/drm-shim/amdgpu_devices.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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;