Mercurial > hg > Game > Cerium
annotate include/TaskManager/DmaManager.h @ 195:4e66b3327c50 draft
fix
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 25 Jan 2009 17:44:17 +0900 |
parents | e3b7776b1420 |
children | a314d8cd2082 |
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
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
14 #endif |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
15 |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
16 enum dma_tag { |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
17 DMA_READ_TASKLIST = 27, |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
18 DMA_READ_IN_LIST = 28, |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
19 DMA_READ_OUT_LIST = 29, |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
20 DMA_READ = 30, |
e3b7776b1420
いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents:
109
diff
changeset
|
21 DMA_WRITE = 31, |
e3b7776b1420
いろいろ 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 |