dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / ppu / common_ppu.h
diff --git a/dol/src/dol/visitor/cell/lib/ppu/common_ppu.h b/dol/src/dol/visitor/cell/lib/ppu/common_ppu.h
new file mode 100644 (file)
index 0000000..09a8d78
--- /dev/null
@@ -0,0 +1,32 @@
+/****************************************************************
+ *     Common structs for the PPU
+ *     Creator: lschor, 2008-11-21
+ *     Description: Common structs for the PPU
+ *
+ *     Revision:
+ *     - 2008-11-21: Created
+ */
+
+#ifndef __COMMON_PPU_H__
+#define __COMMON_PPU_H__
+
+#include <libspe2.h>
+
+// data structure for running SPE thread
+typedef struct spu_data {
+       spe_context_ptr_t spe_ctx;
+       pthread_t pthread;
+       void *argp;
+} spu_data_t;
+
+// Struct for a process
+typedef struct _process_data {
+       uint64_t *procContentsAll;
+       int32_t *queueFromSPU;
+       int32_t *queueOnSPU;
+       uint64_t *ea_ls_base;
+       uint64_t *fifoTails;
+} ProcessData;
+
+
+#endif