Mercurial > hg > Game > Cerium
comparison TaskManager/Fifo/MainScheduler.h @ 1585:90c0ad32655f draft
init dim
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Mar 2013 20:32:24 +0900 |
parents | 424c1f16e704 |
children |
comparison
equal
deleted
inserted
replaced
1583:40a3504126a4 | 1585:90c0ad32655f |
---|---|
3 | 3 |
4 #include "Scheduler.h" | 4 #include "Scheduler.h" |
5 #include "FifoDmaManager.h" | 5 #include "FifoDmaManager.h" |
6 | 6 |
7 class MainScheduler : public Scheduler { | 7 class MainScheduler : public Scheduler { |
8 protected: | 8 protected: |
9 FifoDmaManager *fifoDmaManager; | 9 FifoDmaManager *fifoDmaManager; |
10 public: | 10 public: |
11 ~MainScheduler(void) {} | 11 ~MainScheduler(void) {} |
12 void init_impl(int useRefDma); | 12 void init_impl(int useRefDma); |
13 void mainMem_alloc(int id, int size); | 13 void mainMem_alloc(int id, int size); |
14 | |
15 void mail_write_from_host(memaddr data) { | 14 void mail_write_from_host(memaddr data) { |
16 fifoDmaManager->mail_write_from_host(data); | 15 fifoDmaManager->mail_write_from_host(data); |
17 } | 16 } |
18 | 17 |
19 memaddr mail_read_from_host() { | 18 memaddr mail_read_from_host() { |
20 return fifoDmaManager->mail_read_from_host(); | 19 return fifoDmaManager->mail_read_from_host(); |
21 } | 20 } |
22 | 21 |
23 int has_mail_from_host() { | 22 int has_mail_from_host() { |
24 return fifoDmaManager->has_mail_from_host(); | 23 return fifoDmaManager->has_mail_from_host(); |
25 } | 24 } |
26 | 25 |
27 }; | 26 }; |
28 | 27 |
29 #endif | 28 #endif |