diff TaskManager/Cell/spe/CellDmaManager.h @ 1007:18a548c337cb

add mail_queue
author yutaka@localhost.localdomain
date Thu, 28 Oct 2010 08:39:19 +0900
parents 61f33945f85d
children c67379f9d411
line wrap: on
line diff
--- a/TaskManager/Cell/spe/CellDmaManager.h	Tue Oct 26 17:41:41 2010 +0900
+++ b/TaskManager/Cell/spe/CellDmaManager.h	Thu Oct 28 08:39:19 2010 +0900
@@ -4,8 +4,11 @@
 #include "base.h"
 #include "types.h"
 #include "DmaManager.h"
+#include "QueueInfo.h"
+#include "MailQueue.h"
 
 #include <spu_mfcio.h>
+#include <spu_intrinsics.h>
 
 #define SPU_PROFILE 1
 
@@ -20,6 +23,7 @@
 	uint32 size;
     }  __attribute__ ((aligned (DEFAULT_ALIGNMENT))) DmaList, *DmaListPtr;
 
+    QueueInfo<MailQueue> mail_queue;
 
     CellDmaManager() ;
 
@@ -42,6 +46,8 @@
     void show_dma_wait(Scheduler *s, int cpu);
 
     void mail_write(memaddr data);
+    void mail_write_queue(memaddr data);
+    void mail_write_finish_list(memaddr data);
     memaddr mail_read();
     void dma_loadList(ListDataPtr list, void *buff, uint32 mask);
     void dma_storeList(ListDataPtr, void *buff, uint32 mask);