18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/********************************************************************* 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * msnd_classic.h 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Turtle Beach MultiSound Sound Card Driver for Linux 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Some parts of this header file were derived from the Turtle Beach 98c2ecf20Sopenharmony_ci * MultiSound Driver Development Kit. 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * Copyright (C) 1998 Andrew Veliath 128c2ecf20Sopenharmony_ci * Copyright (C) 1993 Turtle Beach Systems, Inc. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci ********************************************************************/ 158c2ecf20Sopenharmony_ci#ifndef __MSND_CLASSIC_H 168c2ecf20Sopenharmony_ci#define __MSND_CLASSIC_H 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define DSP_NUMIO 0x10 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define HP_MEMM 0x08 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define HP_BITM 0x0E 238c2ecf20Sopenharmony_ci#define HP_WAIT 0x0D 248c2ecf20Sopenharmony_ci#define HP_DSPR 0x0A 258c2ecf20Sopenharmony_ci#define HP_PROR 0x0B 268c2ecf20Sopenharmony_ci#define HP_BLKS 0x0C 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#define HPPRORESET_OFF 0 298c2ecf20Sopenharmony_ci#define HPPRORESET_ON 1 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define HPDSPRESET_OFF 0 328c2ecf20Sopenharmony_ci#define HPDSPRESET_ON 1 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#define HPBLKSEL_0 0 358c2ecf20Sopenharmony_ci#define HPBLKSEL_1 1 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci#define HPWAITSTATE_0 0 388c2ecf20Sopenharmony_ci#define HPWAITSTATE_1 1 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define HPBITMODE_16 0 418c2ecf20Sopenharmony_ci#define HPBITMODE_8 1 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#define HIDSP_INT_PLAY_UNDER 0x00 448c2ecf20Sopenharmony_ci#define HIDSP_INT_RECORD_OVER 0x01 458c2ecf20Sopenharmony_ci#define HIDSP_INPUT_CLIPPING 0x02 468c2ecf20Sopenharmony_ci#define HIDSP_MIDI_IN_OVER 0x10 478c2ecf20Sopenharmony_ci#define HIDSP_MIDI_OVERRUN_ERR 0x13 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#define TIME_PRO_RESET_DONE 0x028A 508c2ecf20Sopenharmony_ci#define TIME_PRO_SYSEX 0x0040 518c2ecf20Sopenharmony_ci#define TIME_PRO_RESET 0x0032 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define DAR_BUFF_SIZE 0x2000 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define MIDQ_BUFF_SIZE 0x200 568c2ecf20Sopenharmony_ci#define DSPQ_BUFF_SIZE 0x40 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#define DSPQ_DATA_BUFF 0x7260 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#define MOP_SYNTH 0x10 618c2ecf20Sopenharmony_ci#define MOP_EXTOUT 0x32 628c2ecf20Sopenharmony_ci#define MOP_EXTTHRU 0x02 638c2ecf20Sopenharmony_ci#define MOP_OUTMASK 0x01 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci#define MIP_EXTIN 0x01 668c2ecf20Sopenharmony_ci#define MIP_SYNTH 0x00 678c2ecf20Sopenharmony_ci#define MIP_INMASK 0x32 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci/* Classic SMA Common Data */ 708c2ecf20Sopenharmony_ci#define SMA_wCurrPlayBytes 0x0000 718c2ecf20Sopenharmony_ci#define SMA_wCurrRecordBytes 0x0002 728c2ecf20Sopenharmony_ci#define SMA_wCurrPlayVolLeft 0x0004 738c2ecf20Sopenharmony_ci#define SMA_wCurrPlayVolRight 0x0006 748c2ecf20Sopenharmony_ci#define SMA_wCurrInVolLeft 0x0008 758c2ecf20Sopenharmony_ci#define SMA_wCurrInVolRight 0x000a 768c2ecf20Sopenharmony_ci#define SMA_wUser_3 0x000c 778c2ecf20Sopenharmony_ci#define SMA_wUser_4 0x000e 788c2ecf20Sopenharmony_ci#define SMA_dwUser_5 0x0010 798c2ecf20Sopenharmony_ci#define SMA_dwUser_6 0x0014 808c2ecf20Sopenharmony_ci#define SMA_wUser_7 0x0018 818c2ecf20Sopenharmony_ci#define SMA_wReserved_A 0x001a 828c2ecf20Sopenharmony_ci#define SMA_wReserved_B 0x001c 838c2ecf20Sopenharmony_ci#define SMA_wReserved_C 0x001e 848c2ecf20Sopenharmony_ci#define SMA_wReserved_D 0x0020 858c2ecf20Sopenharmony_ci#define SMA_wReserved_E 0x0022 868c2ecf20Sopenharmony_ci#define SMA_wReserved_F 0x0024 878c2ecf20Sopenharmony_ci#define SMA_wReserved_G 0x0026 888c2ecf20Sopenharmony_ci#define SMA_wReserved_H 0x0028 898c2ecf20Sopenharmony_ci#define SMA_wCurrDSPStatusFlags 0x002a 908c2ecf20Sopenharmony_ci#define SMA_wCurrHostStatusFlags 0x002c 918c2ecf20Sopenharmony_ci#define SMA_wCurrInputTagBits 0x002e 928c2ecf20Sopenharmony_ci#define SMA_wCurrLeftPeak 0x0030 938c2ecf20Sopenharmony_ci#define SMA_wCurrRightPeak 0x0032 948c2ecf20Sopenharmony_ci#define SMA_wExtDSPbits 0x0034 958c2ecf20Sopenharmony_ci#define SMA_bExtHostbits 0x0036 968c2ecf20Sopenharmony_ci#define SMA_bBoardLevel 0x0037 978c2ecf20Sopenharmony_ci#define SMA_bInPotPosRight 0x0038 988c2ecf20Sopenharmony_ci#define SMA_bInPotPosLeft 0x0039 998c2ecf20Sopenharmony_ci#define SMA_bAuxPotPosRight 0x003a 1008c2ecf20Sopenharmony_ci#define SMA_bAuxPotPosLeft 0x003b 1018c2ecf20Sopenharmony_ci#define SMA_wCurrMastVolLeft 0x003c 1028c2ecf20Sopenharmony_ci#define SMA_wCurrMastVolRight 0x003e 1038c2ecf20Sopenharmony_ci#define SMA_bUser_12 0x0040 1048c2ecf20Sopenharmony_ci#define SMA_bUser_13 0x0041 1058c2ecf20Sopenharmony_ci#define SMA_wUser_14 0x0042 1068c2ecf20Sopenharmony_ci#define SMA_wUser_15 0x0044 1078c2ecf20Sopenharmony_ci#define SMA_wCalFreqAtoD 0x0046 1088c2ecf20Sopenharmony_ci#define SMA_wUser_16 0x0048 1098c2ecf20Sopenharmony_ci#define SMA_wUser_17 0x004a 1108c2ecf20Sopenharmony_ci#define SMA__size 0x004c 1118c2ecf20Sopenharmony_ci 1128c2ecf20Sopenharmony_ci#define INITCODEFILE "turtlebeach/msndinit.bin" 1138c2ecf20Sopenharmony_ci#define PERMCODEFILE "turtlebeach/msndperm.bin" 1148c2ecf20Sopenharmony_ci#define LONGNAME "MultiSound (Classic/Monterey/Tahiti)" 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci#endif /* __MSND_CLASSIC_H */ 117