Mercurial > hg > Members > kono > Cerium
view include/TaskManager/SpeManager.h @ 70:178459e03f5c
*** empty log message ***
author | gongo |
---|---|
date | Mon, 18 Feb 2008 01:13:00 +0900 |
parents | 2356238ebea7 |
children |
line wrap: on
line source
#ifndef INCLUDED_SPE_MANAGER #define INCLUDED_SPE_MANAGER #ifndef INCLUDED_TASK # include "task.h" #endif #ifndef INCLUDED_DMA_MANAGER # include "DmaManager.h" #endif class SpeTaskBase; class SpeManager; class SpeTaskBase { public: /* constructor */ SpeTaskBase(void) {} virtual ~SpeTaskBase(void) {} /* variables */ // noaction in default virtual void load(void) {} virtual void read(void) {} virtual void exec(void) {} virtual void write(void) {} /* functions */ virtual SpeTaskBase* next(SpeManager *, SpeTaskBase *) = 0; }; class SpeManager { public: SpeManager(void); /* variables */ int listBufFlg; int readBufFlg; int writeBufFlg; TaskListPtr listBuf[2]; void *readBuf[2]; void *writeBuf[2]; DmaManager* connector; SpeTaskBase* task1; SpeTaskBase* task2; SpeTaskBase* task3; /* functions */ void init(void); void set_connect(DmaManager*); void run(void); void finish(void); TaskListPtr get_curListBuf(void); void* get_curReadBuf(void); void* get_curWriteBuf(void); }; #endif