Mercurial > hg > Members > kono > Cerium
view TaskManager/Cell/spe/CellDmaManager.h @ 639:70c5c2d2eb24
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | 8843edf37c0e |
children | 3b6290c05f9f |
line wrap: on
line source
#ifndef INCLUDED_CELL_DMA_MANAGER #define INCLUDED_CELL_DMA_MANAGER #include "base.h" #include "types.h" #include "DmaManager.h" #include <spu_mfcio.h> #define SPU_PROFILE 1 class CellDmaManager : public DmaManager { public: BASE_NEW_DELETE(CellDmaManager); typedef struct dma_list { uint32 addr; // should be memaddr, but in Cell's specification... uint32 size; } DmaList, *DmaListPtr; /* variables */ unsigned int wait_time, busy_time; unsigned long long global_busy_time, global_wait_time; /* functions */ void dma_load(void *buf, memaddr addr, uint32 size, uint32 mask); void dma_store(void *buf, memaddr addr, uint32 size, uint32 mask); void dma_wait(uint32 mask) ; void start_dmawait_profile(); void end_dmawait_profile(); void show_dma_wait(int cpu); void mail_write(memaddr data); memaddr mail_read(); void dma_loadList(ListDataPtr list, void *buff, uint32 mask); void dma_storeList(ListDataPtr, void *buff, uint32 mask); }; #endif