view include/TaskManager/FifoDmaManager.h @ 107:ce5755f544c1 cvs

Initial revision
author chiaki
date Tue, 04 Mar 2008 18:06:44 +0900
parents 504899860e66
children 028ffc9c0375
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, uint32 addr, uint32 size, uint32 mask);
    void dma_store(void *buf, uint32 addr, uint32 size, uint32 mask);
    void dma_wait(uint32 mask) ;

    void mail_write(uint32 data);
    uint32 mail_read(void);
};

#endif