pc_init.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /*
  2. *
  3. Copyright (c) Eicon Networks, 2002.
  4. *
  5. This source file is supplied for the use with
  6. Eicon Networks range of DIVA Server Adapters.
  7. *
  8. Eicon File Revision : 2.1
  9. *
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2, or (at your option)
  13. any later version.
  14. *
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY
  17. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. See the GNU General Public License for more details.
  19. *
  20. You should have received a copy of the GNU General Public License
  21. along with this program; if not, write to the Free Software
  22. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. *
  24. */
  25. #ifndef PC_INIT_H_
  26. #define PC_INIT_H_
  27. /*------------------------------------------------------------------*/
  28. /*
  29. Initialisation parameters for the card
  30. 0x0008 <byte> TEI
  31. 0x0009 <byte> NT2 flag
  32. 0x000a <byte> Default DID length
  33. 0x000b <byte> Disable watchdog flag
  34. 0x000c <byte> Permanent connection flag
  35. 0x000d <byte> Bit 3-8: L1 Hunt Group/Tristate
  36. 0x000d <byte> Bit 1: QSig small CR length if set to 1
  37. 0x000d <byte> Bit 2: QSig small CHI length if set to 1
  38. 0x000e <byte> Bit 1-3: Stable L2, 0=OnDemand,1=NoDisc,2=permanent
  39. 0x000e <byte> Bit 4: NT mode
  40. 0x000e <byte> Bit 5: QSig Channel ID format
  41. 0x000e <byte> Bit 6: QSig Call Forwarding Allowed Flag
  42. 0x000e <byte> Bit 7: Disable AutoSPID Flag
  43. 0x000f <byte> No order check flag
  44. 0x0010 <byte> Force companding type:0=default,1=a-law,2=u-law
  45. 0x0012 <byte> Low channel flag
  46. 0x0013 <byte> Protocol version
  47. 0x0014 <byte> CRC4 option:0=default,1=double_frm,2=multi_frm,3=auto
  48. 0x0015 <byte> Bit 0: NoHscx30, Bit 1: Loopback flag, Bit 2: ForceHscx30
  49. 0x0016 <byte> DSP info
  50. 0x0017-0x0019 Serial number
  51. 0x001a <byte> Card type
  52. 0x0020 <string> OAD 0
  53. 0x0040 <string> OSA 0
  54. 0x0060 <string> SPID 0 (if not T.1)
  55. 0x0060 <struct> if T.1: Robbed Bit Configuration
  56. 0x0060 length (8)
  57. 0x0061 RBS Answer Delay
  58. 0x0062 RBS Config Bit 3, 4:
  59. 0 0 -> Wink Start
  60. 1 0 -> Loop Start
  61. 0 1 -> Ground Start
  62. 1 1 -> reserved
  63. Bit 5, 6:
  64. 0 0 -> Pulse Dial -> Rotary
  65. 1 0 -> DTMF
  66. 0 1 -> MF
  67. 1 1 -> reserved
  68. 0x0063 RBS RX Digit Timeout
  69. 0x0064 RBS Bearer Capability
  70. 0x0065-0x0069 RBS Debug Mask
  71. 0x0080 <string> OAD 1
  72. 0x00a0 <string> OSA 1
  73. 0x00c0 <string> SPID 1
  74. 0x00e0 <w-element list> Additional configuration
  75. */
  76. #define PCINIT_END_OF_LIST 0x00
  77. #define PCINIT_MODEM_GUARD_TONE 0x01
  78. #define PCINIT_MODEM_MIN_SPEED 0x02
  79. #define PCINIT_MODEM_MAX_SPEED 0x03
  80. #define PCINIT_MODEM_PROTOCOL_OPTIONS 0x04
  81. #define PCINIT_FAX_OPTIONS 0x05
  82. #define PCINIT_FAX_MAX_SPEED 0x06
  83. #define PCINIT_MODEM_OPTIONS 0x07
  84. #define PCINIT_MODEM_NEGOTIATION_MODE 0x08
  85. #define PCINIT_MODEM_MODULATIONS_MASK 0x09
  86. #define PCINIT_MODEM_TRANSMIT_LEVEL 0x0a
  87. #define PCINIT_FAX_DISABLED_RESOLUTIONS 0x0b
  88. #define PCINIT_FAX_MAX_RECORDING_WIDTH 0x0c
  89. #define PCINIT_FAX_MAX_RECORDING_LENGTH 0x0d
  90. #define PCINIT_FAX_MIN_SCANLINE_TIME 0x0e
  91. #define PCINIT_US_EKTS_CACH_HANDLES 0x0f
  92. #define PCINIT_US_EKTS_BEGIN_CONF 0x10
  93. #define PCINIT_US_EKTS_DROP_CONF 0x11
  94. #define PCINIT_US_EKTS_CALL_TRANSFER 0x12
  95. #define PCINIT_RINGERTONE_OPTION 0x13
  96. #define PCINIT_CARD_ADDRESS 0x14
  97. #define PCINIT_FPGA_FEATURES 0x15
  98. #define PCINIT_US_EKTS_MWI 0x16
  99. #define PCINIT_MODEM_SPEAKER_CONTROL 0x17
  100. #define PCINIT_MODEM_SPEAKER_VOLUME 0x18
  101. #define PCINIT_MODEM_CARRIER_WAIT_TIME 0x19
  102. #define PCINIT_MODEM_CARRIER_LOSS_TIME 0x1a
  103. #define PCINIT_UNCHAN_B_MASK 0x1b
  104. #define PCINIT_PART68_LIMITER 0x1c
  105. #define PCINIT_XDI_FEATURES 0x1d
  106. #define PCINIT_QSIG_DIALECT 0x1e
  107. #define PCINIT_DISABLE_AUTOSPID_FLAG 0x1f
  108. #define PCINIT_FORCE_VOICE_MAIL_ALERT 0x20
  109. #define PCINIT_PIAFS_TURNAROUND_FRAMES 0x21
  110. #define PCINIT_L2_COUNT 0x22
  111. #define PCINIT_QSIG_FEATURES 0x23
  112. #define PCINIT_NO_SIGNALLING 0x24
  113. #define PCINIT_CARD_SN 0x25
  114. #define PCINIT_CARD_PORT 0x26
  115. #define PCINIT_ALERTTO 0x27
  116. #define PCINIT_MODEM_EYE_SETUP 0x28
  117. #define PCINIT_FAX_V34_OPTIONS 0x29
  118. /*------------------------------------------------------------------*/
  119. #define PCINIT_MODEM_GUARD_TONE_NONE 0x00
  120. #define PCINIT_MODEM_GUARD_TONE_550HZ 0x01
  121. #define PCINIT_MODEM_GUARD_TONE_1800HZ 0x02
  122. #define PCINIT_MODEM_GUARD_TONE_CHOICES 0x03
  123. #define PCINIT_MODEMPROT_DISABLE_V42_V42BIS 0x0001
  124. #define PCINIT_MODEMPROT_DISABLE_MNP_MNP5 0x0002
  125. #define PCINIT_MODEMPROT_REQUIRE_PROTOCOL 0x0004
  126. #define PCINIT_MODEMPROT_DISABLE_V42_DETECT 0x0008
  127. #define PCINIT_MODEMPROT_DISABLE_COMPRESSION 0x0010
  128. #define PCINIT_MODEMPROT_REQUIRE_PROTOCOL_V34UP 0x0020
  129. #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_1200 0x0100
  130. #define PCINIT_MODEMPROT_BUFFER_IN_V42_DETECT 0x0200
  131. #define PCINIT_MODEMPROT_DISABLE_V42_SREJ 0x0400
  132. #define PCINIT_MODEMPROT_DISABLE_MNP3 0x0800
  133. #define PCINIT_MODEMPROT_DISABLE_MNP4 0x1000
  134. #define PCINIT_MODEMPROT_DISABLE_MNP10 0x2000
  135. #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_V22BIS 0x4000
  136. #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_V32BIS 0x8000
  137. #define PCINIT_MODEMCONFIG_LEASED_LINE_MODE 0x00000001L
  138. #define PCINIT_MODEMCONFIG_4_WIRE_OPERATION 0x00000002L
  139. #define PCINIT_MODEMCONFIG_DISABLE_BUSY_DETECT 0x00000004L
  140. #define PCINIT_MODEMCONFIG_DISABLE_CALLING_TONE 0x00000008L
  141. #define PCINIT_MODEMCONFIG_DISABLE_ANSWER_TONE 0x00000010L
  142. #define PCINIT_MODEMCONFIG_ENABLE_DIAL_TONE_DET 0x00000020L
  143. #define PCINIT_MODEMCONFIG_USE_POTS_INTERFACE 0x00000040L
  144. #define PCINIT_MODEMCONFIG_FORCE_RAY_TAYLOR_FAX 0x00000080L
  145. #define PCINIT_MODEMCONFIG_DISABLE_RETRAIN 0x00000100L
  146. #define PCINIT_MODEMCONFIG_DISABLE_STEPDOWN 0x00000200L
  147. #define PCINIT_MODEMCONFIG_DISABLE_SPLIT_SPEED 0x00000400L
  148. #define PCINIT_MODEMCONFIG_DISABLE_TRELLIS 0x00000800L
  149. #define PCINIT_MODEMCONFIG_ALLOW_RDL_TEST_LOOP 0x00001000L
  150. #define PCINIT_MODEMCONFIG_DISABLE_STEPUP 0x00002000L
  151. #define PCINIT_MODEMCONFIG_DISABLE_FLUSH_TIMER 0x00004000L
  152. #define PCINIT_MODEMCONFIG_REVERSE_DIRECTION 0x00008000L
  153. #define PCINIT_MODEMCONFIG_DISABLE_TX_REDUCTION 0x00010000L
  154. #define PCINIT_MODEMCONFIG_DISABLE_PRECODING 0x00020000L
  155. #define PCINIT_MODEMCONFIG_DISABLE_PREEMPHASIS 0x00040000L
  156. #define PCINIT_MODEMCONFIG_DISABLE_SHAPING 0x00080000L
  157. #define PCINIT_MODEMCONFIG_DISABLE_NONLINEAR_EN 0x00100000L
  158. #define PCINIT_MODEMCONFIG_DISABLE_MANUALREDUCT 0x00200000L
  159. #define PCINIT_MODEMCONFIG_DISABLE_16_POINT_TRN 0x00400000L
  160. #define PCINIT_MODEMCONFIG_DISABLE_2400_SYMBOLS 0x01000000L
  161. #define PCINIT_MODEMCONFIG_DISABLE_2743_SYMBOLS 0x02000000L
  162. #define PCINIT_MODEMCONFIG_DISABLE_2800_SYMBOLS 0x04000000L
  163. #define PCINIT_MODEMCONFIG_DISABLE_3000_SYMBOLS 0x08000000L
  164. #define PCINIT_MODEMCONFIG_DISABLE_3200_SYMBOLS 0x10000000L
  165. #define PCINIT_MODEMCONFIG_DISABLE_3429_SYMBOLS 0x20000000L
  166. #define PCINIT_MODEM_NEGOTIATE_HIGHEST 0x00
  167. #define PCINIT_MODEM_NEGOTIATE_DISABLED 0x01
  168. #define PCINIT_MODEM_NEGOTIATE_IN_CLASS 0x02
  169. #define PCINIT_MODEM_NEGOTIATE_V100 0x03
  170. #define PCINIT_MODEM_NEGOTIATE_V8 0x04
  171. #define PCINIT_MODEM_NEGOTIATE_V8BIS 0x05
  172. #define PCINIT_MODEM_NEGOTIATE_CHOICES 0x06
  173. #define PCINIT_MODEMMODULATION_DISABLE_V21 0x00000001L
  174. #define PCINIT_MODEMMODULATION_DISABLE_V23 0x00000002L
  175. #define PCINIT_MODEMMODULATION_DISABLE_V22 0x00000004L
  176. #define PCINIT_MODEMMODULATION_DISABLE_V22BIS 0x00000008L
  177. #define PCINIT_MODEMMODULATION_DISABLE_V32 0x00000010L
  178. #define PCINIT_MODEMMODULATION_DISABLE_V32BIS 0x00000020L
  179. #define PCINIT_MODEMMODULATION_DISABLE_V34 0x00000040L
  180. #define PCINIT_MODEMMODULATION_DISABLE_V90 0x00000080L
  181. #define PCINIT_MODEMMODULATION_DISABLE_BELL103 0x00000100L
  182. #define PCINIT_MODEMMODULATION_DISABLE_BELL212A 0x00000200L
  183. #define PCINIT_MODEMMODULATION_DISABLE_VFC 0x00000400L
  184. #define PCINIT_MODEMMODULATION_DISABLE_K56FLEX 0x00000800L
  185. #define PCINIT_MODEMMODULATION_DISABLE_X2 0x00001000L
  186. #define PCINIT_MODEMMODULATION_ENABLE_V29FDX 0x00010000L
  187. #define PCINIT_MODEMMODULATION_ENABLE_V33 0x00020000L
  188. #define PCINIT_MODEMMODULATION_ENABLE_V90A 0x00040000L
  189. #define PCINIT_MODEM_TRANSMIT_LEVEL_CHOICES 0x10
  190. #define PCINIT_MODEM_SPEAKER_OFF 0x00
  191. #define PCINIT_MODEM_SPEAKER_DURING_TRAIN 0x01
  192. #define PCINIT_MODEM_SPEAKER_TIL_CONNECT 0x02
  193. #define PCINIT_MODEM_SPEAKER_ALWAYS_ON 0x03
  194. #define PCINIT_MODEM_SPEAKER_CHOICES 0x04
  195. #define PCINIT_MODEM_SPEAKER_VOLUME_MIN 0x00
  196. #define PCINIT_MODEM_SPEAKER_VOLUME_LOW 0x01
  197. #define PCINIT_MODEM_SPEAKER_VOLUME_HIGH 0x02
  198. #define PCINIT_MODEM_SPEAKER_VOLUME_MAX 0x03
  199. #define PCINIT_MODEM_SPEAKER_VOLUME_CHOICES 0x04
  200. /*------------------------------------------------------------------*/
  201. #define PCINIT_FAXCONFIG_DISABLE_FINE 0x0001
  202. #define PCINIT_FAXCONFIG_DISABLE_ECM 0x0002
  203. #define PCINIT_FAXCONFIG_ECM_64_BYTES 0x0004
  204. #define PCINIT_FAXCONFIG_DISABLE_2D_CODING 0x0008
  205. #define PCINIT_FAXCONFIG_DISABLE_T6_CODING 0x0010
  206. #define PCINIT_FAXCONFIG_DISABLE_UNCOMPR 0x0020
  207. #define PCINIT_FAXCONFIG_REFUSE_POLLING 0x0040
  208. #define PCINIT_FAXCONFIG_HIDE_TOTAL_PAGES 0x0080
  209. #define PCINIT_FAXCONFIG_HIDE_ALL_HEADLINE 0x0100
  210. #define PCINIT_FAXCONFIG_HIDE_PAGE_INFO 0x0180
  211. #define PCINIT_FAXCONFIG_HEADLINE_OPTIONS_MASK 0x0180
  212. #define PCINIT_FAXCONFIG_DISABLE_FEATURE_FALLBACK 0x0200
  213. #define PCINIT_FAXCONFIG_V34FAX_CONTROL_RATE_1200 0x0800
  214. #define PCINIT_FAXCONFIG_DISABLE_V34FAX 0x1000
  215. #define PCINIT_FAXCONFIG_DISABLE_R8_0770_OR_200 0x01
  216. #define PCINIT_FAXCONFIG_DISABLE_R8_1540 0x02
  217. #define PCINIT_FAXCONFIG_DISABLE_R16_1540_OR_400 0x04
  218. #define PCINIT_FAXCONFIG_DISABLE_R4_0385_OR_100 0x08
  219. #define PCINIT_FAXCONFIG_DISABLE_300_300 0x10
  220. #define PCINIT_FAXCONFIG_DISABLE_INCH_BASED 0x40
  221. #define PCINIT_FAXCONFIG_DISABLE_METRIC_BASED 0x80
  222. #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_A3 0
  223. #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_B4 1
  224. #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_A4 2
  225. #define PCINIT_FAXCONFIG_REC_WIDTH_COUNT 3
  226. #define PCINIT_FAXCONFIG_REC_LENGTH_UNLIMITED 0
  227. #define PCINIT_FAXCONFIG_REC_LENGTH_ISO_B4 1
  228. #define PCINIT_FAXCONFIG_REC_LENGTH_ISO_A4 2
  229. #define PCINIT_FAXCONFIG_REC_LENGTH_COUNT 3
  230. #define PCINIT_FAXCONFIG_SCANLINE_TIME_00_00_00 0
  231. #define PCINIT_FAXCONFIG_SCANLINE_TIME_05_05_05 1
  232. #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_05_05 2
  233. #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_10_10 3
  234. #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_10_10 4
  235. #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_20_20 5
  236. #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_20_20 6
  237. #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_40_40 7
  238. #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_8 8
  239. #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_9 9
  240. #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_10 10
  241. #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_10_05 11
  242. #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_10_05 12
  243. #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_20_10 13
  244. #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_20_10 14
  245. #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_40_20 15
  246. #define PCINIT_FAXCONFIG_SCANLINE_TIME_COUNT 16
  247. #define PCINIT_FAXCONFIG_DISABLE_TX_REDUCTION 0x00010000L
  248. #define PCINIT_FAXCONFIG_DISABLE_PRECODING 0x00020000L
  249. #define PCINIT_FAXCONFIG_DISABLE_PREEMPHASIS 0x00040000L
  250. #define PCINIT_FAXCONFIG_DISABLE_SHAPING 0x00080000L
  251. #define PCINIT_FAXCONFIG_DISABLE_NONLINEAR_EN 0x00100000L
  252. #define PCINIT_FAXCONFIG_DISABLE_MANUALREDUCT 0x00200000L
  253. #define PCINIT_FAXCONFIG_DISABLE_16_POINT_TRN 0x00400000L
  254. #define PCINIT_FAXCONFIG_DISABLE_2400_SYMBOLS 0x01000000L
  255. #define PCINIT_FAXCONFIG_DISABLE_2743_SYMBOLS 0x02000000L
  256. #define PCINIT_FAXCONFIG_DISABLE_2800_SYMBOLS 0x04000000L
  257. #define PCINIT_FAXCONFIG_DISABLE_3000_SYMBOLS 0x08000000L
  258. #define PCINIT_FAXCONFIG_DISABLE_3200_SYMBOLS 0x10000000L
  259. #define PCINIT_FAXCONFIG_DISABLE_3429_SYMBOLS 0x20000000L
  260. /*--------------------------------------------------------------------------*/
  261. #define PCINIT_XDI_CMA_FOR_ALL_NL_PRIMITIVES 0x01
  262. /*--------------------------------------------------------------------------*/
  263. #define PCINIT_FPGA_PLX_ACCESS_SUPPORTED 0x01
  264. /*--------------------------------------------------------------------------*/
  265. #endif
  266. /*--------------------------------------------------------------------------*/