Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / vmc / genvmc / genvmc.h
blob4f26435e849d0412424b4746e5b317354942768b
1 /*
2 Copyright 2010, jimmikaelkael
3 Licenced under Academic Free License version 3.0
4 Review Open PS2 Loader README & LICENSE files for further details.
5 */
7 #ifndef __GENVMC_H__
8 #define __GENVMC_H__
10 // DEVCTL commands
11 #define GENVMC_DEVCTL_CREATE_VMC 0xC0DE0001
12 #define GENVMC_DEVCTL_ABORT 0xC0DE0002
13 #define GENVMC_DEVCTL_STATUS 0xC0DE0003
15 #define GENVMC_STAT_AVAIL 0x00
16 #define GENVMC_STAT_BUSY 0x01
18 // helpers for DEVCTL commands
19 typedef struct { // size = 1036
20 char VMC_filename[1024];
21 int VMC_size_mb;
22 int VMC_blocksize;
23 int VMC_thread_priority;
24 int VMC_card_slot; // 0=slot 1, 1=slot 2, anything else=blank
25 } createVMCparam_t;
27 typedef struct { // size = 76
28 int VMC_status; // 0=available, 1=busy
29 int VMC_error;
30 int VMC_progress;
31 char VMC_msg[64];
32 } statusVMCparam_t;
34 #endif