PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sys_arch.h
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
12typedef struct st_arch_message
13{
14 struct st_arch_message *next;
15 void *sys_msg;
17
18struct MboxData{
19 int MessageCountSema;
20 arch_message *FirstMessage;
21 arch_message *LastMessage;
22};
23
24typedef int sys_prot_t;
25typedef int sys_sem_t;
26typedef struct MboxData *sys_mbox_t;
27typedef 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
32void *ps2ip_calloc64(size_t n, size_t size);
33
34#endif /* __SYS_ARCH_H__ */