Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / mcemu / mcemu_var.c
blob085ee83afa5109413743d3a73fecbbef8653efd5
1 /*
2 Copyright 2006-2008, Romz
3 Copyright 2010, Polo
4 Licenced under Academic Free License version 3.0
5 Review OpenUsbLd README & LICENSE files for further details.
6 */
8 #include "mcemu.h"
10 /* Module Description */
11 IRX_ID(MODNAME, 1, 7);
13 const u8 xortable[256]= { /* Table for the ECC calculation */
14 0x00, 0x87, 0x96, 0x11, 0xA5, 0x22, 0x33, 0xB4,
15 0xB4, 0x33, 0x22, 0xA5, 0x11, 0x96, 0x87, 0x00,
16 0xC3, 0x44, 0x55, 0xD2, 0x66, 0xE1, 0xF0, 0x77,
17 0x77, 0xF0, 0xE1, 0x66, 0xD2, 0x55, 0x44, 0xC3,
18 0xD2, 0x55, 0x44, 0xC3, 0x77, 0xF0, 0xE1, 0x66,
19 0x66, 0xE1, 0xF0, 0x77, 0xC3, 0x44, 0x55, 0xD2,
20 0x11, 0x96, 0x87, 0x00, 0xB4, 0x33, 0x22, 0xA5,
21 0xA5, 0x22, 0x33, 0xB4, 0x00, 0x87, 0x96, 0x11,
22 0xE1, 0x66, 0x77, 0xF0, 0x44, 0xC3, 0xD2, 0x55,
23 0x55, 0xD2, 0xC3, 0x44, 0xF0, 0x77, 0x66, 0xE1,
24 0x22, 0xA5, 0xB4, 0x33, 0x87, 0x00, 0x11, 0x96,
25 0x96, 0x11, 0x00, 0x87, 0x33, 0xB4, 0xA5, 0x22,
26 0x33, 0xB4, 0xA5, 0x22, 0x96, 0x11, 0x00, 0x87,
27 0x87, 0x00, 0x11, 0x96, 0x22, 0xA5, 0xB4, 0x33,
28 0xF0, 0x77, 0x66, 0xE1, 0x55, 0xD2, 0xC3, 0x44,
29 0x44, 0xC3, 0xD2, 0x55, 0xE1, 0x66, 0x77, 0xF0,
30 0xF0, 0x77, 0x66, 0xE1, 0x55, 0xD2, 0xC3, 0x44,
31 0x44, 0xC3, 0xD2, 0x55, 0xE1, 0x66, 0x77, 0xF0,
32 0x33, 0xB4, 0xA5, 0x22, 0x96, 0x11, 0x00, 0x87,
33 0x87, 0x00, 0x11, 0x96, 0x22, 0xA5, 0xB4, 0x33,
34 0x22, 0xA5, 0xB4, 0x33, 0x87, 0x00, 0x11, 0x96,
35 0x96, 0x11, 0x00, 0x87, 0x33, 0xB4, 0xA5, 0x22,
36 0xE1, 0x66, 0x77, 0xF0, 0x44, 0xC3, 0xD2, 0x55,
37 0x55, 0xD2, 0xC3, 0x44, 0xF0, 0x77, 0x66, 0xE1,
38 0x11, 0x96, 0x87, 0x00, 0xB4, 0x33, 0x22, 0xA5,
39 0xA5, 0x22, 0x33, 0xB4, 0x00, 0x87, 0x96, 0x11,
40 0xD2, 0x55, 0x44, 0xC3, 0x77, 0xF0, 0xE1, 0x66,
41 0x66, 0xE1, 0xF0, 0x77, 0xC3, 0x44, 0x55, 0xD2,
42 0xC3, 0x44, 0x55, 0xD2, 0x66, 0xE1, 0xF0, 0x77,
43 0x77, 0xF0, 0xE1, 0x66, 0xD2, 0x55, 0x44, 0xC3,
44 0x00, 0x87, 0x96, 0x11, 0xA5, 0x22, 0x33, 0xB4,
45 0xB4, 0x33, 0x22, 0xA5, 0x11, 0x96, 0x87, 0x00,
48 PtrSecrAuthCard pSecrAuthCard[MCEMU_PORTS] = {DummySecrAuthCard, DummySecrAuthCard}; /* Pointer to SecrAuthCard() handler */
49 McImageSpec vmcSpec[MCEMU_PORTS] = {{0xC0DEFAC0}, {0xC0DEFAC1}}; /* Virtual Memory Card Informations */
50 MemoryCard memcards[MCEMU_PORTS] = {{0}, {0}}; /* Memory Card descriptors */
51 void *pFastBuf = NULL; /* Pointer to Fast I/O buffer */
53 PtrRegisterLibraryEntires pRegisterLibraryEntires; /* Pointer to RegisterLibraryEntires routine */
54 Sio2McProc pSio2man25, pSio2man51; /* Pointers to SIO2MAN routines */
55 void (*pSio2man67)();
57 u8 mceccbuf[MCEMU_PORTS][0x20]; /* ECC buffers */
58 u8 mcdatabuf[0x200]; /* Data buffer (Same buffer for both cards) */
60 SifRpcClientData_t *pClientData; /* Pointer to RPC client data for libmc calls (FastIO support) */
61 void *pFastRpcBuf; /* Pointer to buffer for RPC data for libmc calls (FastIO support) */
63 PtrMcIo pMcRead, pMcWrite; /* Pointers to MCMAN's file I/O functions */
64 //------------------------------
65 //end of data definitions
66 //---------------------------------------------------------------------------
67 // End of file: mcsiovar.c
68 //---------------------------------------------------------------------------