aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/spu_c64x.h
blob: 7c4d5659b34a8d453da927439cec5fdfa5ccf31c (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
#define COMPONENT_NAME "pcsxr_spu"

enum {
 CCMD_INIT = 0x101,
 CCMD_DOIT = 0x102,
};

struct region_mem {
 unsigned char spu_ram[512 * 1024];
 int SB[SB_SIZE * 24];
 // careful not to lose ARM writes by DSP overwriting
 // with old data when it's writing out neighbor cachelines
 int _pad1[128/4 - ((SB_SIZE * 24) & (128/4 - 1))];
 struct spu_in {
  // these are not to be modified by DSP
  SPUCHAN s_chan[24 + 1];
  REVERBInfo rvb;
  SPUConfig spu_config;
 } in;
 int _pad2[128/4 - ((sizeof(struct spu_in) / 4) & (128/4 - 1))];
 struct spu_worker worker;
 // init/debug
 int sizeof_region_mem;
 int offsetof_s_chan1;
 int offsetof_spos_3_20;
};

#define ACTIVE_CNT 3