mirror of https://github.com/xemu-project/xemu.git
mcpx: Move voice_list_regs to apu.c
This commit is contained in:
parent
2d73e8aafe
commit
312bd94573
|
@ -154,6 +154,14 @@ typedef struct MCPXAPUState {
|
||||||
int16_t apu_fifo_output[256][2]; // 1 EP frame (0x400 bytes), 8 buffered
|
int16_t apu_fifo_output[256][2]; // 1 EP frame (0x400 bytes), 8 buffered
|
||||||
} MCPXAPUState;
|
} MCPXAPUState;
|
||||||
|
|
||||||
|
static const struct {
|
||||||
|
hwaddr top, current, next;
|
||||||
|
} voice_list_regs[] = {
|
||||||
|
{ NV_PAPU_TVL2D, NV_PAPU_CVL2D, NV_PAPU_NVL2D }, // 2D
|
||||||
|
{ NV_PAPU_TVL3D, NV_PAPU_CVL3D, NV_PAPU_NVL3D }, // 3D
|
||||||
|
{ NV_PAPU_TVLMP, NV_PAPU_CVLMP, NV_PAPU_NVLMP }, // MP
|
||||||
|
};
|
||||||
|
|
||||||
static MCPXAPUState *g_state; // Used via debug handlers
|
static MCPXAPUState *g_state; // Used via debug handlers
|
||||||
static struct McpxApuDebug g_dbg, g_dbg_cache;
|
static struct McpxApuDebug g_dbg, g_dbg_cache;
|
||||||
static int g_dbg_voice_monitor = -1;
|
static int g_dbg_voice_monitor = -1;
|
||||||
|
|
|
@ -124,15 +124,6 @@
|
||||||
#define NV_PAPU_EPPMEM 0x0000A000
|
#define NV_PAPU_EPPMEM 0x0000A000
|
||||||
#define NV_PAPU_EPRST 0x0000FFFC
|
#define NV_PAPU_EPRST 0x0000FFFC
|
||||||
|
|
||||||
static const struct {
|
|
||||||
hwaddr top, current, next;
|
|
||||||
} voice_list_regs[] = {
|
|
||||||
{NV_PAPU_TVL2D, NV_PAPU_CVL2D, NV_PAPU_NVL2D}, //2D
|
|
||||||
{NV_PAPU_TVL3D, NV_PAPU_CVL3D, NV_PAPU_NVL3D}, //3D
|
|
||||||
{NV_PAPU_TVLMP, NV_PAPU_CVLMP, NV_PAPU_NVLMP}, //MP
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* audio processor object / front-end messages */
|
/* audio processor object / front-end messages */
|
||||||
#define NV1BA0_PIO_FREE 0x00000010
|
#define NV1BA0_PIO_FREE 0x00000010
|
||||||
#define NV1BA0_PIO_SET_ANTECEDENT_VOICE 0x00000120
|
#define NV1BA0_PIO_SET_ANTECEDENT_VOICE 0x00000120
|
||||||
|
|
Loading…
Reference in New Issue