xref: /linux/sound/isa/msnd/msnd_classic.h (revision f6c6383502751ceb6f2f3579ad22578ca44f91f5)
1*f6c63835SKrzysztof Helt /*********************************************************************
2*f6c63835SKrzysztof Helt  *
3*f6c63835SKrzysztof Helt  * msnd_classic.h
4*f6c63835SKrzysztof Helt  *
5*f6c63835SKrzysztof Helt  * Turtle Beach MultiSound Sound Card Driver for Linux
6*f6c63835SKrzysztof Helt  *
7*f6c63835SKrzysztof Helt  * Some parts of this header file were derived from the Turtle Beach
8*f6c63835SKrzysztof Helt  * MultiSound Driver Development Kit.
9*f6c63835SKrzysztof Helt  *
10*f6c63835SKrzysztof Helt  * Copyright (C) 1998 Andrew Veliath
11*f6c63835SKrzysztof Helt  * Copyright (C) 1993 Turtle Beach Systems, Inc.
12*f6c63835SKrzysztof Helt  *
13*f6c63835SKrzysztof Helt  * This program is free software; you can redistribute it and/or modify
14*f6c63835SKrzysztof Helt  * it under the terms of the GNU General Public License as published by
15*f6c63835SKrzysztof Helt  * the Free Software Foundation; either version 2 of the License, or
16*f6c63835SKrzysztof Helt  * (at your option) any later version.
17*f6c63835SKrzysztof Helt  *
18*f6c63835SKrzysztof Helt  * This program is distributed in the hope that it will be useful,
19*f6c63835SKrzysztof Helt  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20*f6c63835SKrzysztof Helt  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21*f6c63835SKrzysztof Helt  * GNU General Public License for more details.
22*f6c63835SKrzysztof Helt  *
23*f6c63835SKrzysztof Helt  * You should have received a copy of the GNU General Public License
24*f6c63835SKrzysztof Helt  * along with this program; if not, write to the Free Software
25*f6c63835SKrzysztof Helt  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26*f6c63835SKrzysztof Helt  *
27*f6c63835SKrzysztof Helt  ********************************************************************/
28*f6c63835SKrzysztof Helt #ifndef __MSND_CLASSIC_H
29*f6c63835SKrzysztof Helt #define __MSND_CLASSIC_H
30*f6c63835SKrzysztof Helt 
31*f6c63835SKrzysztof Helt #define DSP_NUMIO				0x10
32*f6c63835SKrzysztof Helt 
33*f6c63835SKrzysztof Helt #define	HP_MEMM					0x08
34*f6c63835SKrzysztof Helt 
35*f6c63835SKrzysztof Helt #define	HP_BITM					0x0E
36*f6c63835SKrzysztof Helt #define	HP_WAIT					0x0D
37*f6c63835SKrzysztof Helt #define	HP_DSPR					0x0A
38*f6c63835SKrzysztof Helt #define	HP_PROR					0x0B
39*f6c63835SKrzysztof Helt #define	HP_BLKS					0x0C
40*f6c63835SKrzysztof Helt 
41*f6c63835SKrzysztof Helt #define	HPPRORESET_OFF				0
42*f6c63835SKrzysztof Helt #define HPPRORESET_ON				1
43*f6c63835SKrzysztof Helt 
44*f6c63835SKrzysztof Helt #define HPDSPRESET_OFF				0
45*f6c63835SKrzysztof Helt #define HPDSPRESET_ON				1
46*f6c63835SKrzysztof Helt 
47*f6c63835SKrzysztof Helt #define HPBLKSEL_0				0
48*f6c63835SKrzysztof Helt #define HPBLKSEL_1				1
49*f6c63835SKrzysztof Helt 
50*f6c63835SKrzysztof Helt #define HPWAITSTATE_0				0
51*f6c63835SKrzysztof Helt #define HPWAITSTATE_1				1
52*f6c63835SKrzysztof Helt 
53*f6c63835SKrzysztof Helt #define HPBITMODE_16				0
54*f6c63835SKrzysztof Helt #define HPBITMODE_8				1
55*f6c63835SKrzysztof Helt 
56*f6c63835SKrzysztof Helt #define	HIDSP_INT_PLAY_UNDER			0x00
57*f6c63835SKrzysztof Helt #define	HIDSP_INT_RECORD_OVER			0x01
58*f6c63835SKrzysztof Helt #define	HIDSP_INPUT_CLIPPING			0x02
59*f6c63835SKrzysztof Helt #define	HIDSP_MIDI_IN_OVER			0x10
60*f6c63835SKrzysztof Helt #define	HIDSP_MIDI_OVERRUN_ERR  0x13
61*f6c63835SKrzysztof Helt 
62*f6c63835SKrzysztof Helt #define TIME_PRO_RESET_DONE			0x028A
63*f6c63835SKrzysztof Helt #define TIME_PRO_SYSEX				0x0040
64*f6c63835SKrzysztof Helt #define TIME_PRO_RESET				0x0032
65*f6c63835SKrzysztof Helt 
66*f6c63835SKrzysztof Helt #define DAR_BUFF_SIZE				0x2000
67*f6c63835SKrzysztof Helt 
68*f6c63835SKrzysztof Helt #define MIDQ_BUFF_SIZE				0x200
69*f6c63835SKrzysztof Helt #define DSPQ_BUFF_SIZE				0x40
70*f6c63835SKrzysztof Helt 
71*f6c63835SKrzysztof Helt #define DSPQ_DATA_BUFF				0x7260
72*f6c63835SKrzysztof Helt 
73*f6c63835SKrzysztof Helt #define MOP_SYNTH				0x10
74*f6c63835SKrzysztof Helt #define MOP_EXTOUT				0x32
75*f6c63835SKrzysztof Helt #define MOP_EXTTHRU				0x02
76*f6c63835SKrzysztof Helt #define MOP_OUTMASK				0x01
77*f6c63835SKrzysztof Helt 
78*f6c63835SKrzysztof Helt #define MIP_EXTIN				0x01
79*f6c63835SKrzysztof Helt #define MIP_SYNTH				0x00
80*f6c63835SKrzysztof Helt #define MIP_INMASK				0x32
81*f6c63835SKrzysztof Helt 
82*f6c63835SKrzysztof Helt /* Classic SMA Common Data */
83*f6c63835SKrzysztof Helt #define SMA_wCurrPlayBytes			0x0000
84*f6c63835SKrzysztof Helt #define SMA_wCurrRecordBytes			0x0002
85*f6c63835SKrzysztof Helt #define SMA_wCurrPlayVolLeft			0x0004
86*f6c63835SKrzysztof Helt #define SMA_wCurrPlayVolRight			0x0006
87*f6c63835SKrzysztof Helt #define SMA_wCurrInVolLeft			0x0008
88*f6c63835SKrzysztof Helt #define SMA_wCurrInVolRight			0x000a
89*f6c63835SKrzysztof Helt #define SMA_wUser_3				0x000c
90*f6c63835SKrzysztof Helt #define SMA_wUser_4				0x000e
91*f6c63835SKrzysztof Helt #define SMA_dwUser_5				0x0010
92*f6c63835SKrzysztof Helt #define SMA_dwUser_6				0x0014
93*f6c63835SKrzysztof Helt #define SMA_wUser_7				0x0018
94*f6c63835SKrzysztof Helt #define SMA_wReserved_A				0x001a
95*f6c63835SKrzysztof Helt #define SMA_wReserved_B				0x001c
96*f6c63835SKrzysztof Helt #define SMA_wReserved_C				0x001e
97*f6c63835SKrzysztof Helt #define SMA_wReserved_D				0x0020
98*f6c63835SKrzysztof Helt #define SMA_wReserved_E				0x0022
99*f6c63835SKrzysztof Helt #define SMA_wReserved_F				0x0024
100*f6c63835SKrzysztof Helt #define SMA_wReserved_G				0x0026
101*f6c63835SKrzysztof Helt #define SMA_wReserved_H				0x0028
102*f6c63835SKrzysztof Helt #define SMA_wCurrDSPStatusFlags			0x002a
103*f6c63835SKrzysztof Helt #define SMA_wCurrHostStatusFlags		0x002c
104*f6c63835SKrzysztof Helt #define SMA_wCurrInputTagBits			0x002e
105*f6c63835SKrzysztof Helt #define SMA_wCurrLeftPeak			0x0030
106*f6c63835SKrzysztof Helt #define SMA_wCurrRightPeak			0x0032
107*f6c63835SKrzysztof Helt #define SMA_wExtDSPbits				0x0034
108*f6c63835SKrzysztof Helt #define SMA_bExtHostbits			0x0036
109*f6c63835SKrzysztof Helt #define SMA_bBoardLevel				0x0037
110*f6c63835SKrzysztof Helt #define SMA_bInPotPosRight			0x0038
111*f6c63835SKrzysztof Helt #define SMA_bInPotPosLeft			0x0039
112*f6c63835SKrzysztof Helt #define SMA_bAuxPotPosRight			0x003a
113*f6c63835SKrzysztof Helt #define SMA_bAuxPotPosLeft			0x003b
114*f6c63835SKrzysztof Helt #define SMA_wCurrMastVolLeft			0x003c
115*f6c63835SKrzysztof Helt #define SMA_wCurrMastVolRight			0x003e
116*f6c63835SKrzysztof Helt #define SMA_bUser_12				0x0040
117*f6c63835SKrzysztof Helt #define SMA_bUser_13				0x0041
118*f6c63835SKrzysztof Helt #define SMA_wUser_14				0x0042
119*f6c63835SKrzysztof Helt #define SMA_wUser_15				0x0044
120*f6c63835SKrzysztof Helt #define SMA_wCalFreqAtoD			0x0046
121*f6c63835SKrzysztof Helt #define SMA_wUser_16				0x0048
122*f6c63835SKrzysztof Helt #define SMA_wUser_17				0x004a
123*f6c63835SKrzysztof Helt #define SMA__size				0x004c
124*f6c63835SKrzysztof Helt 
125*f6c63835SKrzysztof Helt #define INITCODEFILE		"turtlebeach/msndinit.bin"
126*f6c63835SKrzysztof Helt #define PERMCODEFILE		"turtlebeach/msndperm.bin"
127*f6c63835SKrzysztof Helt #define LONGNAME		"MultiSound (Classic/Monterey/Tahiti)"
128*f6c63835SKrzysztof Helt 
129*f6c63835SKrzysztof Helt #endif /* __MSND_CLASSIC_H */
130