Go to the documentation of this file.
32 #ifndef __DEV_DMA_VIRT_DEVICE_HH__
33 #define __DEV_DMA_VIRT_DEVICE_HH__
65 T dma_buffer_value = 0)
131 #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
DmaVirtCallback(const std::function< void(const T &)> &function, T dma_buffer_value=0)
virtual TranslationGenPtr translate(Addr vaddr, Addr size)=0
Function used to translate a range of addresses from virtual to physical addresses.
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....
std::unique_ptr< TranslationGen > TranslationGenPtr
Generated on Sun Jul 30 2023 01:56:55 for gem5 by doxygen 1.8.17