/* SCE CONFIDENTIAL
PLAYSTATION(R)3 Programmer Tool Runtime Library 084.006
* Copyright (C) 2005 Sony Computer Entertainment Inc. 
* All Rights Reserved.
*/
#ifndef __SPU_PRINTF_H__
#define __SPU_PRINTF_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <yvals.h>
#include <sys/spu_thread.h>
  
/* PU helper functions for processing printf syscalls from SPU */
extern int spu_thread_sprintf (char *buf, sys_spu_thread_t id, _CSTD uint32_t arg_addr);
extern int spu_raw_sprintf (char *buf, _CSTD uint64_t ls_base, _CSTD uint32_t arg_addr);
extern int spu_thread_printf (sys_spu_thread_t id, _CSTD uint32_t arg_addr);
extern int raw_spu_printf (_CSTD uint64_t ls_base, _CSTD uint32_t arg_addr);

#ifdef __cplusplus
}
#endif

#endif /* __SPU_PRINTF_H__ */
