libretro: Refactor reading controller type
[pcsx_rearmed.git] / plugins / dfsound / spu_c64x.h
CommitLineData
de4a0279 1#define COMPONENT_NAME "pcsxr_spu"
2
3enum {
4 CCMD_INIT = 0x101,
5 CCMD_DOIT = 0x102,
6};
5514a050 7
8struct 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))];
05c7cec7 14 struct spu_in {
15 // these are not to be modified by DSP
16 SPUCHAN s_chan[24 + 1];
17 REVERBInfo rvb;
0c1151fe 18 SPUConfig spu_config;
05c7cec7 19 } in;
20 int _pad2[128/4 - ((sizeof(struct spu_in) / 4) & (128/4 - 1))];
5514a050 21 struct spu_worker worker;
de4a0279 22 // init/debug
23 int sizeof_region_mem;
24 int offsetof_s_chan1;
3bd31caf 25 int offsetof_spos_3_20;
5514a050 26};
27
3bd31caf 28#define ACTIVE_CNT 3