comparison TaskManager/ManyCore/MainScheduler.h @ 1891:e0d465efc57e draft

directory reogranization for Cell/Fifo/ManyCore/Gpu
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 04 Jan 2014 19:10:32 +0900
parents TaskManager/Cell/MainScheduler.h@5238ca826d6e
children
comparison
equal deleted inserted replaced
1890:9085a4692cfd 1891:e0d465efc57e
1 #ifndef INCLUDED_MAIN_SCHEDULER
2 #define INCLUDED_MAIN_SCHEDULER
3
4 #include "Scheduler.h"
5 #include "FifoDmaManager.h"
6
7 class MainScheduler : public Scheduler {
8 protected:
9 FifoDmaManager *fifoDmaManager;
10 public:
11 ~MainScheduler(void) {}
12 void init_impl(int useRefDma);
13 void mainMem_alloc(int id, int size);
14 void mail_write_from_host(memaddr data) {
15 fifoDmaManager->mail_write_from_host(data);
16 }
17 int min_cpu() { return mincpu; }
18 int max_cpu() {return maxcpu; }
19
20 memaddr mail_read_from_host() {
21 return fifoDmaManager->mail_read_from_host();
22 }
23
24 int has_mail_from_host() {
25 return fifoDmaManager->has_mail_from_host();
26 }
27
28 };
29
30 #endif