diff include/TaskManager/MainScheduler.h @ 1559:c60caac2f345 draft

fix fft
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Sat, 09 Mar 2013 21:23:40 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/TaskManager/MainScheduler.h	Sat Mar 09 21:23:40 2013 +0900
@@ -0,0 +1,29 @@
+#ifndef INCLUDED_MAIN_SCHEDULER
+#define INCLUDED_MAIN_SCHEDULER
+
+#include "Scheduler.h"
+#include "FifoDmaManager.h"
+
+class MainScheduler : public Scheduler {
+protected:
+    FifoDmaManager *fifoDmaManager;
+public:
+    ~MainScheduler(void) {}
+    void init_impl(int useRefDma);
+    void mainMem_alloc(int id, int size);
+
+    void mail_write_from_host(memaddr data) {
+	fifoDmaManager->mail_write_from_host(data);
+    }
+
+    memaddr mail_read_from_host() {
+	return fifoDmaManager->mail_read_from_host();
+    }
+
+    int has_mail_from_host() {
+	return fifoDmaManager->has_mail_from_host();
+    }
+
+};
+
+#endif