bcmsrom_fmt.h 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  1. /*
  2. * SROM format definition.
  3. *
  4. * Portions of this code are copyright (c) 2020 Cypress Semiconductor Corporation
  5. *
  6. * Copyright (C) 1999-2020, Broadcom Corporation
  7. *
  8. * Unless you and Broadcom execute a separate written software license
  9. * agreement governing use of this software, this software is licensed to you
  10. * under the terms of the GNU General Public License version 2 (the "GPL"),
  11. * available at http://www.broadcom.com/licenses/GPLv2.php, with the
  12. * following added to such license:
  13. *
  14. * As a special exception, the copyright holders of this software give you
  15. * permission to link this software with independent modules, and to copy and
  16. * distribute the resulting executable under terms of your choice, provided that
  17. * you also meet, for each linked independent module, the terms and conditions of
  18. * the license of that module. An independent module is a module which is not
  19. * derived from this software. The special exception does not apply to any
  20. * modifications of the software.
  21. *
  22. * Notwithstanding the above, under no circumstances may you combine this
  23. * software in any way with any other Broadcom software provided under a license
  24. * other than the GPL, without Broadcom's express prior written consent.
  25. *
  26. *
  27. * <<Broadcom-WL-IPTag/Open:>>
  28. *
  29. * $Id: bcmsrom_fmt.h 688657 2017-03-07 10:12:56Z $
  30. */
  31. #ifndef _bcmsrom_fmt_h_
  32. #define _bcmsrom_fmt_h_
  33. #define SROM_MAXREV 16 /* max revision supported by driver */
  34. /* Maximum srom: 16 Kilobits == 2048 bytes */
  35. #define SROM_MAX 2048
  36. #define SROM_MAXW 1024
  37. #ifdef LARGE_NVRAM_MAXSZ
  38. #define VARS_MAX LARGE_NVRAM_MAXSZ
  39. #else
  40. #define LARGE_NVRAM_MAXSZ 8192
  41. #define VARS_MAX LARGE_NVRAM_MAXSZ
  42. #endif /* LARGE_NVRAM_MAXSZ */
  43. /* PCI fields */
  44. #define PCI_F0DEVID 48
  45. #define SROM_WORDS 64
  46. #define SROM_SIGN_MINWORDS 128
  47. #define SROM3_SWRGN_OFF 28 /* s/w region offset in words */
  48. #define SROM_SSID 2
  49. #define SROM_SVID 3
  50. #define SROM_WL1LHMAXP 29
  51. #define SROM_WL1LPAB0 30
  52. #define SROM_WL1LPAB1 31
  53. #define SROM_WL1LPAB2 32
  54. #define SROM_WL1HPAB0 33
  55. #define SROM_WL1HPAB1 34
  56. #define SROM_WL1HPAB2 35
  57. #define SROM_MACHI_IL0 36
  58. #define SROM_MACMID_IL0 37
  59. #define SROM_MACLO_IL0 38
  60. #define SROM_MACHI_ET0 39
  61. #define SROM_MACMID_ET0 40
  62. #define SROM_MACLO_ET0 41
  63. #define SROM_MACHI_ET1 42
  64. #define SROM_MACMID_ET1 43
  65. #define SROM_MACLO_ET1 44
  66. #define SROM3_MACHI 37
  67. #define SROM3_MACMID 38
  68. #define SROM3_MACLO 39
  69. #define SROM_BXARSSI2G 40
  70. #define SROM_BXARSSI5G 41
  71. #define SROM_TRI52G 42
  72. #define SROM_TRI5GHL 43
  73. #define SROM_RXPO52G 45
  74. #define SROM2_ENETPHY 45
  75. #define SROM_AABREV 46
  76. /* Fields in AABREV */
  77. #define SROM_BR_MASK 0x00ff
  78. #define SROM_CC_MASK 0x0f00
  79. #define SROM_CC_SHIFT 8
  80. #define SROM_AA0_MASK 0x3000
  81. #define SROM_AA0_SHIFT 12
  82. #define SROM_AA1_MASK 0xc000
  83. #define SROM_AA1_SHIFT 14
  84. #define SROM_WL0PAB0 47
  85. #define SROM_WL0PAB1 48
  86. #define SROM_WL0PAB2 49
  87. #define SROM_LEDBH10 50
  88. #define SROM_LEDBH32 51
  89. #define SROM_WL10MAXP 52
  90. #define SROM_WL1PAB0 53
  91. #define SROM_WL1PAB1 54
  92. #define SROM_WL1PAB2 55
  93. #define SROM_ITT 56
  94. #define SROM_BFL 57
  95. #define SROM_BFL2 28
  96. #define SROM3_BFL2 61
  97. #define SROM_AG10 58
  98. #define SROM_CCODE 59
  99. #define SROM_OPO 60
  100. #define SROM3_LEDDC 62
  101. #define SROM_CRCREV 63
  102. /* SROM Rev 4: Reallocate the software part of the srom to accomodate
  103. * MIMO features. It assumes up to two PCIE functions and 440 bytes
  104. * of useable srom i.e. the useable storage in chips with OTP that
  105. * implements hardware redundancy.
  106. */
  107. #define SROM4_WORDS 220
  108. #define SROM4_SIGN 32
  109. #define SROM4_SIGNATURE 0x5372
  110. #define SROM4_BREV 33
  111. #define SROM4_BFL0 34
  112. #define SROM4_BFL1 35
  113. #define SROM4_BFL2 36
  114. #define SROM4_BFL3 37
  115. #define SROM5_BFL0 37
  116. #define SROM5_BFL1 38
  117. #define SROM5_BFL2 39
  118. #define SROM5_BFL3 40
  119. #define SROM4_MACHI 38
  120. #define SROM4_MACMID 39
  121. #define SROM4_MACLO 40
  122. #define SROM5_MACHI 41
  123. #define SROM5_MACMID 42
  124. #define SROM5_MACLO 43
  125. #define SROM4_CCODE 41
  126. #define SROM4_REGREV 42
  127. #define SROM5_CCODE 34
  128. #define SROM5_REGREV 35
  129. #define SROM4_LEDBH10 43
  130. #define SROM4_LEDBH32 44
  131. #define SROM5_LEDBH10 59
  132. #define SROM5_LEDBH32 60
  133. #define SROM4_LEDDC 45
  134. #define SROM5_LEDDC 45
  135. #define SROM4_AA 46
  136. #define SROM4_AA2G_MASK 0x00ff
  137. #define SROM4_AA2G_SHIFT 0
  138. #define SROM4_AA5G_MASK 0xff00
  139. #define SROM4_AA5G_SHIFT 8
  140. #define SROM4_AG10 47
  141. #define SROM4_AG32 48
  142. #define SROM4_TXPID2G 49
  143. #define SROM4_TXPID5G 51
  144. #define SROM4_TXPID5GL 53
  145. #define SROM4_TXPID5GH 55
  146. #define SROM4_TXRXC 61
  147. #define SROM4_TXCHAIN_MASK 0x000f
  148. #define SROM4_TXCHAIN_SHIFT 0
  149. #define SROM4_RXCHAIN_MASK 0x00f0
  150. #define SROM4_RXCHAIN_SHIFT 4
  151. #define SROM4_SWITCH_MASK 0xff00
  152. #define SROM4_SWITCH_SHIFT 8
  153. /* Per-path fields */
  154. #define MAX_PATH_SROM 4
  155. #define SROM4_PATH0 64
  156. #define SROM4_PATH1 87
  157. #define SROM4_PATH2 110
  158. #define SROM4_PATH3 133
  159. #define SROM4_2G_ITT_MAXP 0
  160. #define SROM4_2G_PA 1
  161. #define SROM4_5G_ITT_MAXP 5
  162. #define SROM4_5GLH_MAXP 6
  163. #define SROM4_5G_PA 7
  164. #define SROM4_5GL_PA 11
  165. #define SROM4_5GH_PA 15
  166. /* Fields in the ITT_MAXP and 5GLH_MAXP words */
  167. #define B2G_MAXP_MASK 0xff
  168. #define B2G_ITT_SHIFT 8
  169. #define B5G_MAXP_MASK 0xff
  170. #define B5G_ITT_SHIFT 8
  171. #define B5GH_MAXP_MASK 0xff
  172. #define B5GL_MAXP_SHIFT 8
  173. /* All the miriad power offsets */
  174. #define SROM4_2G_CCKPO 156
  175. #define SROM4_2G_OFDMPO 157
  176. #define SROM4_5G_OFDMPO 159
  177. #define SROM4_5GL_OFDMPO 161
  178. #define SROM4_5GH_OFDMPO 163
  179. #define SROM4_2G_MCSPO 165
  180. #define SROM4_5G_MCSPO 173
  181. #define SROM4_5GL_MCSPO 181
  182. #define SROM4_5GH_MCSPO 189
  183. #define SROM4_CDDPO 197
  184. #define SROM4_STBCPO 198
  185. #define SROM4_BW40PO 199
  186. #define SROM4_BWDUPPO 200
  187. #define SROM4_CRCREV 219
  188. /* SROM Rev 8: Make space for a 48word hardware header for PCIe rev >= 6.
  189. * This is acombined srom for both MIMO and SISO boards, usable in
  190. * the .130 4Kilobit OTP with hardware redundancy.
  191. */
  192. #define SROM8_SIGN 64
  193. #define SROM8_BREV 65
  194. #define SROM8_BFL0 66
  195. #define SROM8_BFL1 67
  196. #define SROM8_BFL2 68
  197. #define SROM8_BFL3 69
  198. #define SROM8_MACHI 70
  199. #define SROM8_MACMID 71
  200. #define SROM8_MACLO 72
  201. #define SROM8_CCODE 73
  202. #define SROM8_REGREV 74
  203. #define SROM8_LEDBH10 75
  204. #define SROM8_LEDBH32 76
  205. #define SROM8_LEDDC 77
  206. #define SROM8_AA 78
  207. #define SROM8_AG10 79
  208. #define SROM8_AG32 80
  209. #define SROM8_TXRXC 81
  210. #define SROM8_BXARSSI2G 82
  211. #define SROM8_BXARSSI5G 83
  212. #define SROM8_TRI52G 84
  213. #define SROM8_TRI5GHL 85
  214. #define SROM8_RXPO52G 86
  215. #define SROM8_FEM2G 87
  216. #define SROM8_FEM5G 88
  217. #define SROM8_FEM_ANTSWLUT_MASK 0xf800
  218. #define SROM8_FEM_ANTSWLUT_SHIFT 11
  219. #define SROM8_FEM_TR_ISO_MASK 0x0700
  220. #define SROM8_FEM_TR_ISO_SHIFT 8
  221. #define SROM8_FEM_PDET_RANGE_MASK 0x00f8
  222. #define SROM8_FEM_PDET_RANGE_SHIFT 3
  223. #define SROM8_FEM_EXTPA_GAIN_MASK 0x0006
  224. #define SROM8_FEM_EXTPA_GAIN_SHIFT 1
  225. #define SROM8_FEM_TSSIPOS_MASK 0x0001
  226. #define SROM8_FEM_TSSIPOS_SHIFT 0
  227. #define SROM8_THERMAL 89
  228. /* Temp sense related entries */
  229. #define SROM8_MPWR_RAWTS 90
  230. #define SROM8_TS_SLP_OPT_CORRX 91
  231. /* FOC: freiquency offset correction, HWIQ: H/W IOCAL enable, IQSWP: IQ CAL swap disable */
  232. #define SROM8_FOC_HWIQ_IQSWP 92
  233. #define SROM8_EXTLNAGAIN 93
  234. /* Temperature delta for PHY calibration */
  235. #define SROM8_PHYCAL_TEMPDELTA 94
  236. /* Measured power 1 & 2, 0-13 bits at offset 95, MSB 2 bits are unused for now. */
  237. #define SROM8_MPWR_1_AND_2 95
  238. /* Per-path offsets & fields */
  239. #define SROM8_PATH0 96
  240. #define SROM8_PATH1 112
  241. #define SROM8_PATH2 128
  242. #define SROM8_PATH3 144
  243. #define SROM8_2G_ITT_MAXP 0
  244. #define SROM8_2G_PA 1
  245. #define SROM8_5G_ITT_MAXP 4
  246. #define SROM8_5GLH_MAXP 5
  247. #define SROM8_5G_PA 6
  248. #define SROM8_5GL_PA 9
  249. #define SROM8_5GH_PA 12
  250. /* All the miriad power offsets */
  251. #define SROM8_2G_CCKPO 160
  252. #define SROM8_2G_OFDMPO 161
  253. #define SROM8_5G_OFDMPO 163
  254. #define SROM8_5GL_OFDMPO 165
  255. #define SROM8_5GH_OFDMPO 167
  256. #define SROM8_2G_MCSPO 169
  257. #define SROM8_5G_MCSPO 177
  258. #define SROM8_5GL_MCSPO 185
  259. #define SROM8_5GH_MCSPO 193
  260. #define SROM8_CDDPO 201
  261. #define SROM8_STBCPO 202
  262. #define SROM8_BW40PO 203
  263. #define SROM8_BWDUPPO 204
  264. /* SISO PA parameters are in the path0 spaces */
  265. #define SROM8_SISO 96
  266. /* Legacy names for SISO PA paramters */
  267. #define SROM8_W0_ITTMAXP (SROM8_SISO + SROM8_2G_ITT_MAXP)
  268. #define SROM8_W0_PAB0 (SROM8_SISO + SROM8_2G_PA)
  269. #define SROM8_W0_PAB1 (SROM8_SISO + SROM8_2G_PA + 1)
  270. #define SROM8_W0_PAB2 (SROM8_SISO + SROM8_2G_PA + 2)
  271. #define SROM8_W1_ITTMAXP (SROM8_SISO + SROM8_5G_ITT_MAXP)
  272. #define SROM8_W1_MAXP_LCHC (SROM8_SISO + SROM8_5GLH_MAXP)
  273. #define SROM8_W1_PAB0 (SROM8_SISO + SROM8_5G_PA)
  274. #define SROM8_W1_PAB1 (SROM8_SISO + SROM8_5G_PA + 1)
  275. #define SROM8_W1_PAB2 (SROM8_SISO + SROM8_5G_PA + 2)
  276. #define SROM8_W1_PAB0_LC (SROM8_SISO + SROM8_5GL_PA)
  277. #define SROM8_W1_PAB1_LC (SROM8_SISO + SROM8_5GL_PA + 1)
  278. #define SROM8_W1_PAB2_LC (SROM8_SISO + SROM8_5GL_PA + 2)
  279. #define SROM8_W1_PAB0_HC (SROM8_SISO + SROM8_5GH_PA)
  280. #define SROM8_W1_PAB1_HC (SROM8_SISO + SROM8_5GH_PA + 1)
  281. #define SROM8_W1_PAB2_HC (SROM8_SISO + SROM8_5GH_PA + 2)
  282. #define SROM8_CRCREV 219
  283. /* SROM REV 9 */
  284. #define SROM9_2GPO_CCKBW20 160
  285. #define SROM9_2GPO_CCKBW20UL 161
  286. #define SROM9_2GPO_LOFDMBW20 162
  287. #define SROM9_2GPO_LOFDMBW20UL 164
  288. #define SROM9_5GLPO_LOFDMBW20 166
  289. #define SROM9_5GLPO_LOFDMBW20UL 168
  290. #define SROM9_5GMPO_LOFDMBW20 170
  291. #define SROM9_5GMPO_LOFDMBW20UL 172
  292. #define SROM9_5GHPO_LOFDMBW20 174
  293. #define SROM9_5GHPO_LOFDMBW20UL 176
  294. #define SROM9_2GPO_MCSBW20 178
  295. #define SROM9_2GPO_MCSBW20UL 180
  296. #define SROM9_2GPO_MCSBW40 182
  297. #define SROM9_5GLPO_MCSBW20 184
  298. #define SROM9_5GLPO_MCSBW20UL 186
  299. #define SROM9_5GLPO_MCSBW40 188
  300. #define SROM9_5GMPO_MCSBW20 190
  301. #define SROM9_5GMPO_MCSBW20UL 192
  302. #define SROM9_5GMPO_MCSBW40 194
  303. #define SROM9_5GHPO_MCSBW20 196
  304. #define SROM9_5GHPO_MCSBW20UL 198
  305. #define SROM9_5GHPO_MCSBW40 200
  306. #define SROM9_PO_MCS32 202
  307. #define SROM9_PO_LOFDM40DUP 203
  308. #define SROM9_EU_EDCRSTH 204
  309. #define SROM10_EU_EDCRSTH 204
  310. #define SROM8_RXGAINERR_2G 205
  311. #define SROM8_RXGAINERR_5GL 206
  312. #define SROM8_RXGAINERR_5GM 207
  313. #define SROM8_RXGAINERR_5GH 208
  314. #define SROM8_RXGAINERR_5GU 209
  315. #define SROM8_SUBBAND_PPR 210
  316. #define SROM8_PCIEINGRESS_WAR 211
  317. #define SROM8_EU_EDCRSTH 212
  318. #define SROM9_SAR 212
  319. #define SROM8_NOISELVL_2G 213
  320. #define SROM8_NOISELVL_5GL 214
  321. #define SROM8_NOISELVL_5GM 215
  322. #define SROM8_NOISELVL_5GH 216
  323. #define SROM8_NOISELVL_5GU 217
  324. #define SROM8_NOISECALOFFSET 218
  325. #define SROM9_REV_CRC 219
  326. #define SROM10_CCKPWROFFSET 218
  327. #define SROM10_SIGN 219
  328. #define SROM10_SWCTRLMAP_2G 220
  329. #define SROM10_CRCREV 229
  330. #define SROM10_WORDS 230
  331. #define SROM10_SIGNATURE SROM4_SIGNATURE
  332. /* SROM REV 11 */
  333. #define SROM11_BREV 65
  334. #define SROM11_BFL0 66
  335. #define SROM11_BFL1 67
  336. #define SROM11_BFL2 68
  337. #define SROM11_BFL3 69
  338. #define SROM11_BFL4 70
  339. #define SROM11_BFL5 71
  340. #define SROM11_MACHI 72
  341. #define SROM11_MACMID 73
  342. #define SROM11_MACLO 74
  343. #define SROM11_CCODE 75
  344. #define SROM11_REGREV 76
  345. #define SROM11_LEDBH10 77
  346. #define SROM11_LEDBH32 78
  347. #define SROM11_LEDDC 79
  348. #define SROM11_AA 80
  349. #define SROM11_AGBG10 81
  350. #define SROM11_AGBG2A0 82
  351. #define SROM11_AGA21 83
  352. #define SROM11_TXRXC 84
  353. #define SROM11_FEM_CFG1 85
  354. #define SROM11_FEM_CFG2 86
  355. /* Masks and offsets for FEM_CFG */
  356. #define SROM11_FEMCTRL_MASK 0xf800
  357. #define SROM11_FEMCTRL_SHIFT 11
  358. #define SROM11_PAPDCAP_MASK 0x0400
  359. #define SROM11_PAPDCAP_SHIFT 10
  360. #define SROM11_TWORANGETSSI_MASK 0x0200
  361. #define SROM11_TWORANGETSSI_SHIFT 9
  362. #define SROM11_PDGAIN_MASK 0x01f0
  363. #define SROM11_PDGAIN_SHIFT 4
  364. #define SROM11_EPAGAIN_MASK 0x000e
  365. #define SROM11_EPAGAIN_SHIFT 1
  366. #define SROM11_TSSIPOSSLOPE_MASK 0x0001
  367. #define SROM11_TSSIPOSSLOPE_SHIFT 0
  368. #define SROM11_GAINCTRLSPH_MASK 0xf800
  369. #define SROM11_GAINCTRLSPH_SHIFT 11
  370. #define SROM11_THERMAL 87
  371. #define SROM11_MPWR_RAWTS 88
  372. #define SROM11_TS_SLP_OPT_CORRX 89
  373. #define SROM11_XTAL_FREQ 90
  374. #define SROM11_5GB0_4080_W0_A1 91
  375. #define SROM11_PHYCAL_TEMPDELTA 92
  376. #define SROM11_MPWR_1_AND_2 93
  377. #define SROM11_5GB0_4080_W1_A1 94
  378. #define SROM11_TSSIFLOOR_2G 95
  379. #define SROM11_TSSIFLOOR_5GL 96
  380. #define SROM11_TSSIFLOOR_5GM 97
  381. #define SROM11_TSSIFLOOR_5GH 98
  382. #define SROM11_TSSIFLOOR_5GU 99
  383. /* Masks and offsets for Thermal parameters */
  384. #define SROM11_TEMPS_PERIOD_MASK 0xf0
  385. #define SROM11_TEMPS_PERIOD_SHIFT 4
  386. #define SROM11_TEMPS_HYSTERESIS_MASK 0x0f
  387. #define SROM11_TEMPS_HYSTERESIS_SHIFT 0
  388. #define SROM11_TEMPCORRX_MASK 0xfc
  389. #define SROM11_TEMPCORRX_SHIFT 2
  390. #define SROM11_TEMPSENSE_OPTION_MASK 0x3
  391. #define SROM11_TEMPSENSE_OPTION_SHIFT 0
  392. #define SROM11_PDOFF_2G_40M_A0_MASK 0x000f
  393. #define SROM11_PDOFF_2G_40M_A0_SHIFT 0
  394. #define SROM11_PDOFF_2G_40M_A1_MASK 0x00f0
  395. #define SROM11_PDOFF_2G_40M_A1_SHIFT 4
  396. #define SROM11_PDOFF_2G_40M_A2_MASK 0x0f00
  397. #define SROM11_PDOFF_2G_40M_A2_SHIFT 8
  398. #define SROM11_PDOFF_2G_40M_VALID_MASK 0x8000
  399. #define SROM11_PDOFF_2G_40M_VALID_SHIFT 15
  400. #define SROM11_PDOFF_2G_40M 100
  401. #define SROM11_PDOFF_40M_A0 101
  402. #define SROM11_PDOFF_40M_A1 102
  403. #define SROM11_PDOFF_40M_A2 103
  404. #define SROM11_5GB0_4080_W2_A1 103
  405. #define SROM11_PDOFF_80M_A0 104
  406. #define SROM11_PDOFF_80M_A1 105
  407. #define SROM11_PDOFF_80M_A2 106
  408. #define SROM11_5GB1_4080_W0_A1 106
  409. #define SROM11_SUBBAND5GVER 107
  410. /* Per-path fields and offset */
  411. #define MAX_PATH_SROM_11 3
  412. #define SROM11_PATH0 108
  413. #define SROM11_PATH1 128
  414. #define SROM11_PATH2 148
  415. #define SROM11_2G_MAXP 0
  416. #define SROM11_5GB1_4080_PA 0
  417. #define SROM11_2G_PA 1
  418. #define SROM11_5GB2_4080_PA 2
  419. #define SROM11_RXGAINS1 4
  420. #define SROM11_RXGAINS 5
  421. #define SROM11_5GB3_4080_PA 5
  422. #define SROM11_5GB1B0_MAXP 6
  423. #define SROM11_5GB3B2_MAXP 7
  424. #define SROM11_5GB0_PA 8
  425. #define SROM11_5GB1_PA 11
  426. #define SROM11_5GB2_PA 14
  427. #define SROM11_5GB3_PA 17
  428. /* Masks and offsets for rxgains */
  429. #define SROM11_RXGAINS5GTRELNABYPA_MASK 0x8000
  430. #define SROM11_RXGAINS5GTRELNABYPA_SHIFT 15
  431. #define SROM11_RXGAINS5GTRISOA_MASK 0x7800
  432. #define SROM11_RXGAINS5GTRISOA_SHIFT 11
  433. #define SROM11_RXGAINS5GELNAGAINA_MASK 0x0700
  434. #define SROM11_RXGAINS5GELNAGAINA_SHIFT 8
  435. #define SROM11_RXGAINS2GTRELNABYPA_MASK 0x0080
  436. #define SROM11_RXGAINS2GTRELNABYPA_SHIFT 7
  437. #define SROM11_RXGAINS2GTRISOA_MASK 0x0078
  438. #define SROM11_RXGAINS2GTRISOA_SHIFT 3
  439. #define SROM11_RXGAINS2GELNAGAINA_MASK 0x0007
  440. #define SROM11_RXGAINS2GELNAGAINA_SHIFT 0
  441. #define SROM11_RXGAINS5GHTRELNABYPA_MASK 0x8000
  442. #define SROM11_RXGAINS5GHTRELNABYPA_SHIFT 15
  443. #define SROM11_RXGAINS5GHTRISOA_MASK 0x7800
  444. #define SROM11_RXGAINS5GHTRISOA_SHIFT 11
  445. #define SROM11_RXGAINS5GHELNAGAINA_MASK 0x0700
  446. #define SROM11_RXGAINS5GHELNAGAINA_SHIFT 8
  447. #define SROM11_RXGAINS5GMTRELNABYPA_MASK 0x0080
  448. #define SROM11_RXGAINS5GMTRELNABYPA_SHIFT 7
  449. #define SROM11_RXGAINS5GMTRISOA_MASK 0x0078
  450. #define SROM11_RXGAINS5GMTRISOA_SHIFT 3
  451. #define SROM11_RXGAINS5GMELNAGAINA_MASK 0x0007
  452. #define SROM11_RXGAINS5GMELNAGAINA_SHIFT 0
  453. /* Power per rate */
  454. #define SROM11_CCKBW202GPO 168
  455. #define SROM11_CCKBW20UL2GPO 169
  456. #define SROM11_MCSBW202GPO 170
  457. #define SROM11_MCSBW202GPO_1 171
  458. #define SROM11_MCSBW402GPO 172
  459. #define SROM11_MCSBW402GPO_1 173
  460. #define SROM11_DOT11AGOFDMHRBW202GPO 174
  461. #define SROM11_OFDMLRBW202GPO 175
  462. #define SROM11_MCSBW205GLPO 176
  463. #define SROM11_MCSBW205GLPO_1 177
  464. #define SROM11_MCSBW405GLPO 178
  465. #define SROM11_MCSBW405GLPO_1 179
  466. #define SROM11_MCSBW805GLPO 180
  467. #define SROM11_MCSBW805GLPO_1 181
  468. #define SROM11_RPCAL_2G 182
  469. #define SROM11_RPCAL_5GL 183
  470. #define SROM11_MCSBW205GMPO 184
  471. #define SROM11_MCSBW205GMPO_1 185
  472. #define SROM11_MCSBW405GMPO 186
  473. #define SROM11_MCSBW405GMPO_1 187
  474. #define SROM11_MCSBW805GMPO 188
  475. #define SROM11_MCSBW805GMPO_1 189
  476. #define SROM11_RPCAL_5GM 190
  477. #define SROM11_RPCAL_5GH 191
  478. #define SROM11_MCSBW205GHPO 192
  479. #define SROM11_MCSBW205GHPO_1 193
  480. #define SROM11_MCSBW405GHPO 194
  481. #define SROM11_MCSBW405GHPO_1 195
  482. #define SROM11_MCSBW805GHPO 196
  483. #define SROM11_MCSBW805GHPO_1 197
  484. #define SROM11_RPCAL_5GU 198
  485. #define SROM11_PDOFF_2G_CCK 199
  486. #define SROM11_MCSLR5GLPO 200
  487. #define SROM11_MCSLR5GMPO 201
  488. #define SROM11_MCSLR5GHPO 202
  489. #define SROM11_SB20IN40HRPO 203
  490. #define SROM11_SB20IN80AND160HR5GLPO 204
  491. #define SROM11_SB40AND80HR5GLPO 205
  492. #define SROM11_SB20IN80AND160HR5GMPO 206
  493. #define SROM11_SB40AND80HR5GMPO 207
  494. #define SROM11_SB20IN80AND160HR5GHPO 208
  495. #define SROM11_SB40AND80HR5GHPO 209
  496. #define SROM11_SB20IN40LRPO 210
  497. #define SROM11_SB20IN80AND160LR5GLPO 211
  498. #define SROM11_SB40AND80LR5GLPO 212
  499. #define SROM11_TXIDXCAP2G 212
  500. #define SROM11_SB20IN80AND160LR5GMPO 213
  501. #define SROM11_SB40AND80LR5GMPO 214
  502. #define SROM11_TXIDXCAP5G 214
  503. #define SROM11_SB20IN80AND160LR5GHPO 215
  504. #define SROM11_SB40AND80LR5GHPO 216
  505. #define SROM11_DOT11AGDUPHRPO 217
  506. #define SROM11_DOT11AGDUPLRPO 218
  507. /* MISC */
  508. #define SROM11_PCIEINGRESS_WAR 220
  509. #define SROM11_SAR 221
  510. #define SROM11_NOISELVL_2G 222
  511. #define SROM11_NOISELVL_5GL 223
  512. #define SROM11_NOISELVL_5GM 224
  513. #define SROM11_NOISELVL_5GH 225
  514. #define SROM11_NOISELVL_5GU 226
  515. #define SROM11_RXGAINERR_2G 227
  516. #define SROM11_RXGAINERR_5GL 228
  517. #define SROM11_RXGAINERR_5GM 229
  518. #define SROM11_RXGAINERR_5GH 230
  519. #define SROM11_RXGAINERR_5GU 231
  520. #define SROM11_EU_EDCRSTH 232
  521. #define SROM12_EU_EDCRSTH 232
  522. #define SROM11_SIGN 64
  523. #define SROM11_CRCREV 233
  524. #define SROM11_WORDS 234
  525. #define SROM11_SIGNATURE 0x0634
  526. /* SROM REV 12 */
  527. #define SROM12_SIGN 64
  528. #define SROM12_WORDS 512
  529. #define SROM12_SIGNATURE 0x8888
  530. #define SROM12_CRCREV 511
  531. #define SROM12_BFL6 486
  532. #define SROM12_BFL7 487
  533. #define SROM12_MCSBW205GX1PO 234
  534. #define SROM12_MCSBW205GX1PO_1 235
  535. #define SROM12_MCSBW405GX1PO 236
  536. #define SROM12_MCSBW405GX1PO_1 237
  537. #define SROM12_MCSBW805GX1PO 238
  538. #define SROM12_MCSBW805GX1PO_1 239
  539. #define SROM12_MCSLR5GX1PO 240
  540. #define SROM12_SB40AND80LR5GX1PO 241
  541. #define SROM12_SB20IN80AND160LR5GX1PO 242
  542. #define SROM12_SB20IN80AND160HR5GX1PO 243
  543. #define SROM12_SB40AND80HR5GX1PO 244
  544. #define SROM12_MCSBW205GX2PO 245
  545. #define SROM12_MCSBW205GX2PO_1 246
  546. #define SROM12_MCSBW405GX2PO 247
  547. #define SROM12_MCSBW405GX2PO_1 248
  548. #define SROM12_MCSBW805GX2PO 249
  549. #define SROM12_MCSBW805GX2PO_1 250
  550. #define SROM12_MCSLR5GX2PO 251
  551. #define SROM12_SB40AND80LR5GX2PO 252
  552. #define SROM12_SB20IN80AND160LR5GX2PO 253
  553. #define SROM12_SB20IN80AND160HR5GX2PO 254
  554. #define SROM12_SB40AND80HR5GX2PO 255
  555. /* MISC */
  556. #define SROM12_RXGAINS10 483
  557. #define SROM12_RXGAINS11 484
  558. #define SROM12_RXGAINS12 485
  559. /* Per-path fields and offset */
  560. #define MAX_PATH_SROM_12 3
  561. #define SROM12_PATH0 256
  562. #define SROM12_PATH1 328
  563. #define SROM12_PATH2 400
  564. #define SROM12_5GB42G_MAXP 0
  565. #define SROM12_2GB0_PA 1
  566. #define SROM12_2GB0_PA_W0 1
  567. #define SROM12_2GB0_PA_W1 2
  568. #define SROM12_2GB0_PA_W2 3
  569. #define SROM12_2GB0_PA_W3 4
  570. #define SROM12_RXGAINS 5
  571. #define SROM12_5GB1B0_MAXP 6
  572. #define SROM12_5GB3B2_MAXP 7
  573. #define SROM12_5GB0_PA 8
  574. #define SROM12_5GB0_PA_W0 8
  575. #define SROM12_5GB0_PA_W1 9
  576. #define SROM12_5GB0_PA_W2 10
  577. #define SROM12_5GB0_PA_W3 11
  578. #define SROM12_5GB1_PA 12
  579. #define SROM12_5GB1_PA_W0 12
  580. #define SROM12_5GB1_PA_W1 13
  581. #define SROM12_5GB1_PA_W2 14
  582. #define SROM12_5GB1_PA_W3 15
  583. #define SROM12_5GB2_PA 16
  584. #define SROM12_5GB2_PA_W0 16
  585. #define SROM12_5GB2_PA_W1 17
  586. #define SROM12_5GB2_PA_W2 18
  587. #define SROM12_5GB2_PA_W3 19
  588. #define SROM12_5GB3_PA 20
  589. #define SROM12_5GB3_PA_W0 20
  590. #define SROM12_5GB3_PA_W1 21
  591. #define SROM12_5GB3_PA_W2 22
  592. #define SROM12_5GB3_PA_W3 23
  593. #define SROM12_5GB4_PA 24
  594. #define SROM12_5GB4_PA_W0 24
  595. #define SROM12_5GB4_PA_W1 25
  596. #define SROM12_5GB4_PA_W2 26
  597. #define SROM12_5GB4_PA_W3 27
  598. #define SROM12_2G40B0_PA 28
  599. #define SROM12_2G40B0_PA_W0 28
  600. #define SROM12_2G40B0_PA_W1 29
  601. #define SROM12_2G40B0_PA_W2 30
  602. #define SROM12_2G40B0_PA_W3 31
  603. #define SROM12_5G40B0_PA 32
  604. #define SROM12_5G40B0_PA_W0 32
  605. #define SROM12_5G40B0_PA_W1 33
  606. #define SROM12_5G40B0_PA_W2 34
  607. #define SROM12_5G40B0_PA_W3 35
  608. #define SROM12_5G40B1_PA 36
  609. #define SROM12_5G40B1_PA_W0 36
  610. #define SROM12_5G40B1_PA_W1 37
  611. #define SROM12_5G40B1_PA_W2 38
  612. #define SROM12_5G40B1_PA_W3 39
  613. #define SROM12_5G40B2_PA 40
  614. #define SROM12_5G40B2_PA_W0 40
  615. #define SROM12_5G40B2_PA_W1 41
  616. #define SROM12_5G40B2_PA_W2 42
  617. #define SROM12_5G40B2_PA_W3 43
  618. #define SROM12_5G40B3_PA 44
  619. #define SROM12_5G40B3_PA_W0 44
  620. #define SROM12_5G40B3_PA_W1 45
  621. #define SROM12_5G40B3_PA_W2 46
  622. #define SROM12_5G40B3_PA_W3 47
  623. #define SROM12_5G40B4_PA 48
  624. #define SROM12_5G40B4_PA_W0 48
  625. #define SROM12_5G40B4_PA_W1 49
  626. #define SROM12_5G40B4_PA_W2 50
  627. #define SROM12_5G40B4_PA_W3 51
  628. #define SROM12_5G80B0_PA 52
  629. #define SROM12_5G80B0_PA_W0 52
  630. #define SROM12_5G80B0_PA_W1 53
  631. #define SROM12_5G80B0_PA_W2 54
  632. #define SROM12_5G80B0_PA_W3 55
  633. #define SROM12_5G80B1_PA 56
  634. #define SROM12_5G80B1_PA_W0 56
  635. #define SROM12_5G80B1_PA_W1 57
  636. #define SROM12_5G80B1_PA_W2 58
  637. #define SROM12_5G80B1_PA_W3 59
  638. #define SROM12_5G80B2_PA 60
  639. #define SROM12_5G80B2_PA_W0 60
  640. #define SROM12_5G80B2_PA_W1 61
  641. #define SROM12_5G80B2_PA_W2 62
  642. #define SROM12_5G80B2_PA_W3 63
  643. #define SROM12_5G80B3_PA 64
  644. #define SROM12_5G80B3_PA_W0 64
  645. #define SROM12_5G80B3_PA_W1 65
  646. #define SROM12_5G80B3_PA_W2 66
  647. #define SROM12_5G80B3_PA_W3 67
  648. #define SROM12_5G80B4_PA 68
  649. #define SROM12_5G80B4_PA_W0 68
  650. #define SROM12_5G80B4_PA_W1 69
  651. #define SROM12_5G80B4_PA_W2 70
  652. #define SROM12_5G80B4_PA_W3 71
  653. /* PD offset */
  654. #define SROM12_PDOFF_2G_CCK 472
  655. #define SROM12_PDOFF_20in40M_5G_B0 473
  656. #define SROM12_PDOFF_20in40M_5G_B1 474
  657. #define SROM12_PDOFF_20in40M_5G_B2 475
  658. #define SROM12_PDOFF_20in40M_5G_B3 476
  659. #define SROM12_PDOFF_20in40M_5G_B4 477
  660. #define SROM12_PDOFF_40in80M_5G_B0 478
  661. #define SROM12_PDOFF_40in80M_5G_B1 479
  662. #define SROM12_PDOFF_40in80M_5G_B2 480
  663. #define SROM12_PDOFF_40in80M_5G_B3 481
  664. #define SROM12_PDOFF_40in80M_5G_B4 482
  665. #define SROM12_PDOFF_20in80M_5G_B0 488
  666. #define SROM12_PDOFF_20in80M_5G_B1 489
  667. #define SROM12_PDOFF_20in80M_5G_B2 490
  668. #define SROM12_PDOFF_20in80M_5G_B3 491
  669. #define SROM12_PDOFF_20in80M_5G_B4 492
  670. #define SROM12_GPDN_L 91 /* GPIO pull down bits [15:0] */
  671. #define SROM12_GPDN_H 233 /* GPIO pull down bits [31:16] */
  672. #define SROM13_SIGN 64
  673. #define SROM13_WORDS 590
  674. #define SROM13_SIGNATURE 0x4d55
  675. #define SROM13_CRCREV 589
  676. /* Per-path fields and offset */
  677. #define MAX_PATH_SROM_13 4
  678. #define SROM13_PATH0 256
  679. #define SROM13_PATH1 328
  680. #define SROM13_PATH2 400
  681. #define SROM13_PATH3 512
  682. #define SROM13_RXGAINS 5
  683. #define SROM13_XTALFREQ 90
  684. #define SROM13_PDOFFSET20IN40M2G 94
  685. #define SROM13_PDOFFSET20IN40M2GCORE3 95
  686. #define SROM13_SB20IN40HRLRPOX 96
  687. #define SROM13_RXGAINS1CORE3 97
  688. #define SROM13_PDOFFSET20IN40M5GCORE3 98
  689. #define SROM13_PDOFFSET20IN40M5GCORE3_1 99
  690. #define SROM13_ANTGAIN_BANDBGA 100
  691. #define SROM13_PDOFFSET40IN80M5GCORE3 105
  692. #define SROM13_PDOFFSET40IN80M5GCORE3_1 106
  693. /* power per rate */
  694. #define SROM13_MCS1024QAM2GPO 108
  695. #define SROM13_MCS1024QAM5GLPO 109
  696. #define SROM13_MCS1024QAM5GLPO_1 110
  697. #define SROM13_MCS1024QAM5GMPO 111
  698. #define SROM13_MCS1024QAM5GMPO_1 112
  699. #define SROM13_MCS1024QAM5GHPO 113
  700. #define SROM13_MCS1024QAM5GHPO_1 114
  701. #define SROM13_MCS1024QAM5GX1PO 115
  702. #define SROM13_MCS1024QAM5GX1PO_1 116
  703. #define SROM13_MCS1024QAM5GX2PO 117
  704. #define SROM13_MCS1024QAM5GX2PO_1 118
  705. #define SROM13_MCSBW1605GLPO 119
  706. #define SROM13_MCSBW1605GLPO_1 120
  707. #define SROM13_MCSBW1605GMPO 121
  708. #define SROM13_MCSBW1605GMPO_1 122
  709. #define SROM13_MCSBW1605GHPO 123
  710. #define SROM13_MCSBW1605GHPO_1 124
  711. #define SROM13_MCSBW1605GX1PO 125
  712. #define SROM13_MCSBW1605GX1PO_1 126
  713. #define SROM13_MCSBW1605GX2PO 127
  714. #define SROM13_MCSBW1605GX2PO_1 128
  715. #define SROM13_ULBPPROFFS5GB0 129
  716. #define SROM13_ULBPPROFFS5GB1 130
  717. #define SROM13_ULBPPROFFS5GB2 131
  718. #define SROM13_ULBPPROFFS5GB3 132
  719. #define SROM13_ULBPPROFFS5GB4 133
  720. #define SROM13_ULBPPROFFS2G 134
  721. #define SROM13_MCS8POEXP 135
  722. #define SROM13_MCS8POEXP_1 136
  723. #define SROM13_MCS9POEXP 137
  724. #define SROM13_MCS9POEXP_1 138
  725. #define SROM13_MCS10POEXP 139
  726. #define SROM13_MCS10POEXP_1 140
  727. #define SROM13_MCS11POEXP 141
  728. #define SROM13_MCS11POEXP_1 142
  729. #define SROM13_ULBPDOFFS5GB0A0 143
  730. #define SROM13_ULBPDOFFS5GB0A1 144
  731. #define SROM13_ULBPDOFFS5GB0A2 145
  732. #define SROM13_ULBPDOFFS5GB0A3 146
  733. #define SROM13_ULBPDOFFS5GB1A0 147
  734. #define SROM13_ULBPDOFFS5GB1A1 148
  735. #define SROM13_ULBPDOFFS5GB1A2 149
  736. #define SROM13_ULBPDOFFS5GB1A3 150
  737. #define SROM13_ULBPDOFFS5GB2A0 151
  738. #define SROM13_ULBPDOFFS5GB2A1 152
  739. #define SROM13_ULBPDOFFS5GB2A2 153
  740. #define SROM13_ULBPDOFFS5GB2A3 154
  741. #define SROM13_ULBPDOFFS5GB3A0 155
  742. #define SROM13_ULBPDOFFS5GB3A1 156
  743. #define SROM13_ULBPDOFFS5GB3A2 157
  744. #define SROM13_ULBPDOFFS5GB3A3 158
  745. #define SROM13_ULBPDOFFS5GB4A0 159
  746. #define SROM13_ULBPDOFFS5GB4A1 160
  747. #define SROM13_ULBPDOFFS5GB4A2 161
  748. #define SROM13_ULBPDOFFS5GB4A3 162
  749. #define SROM13_ULBPDOFFS2GA0 163
  750. #define SROM13_ULBPDOFFS2GA1 164
  751. #define SROM13_ULBPDOFFS2GA2 165
  752. #define SROM13_ULBPDOFFS2GA3 166
  753. #define SROM13_RPCAL5GB4 199
  754. #define SROM13_RPCAL2GCORE3 101
  755. #define SROM13_RPCAL5GB01CORE3 102
  756. #define SROM13_RPCAL5GB23CORE3 103
  757. #define SROM13_SW_TXRX_MASK 104
  758. #define SROM13_EU_EDCRSTH 232
  759. #define SROM13_SWCTRLMAP4_CFG 493
  760. #define SROM13_SWCTRLMAP4_TX2G_FEM3TO0 494
  761. #define SROM13_SWCTRLMAP4_RX2G_FEM3TO0 495
  762. #define SROM13_SWCTRLMAP4_RXBYP2G_FEM3TO0 496
  763. #define SROM13_SWCTRLMAP4_MISC2G_FEM3TO0 497
  764. #define SROM13_SWCTRLMAP4_TX5G_FEM3TO0 498
  765. #define SROM13_SWCTRLMAP4_RX5G_FEM3TO0 499
  766. #define SROM13_SWCTRLMAP4_RXBYP5G_FEM3TO0 500
  767. #define SROM13_SWCTRLMAP4_MISC5G_FEM3TO0 501
  768. #define SROM13_SWCTRLMAP4_TX2G_FEM7TO4 502
  769. #define SROM13_SWCTRLMAP4_RX2G_FEM7TO4 503
  770. #define SROM13_SWCTRLMAP4_RXBYP2G_FEM7TO4 504
  771. #define SROM13_SWCTRLMAP4_MISC2G_FEM7TO4 505
  772. #define SROM13_SWCTRLMAP4_TX5G_FEM7TO4 506
  773. #define SROM13_SWCTRLMAP4_RX5G_FEM7TO4 507
  774. #define SROM13_SWCTRLMAP4_RXBYP5G_FEM7TO4 508
  775. #define SROM13_SWCTRLMAP4_MISC5G_FEM7TO4 509
  776. #define SROM13_PDOFFSET20IN80M5GCORE3 510
  777. #define SROM13_PDOFFSET20IN80M5GCORE3_1 511
  778. #define SROM13_NOISELVLCORE3 584
  779. #define SROM13_NOISELVLCORE3_1 585
  780. #define SROM13_RXGAINERRCORE3 586
  781. #define SROM13_RXGAINERRCORE3_1 587
  782. #define SROM13_PDOFF_2G_CCK_20M 167
  783. #define SROM15_CALDATA_WORDS 943
  784. #define SROM15_CAL_OFFSET_LOC 68
  785. #define MAX_IOCTL_TXCHUNK_SIZE 1500
  786. #define SROM15_MAX_CAL_SIZE 1886
  787. #define SROM15_SIGNATURE 0x110c
  788. #define SROM15_WORDS 1024
  789. #define SROM15_MACHI 65
  790. #define SROM15_CRCREV 1023
  791. #define SROM15_BRDREV 69
  792. #define SROM15_CCODE 70
  793. #define SROM15_REGREV 71
  794. #define SROM15_SIGN 64
  795. #define SROM16_SIGN 128
  796. #define SROM16_WORDS 1024
  797. #define SROM16_SIGNATURE 0x4357
  798. #define SROM16_CRCREV 1023
  799. #define SROM16_MACHI 129
  800. #define SROM16_CALDATA_OFFSET_LOC 132
  801. #define SROM16_BOARDREV 133
  802. #define SROM16_CCODE 134
  803. #define SROM16_REGREV 135
  804. #define SROM_CALDATA_WORDS 832
  805. #define SROM17_SIGN 64
  806. #define SROM17_BRDREV 65
  807. #define SROM17_MACADDR 66
  808. #define SROM17_CCODE 69
  809. #define SROM17_CALDATA 70
  810. #define SROM17_GCALTMP 71
  811. #define SROM17_C0SRD202G 72
  812. #define SROM17_C0SRD202G_1 73
  813. #define SROM17_C0SRD205GL 74
  814. #define SROM17_C0SRD205GL_1 75
  815. #define SROM17_C0SRD205GML 76
  816. #define SROM17_C0SRD205GML_1 77
  817. #define SROM17_C0SRD205GMU 78
  818. #define SROM17_C0SRD205GMU_1 79
  819. #define SROM17_C0SRD205GH 80
  820. #define SROM17_C0SRD205GH_1 81
  821. #define SROM17_C1SRD202G 82
  822. #define SROM17_C1SRD202G_1 83
  823. #define SROM17_C1SRD205GL 84
  824. #define SROM17_C1SRD205GL_1 85
  825. #define SROM17_C1SRD205GML 86
  826. #define SROM17_C1SRD205GML_1 87
  827. #define SROM17_C1SRD205GMU 88
  828. #define SROM17_C1SRD205GMU_1 89
  829. #define SROM17_C1SRD205GH 90
  830. #define SROM17_C1SRD205GH_1 91
  831. #define SROM17_TRAMMAGIC 92
  832. #define SROM17_TRAMMAGIC_1 93
  833. #define SROM17_TRAMDATA 94
  834. #define SROM17_WORDS 256
  835. #define SROM17_CRCREV 255
  836. #define SROM17_CALDATA_WORDS 161
  837. #define SROM17_SIGNATURE 0x1103 /* 4355 in hex format */
  838. typedef struct {
  839. uint8 tssipos; /* TSSI positive slope, 1: positive, 0: negative */
  840. uint8 extpagain; /* Ext PA gain-type: full-gain: 0, pa-lite: 1, no_pa: 2 */
  841. uint8 pdetrange; /* support 32 combinations of different Pdet dynamic ranges */
  842. uint8 triso; /* TR switch isolation */
  843. uint8 antswctrllut; /* antswctrl lookup table configuration: 32 possible choices */
  844. } srom_fem_t;
  845. #endif /* _bcmsrom_fmt_h_ */