dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / ppu_main.h
1 /**************************************************************** 
2  *      Header for the main function
3  *      Creator: lschor, 2008-11-21
4  *      Description: Header file for the main function of the PPU
5  *      
6  *      Revision: 
7  *      - 2008-11-21: Created
8  */
9
10 #ifndef __PPU_MAIN_H__
11 #define __PPU_MAIN_H__
12
13 // System includes
14 #include <stdio.h>
15 #include <stddef.h>
16 #include <stdint.h>
17 #include <string.h>
18 #include <ctype.h>
19 #include <stdlib.h>
20 #include <libspe2.h>
21 #include <pthread.h>
22
23 // Local includes
24 #include "lib/malloc_align.h"
25 #include "lib/free_align.h"
26 #include "lib/common.h"
27 #include "lib/estimation.h"
28 #include "lib/ppu/common_ppu.h"
29 #include "cbe_mfc.h"
30
31 // Program context for the Processes
32 volatile process_context ctx_proc[NUM_PROCS_SPU] __attribute__ ((aligned(16)));
33
34 // Program context for the SPEs
35 volatile spu_context ctx_spu[NUM_SPES] __attribute__ ((aligned(16)));
36
37 // The SPE-program-handler
38 spe_program_handle_t *program[NUM_SPES];
39
40 // Data for the SPEs
41 spu_data_t data[NUM_SPES]; 
42
43 #endif