view TaskManager/kernel/ppe/DmaBuffer.h @ 706:b2b4a1243961 draft simple-task-regression

no compile error on Cell. Regression Test. Cell failed some how.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2009 20:21:59 +0900
parents 0251d06467de
children b662e9dd26b0
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