Go to the documentation of this file.
34 #ifndef __DEV_HSA_HSA_DEVICE_HH__
35 #define __DEV_HSA_HSA_DEVICE_HH__
39 #include "params/HSADevice.hh"
66 fatal(
"%s does not accept dispatch packets\n",
name());
77 fatal(
"%s does not accept dispatch packets\n",
name());
91 fatal(
"%s does not accept vendor specific packets\n",
name());
96 fatal(
"%s does not need HSA driver\n",
name());
101 fatal(
"%s does not have HSA signal update functionality.\n",
name());
106 fatal(
"%s does not have HSA signal read functionality.\n",
name());
122 #endif // __DEV_HSA_HSA_DEVICE_HH__
HSAPacketProcessor * hsaPP
#define fatal(...)
This implements a cprintf based fatal() function.
HSADevice(const Params &p)
void(DmaDevice::* DmaFnPtr)(Addr, int, Event *, uint8_t *, Tick)
void dmaWriteVirt(Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0)
uint64_t Tick
Tick count type.
void dmaReadVirt(Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0)
virtual uint64_t functionalReadHsaSignal(Addr signal_handle)
virtual void submitAgentDispatchPkt(void *raw_pkt, uint32_t qID, Addr host_pkt_addr)
submitAgentDispatchPkt() accepts AQL dispatch packets from the HSA packet processor.
void setDevice(HSADevice *dev)
virtual void updateHsaSignal(Addr signal_handle, uint64_t signal_value)
virtual void submitVendorPkt(void *raw_pkt, uint32_t queue_id, Addr host_pkt_addr)
submitVendorPkt() accepts vendor specific packets from the HSA packet processor.
virtual void submitDispatchPkt(void *raw_pkt, uint32_t qID, Addr host_pkt_addr)
submitDispatchPkt() accepts AQL dispatch packets from the HSA packet processor.
void translateOrDie(Addr vaddr, Addr &paddr)
HSADevices will perform DMA operations on VAs, and because page faults are not currently supported fo...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
virtual const std::string name() const
HSAPacketProcessor & hsaPacketProc()
void dmaVirt(DmaFnPtr, Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0)
virtual void attachDriver(HSADriver *driver)
std::function< void(const uint64_t &)> HsaSignalCallbackFunction
Generated on Tue Jun 22 2021 15:28:27 for gem5 by doxygen 1.8.17