3
|
1 #ifndef INCLUDED_FIFO_DMA_MANAGER
|
|
2 #define INCLUDED_FIFO_DMA_MANAGER
|
|
3
|
109
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
3
|
8 #ifndef INCLUDED_DMA_MANAGER
|
|
9 # include "DmaManager.h"
|
|
10 #endif
|
|
11
|
|
12 #ifndef INCLUDED_MAIL_MANAGER
|
|
13 # include "MailManager.h"
|
|
14 #endif
|
|
15
|
|
16 class FifoDmaManager : public DmaManager {
|
|
17 public:
|
109
|
18 BASE_NEW_DELETE(FifoDmaManager);
|
|
19
|
3
|
20 /* variables */
|
|
21 MailManager *mailManager;
|
|
22 MailQueuePtr mail_recvQueue;
|
|
23 MailQueuePtr mail_sendQueue;
|
|
24
|
|
25 /* functions */
|
88
|
26 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask);
|
|
27 void dma_store(void *buf, uint32 addr, uint32 size, uint32 mask);
|
|
28 void dma_wait(uint32 mask) ;
|
3
|
29
|
88
|
30 void mail_write(uint32 data);
|
|
31 uint32 mail_read(void);
|
109
|
32
|
|
33 void dma_loadList(ListDataPtr list, void *buff, uint32 mask);
|
|
34 void dma_storeList(ListDataPtr, void *buff, uint32 mask);
|
|
35 //void* dma_loadList(ListDataPtr list, void *buff, uint32 mask);
|
3
|
36 };
|
|
37
|
|
38 #endif
|