dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / ppu_main.h
diff --git a/dol/src/dol/visitor/cell/lib/ppu_main.h b/dol/src/dol/visitor/cell/lib/ppu_main.h
new file mode 100644 (file)
index 0000000..3b80e8a
--- /dev/null
@@ -0,0 +1,43 @@
+/**************************************************************** 
+ *     Header for the main function
+ *     Creator: lschor, 2008-11-21
+ *     Description: Header file for the main function of the PPU
+ *     
+ *     Revision: 
+ *     - 2008-11-21: Created
+ */
+
+#ifndef __PPU_MAIN_H__
+#define __PPU_MAIN_H__
+
+// System includes
+#include <stdio.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <string.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <libspe2.h>
+#include <pthread.h>
+
+// Local includes
+#include "lib/malloc_align.h"
+#include "lib/free_align.h"
+#include "lib/common.h"
+#include "lib/estimation.h"
+#include "lib/ppu/common_ppu.h"
+#include "cbe_mfc.h"
+
+// Program context for the Processes
+volatile process_context ctx_proc[NUM_PROCS_SPU] __attribute__ ((aligned(16)));
+
+// Program context for the SPEs
+volatile spu_context ctx_spu[NUM_SPES] __attribute__ ((aligned(16)));
+
+// The SPE-program-handler
+spe_program_handle_t *program[NUM_SPES];
+
+// Data for the SPEs
+spu_data_t data[NUM_SPES]; 
+
+#endif