Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / platform / pc32 / isa / sound / local.h
1 /*
2  * local.h
3  *
4  * This file was generated by configure. But then HAND-EDITED. It will
5  * probably disappear in future revisions once the configuration process
6  * will become more like that of standard bsd code.
7  * lr 970714
8  *
9  */
10
11 /* build hex2hex /tmp/foo.x trix_boot.h trix_boot */
12
13 /*
14  * make everything conditioned on NSND>0 so as to detect errors
15  * because of missing "controller snd0" statement
16  */
17 #define ALLOW_BUFFER_MAPPING 1
18
19 #include "snd.h"
20 #if NSND > 0
21
22 #include "opt_sound.h"
23
24 #define CONFIGURE_SOUNDCARD
25
26 #define CONFIG_SEQUENCER
27
28 #include "gus.h"
29 #if NGUS != 0 && !defined(CONFIG_GUS)
30 #define CONFIG_GUS
31 #define CONFIG_GUSMAX
32 #endif
33
34 #include "sscape.h"
35 #if NSSCAPE != 0 && !defined(CONFIG_SSCAPE)
36 #define CONFIG_SSCAPE
37 #endif
38
39 #include "trix.h"
40 #if NTRIX > 0
41 #define INCLUDE_TRIX_BOOT
42 #define CONFIG_TRIX     /* can use NTRIX > 0 instead */
43 #define CONFIG_YM3812
44 #endif
45
46 #if defined(CONFIG_GUSMAX) || ( NSSCAPE > 0 ) || ( NTRIX > 0 )
47 #define CONFIG_AD1848
48 #endif
49
50 #if  defined(CONFIG_SEQUENCER) && (NTRIX == 0)
51 #define CONFIG_MIDI
52 #endif
53
54 #include "sb.h"
55 #if NSB > 0
56 #define CONFIG_SB
57 #endif
58
59 #include "mss.h"
60 #if NMSS != 0
61 #define CONFIG_AD1848
62 #define CONFIG_MSS
63 #undef  CONFIG_CS4232
64 #endif
65
66 #include "css.h"
67 #if NCSS != 0
68 #define CONFIG_AD1848
69 #undef  CONFIG_MSS
70 #define CONFIG_CS4232
71 #endif
72
73 #include "sbxvi.h"
74 #if NSBXVI != 0 && !defined(CONFIG_SB16)
75 #define CONFIG_SB16
76 #define CONFIG_SBPRO                /*  FIXME: Also needs to be a sep option */
77 #endif
78
79 #include "sbmidi.h"
80 #if NSBMIDI != 0 && !defined(CONFIG_SB16MIDI)
81 #define CONFIG_SB16MIDI
82 #endif
83
84 #include "awe.h"
85 #if NAWE != 0 && !defined(CONFIG_AWE32)
86 #define CONFIG_AWE32
87 #endif
88
89 #include "pas.h"
90 #if NPAS != 0 && !defined(CONFIG_PAS)
91 #define CONFIG_PAS
92 #endif
93
94 #include "mpu.h"
95 #if NMPU != 0 && !defined(CONFIG_MPU401)
96 #define CONFIG_MPU401
97 #endif
98  
99 #include "opl.h"
100 #if NOPL != 0 && !defined(CONFIG_YM3812)
101 #define CONFIG_YM3812
102 #endif
103
104 #ifdef PC98
105 #include "nss.h"
106 #if NNSS != 0
107 #define CONFIG_NSS
108 #endif
109 #endif
110
111 #define ALLOW_POLL
112
113 /* #undef  CONFIG_PAS */
114 /* #undef  CONFIG_ADLIB */
115 /* #define CONFIG_GUS */
116 /* #undef  CONFIG_MPU401 */
117 #undef  CONFIG_UART6850
118 #undef  CONFIG_PSS
119 #undef  CONFIG_GUS16
120 /* #undef  CONFIG_MSS */
121 /* #undef  CONFIG_SSCAPE */
122 #undef  CONFIG_MAD16
123 /* #undef  CONFIG_CS4232 */
124 #undef  CONFIG_MAUI
125 #undef  CONFIG_PNP
126 /* #undef  CONFIG_SBPRO */
127 /* #undef  CONFIG_SB16  */
128 #undef  CONFIG_AEDSP16
129 #define CONFIG_AUDIO    /* obvious ? */
130
131 #define CONFIG_MPU_EMU
132
133 #ifdef PC98
134 #define DSP_BUFFSIZE 61440
135 #else
136 #define DSP_BUFFSIZE 32768*2
137 #endif
138 /* #define SELECTED_SOUND_OPTIONS       0x0188090a */
139
140 #ifndef TRIX_SB_BASE
141 #define TRIX_SB_BASE 0x220
142 #endif
143
144 #ifndef TRIX_SB_IRQ
145 #define TRIX_SB_IRQ 7
146 #endif
147
148 #ifndef TRIX_SB_DMA
149 #define TRIX_SB_DMA 1
150 #endif
151
152 #ifndef TRIX_BASE
153 #define TRIX_BASE       0x530
154 #endif
155
156 #ifndef TRIX_IRQ
157 #define TRIX_IRQ        9
158 #endif
159
160 #ifndef TRIX_DMA
161 #define TRIX_DMA        3
162 #endif
163
164 #ifndef TRIX_DMA2
165 #define TRIX_DMA2       1
166 #endif
167
168 #ifndef GUS_BASE
169 #define GUS_BASE        0x220
170 #endif
171
172 #ifndef GUS_IRQ
173 #define GUS_IRQ         12
174 #endif
175
176 #ifndef GUS_MIDI_IRQ
177 #define GUS_MIDI_IRQ    GUS_IRQ
178 #endif
179
180 #ifndef GUS_DMA
181 #define GUS_DMA         4
182 #endif
183
184 #ifndef GUS_DMA2
185 #define GUS_DMA2        4
186 #endif
187
188 #define SOUND_CONFIG_DATE "Wed Aug  6 22:58:35 PDT 1997"
189 #define SOUND_CONFIG_BY "Amancio Hasty"
190 #define SOUND_CONFIG_HOST "rah"
191 #define SOUND_CONFIG_DOMAIN "star-gate.com"
192
193 #else   /* NSND = 0 */
194 #undef CONFIGURE_SOUNDCARD
195 #endif