de4a0279 |
1 | #define COMPONENT_NAME "pcsxr_spu" |
2 | |
3 | enum { |
4 | CCMD_INIT = 0x101, |
5 | CCMD_DOIT = 0x102, |
6 | }; |
5514a050 |
7 | |
8 | struct region_mem { |
9 | unsigned char spu_ram[512 * 1024]; |
de4a0279 |
10 | int SB[SB_SIZE * 24]; |
11 | // careful not to lose ARM writes by DSP overwriting |
12 | // with old data when it's writing out neighbor cachelines |
3bd31caf |
13 | int _pad1[128/4 - ((SB_SIZE * 24) & (128/4 - 1))]; |
5514a050 |
14 | SPUCHAN s_chan[24 + 1]; |
de4a0279 |
15 | int _pad2[128/4 - ((sizeof(SPUCHAN) * 25 / 4) & (128/4 - 1))]; |
5514a050 |
16 | struct spu_worker worker; |
de4a0279 |
17 | SPUConfig spu_config; |
18 | // init/debug |
19 | int sizeof_region_mem; |
20 | int offsetof_s_chan1; |
3bd31caf |
21 | int offsetof_spos_3_20; |
5514a050 |
22 | }; |
23 | |
3bd31caf |
24 | #define ACTIVE_CNT 3 |