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

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

#ifndef INCLUDED_FIFO_DMA_MANAGER
#define INCLUDED_FIFO_DMA_MANAGER

#ifndef INCLUDED_DMA_MANAGER
#  include "DmaManager.h"
#endif

#ifndef INCLUDED_MAIL_MANAGER
#  include "MailManager.h"
#endif

class FifoDmaManager : public DmaManager {
public:
    /* variables */
    MailManager *mailManager;
    MailQueuePtr mail_recvQueue;
    MailQueuePtr mail_sendQueue;

    /* functions */
    void dma_load(void *buf, unsigned int addr, int size, int mask);
    void dma_store(void *buf, unsigned int addr, int size, int mask);
    void dma_wait(int mask) ;

    void mail_write(unsigned int data);
    unsigned int mail_read(void);
};

#endif