3
|
1 /**
|
|
2 * Alignment value and macro for DMA transfer in SPE
|
|
3 */
|
46
|
4 #ifndef INCLUDED_T
|
|
5 #define INCLUDED_T
|
42
|
6
|
3
|
7 #define SPE_ALIGNMENT 16
|
|
8 #define SPE_ALIGNMENT_FULL 128
|
|
9 #define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT)))
|
|
10 #define SPE_ALIGN_FULL __attribute__((aligned(SPE_ALIGNMENT_FULL))
|
|
11 #define ROUND_UP_ALIGN(value, alignment) \
|
|
12 (((value) + ((alignment) - 1))&(~((alignment)-1)))
|
|
13 #define DEFAULT_ALIGNMENT SPE_ALIGNMENT
|
|
14
|
|
15 enum {
|
|
16 MY_SPE_COMMAND_EXIT,
|
|
17 MY_SPE_COMMAND_GO,
|
|
18
|
|
19 MY_SPE_STATUS_BUSY,
|
|
20 MY_SPE_STATUS_READY
|
|
21 };
|
42
|
22
|
|
23 #endif
|