1*74ba9207SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2f6c63835SKrzysztof Helt /********************************************************************* 3f6c63835SKrzysztof Helt * 4f6c63835SKrzysztof Helt * msnd_pinnacle.h 5f6c63835SKrzysztof Helt * 6f6c63835SKrzysztof Helt * Turtle Beach MultiSound Sound Card Driver for Linux 7f6c63835SKrzysztof Helt * 8f6c63835SKrzysztof Helt * Some parts of this header file were derived from the Turtle Beach 9f6c63835SKrzysztof Helt * MultiSound Driver Development Kit. 10f6c63835SKrzysztof Helt * 11f6c63835SKrzysztof Helt * Copyright (C) 1998 Andrew Veliath 12f6c63835SKrzysztof Helt * Copyright (C) 1993 Turtle Beach Systems, Inc. 13f6c63835SKrzysztof Helt * 14f6c63835SKrzysztof Helt ********************************************************************/ 15f6c63835SKrzysztof Helt #ifndef __MSND_PINNACLE_H 16f6c63835SKrzysztof Helt #define __MSND_PINNACLE_H 17f6c63835SKrzysztof Helt 18f6c63835SKrzysztof Helt #define DSP_NUMIO 0x08 19f6c63835SKrzysztof Helt 20f6c63835SKrzysztof Helt #define IREG_LOGDEVICE 0x07 21f6c63835SKrzysztof Helt #define IREG_ACTIVATE 0x30 22f6c63835SKrzysztof Helt #define LD_ACTIVATE 0x01 23f6c63835SKrzysztof Helt #define LD_DISACTIVATE 0x00 24f6c63835SKrzysztof Helt #define IREG_EECONTROL 0x3F 25f6c63835SKrzysztof Helt #define IREG_MEMBASEHI 0x40 26f6c63835SKrzysztof Helt #define IREG_MEMBASELO 0x41 27f6c63835SKrzysztof Helt #define IREG_MEMCONTROL 0x42 28f6c63835SKrzysztof Helt #define IREG_MEMRANGEHI 0x43 29f6c63835SKrzysztof Helt #define IREG_MEMRANGELO 0x44 30f6c63835SKrzysztof Helt #define MEMTYPE_8BIT 0x00 31f6c63835SKrzysztof Helt #define MEMTYPE_16BIT 0x02 32f6c63835SKrzysztof Helt #define MEMTYPE_RANGE 0x00 33f6c63835SKrzysztof Helt #define MEMTYPE_HIADDR 0x01 34f6c63835SKrzysztof Helt #define IREG_IO0_BASEHI 0x60 35f6c63835SKrzysztof Helt #define IREG_IO0_BASELO 0x61 36f6c63835SKrzysztof Helt #define IREG_IO1_BASEHI 0x62 37f6c63835SKrzysztof Helt #define IREG_IO1_BASELO 0x63 38f6c63835SKrzysztof Helt #define IREG_IRQ_NUMBER 0x70 39f6c63835SKrzysztof Helt #define IREG_IRQ_TYPE 0x71 40f6c63835SKrzysztof Helt #define IRQTYPE_HIGH 0x02 41f6c63835SKrzysztof Helt #define IRQTYPE_LOW 0x00 42f6c63835SKrzysztof Helt #define IRQTYPE_LEVEL 0x01 43f6c63835SKrzysztof Helt #define IRQTYPE_EDGE 0x00 44f6c63835SKrzysztof Helt 45f6c63835SKrzysztof Helt #define HP_DSPR 0x04 46f6c63835SKrzysztof Helt #define HP_BLKS 0x04 47f6c63835SKrzysztof Helt 48f6c63835SKrzysztof Helt #define HPDSPRESET_OFF 2 49f6c63835SKrzysztof Helt #define HPDSPRESET_ON 0 50f6c63835SKrzysztof Helt 51f6c63835SKrzysztof Helt #define HPBLKSEL_0 2 52f6c63835SKrzysztof Helt #define HPBLKSEL_1 3 53f6c63835SKrzysztof Helt 54f6c63835SKrzysztof Helt #define HIMT_DAT_OFF 0x03 55f6c63835SKrzysztof Helt 56f6c63835SKrzysztof Helt #define HIDSP_PLAY_UNDER 0x00 57f6c63835SKrzysztof Helt #define HIDSP_INT_PLAY_UNDER 0x01 58f6c63835SKrzysztof Helt #define HIDSP_SSI_TX_UNDER 0x02 59f6c63835SKrzysztof Helt #define HIDSP_RECQ_OVERFLOW 0x08 60f6c63835SKrzysztof Helt #define HIDSP_INT_RECORD_OVER 0x09 61f6c63835SKrzysztof Helt #define HIDSP_SSI_RX_OVERFLOW 0x0a 62f6c63835SKrzysztof Helt 63f6c63835SKrzysztof Helt #define HIDSP_MIDI_IN_OVER 0x10 64f6c63835SKrzysztof Helt 65f6c63835SKrzysztof Helt #define HIDSP_MIDI_FRAME_ERR 0x11 66f6c63835SKrzysztof Helt #define HIDSP_MIDI_PARITY_ERR 0x12 67f6c63835SKrzysztof Helt #define HIDSP_MIDI_OVERRUN_ERR 0x13 68f6c63835SKrzysztof Helt 69f6c63835SKrzysztof Helt #define HIDSP_INPUT_CLIPPING 0x20 70f6c63835SKrzysztof Helt #define HIDSP_MIX_CLIPPING 0x30 71f6c63835SKrzysztof Helt #define HIDSP_DAT_IN_OFF 0x21 72f6c63835SKrzysztof Helt 73f6c63835SKrzysztof Helt #define TIME_PRO_RESET_DONE 0x028A 74f6c63835SKrzysztof Helt #define TIME_PRO_SYSEX 0x001E 75f6c63835SKrzysztof Helt #define TIME_PRO_RESET 0x0032 76f6c63835SKrzysztof Helt 77f6c63835SKrzysztof Helt #define DAR_BUFF_SIZE 0x1000 78f6c63835SKrzysztof Helt 79f6c63835SKrzysztof Helt #define MIDQ_BUFF_SIZE 0x800 80f6c63835SKrzysztof Helt #define DSPQ_BUFF_SIZE 0x5A0 81f6c63835SKrzysztof Helt 82f6c63835SKrzysztof Helt #define DSPQ_DATA_BUFF 0x7860 83f6c63835SKrzysztof Helt 84f6c63835SKrzysztof Helt #define MOP_WAVEHDR 0 85f6c63835SKrzysztof Helt #define MOP_EXTOUT 1 86f6c63835SKrzysztof Helt #define MOP_HWINIT 0xfe 87f6c63835SKrzysztof Helt #define MOP_NONE 0xff 88f6c63835SKrzysztof Helt #define MOP_MAX 1 89f6c63835SKrzysztof Helt 90f6c63835SKrzysztof Helt #define MIP_EXTIN 0 91f6c63835SKrzysztof Helt #define MIP_WAVEHDR 1 92f6c63835SKrzysztof Helt #define MIP_HWINIT 0xfe 93f6c63835SKrzysztof Helt #define MIP_MAX 1 94f6c63835SKrzysztof Helt 95f6c63835SKrzysztof Helt /* Pinnacle/Fiji SMA Common Data */ 96f6c63835SKrzysztof Helt #define SMA_wCurrPlayBytes 0x0000 97f6c63835SKrzysztof Helt #define SMA_wCurrRecordBytes 0x0002 98f6c63835SKrzysztof Helt #define SMA_wCurrPlayVolLeft 0x0004 99f6c63835SKrzysztof Helt #define SMA_wCurrPlayVolRight 0x0006 100f6c63835SKrzysztof Helt #define SMA_wCurrInVolLeft 0x0008 101f6c63835SKrzysztof Helt #define SMA_wCurrInVolRight 0x000a 102f6c63835SKrzysztof Helt #define SMA_wCurrMHdrVolLeft 0x000c 103f6c63835SKrzysztof Helt #define SMA_wCurrMHdrVolRight 0x000e 104f6c63835SKrzysztof Helt #define SMA_dwCurrPlayPitch 0x0010 105f6c63835SKrzysztof Helt #define SMA_dwCurrPlayRate 0x0014 106f6c63835SKrzysztof Helt #define SMA_wCurrMIDIIOPatch 0x0018 107f6c63835SKrzysztof Helt #define SMA_wCurrPlayFormat 0x001a 108f6c63835SKrzysztof Helt #define SMA_wCurrPlaySampleSize 0x001c 109f6c63835SKrzysztof Helt #define SMA_wCurrPlayChannels 0x001e 110f6c63835SKrzysztof Helt #define SMA_wCurrPlaySampleRate 0x0020 111f6c63835SKrzysztof Helt #define SMA_wCurrRecordFormat 0x0022 112f6c63835SKrzysztof Helt #define SMA_wCurrRecordSampleSize 0x0024 113f6c63835SKrzysztof Helt #define SMA_wCurrRecordChannels 0x0026 114f6c63835SKrzysztof Helt #define SMA_wCurrRecordSampleRate 0x0028 115f6c63835SKrzysztof Helt #define SMA_wCurrDSPStatusFlags 0x002a 116f6c63835SKrzysztof Helt #define SMA_wCurrHostStatusFlags 0x002c 117f6c63835SKrzysztof Helt #define SMA_wCurrInputTagBits 0x002e 118f6c63835SKrzysztof Helt #define SMA_wCurrLeftPeak 0x0030 119f6c63835SKrzysztof Helt #define SMA_wCurrRightPeak 0x0032 120f6c63835SKrzysztof Helt #define SMA_bMicPotPosLeft 0x0034 121f6c63835SKrzysztof Helt #define SMA_bMicPotPosRight 0x0035 122f6c63835SKrzysztof Helt #define SMA_bMicPotMaxLeft 0x0036 123f6c63835SKrzysztof Helt #define SMA_bMicPotMaxRight 0x0037 124f6c63835SKrzysztof Helt #define SMA_bInPotPosLeft 0x0038 125f6c63835SKrzysztof Helt #define SMA_bInPotPosRight 0x0039 126f6c63835SKrzysztof Helt #define SMA_bAuxPotPosLeft 0x003a 127f6c63835SKrzysztof Helt #define SMA_bAuxPotPosRight 0x003b 128f6c63835SKrzysztof Helt #define SMA_bInPotMaxLeft 0x003c 129f6c63835SKrzysztof Helt #define SMA_bInPotMaxRight 0x003d 130f6c63835SKrzysztof Helt #define SMA_bAuxPotMaxLeft 0x003e 131f6c63835SKrzysztof Helt #define SMA_bAuxPotMaxRight 0x003f 132f6c63835SKrzysztof Helt #define SMA_bInPotMaxMethod 0x0040 133f6c63835SKrzysztof Helt #define SMA_bAuxPotMaxMethod 0x0041 134f6c63835SKrzysztof Helt #define SMA_wCurrMastVolLeft 0x0042 135f6c63835SKrzysztof Helt #define SMA_wCurrMastVolRight 0x0044 136f6c63835SKrzysztof Helt #define SMA_wCalFreqAtoD 0x0046 137f6c63835SKrzysztof Helt #define SMA_wCurrAuxVolLeft 0x0048 138f6c63835SKrzysztof Helt #define SMA_wCurrAuxVolRight 0x004a 139f6c63835SKrzysztof Helt #define SMA_wCurrPlay1VolLeft 0x004c 140f6c63835SKrzysztof Helt #define SMA_wCurrPlay1VolRight 0x004e 141f6c63835SKrzysztof Helt #define SMA_wCurrPlay2VolLeft 0x0050 142f6c63835SKrzysztof Helt #define SMA_wCurrPlay2VolRight 0x0052 143f6c63835SKrzysztof Helt #define SMA_wCurrPlay3VolLeft 0x0054 144f6c63835SKrzysztof Helt #define SMA_wCurrPlay3VolRight 0x0056 145f6c63835SKrzysztof Helt #define SMA_wCurrPlay4VolLeft 0x0058 146f6c63835SKrzysztof Helt #define SMA_wCurrPlay4VolRight 0x005a 147f6c63835SKrzysztof Helt #define SMA_wCurrPlay1PeakLeft 0x005c 148f6c63835SKrzysztof Helt #define SMA_wCurrPlay1PeakRight 0x005e 149f6c63835SKrzysztof Helt #define SMA_wCurrPlay2PeakLeft 0x0060 150f6c63835SKrzysztof Helt #define SMA_wCurrPlay2PeakRight 0x0062 151f6c63835SKrzysztof Helt #define SMA_wCurrPlay3PeakLeft 0x0064 152f6c63835SKrzysztof Helt #define SMA_wCurrPlay3PeakRight 0x0066 153f6c63835SKrzysztof Helt #define SMA_wCurrPlay4PeakLeft 0x0068 154f6c63835SKrzysztof Helt #define SMA_wCurrPlay4PeakRight 0x006a 155f6c63835SKrzysztof Helt #define SMA_wCurrPlayPeakLeft 0x006c 156f6c63835SKrzysztof Helt #define SMA_wCurrPlayPeakRight 0x006e 157f6c63835SKrzysztof Helt #define SMA_wCurrDATSR 0x0070 158f6c63835SKrzysztof Helt #define SMA_wCurrDATRXCHNL 0x0072 159f6c63835SKrzysztof Helt #define SMA_wCurrDATTXCHNL 0x0074 160f6c63835SKrzysztof Helt #define SMA_wCurrDATRXRate 0x0076 161f6c63835SKrzysztof Helt #define SMA_dwDSPPlayCount 0x0078 162f6c63835SKrzysztof Helt #define SMA__size 0x007c 163f6c63835SKrzysztof Helt 164f6c63835SKrzysztof Helt #define INITCODEFILE "turtlebeach/pndspini.bin" 165f6c63835SKrzysztof Helt #define PERMCODEFILE "turtlebeach/pndsperm.bin" 166f6c63835SKrzysztof Helt #define LONGNAME "MultiSound (Pinnacle/Fiji)" 167f6c63835SKrzysztof Helt 168f6c63835SKrzysztof Helt #endif /* __MSND_PINNACLE_H */ 169