view include/TaskManager/ppe_spe.h @ 39:b6858e9fe2b4

*** empty log message ***
author gongo
date Wed, 13 Feb 2008 15:10:47 +0900
parents 2356238ebea7
children aa11038dbdc1
line wrap: on
line source

/**
 * 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
};