diff include/TaskManager/DmaManager.h @ 3:2356238ebea7

*** empty log message ***
author gongo
date Tue, 05 Feb 2008 20:22:50 +0900
parents
children aa11038dbdc1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/TaskManager/DmaManager.h	Tue Feb 05 20:22:50 2008 +0900
@@ -0,0 +1,23 @@
+#ifndef INCLUDED_DMA_MANAGER
+#define INCLUDED_DMA_MANAGER
+
+enum dma_tag {
+    DMA_READ,
+    DMA_WRITE
+};
+
+#include "ppe_spe.h"
+
+class DmaManager {
+public:
+    virtual ~DmaManager(void) {};
+
+    virtual void dma_load(void *buf, unsigned int addr,int size, int mask) = 0;
+    virtual void dma_store(void *buf,unsigned int addr,int size, int mask) = 0;
+    virtual void dma_wait(int mask) = 0;
+
+    virtual void mail_write(unsigned int data) = 0;
+    virtual unsigned int mail_read(void) = 0;
+};
+
+#endif