Go to the documentation of this file.
8 #define AD_DS_WSMC 0x00
9 #define AD_DS_WSMC_SYEN 0x0004
10 #define AD_DS_WSMC_SYRQ 0x0030
11 #define AD_DS_WSMC_WA16 0x0100
12 #define AD_DS_WSMC_WAST 0x0200
13 #define AD_DS_WSMC_WAEN 0x0400
14 #define AD_DS_WSMC_WARQ 0x3000
16 #define AD_DS_RAMC 0x02
17 #define AD_DS_RAMC_AD16 0x0001
18 #define AD_DS_RAMC_ADST 0x0002
19 #define AD_DS_RAMC_ADEN 0x0004
20 #define AD_DS_RAMC_ACRQ 0x0030
21 #define AD_DS_RAMC_REEN 0x0400
22 #define AD_DS_RAMC_RERQ 0x3000
24 #define AD_DS_WADA 0x04
25 #define AD_DS_WADA_RWAM 0x0080
26 #define AD_DS_WADA_RWAA 0x001f
27 #define AD_DS_WADA_LWAM 0x8000
28 #define AD_DS_WADA_LWAA 0x3e00
30 #define AD_DS_SYDA 0x06
31 #define AD_DS_SYDA_RSYM 0x0080
32 #define AD_DS_SYDA_RSYA 0x001f
33 #define AD_DS_SYDA_LSYM 0x8000
34 #define AD_DS_SYDA_LSYA 0x3e00
36 #define AD_DS_WAS 0x08
37 #define AD_DS_WAS_WAS 0xffff
39 #define AD_DS_RES 0x0a
40 #define AD_DS_RES_RES 0xffff
42 #define AD_DS_CCS 0x0c
43 #define AD_DS_CCS_ADO 0x0001
44 #define AD_DS_CCS_REO 0x0002
45 #define AD_DS_CCS_SYU 0x0004
46 #define AD_DS_CCS_WAU 0x0008
48 #define AD_DS_CCS_XTD 0x0100
49 #define AD_DS_CCS_PDALL 0x0400
50 #define AD_DS_CCS_CLKEN 0x8000
52 #define AD_DMA_RESBA 0x40
53 #define AD_DMA_RESCA 0x44
54 #define AD_DMA_RESBC 0x48
55 #define AD_DMA_RESCC 0x4c
57 #define AD_DMA_ADCBA 0x50
58 #define AD_DMA_ADCCA 0x54
59 #define AD_DMA_ADCBC 0x58
60 #define AD_DMA_ADCCC 0x5c
62 #define AD_DMA_SYNBA 0x60
63 #define AD_DMA_SYNCA 0x64
64 #define AD_DMA_SYNBC 0x68
65 #define AD_DMA_SYNCC 0x6c
67 #define AD_DMA_WAVBA 0x70
68 #define AD_DMA_WAVCA 0x74
69 #define AD_DMA_WAVBC 0x78
70 #define AD_DMA_WAVCC 0x7c
72 #define AD_DMA_RESIC 0x80
73 #define AD_DMA_RESIB 0x84
75 #define AD_DMA_ADCIC 0x88
76 #define AD_DMA_ADCIB 0x8c
78 #define AD_DMA_SYNIC 0x90
79 #define AD_DMA_SYNIB 0x94
81 #define AD_DMA_WAVIC 0x98
82 #define AD_DMA_WAVIB 0x9c
84 #define AD_DMA_ICC 0xffffff
85 #define AD_DMA_IBC 0xffffff
89 #define AD_DMA_ADC 0xa8
90 #define AD_DMA_SYNTH 0xb0
91 #define AD_DMA_WAV 0xb8
92 #define AD_DMA_RES 0xa0
94 #define AD_DMA_SGDE 0x0001
95 #define AD_DMA_LOOP 0x0002
96 #define AD_DMA_IM 0x000c
97 #define AD_DMA_IM_DIS (~AD_DMA_IM)
98 #define AD_DMA_IM_CNT 0x0004
99 #define AD_DMA_IM_SGD 0x0008
100 #define AD_DMA_IM_EOL 0x000c
101 #define AD_DMA_SGDS 0x0030
102 #define AD_DMA_SFLG 0x0040
103 #define AD_DMA_EOL 0x0080
106 #define AD_DMA_DISR 0xc0
107 #define AD_DMA_DISR_RESI 0x000001
108 #define AD_DMA_DISR_ADCI 0x000002
109 #define AD_DMA_DISR_SYNI 0x000004
110 #define AD_DMA_DISR_WAVI 0x000008
112 #define AD_DMA_DISR_SEPS 0x000040
114 #define AD_DMA_DISR_PMAI 0x004000
115 #define AD_DMA_DISR_PTAI 0x008000
116 #define AD_DMA_DISR_PTAE 0x010000
117 #define AD_DMA_DISR_PMAE 0x020000
121 #define AD_INTR_MASK (AD_DMA_DISR_RESI|AD_DMA_DISR_ADCI| \
122 AD_DMA_DISR_WAVI|AD_DMA_DISR_SYNI| \
123 AD_DMA_DISR_PMAI|AD_DMA_DISR_PTAI)
125 #define AD_DMA_CHSS 0xc4
126 #define AD_DMA_CHSS_RESS 0x000001
127 #define AD_DMA_CHSS_ADCS 0x000002
128 #define AD_DMA_CHSS_SYNS 0x000004
129 #define AD_DMA_CHSS_WAVS 0x000008
131 #define AD_GPIO_IPC 0xc8
132 #define AD_GPIO_OP 0xca
133 #define AD_GPIO_IP 0xcc
135 #define AD_AC97_BASE 0x100
137 #define AD_AC97_RESET 0x100
139 #define AD_AC97_PWR_CTL 0x126
140 #define AD_AC97_PWR_ADC 0x0001
141 #define AD_AC97_PWR_DAC 0x0002
142 #define AD_AC97_PWR_PR0 0x0100
143 #define AD_AC97_PWR_PR1 0x0200
145 #define AD_MISC_CTL 0x176
146 #define AD_MISC_CTL_DACZ 0x8000
147 #define AD_MISC_CTL_ARSR 0x0001
148 #define AD_MISC_CTL_ALSR 0x0100
149 #define AD_MISC_CTL_DLSR 0x0400
150 #define AD_MISC_CTL_DRSR 0x0004
152 #define AD_AC97_SR0 0x178
153 #define AD_AC97_SR0_48K 0xbb80
154 #define AD_AC97_SR1 0x17a
156 #define AD_AC97_ACIC 0x180
157 #define AD_AC97_ACIC_ACIE 0x0001
158 #define AD_AC97_ACIC_ACRD 0x0002
159 #define AD_AC97_ACIC_ASOE 0x0004
160 #define AD_AC97_ACIC_VSRM 0x0008
161 #define AD_AC97_ACIC_FSDH 0x0100
162 #define AD_AC97_ACIC_FSYH 0x0200
163 #define AD_AC97_ACIC_ACRDY 0x8000
167 #define AD_DS_MEMSIZE 512
168 #define AD_OPL_MEMSIZE 16
169 #define AD_MIDI_MEMSIZE 16
171 #define AD_WAV_STATE 0
172 #define AD_ADC_STATE 1
173 #define AD_MAX_STATES 2
175 #define AD_CHAN_WAV 0x0001
176 #define AD_CHAN_ADC 0x0002
177 #define AD_CHAN_RES 0x0004
178 #define AD_CHAN_SYN 0x0008
183 #define BUFFER_BYTES_MAX (256 * 1024)
184 #define PERIOD_BYTES_MIN 32
185 #define PERIOD_BYTES_MAX (BUFFER_BYTES_MAX / 2)
186 #define PERIODS_MIN 2
187 #define PERIODS_MAX (BUFFER_BYTES_MAX / PERIOD_BYTES_MIN)