annotate include/TaskManager/ppe_spe.h @ 70:178459e03f5c

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 01:13:00 +0900
parents f154d9d07a42
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
1 /**
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 * Alignment value and macro for DMA transfer in SPE
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3 */
46
f154d9d07a42 *** empty log message ***
gongo
parents: 42
diff changeset
4 #ifndef INCLUDED_T
f154d9d07a42 *** empty log message ***
gongo
parents: 42
diff changeset
5 #define INCLUDED_T
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 3
diff changeset
6
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
7 #define SPE_ALIGNMENT 16
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
8 #define SPE_ALIGNMENT_FULL 128
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
9 #define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT)))
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
10 #define SPE_ALIGN_FULL __attribute__((aligned(SPE_ALIGNMENT_FULL))
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
11 #define ROUND_UP_ALIGN(value, alignment) \
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
12 (((value) + ((alignment) - 1))&(~((alignment)-1)))
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
13 #define DEFAULT_ALIGNMENT SPE_ALIGNMENT
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
14
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
15 enum {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
16 MY_SPE_COMMAND_EXIT,
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
17 MY_SPE_COMMAND_GO,
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
18
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
19 MY_SPE_STATUS_BUSY,
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
20 MY_SPE_STATUS_READY
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
21 };
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 3
diff changeset
22
aa11038dbdc1 *** empty log message ***
gongo
parents: 3
diff changeset
23 #endif