| 1 | #define COMPONENT_NAME "pcsxr_spu" |
| 2 | |
| 3 | enum { |
| 4 | CCMD_INIT = 0x101, |
| 5 | CCMD_DOIT = 0x102, |
| 6 | }; |
| 7 | |
| 8 | struct region_mem { |
| 9 | unsigned char spu_ram[512 * 1024]; |
| 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 |
| 13 | int _pad1[128/4 - ((SB_SIZE * 24) & (128/4 - 1))]; |
| 14 | struct spu_in { |
| 15 | // these are not to be modified by DSP |
| 16 | SPUCHAN s_chan[24 + 1]; |
| 17 | REVERBInfo rvb; |
| 18 | SPUConfig spu_config; |
| 19 | } in; |
| 20 | int _pad2[128/4 - ((sizeof(struct spu_in) / 4) & (128/4 - 1))]; |
| 21 | struct spu_worker worker; |
| 22 | // init/debug |
| 23 | int sizeof_region_mem; |
| 24 | int offsetof_s_chan1; |
| 25 | int offsetof_spos_3_20; |
| 26 | }; |
| 27 | |
| 28 | #define ACTIVE_CNT 3 |