Mercurial > hg > Members > kono > Cerium
diff include/TaskManager/ppe_spe.h @ 3:2356238ebea7
*** empty log message ***
author | gongo |
---|---|
date | Tue, 05 Feb 2008 20:22:50 +0900 |
parents | |
children | aa11038dbdc1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/TaskManager/ppe_spe.h Tue Feb 05 20:22:50 2008 +0900 @@ -0,0 +1,18 @@ +/** + * Alignment value and macro for DMA transfer in SPE + */ +#define SPE_ALIGNMENT 16 +#define SPE_ALIGNMENT_FULL 128 +#define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT))) +#define SPE_ALIGN_FULL __attribute__((aligned(SPE_ALIGNMENT_FULL)) +#define ROUND_UP_ALIGN(value, alignment) \ + (((value) + ((alignment) - 1))&(~((alignment)-1))) +#define DEFAULT_ALIGNMENT SPE_ALIGNMENT + +enum { + MY_SPE_COMMAND_EXIT, + MY_SPE_COMMAND_GO, + + MY_SPE_STATUS_BUSY, + MY_SPE_STATUS_READY +};