summaryrefslogtreecommitdiff
path: root/include/rvl/VF/pf_volume.h
blob: a043a9825edc418476ffec37906627dcebcd457f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef RVL_SDK_VF_PF_VOLUME_H
#define RVL_SDK_VF_PF_VOLUME_H
#include "common.h"
#include "rvl/VF/pf_code.h"

#ifdef __cplusplus
extern "C" {
#endif

// TODO: 0x37b91e
typedef struct PF_VOLUME {
    u8 dummy[0x1898];
} PF_VOLUME;

typedef struct PF_CUR_VOLUME {
    u32 stat;         // at 0x0
    s32 context_id;   // at 0x4
    PF_VOLUME *p_vol; // at 0x8
} PF_CUR_VOLUME;

typedef struct PF_CONTEXT {
    u32 stat;       // at 0x0
    s32 context_id; // at 0x4
} PF_CONTEXT;

typedef struct PF_VOLUME_SET {
    PF_CUR_VOLUME current_vol[1]; // at 0x0
    s32 num_attached_drives;      // at 0xC
    s32 num_mounted_volumes;      // at 0x10
    u32 config;                   // at 0x14
    void *param;                  // at 0x18
    s32 last_error;               // at 0x1C
    s32 last_driver_error;        // at 0x20
    PF_CHARCODE codeset;          // at 0x24
    u32 setting;                  // at 0x3C
    PF_CONTEXT context[1];        // at 0x40
    PF_VOLUME volumes[26];        // at 0x48
} PF_VOLUME_SET;

extern PF_VOLUME_SET VFipf_vol_set;

#ifdef __cplusplus
}
#endif
#endif