ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
sys_arch.h
Go to the documentation of this file.
1 #ifndef __SYS_ARCH_H__
2 #define __SYS_ARCH_H__
3 
4 #include <kernel.h>
5 #include <malloc.h>
6 
7 #define SYS_MBOX_NULL NULL
8 #define SYS_SEM_NULL -1
9 
10 #define SYS_MAX_MESSAGES (MEMP_NUM_TCPIP_MSG_API+MEMP_NUM_TCPIP_MSG_INPKT)
11 
12 typedef struct st_arch_message
13 {
14  struct st_arch_message *next;
15  void *sys_msg;
16 } arch_message;
17 
18 struct MboxData{
22 };
23 
24 typedef int sys_prot_t;
25 typedef int sys_sem_t;
26 typedef struct MboxData *sys_mbox_t;
27 typedef int sys_thread_t;
28 
29 #define mem_clib_malloc(size) memalign(64,size)
30 #define mem_clib_calloc(count,size) ps2ip_calloc64(count,size)
31 
32 void *ps2ip_calloc64(size_t n, size_t size);
33 
34 #endif /* __SYS_ARCH_H__ */
int MessageCountSema
Definition: sys_arch.h:19
arch_message * FirstMessage
Definition: sys_arch.h:20
arch_message * LastMessage
Definition: sys_arch.h:21
void * sys_msg
Definition: sys_arch.h:15
struct st_arch_message * next
Definition: sys_arch.h:14
int sys_prot_t
Definition: sys_arch.h:24
void * ps2ip_calloc64(size_t n, size_t size)
Definition: sys_arch.c:466
int sys_sem_t
Definition: sys_arch.h:25
int sys_thread_t
Definition: sys_arch.h:27