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
12
typedef
struct
st_arch_message
13
{
14
struct
st_arch_message
*next;
15
void
*sys_msg;
16
}
arch_message
;
17
18
struct
MboxData
{
19
int
MessageCountSema;
20
arch_message
*FirstMessage;
21
arch_message
*LastMessage;
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__ */
kernel.h
MboxData
Definition
sys_arch.h:18
st_arch_message
Definition
sys_arch.h:13
ee
network
tcpip
src
include
arch
sys_arch.h
Generated on Thu Nov 14 2024 05:25:25 for PS2SDK by
1.9.8