PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
librm-common.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __LIBRM_COMMON_H__
17
#define __LIBRM_COMMON_H__
18
19
#include <
tamtypes.h
>
20
21
struct
rmRpcPacket
22
{
23
union
24
{
25
struct
26
{
27
s32 command;
28
union
29
{
30
struct
31
{
32
s32 port, slot;
33
s32 result;
34
void
*data;
35
} cmd1;
36
struct
37
{
38
s32 result;
39
void
*data;
40
} cmd2;
41
} u;
42
} cmd;
43
u8 buffer[128];
44
};
45
};
46
47
struct
rmEEData
48
{
49
u8 data[32];
50
u32 frame;
51
u32 unused;
52
u32 connected;
53
u32 state;
54
};
55
56
struct
rmEEData2
57
{
58
u8 data[32];
59
u32 connected;
60
u32 state;
61
u32 unused;
62
u32 frame;
63
};
64
65
#define RMMAN_RPC_ID 0x80000C00
66
#define RMMAN2_RPC_ID 0x80000C01
67
#define RMMANX_RPC_ID 0x80000C02
68
69
enum
RMMAN_RPCFUNC {
70
RMMAN_RPCFUNC_END = 1,
71
RMMAN_RPCFUNC_INIT = 3,
72
RMMAN_RPCFUNC_CLOSE,
73
RMMAN_RPCFUNC_OPEN,
74
RMMAN_RPCFUNC_VERSION = 7
75
};
76
77
enum
RMMAN2_RPCFUNC {
78
RMMAN2_RPCFUNC_END = 1,
79
RMMAN2_RPCFUNC_INIT,
80
RMMAN2_RPCFUNC_CLOSE,
81
RMMAN2_RPCFUNC_OPEN,
82
RMMAN2_RPCFUNC_VERSION,
83
RMMAN2_RPCFUNC_REMOTE2_6,
84
};
85
86
enum
RM_RSTATE {
87
RM_RSTATE_COMPLETE = 0,
88
RM_RSTATE_FAILED,
89
RM_RSTATE_BUSY
90
};
91
92
enum
RM_STATE {
93
RM_STATE_DISCONN = 0,
94
RM_STATE_FINDRM,
95
RM_STATE_EXECCMD,
96
RM_STATE_STABLE
97
};
98
99
#endif
/* _LIBRM_COMMON_H_ */
rmEEData
Definition
librm-common.h:48
rmEEData2
Definition
librm-common.h:57
rmRpcPacket
Definition
librm-common.h:22
tamtypes.h
common
include
librm-common.h
Generated on Thu Nov 14 2024 05:25:24 for PS2SDK by
1.9.8