PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libcdvd-rpc.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 __LIBCDVD_RPC_H__
17#define __LIBCDVD_RPC_H__
18
19#include <tamtypes.h>
20#include <libcdvd-common.h>
21
22/* S-command parameters */
23
25{
26 u16 cmdNum;
27 u16 inBuffSize;
28 u8 inBuff[16];
29};
30
32{
33 u8 arg1;
34 u8 arg2;
35 u8 shift;
36 u8 pad;
37};
38
40{
41 u32 address;
42 u16 value;
43 u16 pad;
44};
45
46/* N-command parameters */
47
49{
50 u16 cmdNum;
51 u16 inBuffSize;
52 u8 inBuff[16];
53};
54
56{
57 u32 arg1;
58 u32 arg2;
59 u32 command;
60};
61
62/* SIF RPC packet definitions */
63
65{
66 int m_mode;
68
70{
71 int m_retres;
72 int m_cdvdfsv_ver;
73 int m_cdvdman_ver;
74 int m_debug_mode;
76
78{
79 int m_mode;
81
83{
84 int m_retres;
86
88{
89 u32 m_b1len;
90 u32 m_b2len;
91 u32 m_b1dst;
92 u32 m_b2dst;
93 u8 m_pbuf1[64];
94 u8 m_pbuf2[64];
96
98{
99 sceCdlFILE m_fp;
100 int m_file_attributes;
101 char m_path[256];
102 uiptr m_eedest;
103 int m_layer;
105
107{
108 sceCdlFILE m_fp;
109 int m_file_attributes;
110 char m_path[256];
111 uiptr m_eedest;
113
115{
116 sceCdlFILE m_fp;
117 char m_path[256];
118 uiptr m_eedest;
120
127
129{
130 int m_retres;
131 int m_padding[3];
133
135{
136 int m_param;
138
140{
141 u8 m_cmdNum;
142 u8 m_gap1;
143 u16 m_inBuffSize;
144 u8 m_inBuff[16];
146
148{
149 int m_mode;
151
153{
154 int m_media;
155 char m_char4;
157
159{
160 int m_priority;
162
164{
165 int m_param;
166 int m_timeout;
168
178
180{
181 int m_retres;
182 sceCdCLOCK m_clock;
184
186{
187 int m_retres;
188 u32 m_traychk;
190
192{
193 int m_retres;
194 u32 m_result;
195 u8 m_buffer[8];
197
199{
200 u8 m_outbuf[16];
202
204{
205 int m_retres;
206 u32 m_status;
208
210{
211 int m_retres;
212 u32 m_status;
213 char m_buffer[16];
215
217{
218 int m_retres;
219 u32 m_result;
221
223{
224 int m_retres;
225 u64 m_guid;
227
229{
230 int m_retres;
231 unsigned int m_id;
233
235{
236 int m_retres;
237 int m_on_dual;
238 unsigned int m_layer1_start;
240
255
257{
258 u32 m_lbn;
259 u32 m_sectors;
260 uiptr m_paddr;
261 sceCdRMode m_rmodeee;
262 uiptr m_eeremaindest;
263 uiptr m_eedest;
264 u32 m_decval;
266
268{
269 u32 m_lbn;
270 u32 m_sectors;
271 uiptr m_buf;
272 sceCdRMode m_mode;
273 uiptr m_eeremaindest;
274 uiptr m_eedest;
276
278{
279 uiptr m_eedest;
281
283{
284 u32 m_lbn;
286
288{
289 u8 m_cmdNum;
290 u8 m_gap1;
291 u16 m_inBuffSize;
292 u8 m_inBuff[16];
294
296{
297 u32 m_lbn;
298 u32 m_sectors;
299 void *m_buf;
300 sceCdRMode m_mode;
301 u8 m_unused[4];
302 uiptr m_eedest;
304
306{
307 sceCdRChain m_readChain[65];
308 sceCdRMode m_mode;
309 uiptr m_eedest;
311
322
324{
325 int m_retres;
326 int m_isdvd;
328
330{
331 int m_retres;
332 u8 m_diskid[5];
334
336{
337 int m_retres;
338 u32 m_status;
340
342{
343 int m_retres;
348
349#endif /* _LIBCDVD_RPC_H_ */