Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/DmaManager.h @ 602:92b0d490e839 draft
64bit mode try... not worked.
author | e075740@nw0740.st.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 06 Nov 2009 21:20:26 +0900 |
parents | fdc3e30de9d3 |
children | 57ec231bc8ac |
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, | |
502
fdc3e30de9d3
Renew Task addInData (not yet worked).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
366
diff
changeset
|
11 // DMA_READ_IN_LIST = 29, |
fdc3e30de9d3
Renew Task addInData (not yet worked).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
366
diff
changeset
|
12 // DMA_READ_OUT_LIST = 30, |
233 | 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 |
602
92b0d490e839
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
502
diff
changeset
|
23 virtual void dma_load(void *buf, long addr, uint32 size, uint32 mask) {} |
92b0d490e839
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
502
diff
changeset
|
24 virtual void dma_store(void *buf,long addr, uint32 size, uint32 mask) {} |
109 | 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 |
602
92b0d490e839
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
502
diff
changeset
|
29 virtual void mail_write(long data) {} |
92b0d490e839
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
502
diff
changeset
|
30 virtual long mail_read(void) {return 0;} |
109 | 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 |