Mercurial > hg > Game > Cerium
annotate include/TaskManager/DmaManager.h @ 310:364abe879376 draft
remove smanager
author | e065746@localhost.localdomain |
---|---|
date | Mon, 08 Jun 2009 20:31:29 +0900 |
parents | 3fc86ddf5d1c |
children |
rev | line source |
---|---|
3 | 1 #ifndef INCLUDED_DMA_MANAGER |
2 #define INCLUDED_DMA_MANAGER | |
3 | |
307 | 4 #include "base.h" |
5 #include "ListData.h" | |
6 #include "types.h" | |
180
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
7 |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
8 enum dma_tag { |
233 | 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, | |
180
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
14 }; |
3 | 15 |
16 class DmaManager { | |
17 public: | |
18 virtual ~DmaManager(void) {}; | |
19 | |
109 | 20 BASE_NEW_DELETE(DmaManager); |
21 | |
88 | 22 // API for DMA transfer |
109 | 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) {} | |
255 | 26 virtual void show_dma_wait(int cpu) {} |
3 | 27 |
88 | 28 // API for SPU inbound/outbound mailbox |
109 | 29 virtual void mail_write(uint32 data) {} |
30 virtual uint32 mail_read(void) {return 0;} | |
31 | |
88 | 32 // API for MFC list DMA transfer |
109 | 33 virtual void dma_loadList(ListDataPtr list, void *,uint32 mask) {} |
34 virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {} | |
3 | 35 }; |
36 | |
37 #endif |