Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/schedule/DmaManager.h @ 672:3b6290c05f9f
add profiling code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 05 Dec 2009 20:20:08 +0900 |
parents | 7c9ded1ea750 |
children | e015a4e5e4b0 |
line wrap: on
line source
#ifndef INCLUDED_DMA_MANAGER #define INCLUDED_DMA_MANAGER #include "base.h" #include "ListData.h" #include "types.h" enum dma_tag { DMA_READ = 25, DMA_WRITE = 27, // DMA_READ_IN_LIST = 29, // DMA_READ_OUT_LIST = 30, DMA_READ_TASKLIST = 31, }; class DmaManager { public: virtual ~DmaManager() {}; BASE_NEW_DELETE(DmaManager); // API for DMA transfer virtual void dma_load(void *buf, memaddr addr, uint32 size, uint32 mask) {} virtual void dma_store(void *buf,memaddr addr, uint32 size, uint32 mask) {} virtual void dma_wait(uint32 mask) {} virtual void show_dma_wait(int cpu) {} virtual void start_profile() {} // API for SPU inbound/outbound mailbox virtual void mail_write(memaddr data) {} virtual memaddr mail_read() { return 0; } // API for MFC list DMA transfer virtual void dma_loadList(ListDataPtr list, void *,uint32 mask) {} virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {} }; #endif