mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / ee_core / include / iopmgr.h
blobab4aa951673e2326318d825383bf3b69c6f675c0
1 /*
2 Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
3 Copyright 2006-2008 Polo
4 Licenced under Academic Free License version 3.0
5 Review OpenUsbLd README & LICENSE files for further details.
7 Some parts of the code are taken from HD Project by Polo
8 */
10 #ifndef IOPMGR_H
11 #define IOPMGR_H
13 typedef
14 struct
16 u32 psize;
17 u32 daddr;
18 int fcode;
19 u32 unknown;
21 } SifCmdHdr;
23 typedef
24 struct
26 SifCmdHdr chdr;
27 int size;
28 int flag;
29 char arg[0x50];
30 } SifCmdResetData __attribute__((aligned(16)));
32 typedef
33 struct romdir
35 char fileName[10];
36 unsigned short extinfo_size;
37 int fileSize;
38 } romdir_t;
40 int New_Reset_Iop(const char *arg, int flag);
41 int Reset_Iop(const char *arg, int flag);
42 int Sync_Iop(void);
44 #endif /* IOPMGR */