0
|
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(void);
|
|
13 void mainMem_alloc(int id, int size);
|
|
14
|
|
15 void mail_write_from_host(memaddr data) {
|
|
16 fifoDmaManager->mail_write_from_host(data);
|
|
17 }
|
|
18
|
|
19 memaddr mail_read_from_host() {
|
|
20 return fifoDmaManager->mail_read_from_host();
|
|
21 }
|
|
22
|
|
23 int has_mail_from_host() {
|
|
24 return fifoDmaManager->has_mail_from_host();
|
|
25 }
|
|
26
|
|
27 };
|
|
28
|
|
29 #endif
|