msnd_classic.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*********************************************************************
  3. *
  4. * msnd_classic.h
  5. *
  6. * Turtle Beach MultiSound Sound Card Driver for Linux
  7. *
  8. * Some parts of this header file were derived from the Turtle Beach
  9. * MultiSound Driver Development Kit.
  10. *
  11. * Copyright (C) 1998 Andrew Veliath
  12. * Copyright (C) 1993 Turtle Beach Systems, Inc.
  13. *
  14. ********************************************************************/
  15. #ifndef __MSND_CLASSIC_H
  16. #define __MSND_CLASSIC_H
  17. #define DSP_NUMIO 0x10
  18. #define HP_MEMM 0x08
  19. #define HP_BITM 0x0E
  20. #define HP_WAIT 0x0D
  21. #define HP_DSPR 0x0A
  22. #define HP_PROR 0x0B
  23. #define HP_BLKS 0x0C
  24. #define HPPRORESET_OFF 0
  25. #define HPPRORESET_ON 1
  26. #define HPDSPRESET_OFF 0
  27. #define HPDSPRESET_ON 1
  28. #define HPBLKSEL_0 0
  29. #define HPBLKSEL_1 1
  30. #define HPWAITSTATE_0 0
  31. #define HPWAITSTATE_1 1
  32. #define HPBITMODE_16 0
  33. #define HPBITMODE_8 1
  34. #define HIDSP_INT_PLAY_UNDER 0x00
  35. #define HIDSP_INT_RECORD_OVER 0x01
  36. #define HIDSP_INPUT_CLIPPING 0x02
  37. #define HIDSP_MIDI_IN_OVER 0x10
  38. #define HIDSP_MIDI_OVERRUN_ERR 0x13
  39. #define TIME_PRO_RESET_DONE 0x028A
  40. #define TIME_PRO_SYSEX 0x0040
  41. #define TIME_PRO_RESET 0x0032
  42. #define DAR_BUFF_SIZE 0x2000
  43. #define MIDQ_BUFF_SIZE 0x200
  44. #define DSPQ_BUFF_SIZE 0x40
  45. #define DSPQ_DATA_BUFF 0x7260
  46. #define MOP_SYNTH 0x10
  47. #define MOP_EXTOUT 0x32
  48. #define MOP_EXTTHRU 0x02
  49. #define MOP_OUTMASK 0x01
  50. #define MIP_EXTIN 0x01
  51. #define MIP_SYNTH 0x00
  52. #define MIP_INMASK 0x32
  53. /* Classic SMA Common Data */
  54. #define SMA_wCurrPlayBytes 0x0000
  55. #define SMA_wCurrRecordBytes 0x0002
  56. #define SMA_wCurrPlayVolLeft 0x0004
  57. #define SMA_wCurrPlayVolRight 0x0006
  58. #define SMA_wCurrInVolLeft 0x0008
  59. #define SMA_wCurrInVolRight 0x000a
  60. #define SMA_wUser_3 0x000c
  61. #define SMA_wUser_4 0x000e
  62. #define SMA_dwUser_5 0x0010
  63. #define SMA_dwUser_6 0x0014
  64. #define SMA_wUser_7 0x0018
  65. #define SMA_wReserved_A 0x001a
  66. #define SMA_wReserved_B 0x001c
  67. #define SMA_wReserved_C 0x001e
  68. #define SMA_wReserved_D 0x0020
  69. #define SMA_wReserved_E 0x0022
  70. #define SMA_wReserved_F 0x0024
  71. #define SMA_wReserved_G 0x0026
  72. #define SMA_wReserved_H 0x0028
  73. #define SMA_wCurrDSPStatusFlags 0x002a
  74. #define SMA_wCurrHostStatusFlags 0x002c
  75. #define SMA_wCurrInputTagBits 0x002e
  76. #define SMA_wCurrLeftPeak 0x0030
  77. #define SMA_wCurrRightPeak 0x0032
  78. #define SMA_wExtDSPbits 0x0034
  79. #define SMA_bExtHostbits 0x0036
  80. #define SMA_bBoardLevel 0x0037
  81. #define SMA_bInPotPosRight 0x0038
  82. #define SMA_bInPotPosLeft 0x0039
  83. #define SMA_bAuxPotPosRight 0x003a
  84. #define SMA_bAuxPotPosLeft 0x003b
  85. #define SMA_wCurrMastVolLeft 0x003c
  86. #define SMA_wCurrMastVolRight 0x003e
  87. #define SMA_bUser_12 0x0040
  88. #define SMA_bUser_13 0x0041
  89. #define SMA_wUser_14 0x0042
  90. #define SMA_wUser_15 0x0044
  91. #define SMA_wCalFreqAtoD 0x0046
  92. #define SMA_wUser_16 0x0048
  93. #define SMA_wUser_17 0x004a
  94. #define SMA__size 0x004c
  95. #define INITCODEFILE "turtlebeach/msndinit.bin"
  96. #define PERMCODEFILE "turtlebeach/msndperm.bin"
  97. #define LONGNAME "MultiSound (Classic/Monterey/Tahiti)"
  98. #endif /* __MSND_CLASSIC_H */