33#ifndef __DEV_AMDGPU_AMDGPU_NBIO__
34#define __DEV_AMDGPU_AMDGPU_NBIO__
36#include <unordered_map>
56#define AMDGPU_MM_INDEX 0x00000
57#define AMDGPU_MM_INDEX_HI 0x00018
58#define AMDGPU_MM_DATA 0x00004
60#define AMDGPU_PCIE_INDEX 0x00030
61#define AMDGPU_PCIE_INDEX2 0x00038
62#define AMDGPU_PCIE_DATA 0x00034
63#define AMDGPU_PCIE_DATA2 0x0003c
66#define AMDGPU_MP0_SMN_C2PMSG_33 0x58184
67#define AMDGPU_MP0_SMN_C2PMSG_35 0x5818c
68#define AMDGPU_MP0_SMN_C2PMSG_64 0x58200
69#define AMDGPU_MP0_SMN_C2PMSG_69 0x58214
70#define AMDGPU_MP0_SMN_C2PMSG_70 0x58218
71#define AMDGPU_MP0_SMN_C2PMSG_71 0x5821c
72#define AMDGPU_MP0_SMN_C2PMSG_81 0x58244
73#define AMDGPU_MP1_SMN_C2PMSG_90 0x58a68
76#define VEGA10_INV_ENG17_ACK1 0x0a318
77#define VEGA10_INV_ENG17_ACK2 0x69c18
78#define VEGA10_INV_ENG17_SEM1 0x0a288
79#define VEGA10_INV_ENG17_SEM2 0x69b88
81#define MI100_INV_ENG17_ACK1 0x0a318
82#define MI100_INV_ENG17_ACK2 0x6a918
83#define MI100_INV_ENG17_ACK3 0x76918
84#define MI100_INV_ENG17_SEM1 0x0a288
85#define MI100_INV_ENG17_SEM2 0x6a888
86#define MI100_INV_ENG17_SEM3 0x76888
88#define MI200_INV_ENG17_ACK1 0x0a318
89#define MI200_INV_ENG17_ACK2 0x6b018
90#define MI200_INV_ENG17_SEM1 0x0a288
91#define MI200_INV_ENG17_SEM2 0x6af88
129 using GPURegMap = std::unordered_map<uint64_t, uint32_t>;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
Device model for an AMD GPU.
void readMMIO(PacketPtr pkt, Addr offset)
Addr psp_ring_listen_addr
std::unordered_map< uint32_t, uint32_t > triggered_reads
void writeMMIO(PacketPtr pkt, Addr offset)
bool readFrame(PacketPtr pkt, Addr offset)
std::unordered_map< uint64_t, uint32_t > GPURegMap
void writeFrame(PacketPtr pkt, Addr offset)
void setGPUDevice(AMDGPUDevice *gpu_device)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Declaration of the Packet class.