15#define SPU_SEGMENT_TYPE_COPY 0x01
17#define SPU_SEGMENT_TYPE_FILL 0x02
19#define SPU_SEGMENT_TYPE_INFO 0x04
21#define SPU_IMAGE_TYPE_USER 0x00
22#define SPU_IMAGE_TYPE_KERNEL 0x00
24#define SPU_IMAGE_PROTECT 0x00
25#define SPU_IMAGE_DIRECT 0x01
s32 sysSpuImageClose(sysSpuImage *image)
Close an opened SPU image file.
s32 sysSpuRawLoad(sys_raw_spu_t spu, const char *path, u32 *entryPoint)
Load a SPU program file into a raw SPU's local store.
s32 sysSpuImageOpenELF(sysSpuImage *image, const char *path)
s32 sysSpuPrintfDetachGroup(sys_spu_group_t group)
Disable Spu printf service from each of the SPU thread in the specified SPU thread group.
s32 sysSpuPrintfInitialize(int prio, void(*entry)(void *))
Initialize Spu printf service on ppu.
s32 sysSpuElfGetInformation(const void *elf, u32 *entryPoint, u32 *segmentCount)
struct _sys_spu_image sysSpuImage
SPU image data structure.
s32 sysSpuImageImport(sysSpuImage *image, const void *elf, u32 type)
Import a SPU image from an ELF file in memory.
s32 sysSpuPrintfAttachGroup(sys_spu_group_t group)
Enable Spu printf service from each of the SPU thread in the specified SPU thread group.
s32 sysSpuElfGetSegments(const void *elf, sysSpuSegment *segments, u32 segmentCount)
s32 sysSpuRawImageLoad(sys_raw_spu_t spu, sysSpuImage *image)
Load a SPU image into a raw SPU's local store.
struct _sys_spu_segment sysSpuSegment
SPU segment data structure.
s32 sysSpuPrintfAttachThread(sys_spu_thread_t thread)
Enable Spu printf service in the specified SPU thread.
s32 sysSpuPrintfFinalize()
Terminate Spu printf service.
s32 sysSpuPrintfDetachThread(sys_spu_thread_t thread)
Disable Spu printf service in the specified SPU thread.
SPU image data structure.
u32 entryPoint
entry point
u32 segments
address of segments
u32 segmentCount
number of segments
SPU segment data structure.
u32 value
fill value if type is SPU_SEGMENT_TYPE_FILL
u32 lsStart
start address in local store
u32 paStart
start address in main memory to be copied if type is SPU_SEGMENT_TYPE_COPY