Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/ppe/DmaBuffer.h @ 366:09f33c51a204
rename include/TaskManager/* and add memory
author | aaa |
---|---|
date | Mon, 27 Jul 2009 15:51:18 +0900 |
parents | include/TaskManager/DmaBuffer.h@7075842aa155 |
children | bed529c55eda |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/kernel/ppe/DmaBuffer.h Mon Jul 27 15:51:18 2009 +0900 @@ -0,0 +1,23 @@ +#ifndef INCLUDED_DMA_BUFFER +#define INCLUDED_DMA_BUFFER + +#include "base.h" + +class DmaBuffer { +public: + /* constructor */ + DmaBuffer(int size = 4); + ~DmaBuffer(void); + + BASE_NEW_DELETE(DmaBuffer); + + /* variables */ + void *buffer[2]; + int flag; // variable that select buffer[0 or 1] + + /* functions */ + void swap_buffer(void); + void get_buffer(void*); +}; + +#endif