psl1ght
A free SDK for Sony's PS3 console
tty.h
Go to the documentation of this file.
1 
5 #ifndef __SYS_TTY_H__
6 #define __SYS_TTY_H__
7 
8 #include <ppu-lv2.h>
9 
10 #ifdef __cplusplus
11  extern "C" {
12 #endif
13 
14 LV2_SYSCALL sysTtyWrite(s32 channel,const void *ptr,u32 len,u32 *written)
15 {
16  lv2syscall4(403,channel,(u64)ptr,len,(u64)written);
17  return_to_user_prog(s32);
18 }
19 
20 LV2_SYSCALL sysTtyRead(s32 channel,void *ptr,u32 len,u32 *read)
21 {
22  lv2syscall4(402,channel,(u64)ptr,len,(u64)read);
23  return_to_user_prog(s32);
24 }
25 
26 #ifdef __cplusplus
27  }
28 #endif
29 
30 #endif