aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/spu_c64x.h
diff options
context:
space:
mode:
authorTwinaphex2015-01-25 22:49:32 +0100
committerTwinaphex2015-01-25 22:49:32 +0100
commitcebb70f24ab54693b12aaa27b85a52689e26e1ff (patch)
tree854c202544c75e486d4243b34366162f03f082eb /plugins/dfsound/spu_c64x.h
parentbe1294d017cba3f18cf66597f0cbed207fed26bf (diff)
parent4e9adec1930817da2031fd044dc74c0f454a0079 (diff)
downloadpcsx_rearmed-cebb70f24ab54693b12aaa27b85a52689e26e1ff.tar.gz
pcsx_rearmed-cebb70f24ab54693b12aaa27b85a52689e26e1ff.tar.bz2
pcsx_rearmed-cebb70f24ab54693b12aaa27b85a52689e26e1ff.zip
Merge pull request #12 from notaz/for_libretro
r21 merge
Diffstat (limited to 'plugins/dfsound/spu_c64x.h')
-rw-r--r--plugins/dfsound/spu_c64x.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/dfsound/spu_c64x.h b/plugins/dfsound/spu_c64x.h
new file mode 100644
index 0000000..8210e63
--- /dev/null
+++ b/plugins/dfsound/spu_c64x.h
@@ -0,0 +1,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;
+ } in;
+ int _pad2[128/4 - ((sizeof(struct spu_in) / 4) & (128/4 - 1))];
+ struct spu_worker worker;
+ SPUConfig spu_config;
+ // init/debug
+ int sizeof_region_mem;
+ int offsetof_s_chan1;
+ int offsetof_spos_3_20;
+};
+
+#define ACTIVE_CNT 3