annotate TaskManager/Fifo/MainScheduler.h @ 1229:424c1f16e704 draft

add args useRefDma
author Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
date Wed, 24 Aug 2011 07:45:27 +0900
parents 7ba4ad4538b1
children 90c0ad32655f
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_MAIN_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_MAIN_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
3
307
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
4 #include "Scheduler.h"
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
5 #include "FifoDmaManager.h"
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
6
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
7 class MainScheduler : public Scheduler {
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
8 protected:
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
9 FifoDmaManager *fifoDmaManager;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
10 public:
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
11 ~MainScheduler(void) {}
1229
424c1f16e704 add args useRefDma
Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
12 void init_impl(int useRefDma);
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
13 void mainMem_alloc(int id, int size);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
14
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
15 void mail_write_from_host(memaddr data) {
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
16 fifoDmaManager->mail_write_from_host(data);
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
17 }
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
18
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
19 memaddr mail_read_from_host() {
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
20 return fifoDmaManager->mail_read_from_host();
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
21 }
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
22
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
23 int has_mail_from_host() {
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
24 return fifoDmaManager->has_mail_from_host();
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
25 }
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
26
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
27 };
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
28
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
29 #endif