32#ifndef __DEV_AMDGPU_MEMORY_MANAGER_HH__
33#define __DEV_AMDGPU_MEMORY_MANAGER_HH__
36#include <unordered_map>
40#include "params/AMDGPUMemoryManager.hh"
133 if (if_name ==
"port") {
std::deque< PacketPtr > retries
bool recvTimingResp(PacketPtr pkt) override
Receive a timing response from the peer.
AMDGPUMemoryManager & gpu_mem
void recvReqRetry() override
Called by the peer if sendTimingReq was called on this peer (causing recvTimingReq to be called on th...
GPUMemPort(const std::string &_name, AMDGPUMemoryManager &_gpuMemMgr)
RequestorID getRequestorID() const
Get the requestorID for the memory manager.
std::unordered_map< uint64_t, RequestStatus > requestStatus
AMDGPUMemoryManager(const AMDGPUMemoryManagerParams &p)
Port & getPort(const std::string &if_name, PortID idx) override
Get a port with a given name and index.
const RequestorID _requestorId
void writeRequest(Addr addr, uint8_t *data, int size, Request::Flags flag, Event *callback)
Write size amount of data to device memory at addr using flags and callback.
void readRequest(Addr addr, uint8_t *data, int size, Request::Flags flag, Event *callback)
Read size amount of data from device memory at addr using flags and callback.
Addr getCacheLineSize() const
ClockedObject(const ClockedObjectParams &p)
Ports are used to interface objects to each other.
RequestPort(const std::string &name, SimObject *_owner, PortID id=InvalidPortID)
Request port.
gem5::Flags< FlagsType > Flags
ClockedObject declaration and implementation.
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
SenderState(Event *callback, Addr addr, uint64_t requestId)
uint64_t outstandingChunks
A virtual base opaque structure used to hold state associated with the packet (e.g....