1 #define DSP_RESET (sbc_base + 0x6)
2 #define DSP_READ (sbc_base + 0xA)
3 #define DSP_WRITE (sbc_base + 0xC)
4 #define DSP_COMMAND (sbc_base + 0xC)
5 #define DSP_STATUS (sbc_base + 0xC)
6 #define DSP_DATA_AVAIL (sbc_base + 0xE)
7 #define DSP_DATA_AVL16 (sbc_base + 0xF)
8 #define MIXER_ADDR (sbc_base + 0x4)
9 #define MIXER_DATA (sbc_base + 0x5)
10 #define OPL3_LEFT (sbc_base + 0x0)
11 #define OPL3_RIGHT (sbc_base + 0x2)
12 #define OPL3_BOTH (sbc_base + 0x8)
13
14
15 #define DSP_CMD_SPKON 0xD1
16 #define DSP_CMD_SPKOFF 0xD3
17 #define DSP_CMD_DMAON 0xD0
18 #define DSP_CMD_DMAOFF 0xD4
19
20 #define IMODE_NONE 0
21 #define IMODE_OUTPUT 1
22 #define IMODE_INPUT 2
23 #define IMODE_INIT 3
24 #define IMODE_MIDI 4
25
26 #define NORMAL_MIDI 0
27 #define UART_MIDI 1
28