annotate include/TaskManager/SchedTask.h @ 182:8e9ada0c1ed0 draft

add get_inputAddr, get_outputAddr
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Tue, 23 Dec 2008 16:27:07 +0900
parents e3b7776b1420
children a19d3ed4ce5b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_SCHED_TASK
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_SCHED_TASK
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
3
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
4 #ifndef INCLUDED_BASE_H_
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
5 # include "base.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
6 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
7
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
8 #ifndef INCLUDED_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
9 # include "Scheduler.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
10 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
11
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
12 #ifndef INCLUDED_SCHED_TASK_BASE
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
13 # include "SchedTaskBase.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
14 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
15
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
16 #ifndef INCLUDED_LIST_DATA
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
17 # include "ListData.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
18 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
19
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
20 #ifndef INCLUDED_TASK_GROUP
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
21 # include "TaskGroup.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
22 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
23
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
24
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
25 class SchedTask : public SchedTaskBase {
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
26 public:
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
27 /* constructor */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
28 SchedTask(TaskListPtr, TaskPtr, ListDataPtr, ListDataPtr, Scheduler*);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
29 ~SchedTask(void);
88
504899860e66 *** empty log message ***
gongo
parents: 82
diff changeset
30
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
31 BASE_NEW_DELETE(SchedTask);
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
32
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
33 /* variables */
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
34
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
35 // Task ¹Ԥ륹塼鼫
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
36 Scheduler *__scheduler;
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
37
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
38 // ߥ塼餬¹ԤƤ TaskList ȡΥб Task
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
39 TaskListPtr __list;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
40 TaskPtr __task;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
41
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
42 // read/write Ѥ ListData
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
43 ListDataPtr __inListData;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
44 ListDataPtr __outListData;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
45
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
46 /**
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
47 * read ǡwrite ѤΥХåե
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
48 * readbuf ˤ ϿꤷϥǡäƤ롣
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
49 * writebuf ˥ǡǤȡ
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
50 * Ͽꤷ˽񤭹
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
51 */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
52 void *__readbuf;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
53 void *__writebuf;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
54
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
55 // 줿Υ롼
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
56 TaskGroup *__taskGroup;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
57
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
58 // Υ줿ο
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
59 int __renew_flag;
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
60
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
61 // Υ SPE 줿ݤ 1: Yes, 0: No
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
62 int __flag_renewTask;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
63
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
64 // ᥤ¦줿Τ
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
65 // SPE 줿ΤˤäơǡΰѤäƤ롣
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
66 // Τ if (__flag_renewTask) ϢȯΤϤ褯ʤΤ
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
67 // ؿݥ󥿤ǻäƤ
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
68 void (SchedTask::*ex_read)(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
69 void (SchedTask::*ex_exec)(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
70 void (SchedTask::*ex_write)(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
71
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
72 /* functions */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
73 void __init__(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
74
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
75 // override
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
76 void read(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
77 void exec(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
78 void write(void);
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
79 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
82
14a5ca0be17e *** empty log message ***
gongo
parents: 42
diff changeset
80
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
81 // 桼Ѿ
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
82 // 줾Υб򵭽Ҥ
82
14a5ca0be17e *** empty log message ***
gongo
parents: 42
diff changeset
83 virtual int run(void* r, void *w) { return 0; }
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
84
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
85 /**
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
86 * PPE 줿Ф롢read,exec,write °(?)
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
87 */
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
88 void ex_read_normal(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
89 void ex_exec_normal(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
90 void ex_write_normal(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
91
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
92 /**
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
93 * SPE 줿Ф롢read,exec,write °(?)
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
94 */
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
95 void ex_read_renew(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
96 void ex_exec_renew(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
97 void ex_write_renew(void);
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
98
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
99 void* get_input(void *buff, int index);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
100 void* get_output(void *buff, int index);
182
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
101 uint32 get_inputAddr(int index);
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
102 uint32 get_outputAddr(int index);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
103 int get_param(int index);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
104
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
105 TaskPtr create_task(int cmd);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
106 void wait_task(TaskPtr waitTask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
107
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
108 void* global_alloc(int id, int size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
109 void* global_get(int id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
110 void global_free(int id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
111
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
112 void mainMem_alloc(int id, int size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
113 void mainMem_wait(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
114 void* mainMem_get(int id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
115
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
116 void *allocate(int size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
117
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
118 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
119 void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
120 void dma_wait(uint32 mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
121
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
122 class STaskManager {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
123 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
124 STaskManager(SchedTask *_t) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
125 outer = _t;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
126 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
127
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
128 BASE_NEW_DELETE(STaskManager);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
129
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
130 SchedTask *outer;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
131
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
132 void* get_input(int index) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
133 return outer->get_input(outer->__readbuf, index);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
134 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
135
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
136 void* get_output(int index) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
137 return outer->get_output(outer->__writebuf, index);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
138 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
139
182
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
140 uint32 get_inputAddr(int index) {
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
141 return outer->get_inputAddr(index);
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
142 }
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
143
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
144 uint32 get_outputAddr(int index) {
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
145 return outer->get_outputAddr(index);
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
146 }
8e9ada0c1ed0 add get_inputAddr, get_outputAddr
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
147
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
148 int get_param(int index) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
149 return outer->get_param(index);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
150 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
151
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
152 TaskPtr create_task(int cmd) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
153 return outer->create_task(cmd);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
154 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
155
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
156 void wait_task(TaskPtr waitTask) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
157 outer->wait_task(waitTask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
158 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
159
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
160 void* global_alloc(int id, int size) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
161 return outer->global_alloc(id, size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
162 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
163
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
164 void* global_get(int id) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
165 return outer->global_get(id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
166 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
167
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
168 void global_free(int id) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
169 outer->global_free(id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
170 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
171
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
172 void mainMem_alloc(int id, int size) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
173 outer->mainMem_alloc(id, size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
174 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
175
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
176 void mainMem_wait(void) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
177 outer->mainMem_wait();
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
178 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
179
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
180 void* mainMem_get(int id) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
181 return outer->mainMem_get(id);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
182 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
183
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
184 void *allocate(int size) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
185 return outer->allocate(size);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
186 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
187
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
188 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
189 outer->dma_load(buf, addr, size, mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
190 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
191
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
192 void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
193 outer->dma_store(buf, addr, size, mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
194 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
195
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
196 void dma_wait(uint32 mask) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
197 outer->dma_wait(mask);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
198 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
199 };
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
200
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
201 STaskManager *smanager;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
202 };
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
203
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
204 #endif
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
205
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 105
diff changeset
206 extern SchedTask* CreateSchedTask(TaskListPtr, Scheduler *);