dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / ppu / common_ppu.h
1 /****************************************************************
2  *      Common structs for the PPU
3  *      Creator: lschor, 2008-11-21
4  *      Description: Common structs for the PPU
5  *
6  *      Revision:
7  *      - 2008-11-21: Created
8  */
9
10 #ifndef __COMMON_PPU_H__
11 #define __COMMON_PPU_H__
12
13 #include <libspe2.h>
14
15 // data structure for running SPE thread
16 typedef struct spu_data {
17         spe_context_ptr_t spe_ctx;
18         pthread_t pthread;
19         void *argp;
20 } spu_data_t;
21
22 // Struct for a process
23 typedef struct _process_data {
24         uint64_t *procContentsAll;
25         int32_t *queueFromSPU;
26         int32_t *queueOnSPU;
27         uint64_t *ea_ls_base;
28         uint64_t *fifoTails;
29 } ProcessData;
30
31
32 #endif