view include/TaskManager/DmaManager.h @ 70:178459e03f5c

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 01:13:00 +0900
parents f154d9d07a42
children 504899860e66
line wrap: on
line source

#ifndef INCLUDED_DMA_MANAGER
#define INCLUDED_DMA_MANAGER

enum dma_tag {
    DMA_READ,
    DMA_WRITE
};

#ifndef INCLUDED_TYPES
#  include "types.h"
#endif

class DmaManager {
public:
    virtual ~DmaManager(void) {};

    virtual void dma_load(void *buf, unsigned int addr,int size, int mask) = 0;
    virtual void dma_store(void *buf,unsigned int addr,int size, int mask) = 0;
    virtual void dma_wait(int mask) = 0;

    virtual void mail_write(unsigned int data) = 0;
    virtual unsigned int mail_read(void) = 0;
};

#endif