1 /****************************************************************
3 * Creator: lschor, 2009-02-24
4 * Description: Wrapper for a specific SPE process
7 * - 2009-02-24: Created
10 #ifndef @PROCESSNAME@_WRAPPER_H_
11 #define @PROCESSNAME@_WRAPPER_H_
14 #include <spu_intrinsics.h>
15 #include <spu_mfcio.h>
21 // Include to allocate/free using for DMA transfers
22 #include "../lib/malloc_align.h"
23 #include "../lib/free_align.h"
24 #include "../lib/spu/Fifo.h"
25 #include "../lib/spu/WindowedFifo.h"
28 #include "../lib/common.h"
29 //#include "../lib/estimation.h"
31 #include "../lib/spu/proc_wrapper.h"
33 class @PROCESSNAME@Wrapper;
35 typedef struct _@PROCESSNAME@_data {
37 @PROCESSNAME@Wrapper *wrapper;
40 class @PROCESSNAME@Wrapper : public proc_wrapper {
44 @PROCESSNAME@Wrapper(uint64_t argp);
45 virtual ~@PROCESSNAME@Wrapper();
51 process_context ctx_proc __attribute__ ((aligned (128)));
52 @PROCESSNAME@_data _wrapper_data;
56 #endif /* @PROCESSNAME@_WRAPPER_H_ */