comparison TaskManager/kernel/schedule/DmaManager.h @ 366:0251d06467de draft

rename include/TaskManager/* and add memory
author aaa
date Mon, 27 Jul 2009 15:51:18 +0900
parents include/TaskManager/DmaManager.h@3fc86ddf5d1c
children fdc3e30de9d3
comparison
equal deleted inserted replaced
365:fafed60e2fca 366:0251d06467de
1 #ifndef INCLUDED_DMA_MANAGER
2 #define INCLUDED_DMA_MANAGER
3
4 #include "base.h"
5 #include "ListData.h"
6 #include "types.h"
7
8 enum dma_tag {
9 DMA_READ = 25,
10 DMA_WRITE = 27,
11 DMA_READ_IN_LIST = 29,
12 DMA_READ_OUT_LIST = 30,
13 DMA_READ_TASKLIST = 31,
14 };
15
16 class DmaManager {
17 public:
18 virtual ~DmaManager(void) {};
19
20 BASE_NEW_DELETE(DmaManager);
21
22 // API for DMA transfer
23 virtual void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask) {}
24 virtual void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask) {}
25 virtual void dma_wait(uint32 mask) {}
26 virtual void show_dma_wait(int cpu) {}
27
28 // API for SPU inbound/outbound mailbox
29 virtual void mail_write(uint32 data) {}
30 virtual uint32 mail_read(void) {return 0;}
31
32 // API for MFC list DMA transfer
33 virtual void dma_loadList(ListDataPtr list, void *,uint32 mask) {}
34 virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {}
35 };
36
37 #endif