Go to the documentation of this file.
34 #ifndef __DEV_DMA_VIRT_DEVICE_HH__
35 #define __DEV_DMA_VIRT_DEVICE_HH__
69 T dma_buffer_value = 0)
133 #endif // __DEV_DMA_VIRT_DEVICE_HH__
Wraps a std::function object in a DmaCallback.
virtual void process() override
Callback function invoked on completion of all chunks.
void dmaReadVirt(Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0)
Initiate a DMA read from virtual address host_addr.
void dmaVirt(DmaFnPtr dmaFn, Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0)
Initiate a call to DmaDevice using DmaFnPtr do a DMA starting from virtual address host_addr for size...
std::function< void(const T &)> _function
virtual void translateOrDie(Addr vaddr, Addr &paddr)=0
Function used to translate from virtual to physical addresses.
DmaVirtCallback(const std::function< void(const T &)> &function, T dma_buffer_value=0)
uint64_t Tick
Tick count type.
void dmaWriteVirt(Addr host_addr, unsigned size, DmaCallback *b, void *data, Tick delay=0)
Initiate a DMA write from virtual address host_addr.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void(DmaDevice::* DmaFnPtr)(Addr, int, Event *, uint8_t *, Tick)
DmaVirtDevice(const Params &p)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Tue Sep 21 2021 12:25:15 for gem5 by doxygen 1.8.17