spelling: s/appropiate/appropriate/
[linux-2.6] / sound / oss / msnd_classic.h
1 /*********************************************************************
2  *
3  * msnd_classic.h
4  *
5  * Turtle Beach MultiSound Sound Card Driver for Linux
6  *
7  * Some parts of this header file were derived from the Turtle Beach
8  * MultiSound Driver Development Kit.
9  *
10  * Copyright (C) 1998 Andrew Veliath
11  * Copyright (C) 1993 Turtle Beach Systems, Inc.
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  * 
27  * $Id: msnd_classic.h,v 1.10 1999/03/21 17:36:09 andrewtv Exp $
28  *
29  ********************************************************************/
30 #ifndef __MSND_CLASSIC_H
31 #define __MSND_CLASSIC_H
32
33 #include <linux/config.h>
34
35 #define DSP_NUMIO                               0x10
36
37 #define HP_MEMM                                 0x08
38
39 #define HP_BITM                                 0x0E
40 #define HP_WAIT                                 0x0D
41 #define HP_DSPR                                 0x0A
42 #define HP_PROR                                 0x0B
43 #define HP_BLKS                                 0x0C
44
45 #define HPPRORESET_OFF                          0
46 #define HPPRORESET_ON                           1
47
48 #define HPDSPRESET_OFF                          0
49 #define HPDSPRESET_ON                           1
50
51 #define HPBLKSEL_0                              0
52 #define HPBLKSEL_1                              1
53
54 #define HPWAITSTATE_0                           0
55 #define HPWAITSTATE_1                           1
56
57 #define HPBITMODE_16                            0
58 #define HPBITMODE_8                             1
59
60 #define HIDSP_INT_PLAY_UNDER                    0x00
61 #define HIDSP_INT_RECORD_OVER                   0x01
62 #define HIDSP_INPUT_CLIPPING                    0x02
63 #define HIDSP_MIDI_IN_OVER                      0x10
64 #define HIDSP_MIDI_OVERRUN_ERR  0x13
65
66 #define HDEXAR_CLEAR_PEAKS                      1
67 #define HDEXAR_IN_SET_POTS                      2
68 #define HDEXAR_AUX_SET_POTS                     3
69 #define HDEXAR_CAL_A_TO_D                       4
70 #define HDEXAR_RD_EXT_DSP_BITS                  5
71
72 #define TIME_PRO_RESET_DONE                     0x028A
73 #define TIME_PRO_SYSEX                          0x0040
74 #define TIME_PRO_RESET                          0x0032
75
76 #define AGND                                    0x01
77 #define SIGNAL                                  0x02
78
79 #define EXT_DSP_BIT_DCAL                        0x0001
80 #define EXT_DSP_BIT_MIDI_CON                    0x0002
81
82 #define BUFFSIZE                                0x8000
83 #define HOSTQ_SIZE                              0x40
84
85 #define SRAM_CNTL_START                         0x7F00
86 #define SMA_STRUCT_START                        0x7F40
87
88 #define DAP_BUFF_SIZE                           0x2400
89 #define DAR_BUFF_SIZE                           0x2000
90
91 #define DAPQ_STRUCT_SIZE                        0x10
92 #define DARQ_STRUCT_SIZE                        0x10
93 #define DAPQ_BUFF_SIZE                          (3 * 0x10)
94 #define DARQ_BUFF_SIZE                          (3 * 0x10)
95 #define MODQ_BUFF_SIZE                          0x400
96 #define MIDQ_BUFF_SIZE                          0x200
97 #define DSPQ_BUFF_SIZE                          0x40
98
99 #define DAPQ_DATA_BUFF                          0x6C00
100 #define DARQ_DATA_BUFF                          0x6C30
101 #define MODQ_DATA_BUFF                          0x6C60
102 #define MIDQ_DATA_BUFF                          0x7060
103 #define DSPQ_DATA_BUFF                          0x7260
104
105 #define DAPQ_OFFSET                             SRAM_CNTL_START
106 #define DARQ_OFFSET                             (SRAM_CNTL_START + 0x08)
107 #define MODQ_OFFSET                             (SRAM_CNTL_START + 0x10)
108 #define MIDQ_OFFSET                             (SRAM_CNTL_START + 0x18)
109 #define DSPQ_OFFSET                             (SRAM_CNTL_START + 0x20)
110
111 #define MOP_SYNTH                               0x10
112 #define MOP_EXTOUT                              0x32
113 #define MOP_EXTTHRU                             0x02
114 #define MOP_OUTMASK                             0x01
115
116 #define MIP_EXTIN                               0x01
117 #define MIP_SYNTH                               0x00
118 #define MIP_INMASK                              0x32
119
120 /* Classic SMA Common Data */
121 #define SMA_wCurrPlayBytes                      0x0000
122 #define SMA_wCurrRecordBytes                    0x0002
123 #define SMA_wCurrPlayVolLeft                    0x0004
124 #define SMA_wCurrPlayVolRight                   0x0006
125 #define SMA_wCurrInVolLeft                      0x0008
126 #define SMA_wCurrInVolRight                     0x000a
127 #define SMA_wUser_3                             0x000c
128 #define SMA_wUser_4                             0x000e
129 #define SMA_dwUser_5                            0x0010
130 #define SMA_dwUser_6                            0x0014
131 #define SMA_wUser_7                             0x0018
132 #define SMA_wReserved_A                         0x001a
133 #define SMA_wReserved_B                         0x001c
134 #define SMA_wReserved_C                         0x001e
135 #define SMA_wReserved_D                         0x0020
136 #define SMA_wReserved_E                         0x0022
137 #define SMA_wReserved_F                         0x0024
138 #define SMA_wReserved_G                         0x0026
139 #define SMA_wReserved_H                         0x0028
140 #define SMA_wCurrDSPStatusFlags                 0x002a
141 #define SMA_wCurrHostStatusFlags                0x002c
142 #define SMA_wCurrInputTagBits                   0x002e
143 #define SMA_wCurrLeftPeak                       0x0030
144 #define SMA_wCurrRightPeak                      0x0032
145 #define SMA_wExtDSPbits                         0x0034
146 #define SMA_bExtHostbits                        0x0036
147 #define SMA_bBoardLevel                         0x0037
148 #define SMA_bInPotPosRight                      0x0038
149 #define SMA_bInPotPosLeft                       0x0039
150 #define SMA_bAuxPotPosRight                     0x003a
151 #define SMA_bAuxPotPosLeft                      0x003b
152 #define SMA_wCurrMastVolLeft                    0x003c
153 #define SMA_wCurrMastVolRight                   0x003e
154 #define SMA_bUser_12                            0x0040
155 #define SMA_bUser_13                            0x0041
156 #define SMA_wUser_14                            0x0042
157 #define SMA_wUser_15                            0x0044
158 #define SMA_wCalFreqAtoD                        0x0046
159 #define SMA_wUser_16                            0x0048
160 #define SMA_wUser_17                            0x004a
161 #define SMA__size                               0x004c
162
163 #ifdef HAVE_DSPCODEH
164 #  include "msndperm.c"
165 #  include "msndinit.c"
166 #  define PERMCODE              msndperm
167 #  define INITCODE              msndinit
168 #  define PERMCODESIZE          sizeof(msndperm)
169 #  define INITCODESIZE          sizeof(msndinit)
170 #else
171 #  ifndef CONFIG_MSNDCLAS_INIT_FILE
172 #    define CONFIG_MSNDCLAS_INIT_FILE                           \
173                                 "/etc/sound/msndinit.bin"
174 #  endif
175 #  ifndef CONFIG_MSNDCLAS_PERM_FILE
176 #    define CONFIG_MSNDCLAS_PERM_FILE                           \
177                                 "/etc/sound/msndperm.bin"
178 #  endif
179 #  define PERMCODEFILE          CONFIG_MSNDCLAS_PERM_FILE
180 #  define INITCODEFILE          CONFIG_MSNDCLAS_INIT_FILE
181 #  define PERMCODE              dspini
182 #  define INITCODE              permini
183 #  define PERMCODESIZE          sizeof_dspini
184 #  define INITCODESIZE          sizeof_permini
185 #endif
186 #define LONGNAME                "MultiSound (Classic/Monterey/Tahiti)"
187
188 #endif /* __MSND_CLASSIC_H */