Mercurial > hg > Members > kono > Cerium
annotate include/TaskManager/DmaManager.h @ 180:5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
author | gongo@localhost.localdomain |
---|---|
date | Mon, 22 Dec 2008 16:09:57 +0900 |
parents | 5c194c71eca8 |
children | d734af296d38 |
rev | line source |
---|---|
3 | 1 #ifndef INCLUDED_DMA_MANAGER |
2 #define INCLUDED_DMA_MANAGER | |
3 | |
109 | 4 #ifndef INCLUDED_BASE_H_ |
5 # include "base.h" | |
6 #endif | |
7 | |
8 #ifndef INCLUDED_LIST_DATA | |
9 # include "ListData.h" | |
10 #endif | |
11 | |
42 | 12 #ifndef INCLUDED_TYPES |
46 | 13 # include "types.h" |
180
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
14 #endif |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
15 |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
16 enum dma_tag { |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
17 DMA_READ_TASKLIST = 27, |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
18 DMA_READ_IN_LIST = 28, |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
19 DMA_READ_OUT_LIST = 29, |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
20 DMA_READ = 30, |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
21 DMA_WRITE = 31, |
5cde66c926b4
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
22 }; |
3 | 23 |
24 class DmaManager { | |
25 public: | |
26 virtual ~DmaManager(void) {}; | |
27 | |
109 | 28 BASE_NEW_DELETE(DmaManager); |
29 | |
88 | 30 // API for DMA transfer |
109 | 31 virtual void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask) {} |
32 virtual void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask) {} | |
33 virtual void dma_wait(uint32 mask) {} | |
3 | 34 |
88 | 35 // API for SPU inbound/outbound mailbox |
109 | 36 virtual void mail_write(uint32 data) {} |
37 virtual uint32 mail_read(void) {return 0;} | |
38 | |
88 | 39 // API for MFC list DMA transfer |
109 | 40 virtual void dma_loadList(ListDataPtr list, void *,uint32 mask) {} |
41 virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {} | |
3 | 42 }; |
43 | |
44 #endif |