/[pcsx2_0.9.7]/trunk/pcsx2/Sifcmd.h
ViewVC logotype

Contents of /trunk/pcsx2/Sifcmd.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 10 months ago) by william
File MIME type: text/plain
File size: 4438 byte(s)
committing r3113 initial commit again...
1 /* PCSX2 - PS2 Emulator for PCs
2 * Copyright (C) 2002-2010 PCSX2 Dev Team
3 *
4 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5 * of the GNU Lesser General Public License as published by the Free Software Found-
6 * ation, either version 3 of the License, or (at your option) any later version.
7 *
8 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with PCSX2.
13 * If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #ifndef __SIFCMD_H__
17 #define __SIFCMD_H__
18
19 /* from sifcmd.h */
20
21 //#define SYSTEM_CMD 0x80000000
22 //
23 //struct t_sif_cmd_header
24 //{
25 // u32 size;
26 // void *dest;
27 // s32 command;
28 // u32 unknown;
29 //};
30
31 struct t_sif_dma_transfer
32 {
33 void *src;
34 void *dest;
35 s32 size;
36 s32 attr;
37 };
38 //
39 //struct t_sif_handler
40 //{
41 // void (*handler)(void *a, void *b);
42 // void *buff;
43 //};
44 //
45 //#define SYSTEM_CMD_CHANGE_SADDR 0x80000000
46 //#define SYSTEM_CMD_INIT_CMD 0x80000002
47 //struct t_sif_saddr
48 //{
49 // struct t_sif_cmd_header hdr; //+00
50 // void *newaddr; //+10
51 //}; //=14
52 //
53 //#define SYSTEM_CMD_SET_SREG 0x80000001
54 //struct t_sif_sreg
55 //{
56 // struct t_sif_cmd_header hdr; //+00
57 // s32 index; //+10
58 // u32 value; //+14
59 //}; //=18
60 //
61 //#define SYSTEM_CMD_RESET 0x80000003
62 //struct t_sif_reset
63 //{
64 // struct t_sif_cmd_header hdr; //+00
65 // s32 size; //+10
66 // s32 flag; //+14
67 // char data[80]; //+18
68 //}; //=68
69
70 /* end of sifcmd.h */
71
72 /* from sifsrpc.h */
73
74 //struct t_sif_rpc_rend
75 //{
76 // struct t_sif_cmd_header sifcmd;
77 // s32 rec_id; /* 04 */
78 // void *pkt_addr; /* 05 */
79 // s32 rpc_id; /* 06 */
80 //
81 // struct t_rpc_client_data *client; /* 7 */
82 // u32 command; /* 8 */
83 // struct t_rpc_server_data *server; /* 9 */
84 // void *buff; /* 10 */
85 // void *buff2; /* 11 */
86 //};
87 //
88 //struct t_sif_rpc_other_data
89 //{
90 // struct t_sif_cmd_header sifcmd;
91 // s32 rec_id; /* 04 */
92 // void *pkt_addr; /* 05 */
93 // s32 rpc_id; /* 06 */
94 //
95 // struct t_rpc_receive_data *receive; /* 07 */
96 // void *src; /* 08 */
97 // void *dest; /* 09 */
98 // s32 size; /* 10 */
99 //};
100 //
101 //struct t_sif_rpc_bind
102 //{
103 // struct t_sif_cmd_header sifcmd;
104 // s32 rec_id; /* 04 */
105 // void *pkt_addr; /* 05 */
106 // s32 rpc_id; /* 06 */
107 // struct t_rpc_client_data *client; /* 07 */
108 // s32 rpc_number; /* 08 */
109 //};
110 //
111 //struct t_sif_rpc_call
112 //{
113 // struct t_sif_cmd_header sifcmd;
114 // s32 rec_id; /* 04 */
115 // void *pkt_addr; /* 05 */
116 // s32 rpc_id; /* 06 */
117 // struct t_rpc_client_data *client; /* 07 */
118 // s32 rpc_number; /* 08 */
119 // s32 send_size; /* 09 */
120 // void *receive; /* 10 */
121 // s32 rec_size; /* 11 */
122 // s32 has_async_ef; /* 12 */
123 // struct t_rpc_server_data *server; /* 13 */
124 //};
125 //
126 //struct t_rpc_server_data
127 //{
128 // s32 command; /* 04 00 */
129 //
130 // void *(*func)(u32, void *, int); /* 05 01 */
131 // void *buff; /* 06 02 */
132 // s32 size; /* 07 03 */
133 //
134 // void *(*func2)(u32, void *, int); /* 08 04 */
135 // void *buff2; /* 09 05 */
136 // s32 size2; /* 10 06 */
137 //
138 // struct t_rpc_client_data *client; /* 11 07 */
139 // void *pkt_addr; /* 12 08 */
140 // s32 rpc_number; /* 13 09 */
141 //
142 // void *receive; /* 14 10 */
143 // s32 rec_size; /* 15 11 */
144 // s32 has_async_ef; /* 16 12 */
145 // s32 rec_id; /* 17 13 */
146 //
147 // struct t_rpc_server_data *link; /* 18 14 */
148 // struct r_rpc_server_data *next; /* 19 15 */
149 // struct t_rpc_data_queue *queued_object; /* 20 16 */
150 //};
151 //
152 //
153 //struct t_rpc_header
154 //{
155 // void *pkt_addr; /* 04 00 */
156 // u32 rpc_id; /* 05 01 */
157 // s32 sema_id; /* 06 02 */
158 // u32 mode; /* 07 03 */
159 //};
160 //
161 //
162 //struct t_rpc_client_data
163 //{
164 // struct t_rpc_header hdr;
165 // u32 command; /* 04 08 */
166 // void *buff; /* 05 09 */
167 // void *buff2; /* 06 10 */
168 // void (*end_function)(void *); /* 07 11 */
169 // void *end_param; /* 08 12*/
170 // struct t_rpc_server_data *server; /* 09 13 */
171 //};
172 //
173 //struct t_rpc_receive_data
174 //{
175 // struct t_rpc_header hdr;
176 // void *src; /* 04 */
177 // void *dest; /* 05 */
178 // s32 size; /* 06 */
179 //};
180 //
181 //struct t_rpc_data_queue
182 //{
183 // s32 thread_id; /* 00 */
184 // s32 active; /* 01 */
185 // struct t_rpc_server_data *svdata_ref; /* 02 */
186 // struct t_rpc_server_data *start; /* 03 */
187 // struct t_rpc_server_data *end; /* 04 */
188 // struct t_rpc_data_queue *next; /* 05 */
189 //};
190
191 /* end of sifrpc.h */
192
193 #endif//__SIFCMD_H__

  ViewVC Help
Powered by ViewVC 1.1.22