mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / vmc / mcman / sio2man_imports.h
blob67e1c67908e771ceee0081c5c334ba50ad775bb3
1 #ifndef __SIO2MAN_IMPORTS_H__
2 #define __SIO2MAN_IMPORTS_H__
4 #include "types.h"
5 #include "irx.h"
7 #define SIO2MAN 0
8 #define XSIO2MAN 1
10 struct _sio2_dma_arg { // size 12
11 void *addr;
12 int size;
13 int count;
16 typedef struct {
17 u32 stat6c;
18 u32 port_ctrl1[4];
19 u32 port_ctrl2[4];
20 u32 stat70;
21 u32 regdata[16];
22 u32 stat74;
23 u32 in_size;
24 u32 out_size;
25 u8 *in;
26 u8 *out;
27 struct _sio2_dma_arg in_dma;
28 struct _sio2_dma_arg out_dma;
29 } sio2_transfer_data_t;
32 // sio2man exports
33 /* 24 */ void (*sio2_mc_transfer_init)(void);
34 /* 25 */ int (*sio2_transfer)(sio2_transfer_data_t *sio2data);
36 // xsio2man exports
37 /* 26 */ void (*sio2_transfer_reset)(void);
38 /* 55 */ int (*sio2_func1)(void *arg);
40 #endif