Mercurial > hg > Members > kono > Cerium
view include/TaskManager/DmaBuffer.h @ 313:c9f8cfcdc5c2
fix ppu mail box waiting (mainMem allocate)
author | kono@localhost.localdomain |
---|---|
date | Tue, 09 Jun 2009 00:10:36 +0900 |
parents | 7075842aa155 |
children |
line wrap: on
line source
#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