kernel tree reorganization stage 1: Major cvs repository work (not logged as
[dragonfly.git] / sys / i386 / 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  * $DragonFly: src/sys/i386/isa/sound/Attic/local.h,v 1.2 2003/08/07 21:17:23 dillon Exp $
10  */
11
12 /* build hex2hex /tmp/foo.x trix_boot.h trix_boot */
13
14 /*
15  * make everything conditioned on NSND>0 so as to detect errors
16  * because of missing "controller snd0" statement
17  */
18 #define ALLOW_BUFFER_MAPPING 1
19
20 #include "use_snd.h"
21 #if NSND > 0
22
23 #include "opt_sound.h"
24
25 #define CONFIGURE_SOUNDCARD
26
27 #define CONFIG_SEQUENCER
28
29 #include "use_gus.h"
30 #if NGUS != 0 && !defined(CONFIG_GUS)
31 #define CONFIG_GUS
32 #define CONFIG_GUSMAX
33 #endif
34
35 #include "use_sscape.h"
36 #if NSSCAPE != 0 && !defined(CONFIG_SSCAPE)
37 #define CONFIG_SSCAPE
38 #endif
39
40 #include "use_trix.h"
41 #if NTRIX > 0
42 #define INCLUDE_TRIX_BOOT
43 #define CONFIG_TRIX     /* can use NTRIX > 0 instead */
44 #define CONFIG_YM3812
45 #endif
46
47 #if defined(CONFIG_GUSMAX) || ( NSSCAPE > 0 ) || ( NTRIX > 0 )
48 #define CONFIG_AD1848
49 #endif
50
51 #if  defined(CONFIG_SEQUENCER) && (NTRIX == 0)
52 #define CONFIG_MIDI
53 #endif
54
55 #include "use_sb.h"
56 #if NSB > 0
57 #define CONFIG_SB
58 #endif
59
60 #include "use_mss.h"
61 #if NMSS != 0
62 #define CONFIG_AD1848
63 #define CONFIG_MSS
64 #undef  CONFIG_CS4232
65 #endif
66
67 #include "use_css.h"
68 #if NCSS != 0
69 #define CONFIG_AD1848
70 #undef  CONFIG_MSS
71 #define CONFIG_CS4232
72 #endif
73
74 #include "use_sbxvi.h"
75 #if NSBXVI != 0 && !defined(CONFIG_SB16)
76 #define CONFIG_SB16
77 #define CONFIG_SBPRO                /*  FIXME: Also needs to be a sep option */
78 #endif
79
80 #include "use_sbmidi.h"
81 #if NSBMIDI != 0 && !defined(CONFIG_SB16MIDI)
82 #define CONFIG_SB16MIDI
83 #endif
84
85 #include "use_awe.h"
86 #if NAWE != 0 && !defined(CONFIG_AWE32)
87 #define CONFIG_AWE32
88 #endif
89
90 #include "use_pas.h"
91 #if NPAS != 0 && !defined(CONFIG_PAS)
92 #define CONFIG_PAS
93 #endif
94
95 #include "use_mpu.h"
96 #if NMPU != 0 && !defined(CONFIG_MPU401)
97 #define CONFIG_MPU401
98 #endif
99  
100 #include "use_opl.h"
101 #if NOPL != 0 && !defined(CONFIG_YM3812)
102 #define CONFIG_YM3812
103 #endif
104
105 #ifdef PC98
106 #include "use_nss.h"
107 #if NNSS != 0
108 #define CONFIG_NSS
109 #endif
110 #endif
111
112 #define ALLOW_POLL
113
114 /* #undef  CONFIG_PAS */
115 /* #undef  CONFIG_ADLIB */
116 /* #define CONFIG_GUS */
117 /* #undef  CONFIG_MPU401 */
118 #undef  CONFIG_UART6850
119 #undef  CONFIG_PSS
120 #undef  CONFIG_GUS16
121 /* #undef  CONFIG_MSS */
122 /* #undef  CONFIG_SSCAPE */
123 #undef  CONFIG_MAD16
124 /* #undef  CONFIG_CS4232 */
125 #undef  CONFIG_MAUI
126 #undef  CONFIG_PNP
127 /* #undef  CONFIG_SBPRO */
128 /* #undef  CONFIG_SB16  */
129 #undef  CONFIG_AEDSP16
130 #define CONFIG_AUDIO    /* obvious ? */
131
132 #define CONFIG_MPU_EMU
133
134 #ifdef PC98
135 #define DSP_BUFFSIZE 61440
136 #else
137 #define DSP_BUFFSIZE 32768*2
138 #endif
139 /* #define SELECTED_SOUND_OPTIONS       0x0188090a */
140
141 #ifndef TRIX_SB_BASE
142 #define TRIX_SB_BASE 0x220
143 #endif
144
145 #ifndef TRIX_SB_IRQ
146 #define TRIX_SB_IRQ 7
147 #endif
148
149 #ifndef TRIX_SB_DMA
150 #define TRIX_SB_DMA 1
151 #endif
152
153 #ifndef TRIX_BASE
154 #define TRIX_BASE       0x530
155 #endif
156
157 #ifndef TRIX_IRQ
158 #define TRIX_IRQ        9
159 #endif
160
161 #ifndef TRIX_DMA
162 #define TRIX_DMA        3
163 #endif
164
165 #ifndef TRIX_DMA2
166 #define TRIX_DMA2       1
167 #endif
168
169 #ifndef GUS_BASE
170 #define GUS_BASE        0x220
171 #endif
172
173 #ifndef GUS_IRQ
174 #define GUS_IRQ         12
175 #endif
176
177 #ifndef GUS_MIDI_IRQ
178 #define GUS_MIDI_IRQ    GUS_IRQ
179 #endif
180
181 #ifndef GUS_DMA
182 #define GUS_DMA         4
183 #endif
184
185 #ifndef GUS_DMA2
186 #define GUS_DMA2        4
187 #endif
188
189 #define SOUND_CONFIG_DATE "Wed Aug  6 22:58:35 PDT 1997"
190 #define SOUND_CONFIG_BY "Amancio Hasty"
191 #define SOUND_CONFIG_HOST "rah"
192 #define SOUND_CONFIG_DOMAIN "star-gate.com"
193
194 #else   /* NSND = 0 */
195 #undef CONFIGURE_SOUNDCARD
196 #endif