47#define SBDSP_STATUS 0xC
48#define DSP_DATA_AVAIL 0xE
49#define DSP_DATA_AVL16 0xF
51#define SB_MIX_ADDR 0x4
52#define SB_MIX_DATA 0x5
54#define OPL3_LEFT (io_base + 0x0)
55#define OPL3_RIGHT (io_base + 0x2)
56#define OPL3_BOTH (io_base + 0x8)
68#define DSP_CMD_DAC8 0x14
69#define DSP_CMD_ADC8 0x24
72#define DSP_CMD_DAC8_AUTO 0x1c
73#define DSP_CMD_ADC8_AUTO 0x2c
75#define DSP_CMD_HSSIZE 0x48
76#define DSP_CMD_HSDAC_AUTO 0x90
77#define DSP_CMD_HSADC_AUTO 0x98
82#define DSP_CMD_DMAMODE(stereo, bit16) (0xA0 | (stereo ? 8:0) | (bit16 ? 4:0))
84#define DSP_CMD_DAC2 0x16
85#define DSP_CMD_DAC2S 0x17
87#define DSP_CMD_DAC2S_AUTO 0x1f
90#define DSP_CMD_O16 0xb0
91#define DSP_CMD_I16 0xb8
92#define DSP_CMD_O8 0xc0
93#define DSP_CMD_I8 0xc8
95#define DSP_MODE_U8MONO 0x00
96#define DSP_MODE_U8STEREO 0x20
97#define DSP_MODE_S16MONO 0x10
98#define DSP_MODE_S16STEREO 0x30
100#define DSP_CMD_SPKON 0xD1
101#define DSP_CMD_SPKOFF 0xD3
102#define DSP_CMD_SPKR(on) (0xD1 | (on ? 0:2))
104#define DSP_CMD_DMAPAUSE_8 0xD0
105#define DSP_CMD_DMAPAUSE_16 0xD5
106#define DSP_CMD_DMAEXIT_8 0xDA
107#define DSP_CMD_DMAEXIT_16 0xD9
108#define DSP_CMD_TCONST 0x40
109#define DSP_CMD_HSDAC 0x91
110#define DSP_CMD_HSADC 0x99
112#define DSP_CMD_GETVER 0xE1
113#define DSP_CMD_GETID 0xE7
115#define DSP_CMD_OUT16 0x41
116#define DSP_CMD_IN16 0x42
118#define DSP_CMD_FA 0xFA
119#define DSP_CMD_FB 0xFB
130#define DSP_DMA16 0xb0
132# define DSP_F16_DAC 0x00
133# define DSP_F16_ADC 0x08
134# define DSP_F16_AUTO 0x04
135# define DSP_F16_FIFO_ON 0x02
140#define DSP_F16_STEREO 0x20
141#define DSP_F16_SIGNED 0x10
144#define IMODE_OUTPUT PCM_ENABLE_OUTPUT
145#define IMODE_INPUT PCM_ENABLE_INPUT
155#define BD_F_HISPEED 0x0001
158#define BD_F_JAZZ16 0x0002
159#define BD_F_JAZZ16_2 0x0004
162#define BD_F_DUP_MIDI 0x0008
164#define BD_F_MIX_MASK 0x0070
165#define BD_F_MIX_CT1335 0x0010
166#define BD_F_MIX_CT1345 0x0020
167#define BD_F_MIX_CT1745 0x0030
169#define BD_F_SB16 0x0100
170#define BD_F_SB16X 0x0200
172#define BD_F_MIDIBUSY 0x0400
174#define BD_F_ESS 0x0800
175#define BD_F_DMARUN 0x2000
176#define BD_F_DMARUN2 0x4000
184#define RECORD_SRC 0x0C
185#define IN_FILTER 0x0C
186#define OUT_FILTER 0x0E
187#define MASTER_VOL 0x22
198#define COVOX_VOL 0x42
199#define TREBLE_LVL 0x44
202#define FREQ_HI (1 << 3)
205#define FILT_OFF (1 << 5)
208#define STEREO_DAC 0x02
213#define SB16_IMASK_L 0x3d
214#define SB16_IMASK_R 0x3e
215#define SB16_OMASK 0x3c
void sbc_unlock(struct sbc_softc *)
void sbc_lock(struct sbc_softc *)
void sbc_lockassert(struct sbc_softc *)