suni1x10gexp_regs.h 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642
  1. /*****************************************************************************
  2. * *
  3. * File: suni1x10gexp_regs.h *
  4. * $Revision: 1.9 $ *
  5. * $Date: 2005/06/22 00:17:04 $ *
  6. * Description: *
  7. * PMC/SIERRA (pm3393) MAC-PHY functionality. *
  8. * part of the Chelsio 10Gb Ethernet Driver. *
  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, version 2, as *
  12. * published by the Free Software Foundation. *
  13. * *
  14. * You should have received a copy of the GNU General Public License along *
  15. * with this program; if not, see <http://www.gnu.org/licenses/>. *
  16. * *
  17. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED *
  18. * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF *
  19. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. *
  20. * *
  21. * http://www.chelsio.com *
  22. * *
  23. * Maintainers: maintainers@chelsio.com *
  24. * *
  25. * Authors: PMC/SIERRA *
  26. * *
  27. * History: *
  28. * *
  29. ****************************************************************************/
  30. #ifndef _CXGB_SUNI1x10GEXP_REGS_H_
  31. #define _CXGB_SUNI1x10GEXP_REGS_H_
  32. /*
  33. ** Space allocated for each Exact Match Filter
  34. ** There are 8 filter configurations
  35. */
  36. #define SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER 0x0003
  37. #define mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId) ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER )
  38. /*
  39. ** Space allocated for VLAN-Id Filter
  40. ** There are 8 filter configurations
  41. */
  42. #define SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER 0x0001
  43. #define mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId) ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER )
  44. /*
  45. ** Space allocated for each MSTAT Counter
  46. */
  47. #define SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT 0x0004
  48. #define mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId) ( (countId) * SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT )
  49. /******************************************************************************/
  50. /** S/UNI-1x10GE-XP REGISTER ADDRESS MAP **/
  51. /******************************************************************************/
  52. /* Refer to the Register Bit Masks bellow for the naming of each register and */
  53. /* to the S/UNI-1x10GE-XP Data Sheet for the signification of each bit */
  54. /******************************************************************************/
  55. #define SUNI1x10GEXP_REG_IDENTIFICATION 0x0000
  56. #define SUNI1x10GEXP_REG_PRODUCT_REVISION 0x0001
  57. #define SUNI1x10GEXP_REG_CONFIG_AND_RESET_CONTROL 0x0002
  58. #define SUNI1x10GEXP_REG_LOOPBACK_MISC_CTRL 0x0003
  59. #define SUNI1x10GEXP_REG_DEVICE_STATUS 0x0004
  60. #define SUNI1x10GEXP_REG_GLOBAL_PERFORMANCE_MONITOR_UPDATE 0x0005
  61. #define SUNI1x10GEXP_REG_MDIO_COMMAND 0x0006
  62. #define SUNI1x10GEXP_REG_MDIO_INTERRUPT_ENABLE 0x0007
  63. #define SUNI1x10GEXP_REG_MDIO_INTERRUPT_STATUS 0x0008
  64. #define SUNI1x10GEXP_REG_MMD_PHY_ADDRESS 0x0009
  65. #define SUNI1x10GEXP_REG_MMD_CONTROL_ADDRESS_DATA 0x000A
  66. #define SUNI1x10GEXP_REG_MDIO_READ_STATUS_DATA 0x000B
  67. #define SUNI1x10GEXP_REG_OAM_INTF_CTRL 0x000C
  68. #define SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS 0x000D
  69. #define SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE 0x000E
  70. #define SUNI1x10GEXP_REG_FREE 0x000F
  71. #define SUNI1x10GEXP_REG_XTEF_MISC_CTRL 0x0010
  72. #define SUNI1x10GEXP_REG_XRF_MISC_CTRL 0x0011
  73. #define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_1 0x0100
  74. #define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_2 0x0101
  75. #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE 0x0102
  76. #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_VISIBLE 0x0103
  77. #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS 0x0104
  78. #define SUNI1x10GEXP_REG_SERDES_3125_TEST_CONFIG 0x0107
  79. #define SUNI1x10GEXP_REG_RXXG_CONFIG_1 0x2040
  80. #define SUNI1x10GEXP_REG_RXXG_CONFIG_2 0x2041
  81. #define SUNI1x10GEXP_REG_RXXG_CONFIG_3 0x2042
  82. #define SUNI1x10GEXP_REG_RXXG_INTERRUPT 0x2043
  83. #define SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH 0x2045
  84. #define SUNI1x10GEXP_REG_RXXG_SA_15_0 0x2046
  85. #define SUNI1x10GEXP_REG_RXXG_SA_31_16 0x2047
  86. #define SUNI1x10GEXP_REG_RXXG_SA_47_32 0x2048
  87. #define SUNI1x10GEXP_REG_RXXG_RECEIVE_FIFO_THRESHOLD 0x2049
  88. #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_LOW(filterId) (0x204A + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
  89. #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_MID(filterId) (0x204B + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
  90. #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_HIGH(filterId)(0x204C + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
  91. #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID(filterId) (0x2062 + mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId))
  92. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_LOW 0x204A
  93. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_MID 0x204B
  94. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_HIGH 0x204C
  95. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW 0x204D
  96. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID 0x204E
  97. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH 0x204F
  98. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_LOW 0x2050
  99. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_MID 0x2051
  100. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_HIGH 0x2052
  101. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_LOW 0x2053
  102. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_MID 0x2054
  103. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_HIGH 0x2055
  104. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_LOW 0x2056
  105. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_MID 0x2057
  106. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_HIGH 0x2058
  107. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_LOW 0x2059
  108. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_MID 0x205A
  109. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_HIGH 0x205B
  110. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_LOW 0x205C
  111. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_MID 0x205D
  112. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_HIGH 0x205E
  113. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_LOW 0x205F
  114. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_MID 0x2060
  115. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_HIGH 0x2061
  116. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_0 0x2062
  117. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_1 0x2063
  118. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_2 0x2064
  119. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_3 0x2065
  120. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_4 0x2066
  121. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_5 0x2067
  122. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_6 0x2068
  123. #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_7 0x2069
  124. #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW 0x206A
  125. #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW 0x206B
  126. #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH 0x206C
  127. #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH 0x206D
  128. #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0 0x206E
  129. #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_1 0x206F
  130. #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2 0x2070
  131. #define SUNI1x10GEXP_REG_XRF_PATTERN_GEN_CTRL 0x2081
  132. #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_0 0x2084
  133. #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_1 0x2085
  134. #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_2 0x2086
  135. #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_3 0x2087
  136. #define SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE 0x2088
  137. #define SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS 0x2089
  138. #define SUNI1x10GEXP_REG_XRF_ERR_STATUS 0x208A
  139. #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE 0x208B
  140. #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS 0x208C
  141. #define SUNI1x10GEXP_REG_XRF_CODE_ERR_THRES 0x2092
  142. #define SUNI1x10GEXP_REG_RXOAM_CONFIG 0x20C0
  143. #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_CONFIG 0x20C1
  144. #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_CONFIG 0x20C2
  145. #define SUNI1x10GEXP_REG_RXOAM_CONFIG_2 0x20C3
  146. #define SUNI1x10GEXP_REG_RXOAM_HEC_CONFIG 0x20C4
  147. #define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_THRES 0x20C5
  148. #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE 0x20C7
  149. #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS 0x20C8
  150. #define SUNI1x10GEXP_REG_RXOAM_STATUS 0x20C9
  151. #define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_COUNT 0x20CA
  152. #define SUNI1x10GEXP_REG_RXOAM_FIFO_OVERFLOW_COUNT 0x20CB
  153. #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_LSB 0x20CC
  154. #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_MSB 0x20CD
  155. #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_LSB 0x20CE
  156. #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_MSB 0x20CF
  157. #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_LSB 0x20D0
  158. #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_MSB 0x20D1
  159. #define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_LSB 0x20D2
  160. #define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_MSB 0x20D3
  161. #define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_LSB 0x20D4
  162. #define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_MSB 0x20D5
  163. #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_LSB 0x20D6
  164. #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_MSB 0x20D7
  165. #define SUNI1x10GEXP_REG_MSTAT_CONTROL 0x2100
  166. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0 0x2101
  167. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1 0x2102
  168. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_2 0x2103
  169. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_3 0x2104
  170. #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0 0x2105
  171. #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1 0x2106
  172. #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2 0x2107
  173. #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3 0x2108
  174. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_ADDRESS 0x2109
  175. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_LOW 0x210A
  176. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_MIDDLE 0x210B
  177. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_HIGH 0x210C
  178. #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_LOW(countId) (0x2110 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
  179. #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_MID(countId) (0x2111 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
  180. #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_HIGH(countId) (0x2112 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
  181. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_LOW 0x2110
  182. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_MID 0x2111
  183. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_HIGH 0x2112
  184. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_RESVD 0x2113
  185. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW 0x2114
  186. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_MID 0x2115
  187. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_HIGH 0x2116
  188. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_RESVD 0x2117
  189. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_LOW 0x2118
  190. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_MID 0x2119
  191. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_HIGH 0x211A
  192. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_RESVD 0x211B
  193. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_LOW 0x211C
  194. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_MID 0x211D
  195. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_HIGH 0x211E
  196. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_RESVD 0x211F
  197. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_LOW 0x2120
  198. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_MID 0x2121
  199. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_HIGH 0x2122
  200. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_RESVD 0x2123
  201. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_LOW 0x2124
  202. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_MID 0x2125
  203. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_HIGH 0x2126
  204. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_RESVD 0x2127
  205. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_LOW 0x2128
  206. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_MID 0x2129
  207. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_HIGH 0x212A
  208. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_RESVD 0x212B
  209. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_LOW 0x212C
  210. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_MID 0x212D
  211. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_HIGH 0x212E
  212. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_RESVD 0x212F
  213. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_LOW 0x2130
  214. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_MID 0x2131
  215. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_HIGH 0x2132
  216. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_RESVD 0x2133
  217. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_LOW 0x2134
  218. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_MID 0x2135
  219. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_HIGH 0x2136
  220. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_RESVD 0x2137
  221. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_LOW 0x2138
  222. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_MID 0x2139
  223. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_HIGH 0x213A
  224. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_RESVD 0x213B
  225. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_LOW 0x213C
  226. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_MID 0x213D
  227. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_HIGH 0x213E
  228. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_RESVD 0x213F
  229. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_LOW 0x2140
  230. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_MID 0x2141
  231. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_HIGH 0x2142
  232. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_RESVD 0x2143
  233. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_LOW 0x2144
  234. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_MID 0x2145
  235. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_HIGH 0x2146
  236. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_RESVD 0x2147
  237. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_LOW 0x2148
  238. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_MID 0x2149
  239. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_HIGH 0x214A
  240. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_RESVD 0x214B
  241. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_LOW 0x214C
  242. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_MID 0x214D
  243. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_HIGH 0x214E
  244. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_RESVD 0x214F
  245. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_LOW 0x2150
  246. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_MID 0x2151
  247. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_HIGH 0x2152
  248. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_RESVD 0x2153
  249. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_LOW 0x2154
  250. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_MID 0x2155
  251. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_HIGH 0x2156
  252. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_RESVD 0x2157
  253. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_LOW 0x2158
  254. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_MID 0x2159
  255. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_HIGH 0x215A
  256. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_RESVD 0x215B
  257. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_LOW 0x215C
  258. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_MID 0x215D
  259. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_HIGH 0x215E
  260. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_RESVD 0x215F
  261. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_LOW 0x2160
  262. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_MID 0x2161
  263. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_HIGH 0x2162
  264. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_RESVD 0x2163
  265. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_LOW 0x2164
  266. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_MID 0x2165
  267. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_HIGH 0x2166
  268. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_RESVD 0x2167
  269. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_LOW 0x2168
  270. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_MID 0x2169
  271. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_HIGH 0x216A
  272. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_RESVD 0x216B
  273. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_LOW 0x216C
  274. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_MID 0x216D
  275. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_HIGH 0x216E
  276. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_RESVD 0x216F
  277. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_LOW 0x2170
  278. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_MID 0x2171
  279. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_HIGH 0x2172
  280. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_RESVD 0x2173
  281. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_LOW 0x2174
  282. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_MID 0x2175
  283. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_HIGH 0x2176
  284. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_RESVD 0x2177
  285. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_LOW 0x2178
  286. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_MID 0x2179
  287. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_HIGH 0x217a
  288. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_RESVD 0x217b
  289. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_LOW 0x217c
  290. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_MID 0x217d
  291. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_HIGH 0x217e
  292. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_RESVD 0x217f
  293. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_LOW 0x2180
  294. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_MID 0x2181
  295. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_HIGH 0x2182
  296. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_RESVD 0x2183
  297. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_LOW 0x2184
  298. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_MID 0x2185
  299. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_HIGH 0x2186
  300. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_RESVD 0x2187
  301. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_LOW 0x2188
  302. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_MID 0x2189
  303. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_HIGH 0x218A
  304. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_RESVD 0x218B
  305. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_LOW 0x218C
  306. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_MID 0x218D
  307. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_HIGH 0x218E
  308. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_RESVD 0x218F
  309. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_LOW 0x2190
  310. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_MID 0x2191
  311. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_HIGH 0x2192
  312. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_RESVD 0x2193
  313. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW 0x2194
  314. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_MID 0x2195
  315. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_HIGH 0x2196
  316. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_RESVD 0x2197
  317. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_LOW 0x2198
  318. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_MID 0x2199
  319. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_HIGH 0x219A
  320. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_RESVD 0x219B
  321. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_LOW 0x219C
  322. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_MID 0x219D
  323. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_HIGH 0x219E
  324. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_RESVD 0x219F
  325. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_LOW 0x21A0
  326. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_MID 0x21A1
  327. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_HIGH 0x21A2
  328. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_RESVD 0x21A3
  329. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_LOW 0x21A4
  330. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_MID 0x21A5
  331. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_HIGH 0x21A6
  332. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_RESVD 0x21A7
  333. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_LOW 0x21A8
  334. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_MID 0x21A9
  335. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_HIGH 0x21AA
  336. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_RESVD 0x21AB
  337. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_LOW 0x21AC
  338. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_MID 0x21AD
  339. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_HIGH 0x21AE
  340. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_RESVD 0x21AF
  341. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_LOW 0x21B0
  342. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_MID 0x21B1
  343. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_HIGH 0x21B2
  344. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_RESVD 0x21B3
  345. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_LOW 0x21B4
  346. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_MID 0x21B5
  347. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_HIGH 0x21B6
  348. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_RESVD 0x21B7
  349. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_LOW 0x21B8
  350. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_MID 0x21B9
  351. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_HIGH 0x21BA
  352. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_RESVD 0x21BB
  353. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_LOW 0x21BC
  354. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_MID 0x21BD
  355. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_HIGH 0x21BE
  356. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_RESVD 0x21BF
  357. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_LOW 0x21C0
  358. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_MID 0x21C1
  359. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_HIGH 0x21C2
  360. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_RESVD 0x21C3
  361. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_LOW 0x21C4
  362. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_MID 0x21C5
  363. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_HIGH 0x21C6
  364. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_RESVD 0x21C7
  365. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_LOW 0x21C8
  366. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_MID 0x21C9
  367. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_HIGH 0x21CA
  368. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_RESVD 0x21CB
  369. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_LOW 0x21CC
  370. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_MID 0x21CD
  371. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_HIGH 0x21CE
  372. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_RESVD 0x21CF
  373. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_LOW 0x21D0
  374. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_MID 0x21D1
  375. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_HIGH 0x21D2
  376. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_RESVD 0x21D3
  377. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_LOW 0x21D4
  378. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_MID 0x21D5
  379. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_HIGH 0x21D6
  380. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_RESVD 0x21D7
  381. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_LOW 0x21D8
  382. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_MID 0x21D9
  383. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_HIGH 0x21DA
  384. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_RESVD 0x21DB
  385. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_LOW 0x21DC
  386. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_MID 0x21DD
  387. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_HIGH 0x21DE
  388. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_RESVD 0x21DF
  389. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_LOW 0x21E0
  390. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_MID 0x21E1
  391. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_HIGH 0x21E2
  392. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_RESVD 0x21E3
  393. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_LOW 0x21E4
  394. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_MID 0x21E5
  395. #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_HIGH 0x21E6
  396. #define SUNI1x10GEXP_CNTR_MAC_ETHERNET_NUM 51
  397. #define SUNI1x10GEXP_REG_IFLX_GLOBAL_CONFIG 0x2200
  398. #define SUNI1x10GEXP_REG_IFLX_CHANNEL_PROVISION 0x2201
  399. #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE 0x2209
  400. #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT 0x220A
  401. #define SUNI1x10GEXP_REG_IFLX_INDIR_CHANNEL_ADDRESS 0x220D
  402. #define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_LOW_LIMIT_PROVISION 0x220E
  403. #define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_HIGH_LIMIT 0x220F
  404. #define SUNI1x10GEXP_REG_IFLX_INDIR_FULL_ALMOST_FULL_STATUS_LIMIT 0x2210
  405. #define SUNI1x10GEXP_REG_IFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_LIMIT 0x2211
  406. #define SUNI1x10GEXP_REG_PL4MOS_CONFIG 0x2240
  407. #define SUNI1x10GEXP_REG_PL4MOS_MASK 0x2241
  408. #define SUNI1x10GEXP_REG_PL4MOS_FAIRNESS_MASKING 0x2242
  409. #define SUNI1x10GEXP_REG_PL4MOS_MAXBURST1 0x2243
  410. #define SUNI1x10GEXP_REG_PL4MOS_MAXBURST2 0x2244
  411. #define SUNI1x10GEXP_REG_PL4MOS_TRANSFER_SIZE 0x2245
  412. #define SUNI1x10GEXP_REG_PL4ODP_CONFIG 0x2280
  413. #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK 0x2282
  414. #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT 0x2283
  415. #define SUNI1x10GEXP_REG_PL4ODP_CONFIG_MAX_T 0x2284
  416. #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS 0x2300
  417. #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE 0x2301
  418. #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK 0x2302
  419. #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_LIMITS 0x2303
  420. #define SUNI1x10GEXP_REG_PL4IO_CALENDAR_REPETITIONS 0x2304
  421. #define SUNI1x10GEXP_REG_PL4IO_CONFIG 0x2305
  422. #define SUNI1x10GEXP_REG_TXXG_CONFIG_1 0x3040
  423. #define SUNI1x10GEXP_REG_TXXG_CONFIG_2 0x3041
  424. #define SUNI1x10GEXP_REG_TXXG_CONFIG_3 0x3042
  425. #define SUNI1x10GEXP_REG_TXXG_INTERRUPT 0x3043
  426. #define SUNI1x10GEXP_REG_TXXG_STATUS 0x3044
  427. #define SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE 0x3045
  428. #define SUNI1x10GEXP_REG_TXXG_MIN_FRAME_SIZE 0x3046
  429. #define SUNI1x10GEXP_REG_TXXG_SA_15_0 0x3047
  430. #define SUNI1x10GEXP_REG_TXXG_SA_31_16 0x3048
  431. #define SUNI1x10GEXP_REG_TXXG_SA_47_32 0x3049
  432. #define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER 0x304D
  433. #define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER_INTERVAL 0x304E
  434. #define SUNI1x10GEXP_REG_TXXG_FILTER_ERROR_COUNTER 0x3051
  435. #define SUNI1x10GEXP_REG_TXXG_PAUSE_QUANTUM_CONFIG 0x3052
  436. #define SUNI1x10GEXP_REG_XTEF_CTRL 0x3080
  437. #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS 0x3084
  438. #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE 0x3085
  439. #define SUNI1x10GEXP_REG_XTEF_VISIBILITY 0x3086
  440. #define SUNI1x10GEXP_REG_TXOAM_OAM_CONFIG 0x30C0
  441. #define SUNI1x10GEXP_REG_TXOAM_MINI_RATE_CONFIG 0x30C1
  442. #define SUNI1x10GEXP_REG_TXOAM_MINI_GAP_FIFO_CONFIG 0x30C2
  443. #define SUNI1x10GEXP_REG_TXOAM_P1P2_STATIC_VALUES 0x30C3
  444. #define SUNI1x10GEXP_REG_TXOAM_P3P4_STATIC_VALUES 0x30C4
  445. #define SUNI1x10GEXP_REG_TXOAM_P5P6_STATIC_VALUES 0x30C5
  446. #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE 0x30C6
  447. #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS 0x30C7
  448. #define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_LSB 0x30C8
  449. #define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_MSB 0x30C9
  450. #define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_LSB 0x30CA
  451. #define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_MSB 0x30CB
  452. #define SUNI1x10GEXP_REG_TXOAM_P1P2_MINI_MASK 0x30CC
  453. #define SUNI1x10GEXP_REG_TXOAM_P3P4_MINI_MASK 0x30CD
  454. #define SUNI1x10GEXP_REG_TXOAM_P5P6_MINI_MASK 0x30CE
  455. #define SUNI1x10GEXP_REG_TXOAM_COSET 0x30CF
  456. #define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_LSB 0x30D0
  457. #define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_MSB 0x30D1
  458. #define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_LSB 0x30D2
  459. #define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_MSB 0x30D3
  460. #define SUNI1x10GEXP_REG_EFLX_GLOBAL_CONFIG 0x3200
  461. #define SUNI1x10GEXP_REG_EFLX_ERCU_GLOBAL_STATUS 0x3201
  462. #define SUNI1x10GEXP_REG_EFLX_INDIR_CHANNEL_ADDRESS 0x3202
  463. #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_LOW_LIMIT 0x3203
  464. #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_HIGH_LIMIT 0x3204
  465. #define SUNI1x10GEXP_REG_EFLX_INDIR_FULL_ALMOST_FULL_STATUS_AND_LIMIT 0x3205
  466. #define SUNI1x10GEXP_REG_EFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_AND_LIMIT 0x3206
  467. #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_CUT_THROUGH_THRESHOLD 0x3207
  468. #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE 0x320C
  469. #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION 0x320D
  470. #define SUNI1x10GEXP_REG_EFLX_CHANNEL_PROVISION 0x3210
  471. #define SUNI1x10GEXP_REG_PL4IDU_CONFIG 0x3280
  472. #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK 0x3282
  473. #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT 0x3283
  474. /*----------------------------------------*/
  475. #define SUNI1x10GEXP_REG_MAX_OFFSET 0x3480
  476. /******************************************************************************/
  477. /* -- End register offset definitions -- */
  478. /******************************************************************************/
  479. /******************************************************************************/
  480. /** SUNI-1x10GE-XP REGISTER BIT MASKS **/
  481. /******************************************************************************/
  482. #define SUNI1x10GEXP_BITMSK_BITS_1 0x00001
  483. #define SUNI1x10GEXP_BITMSK_BITS_2 0x00003
  484. #define SUNI1x10GEXP_BITMSK_BITS_3 0x00007
  485. #define SUNI1x10GEXP_BITMSK_BITS_4 0x0000f
  486. #define SUNI1x10GEXP_BITMSK_BITS_5 0x0001f
  487. #define SUNI1x10GEXP_BITMSK_BITS_6 0x0003f
  488. #define SUNI1x10GEXP_BITMSK_BITS_7 0x0007f
  489. #define SUNI1x10GEXP_BITMSK_BITS_8 0x000ff
  490. #define SUNI1x10GEXP_BITMSK_BITS_9 0x001ff
  491. #define SUNI1x10GEXP_BITMSK_BITS_10 0x003ff
  492. #define SUNI1x10GEXP_BITMSK_BITS_11 0x007ff
  493. #define SUNI1x10GEXP_BITMSK_BITS_12 0x00fff
  494. #define SUNI1x10GEXP_BITMSK_BITS_13 0x01fff
  495. #define SUNI1x10GEXP_BITMSK_BITS_14 0x03fff
  496. #define SUNI1x10GEXP_BITMSK_BITS_15 0x07fff
  497. #define SUNI1x10GEXP_BITMSK_BITS_16 0x0ffff
  498. #define mSUNI1x10GEXP_CLR_MSBITS_1(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_15)
  499. #define mSUNI1x10GEXP_CLR_MSBITS_2(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_14)
  500. #define mSUNI1x10GEXP_CLR_MSBITS_3(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_13)
  501. #define mSUNI1x10GEXP_CLR_MSBITS_4(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_12)
  502. #define mSUNI1x10GEXP_CLR_MSBITS_5(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_11)
  503. #define mSUNI1x10GEXP_CLR_MSBITS_6(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_10)
  504. #define mSUNI1x10GEXP_CLR_MSBITS_7(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_9)
  505. #define mSUNI1x10GEXP_CLR_MSBITS_8(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_8)
  506. #define mSUNI1x10GEXP_CLR_MSBITS_9(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_7)
  507. #define mSUNI1x10GEXP_CLR_MSBITS_10(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_6)
  508. #define mSUNI1x10GEXP_CLR_MSBITS_11(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_5)
  509. #define mSUNI1x10GEXP_CLR_MSBITS_12(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_4)
  510. #define mSUNI1x10GEXP_CLR_MSBITS_13(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_3)
  511. #define mSUNI1x10GEXP_CLR_MSBITS_14(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_2)
  512. #define mSUNI1x10GEXP_CLR_MSBITS_15(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_1)
  513. #define mSUNI1x10GEXP_GET_BIT(val, bitMsk) (((val)&(bitMsk)) ? 1:0)
  514. /*----------------------------------------------------------------------------
  515. * Register 0x0001: S/UNI-1x10GE-XP Product Revision
  516. * Bit 3-0 REVISION
  517. *----------------------------------------------------------------------------*/
  518. #define SUNI1x10GEXP_BITMSK_REVISION 0x000F
  519. /*----------------------------------------------------------------------------
  520. * Register 0x0002: S/UNI-1x10GE-XP Configuration and Reset Control
  521. * Bit 2 XAUI_ARESETB
  522. * Bit 1 PL4_ARESETB
  523. * Bit 0 DRESETB
  524. *----------------------------------------------------------------------------*/
  525. #define SUNI1x10GEXP_BITMSK_XAUI_ARESET 0x0004
  526. #define SUNI1x10GEXP_BITMSK_PL4_ARESET 0x0002
  527. #define SUNI1x10GEXP_BITMSK_DRESETB 0x0001
  528. /*----------------------------------------------------------------------------
  529. * Register 0x0003: S/UNI-1x10GE-XP Loop Back and Miscellaneous Control
  530. * Bit 11 PL4IO_OUTCLKSEL
  531. * Bit 9 SYSPCSLB
  532. * Bit 8 LINEPCSLB
  533. * Bit 7 MSTAT_BYPASS
  534. * Bit 6 RXXG_BYPASS
  535. * Bit 5 TXXG_BYPASS
  536. * Bit 4 SOP_PAD_EN
  537. * Bit 1 LOS_INV
  538. * Bit 0 OVERRIDE_LOS
  539. *----------------------------------------------------------------------------*/
  540. #define SUNI1x10GEXP_BITMSK_PL4IO_OUTCLKSEL 0x0800
  541. #define SUNI1x10GEXP_BITMSK_SYSPCSLB 0x0200
  542. #define SUNI1x10GEXP_BITMSK_LINEPCSLB 0x0100
  543. #define SUNI1x10GEXP_BITMSK_MSTAT_BYPASS 0x0080
  544. #define SUNI1x10GEXP_BITMSK_RXXG_BYPASS 0x0040
  545. #define SUNI1x10GEXP_BITMSK_TXXG_BYPASS 0x0020
  546. #define SUNI1x10GEXP_BITMSK_SOP_PAD_EN 0x0010
  547. #define SUNI1x10GEXP_BITMSK_LOS_INV 0x0002
  548. #define SUNI1x10GEXP_BITMSK_OVERRIDE_LOS 0x0001
  549. /*----------------------------------------------------------------------------
  550. * Register 0x0004: S/UNI-1x10GE-XP Device Status
  551. * Bit 9 TOP_SXRA_EXPIRED
  552. * Bit 8 TOP_MDIO_BUSY
  553. * Bit 7 TOP_DTRB
  554. * Bit 6 TOP_EXPIRED
  555. * Bit 5 TOP_PAUSED
  556. * Bit 4 TOP_PL4_ID_DOOL
  557. * Bit 3 TOP_PL4_IS_DOOL
  558. * Bit 2 TOP_PL4_ID_ROOL
  559. * Bit 1 TOP_PL4_IS_ROOL
  560. * Bit 0 TOP_PL4_OUT_ROOL
  561. *----------------------------------------------------------------------------*/
  562. #define SUNI1x10GEXP_BITMSK_TOP_SXRA_EXPIRED 0x0200
  563. #define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY 0x0100
  564. #define SUNI1x10GEXP_BITMSK_TOP_DTRB 0x0080
  565. #define SUNI1x10GEXP_BITMSK_TOP_EXPIRED 0x0040
  566. #define SUNI1x10GEXP_BITMSK_TOP_PAUSED 0x0020
  567. #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_DOOL 0x0010
  568. #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_DOOL 0x0008
  569. #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_ROOL 0x0004
  570. #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_ROOL 0x0002
  571. #define SUNI1x10GEXP_BITMSK_TOP_PL4_OUT_ROOL 0x0001
  572. /*----------------------------------------------------------------------------
  573. * Register 0x0005: Global Performance Update and Clock Monitors
  574. * Bit 15 TIP
  575. * Bit 8 XAUI_REF_CLKA
  576. * Bit 7 RXLANE3CLKA
  577. * Bit 6 RXLANE2CLKA
  578. * Bit 5 RXLANE1CLKA
  579. * Bit 4 RXLANE0CLKA
  580. * Bit 3 CSUCLKA
  581. * Bit 2 TDCLKA
  582. * Bit 1 RSCLKA
  583. * Bit 0 RDCLKA
  584. *----------------------------------------------------------------------------*/
  585. #define SUNI1x10GEXP_BITMSK_TIP 0x8000
  586. #define SUNI1x10GEXP_BITMSK_XAUI_REF_CLKA 0x0100
  587. #define SUNI1x10GEXP_BITMSK_RXLANE3CLKA 0x0080
  588. #define SUNI1x10GEXP_BITMSK_RXLANE2CLKA 0x0040
  589. #define SUNI1x10GEXP_BITMSK_RXLANE1CLKA 0x0020
  590. #define SUNI1x10GEXP_BITMSK_RXLANE0CLKA 0x0010
  591. #define SUNI1x10GEXP_BITMSK_CSUCLKA 0x0008
  592. #define SUNI1x10GEXP_BITMSK_TDCLKA 0x0004
  593. #define SUNI1x10GEXP_BITMSK_RSCLKA 0x0002
  594. #define SUNI1x10GEXP_BITMSK_RDCLKA 0x0001
  595. /*----------------------------------------------------------------------------
  596. * Register 0x0006: MDIO Command
  597. * Bit 4 MDIO_RDINC
  598. * Bit 3 MDIO_RSTAT
  599. * Bit 2 MDIO_LCTLD
  600. * Bit 1 MDIO_LCTLA
  601. * Bit 0 MDIO_SPRE
  602. *----------------------------------------------------------------------------*/
  603. #define SUNI1x10GEXP_BITMSK_MDIO_RDINC 0x0010
  604. #define SUNI1x10GEXP_BITMSK_MDIO_RSTAT 0x0008
  605. #define SUNI1x10GEXP_BITMSK_MDIO_LCTLD 0x0004
  606. #define SUNI1x10GEXP_BITMSK_MDIO_LCTLA 0x0002
  607. #define SUNI1x10GEXP_BITMSK_MDIO_SPRE 0x0001
  608. /*----------------------------------------------------------------------------
  609. * Register 0x0007: MDIO Interrupt Enable
  610. * Bit 0 MDIO_BUSY_EN
  611. *----------------------------------------------------------------------------*/
  612. #define SUNI1x10GEXP_BITMSK_MDIO_BUSY_EN 0x0001
  613. /*----------------------------------------------------------------------------
  614. * Register 0x0008: MDIO Interrupt Status
  615. * Bit 0 MDIO_BUSYI
  616. *----------------------------------------------------------------------------*/
  617. #define SUNI1x10GEXP_BITMSK_MDIO_BUSYI 0x0001
  618. /*----------------------------------------------------------------------------
  619. * Register 0x0009: MMD PHY Address
  620. * Bit 12-8 MDIO_DEVADR
  621. * Bit 4-0 MDIO_PRTADR
  622. *----------------------------------------------------------------------------*/
  623. #define SUNI1x10GEXP_BITMSK_MDIO_DEVADR 0x1F00
  624. #define SUNI1x10GEXP_BITOFF_MDIO_DEVADR 8
  625. #define SUNI1x10GEXP_BITMSK_MDIO_PRTADR 0x001F
  626. #define SUNI1x10GEXP_BITOFF_MDIO_PRTADR 0
  627. /*----------------------------------------------------------------------------
  628. * Register 0x000C: OAM Interface Control
  629. * Bit 6 MDO_OD_ENB
  630. * Bit 5 MDI_INV
  631. * Bit 4 MDI_SEL
  632. * Bit 3 RXOAMEN
  633. * Bit 2 RXOAMCLKEN
  634. * Bit 1 TXOAMEN
  635. * Bit 0 TXOAMCLKEN
  636. *----------------------------------------------------------------------------*/
  637. #define SUNI1x10GEXP_BITMSK_MDO_OD_ENB 0x0040
  638. #define SUNI1x10GEXP_BITMSK_MDI_INV 0x0020
  639. #define SUNI1x10GEXP_BITMSK_MDI_SEL 0x0010
  640. #define SUNI1x10GEXP_BITMSK_RXOAMEN 0x0008
  641. #define SUNI1x10GEXP_BITMSK_RXOAMCLKEN 0x0004
  642. #define SUNI1x10GEXP_BITMSK_TXOAMEN 0x0002
  643. #define SUNI1x10GEXP_BITMSK_TXOAMCLKEN 0x0001
  644. /*----------------------------------------------------------------------------
  645. * Register 0x000D: S/UNI-1x10GE-XP Master Interrupt Status
  646. * Bit 15 TOP_PL4IO_INT
  647. * Bit 14 TOP_IRAM_INT
  648. * Bit 13 TOP_ERAM_INT
  649. * Bit 12 TOP_XAUI_INT
  650. * Bit 11 TOP_MSTAT_INT
  651. * Bit 10 TOP_RXXG_INT
  652. * Bit 9 TOP_TXXG_INT
  653. * Bit 8 TOP_XRF_INT
  654. * Bit 7 TOP_XTEF_INT
  655. * Bit 6 TOP_MDIO_BUSY_INT
  656. * Bit 5 TOP_RXOAM_INT
  657. * Bit 4 TOP_TXOAM_INT
  658. * Bit 3 TOP_IFLX_INT
  659. * Bit 2 TOP_EFLX_INT
  660. * Bit 1 TOP_PL4ODP_INT
  661. * Bit 0 TOP_PL4IDU_INT
  662. *----------------------------------------------------------------------------*/
  663. #define SUNI1x10GEXP_BITMSK_TOP_PL4IO_INT 0x8000
  664. #define SUNI1x10GEXP_BITMSK_TOP_IRAM_INT 0x4000
  665. #define SUNI1x10GEXP_BITMSK_TOP_ERAM_INT 0x2000
  666. #define SUNI1x10GEXP_BITMSK_TOP_XAUI_INT 0x1000
  667. #define SUNI1x10GEXP_BITMSK_TOP_MSTAT_INT 0x0800
  668. #define SUNI1x10GEXP_BITMSK_TOP_RXXG_INT 0x0400
  669. #define SUNI1x10GEXP_BITMSK_TOP_TXXG_INT 0x0200
  670. #define SUNI1x10GEXP_BITMSK_TOP_XRF_INT 0x0100
  671. #define SUNI1x10GEXP_BITMSK_TOP_XTEF_INT 0x0080
  672. #define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY_INT 0x0040
  673. #define SUNI1x10GEXP_BITMSK_TOP_RXOAM_INT 0x0020
  674. #define SUNI1x10GEXP_BITMSK_TOP_TXOAM_INT 0x0010
  675. #define SUNI1x10GEXP_BITMSK_TOP_IFLX_INT 0x0008
  676. #define SUNI1x10GEXP_BITMSK_TOP_EFLX_INT 0x0004
  677. #define SUNI1x10GEXP_BITMSK_TOP_PL4ODP_INT 0x0002
  678. #define SUNI1x10GEXP_BITMSK_TOP_PL4IDU_INT 0x0001
  679. /*----------------------------------------------------------------------------
  680. * Register 0x000E:PM3393 Global interrupt enable
  681. * Bit 15 TOP_INTE
  682. *----------------------------------------------------------------------------*/
  683. #define SUNI1x10GEXP_BITMSK_TOP_INTE 0x8000
  684. /*----------------------------------------------------------------------------
  685. * Register 0x0010: XTEF Miscellaneous Control
  686. * Bit 7 RF_VAL
  687. * Bit 6 RF_OVERRIDE
  688. * Bit 5 LF_VAL
  689. * Bit 4 LF_OVERRIDE
  690. *----------------------------------------------------------------------------*/
  691. #define SUNI1x10GEXP_BITMSK_RF_VAL 0x0080
  692. #define SUNI1x10GEXP_BITMSK_RF_OVERRIDE 0x0040
  693. #define SUNI1x10GEXP_BITMSK_LF_VAL 0x0020
  694. #define SUNI1x10GEXP_BITMSK_LF_OVERRIDE 0x0010
  695. #define SUNI1x10GEXP_BITMSK_LFRF_OVERRIDE_VAL 0x00F0
  696. /*----------------------------------------------------------------------------
  697. * Register 0x0011: XRF Miscellaneous Control
  698. * Bit 6-4 EN_IDLE_REP
  699. *----------------------------------------------------------------------------*/
  700. #define SUNI1x10GEXP_BITMSK_EN_IDLE_REP 0x0070
  701. /*----------------------------------------------------------------------------
  702. * Register 0x0100: SERDES 3125 Configuration Register 1
  703. * Bit 10 RXEQB_3
  704. * Bit 8 RXEQB_2
  705. * Bit 6 RXEQB_1
  706. * Bit 4 RXEQB_0
  707. *----------------------------------------------------------------------------*/
  708. #define SUNI1x10GEXP_BITMSK_RXEQB 0x0FF0
  709. #define SUNI1x10GEXP_BITOFF_RXEQB_3 10
  710. #define SUNI1x10GEXP_BITOFF_RXEQB_2 8
  711. #define SUNI1x10GEXP_BITOFF_RXEQB_1 6
  712. #define SUNI1x10GEXP_BITOFF_RXEQB_0 4
  713. /*----------------------------------------------------------------------------
  714. * Register 0x0101: SERDES 3125 Configuration Register 2
  715. * Bit 12 YSEL
  716. * Bit 7 PRE_EMPH_3
  717. * Bit 6 PRE_EMPH_2
  718. * Bit 5 PRE_EMPH_1
  719. * Bit 4 PRE_EMPH_0
  720. *----------------------------------------------------------------------------*/
  721. #define SUNI1x10GEXP_BITMSK_YSEL 0x1000
  722. #define SUNI1x10GEXP_BITMSK_PRE_EMPH 0x00F0
  723. #define SUNI1x10GEXP_BITMSK_PRE_EMPH_3 0x0080
  724. #define SUNI1x10GEXP_BITMSK_PRE_EMPH_2 0x0040
  725. #define SUNI1x10GEXP_BITMSK_PRE_EMPH_1 0x0020
  726. #define SUNI1x10GEXP_BITMSK_PRE_EMPH_0 0x0010
  727. /*----------------------------------------------------------------------------
  728. * Register 0x0102: SERDES 3125 Interrupt Enable Register
  729. * Bit 3 LASIE
  730. * Bit 2 SPLL_RAE
  731. * Bit 1 MPLL_RAE
  732. * Bit 0 PLL_LOCKE
  733. *----------------------------------------------------------------------------*/
  734. #define SUNI1x10GEXP_BITMSK_LASIE 0x0008
  735. #define SUNI1x10GEXP_BITMSK_SPLL_RAE 0x0004
  736. #define SUNI1x10GEXP_BITMSK_MPLL_RAE 0x0002
  737. #define SUNI1x10GEXP_BITMSK_PLL_LOCKE 0x0001
  738. /*----------------------------------------------------------------------------
  739. * Register 0x0103: SERDES 3125 Interrupt Visibility Register
  740. * Bit 3 LASIV
  741. * Bit 2 SPLL_RAV
  742. * Bit 1 MPLL_RAV
  743. * Bit 0 PLL_LOCKV
  744. *----------------------------------------------------------------------------*/
  745. #define SUNI1x10GEXP_BITMSK_LASIV 0x0008
  746. #define SUNI1x10GEXP_BITMSK_SPLL_RAV 0x0004
  747. #define SUNI1x10GEXP_BITMSK_MPLL_RAV 0x0002
  748. #define SUNI1x10GEXP_BITMSK_PLL_LOCKV 0x0001
  749. /*----------------------------------------------------------------------------
  750. * Register 0x0104: SERDES 3125 Interrupt Status Register
  751. * Bit 3 LASII
  752. * Bit 2 SPLL_RAI
  753. * Bit 1 MPLL_RAI
  754. * Bit 0 PLL_LOCKI
  755. *----------------------------------------------------------------------------*/
  756. #define SUNI1x10GEXP_BITMSK_LASII 0x0008
  757. #define SUNI1x10GEXP_BITMSK_SPLL_RAI 0x0004
  758. #define SUNI1x10GEXP_BITMSK_MPLL_RAI 0x0002
  759. #define SUNI1x10GEXP_BITMSK_PLL_LOCKI 0x0001
  760. /*----------------------------------------------------------------------------
  761. * Register 0x0107: SERDES 3125 Test Configuration
  762. * Bit 12 DUALTX
  763. * Bit 10 HC_1
  764. * Bit 9 HC_0
  765. *----------------------------------------------------------------------------*/
  766. #define SUNI1x10GEXP_BITMSK_DUALTX 0x1000
  767. #define SUNI1x10GEXP_BITMSK_HC 0x0600
  768. #define SUNI1x10GEXP_BITOFF_HC_0 9
  769. /*----------------------------------------------------------------------------
  770. * Register 0x2040: RXXG Configuration 1
  771. * Bit 15 RXXG_RXEN
  772. * Bit 14 RXXG_ROCF
  773. * Bit 13 RXXG_PAD_STRIP
  774. * Bit 10 RXXG_PUREP
  775. * Bit 9 RXXG_LONGP
  776. * Bit 8 RXXG_PARF
  777. * Bit 7 RXXG_FLCHK
  778. * Bit 5 RXXG_PASS_CTRL
  779. * Bit 3 RXXG_CRC_STRIP
  780. * Bit 2-0 RXXG_MIFG
  781. *----------------------------------------------------------------------------*/
  782. #define SUNI1x10GEXP_BITMSK_RXXG_RXEN 0x8000
  783. #define SUNI1x10GEXP_BITMSK_RXXG_ROCF 0x4000
  784. #define SUNI1x10GEXP_BITMSK_RXXG_PAD_STRIP 0x2000
  785. #define SUNI1x10GEXP_BITMSK_RXXG_PUREP 0x0400
  786. #define SUNI1x10GEXP_BITMSK_RXXG_LONGP 0x0200
  787. #define SUNI1x10GEXP_BITMSK_RXXG_PARF 0x0100
  788. #define SUNI1x10GEXP_BITMSK_RXXG_FLCHK 0x0080
  789. #define SUNI1x10GEXP_BITMSK_RXXG_PASS_CTRL 0x0020
  790. #define SUNI1x10GEXP_BITMSK_RXXG_CRC_STRIP 0x0008
  791. /*----------------------------------------------------------------------------
  792. * Register 0x02041: RXXG Configuration 2
  793. * Bit 7-0 RXXG_HDRSIZE
  794. *----------------------------------------------------------------------------*/
  795. #define SUNI1x10GEXP_BITMSK_RXXG_HDRSIZE 0x00FF
  796. /*----------------------------------------------------------------------------
  797. * Register 0x2042: RXXG Configuration 3
  798. * Bit 15 RXXG_MIN_LERRE
  799. * Bit 14 RXXG_MAX_LERRE
  800. * Bit 12 RXXG_LINE_ERRE
  801. * Bit 10 RXXG_RX_OVRE
  802. * Bit 9 RXXG_ADR_FILTERE
  803. * Bit 8 RXXG_ERR_FILTERE
  804. * Bit 5 RXXG_PRMB_ERRE
  805. *----------------------------------------------------------------------------*/
  806. #define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRE 0x8000
  807. #define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRE 0x4000
  808. #define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRE 0x1000
  809. #define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRE 0x0400
  810. #define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERE 0x0200
  811. #define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERRE 0x0100
  812. #define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE 0x0020
  813. /*----------------------------------------------------------------------------
  814. * Register 0x2043: RXXG Interrupt
  815. * Bit 15 RXXG_MIN_LERRI
  816. * Bit 14 RXXG_MAX_LERRI
  817. * Bit 12 RXXG_LINE_ERRI
  818. * Bit 10 RXXG_RX_OVRI
  819. * Bit 9 RXXG_ADR_FILTERI
  820. * Bit 8 RXXG_ERR_FILTERI
  821. * Bit 5 RXXG_PRMB_ERRE
  822. *----------------------------------------------------------------------------*/
  823. #define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRI 0x8000
  824. #define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRI 0x4000
  825. #define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRI 0x1000
  826. #define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRI 0x0400
  827. #define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERI 0x0200
  828. #define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERI 0x0100
  829. #define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE 0x0020
  830. /*----------------------------------------------------------------------------
  831. * Register 0x2049: RXXG Receive FIFO Threshold
  832. * Bit 2-0 RXXG_CUT_THRU
  833. *----------------------------------------------------------------------------*/
  834. #define SUNI1x10GEXP_BITMSK_RXXG_CUT_THRU 0x0007
  835. #define SUNI1x10GEXP_BITOFF_RXXG_CUT_THRU 0
  836. /*----------------------------------------------------------------------------
  837. * Register 0x2062H - 0x2069: RXXG Exact Match VID
  838. * Bit 11-0 RXXG_VID_MATCH
  839. *----------------------------------------------------------------------------*/
  840. #define SUNI1x10GEXP_BITMSK_RXXG_VID_MATCH 0x0FFF
  841. #define SUNI1x10GEXP_BITOFF_RXXG_VID_MATCH 0
  842. /*----------------------------------------------------------------------------
  843. * Register 0x206EH - 0x206F: RXXG Address Filter Control
  844. * Bit 3 RXXG_FORWARD_ENABLE
  845. * Bit 2 RXXG_VLAN_ENABLE
  846. * Bit 1 RXXG_SRC_ADDR
  847. * Bit 0 RXXG_MATCH_ENABLE
  848. *----------------------------------------------------------------------------*/
  849. #define SUNI1x10GEXP_BITMSK_RXXG_FORWARD_ENABLE 0x0008
  850. #define SUNI1x10GEXP_BITMSK_RXXG_VLAN_ENABLE 0x0004
  851. #define SUNI1x10GEXP_BITMSK_RXXG_SRC_ADDR 0x0002
  852. #define SUNI1x10GEXP_BITMSK_RXXG_MATCH_ENABLE 0x0001
  853. /*----------------------------------------------------------------------------
  854. * Register 0x2070: RXXG Address Filter Control 2
  855. * Bit 1 RXXG_PMODE
  856. * Bit 0 RXXG_MHASH_EN
  857. *----------------------------------------------------------------------------*/
  858. #define SUNI1x10GEXP_BITMSK_RXXG_PMODE 0x0002
  859. #define SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN 0x0001
  860. /*----------------------------------------------------------------------------
  861. * Register 0x2081: XRF Control Register 2
  862. * Bit 6 EN_PKT_GEN
  863. * Bit 4-2 PATT
  864. *----------------------------------------------------------------------------*/
  865. #define SUNI1x10GEXP_BITMSK_EN_PKT_GEN 0x0040
  866. #define SUNI1x10GEXP_BITMSK_PATT 0x001C
  867. #define SUNI1x10GEXP_BITOFF_PATT 2
  868. /*----------------------------------------------------------------------------
  869. * Register 0x2088: XRF Interrupt Enable
  870. * Bit 12-9 LANE_HICERE
  871. * Bit 8-5 HS_SD_LANEE
  872. * Bit 4 ALIGN_STATUS_ERRE
  873. * Bit 3-0 LANE_SYNC_STAT_ERRE
  874. *----------------------------------------------------------------------------*/
  875. #define SUNI1x10GEXP_BITMSK_LANE_HICERE 0x1E00
  876. #define SUNI1x10GEXP_BITOFF_LANE_HICERE 9
  877. #define SUNI1x10GEXP_BITMSK_HS_SD_LANEE 0x01E0
  878. #define SUNI1x10GEXP_BITOFF_HS_SD_LANEE 5
  879. #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRE 0x0010
  880. #define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRE 0x000F
  881. #define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRE 0
  882. /*----------------------------------------------------------------------------
  883. * Register 0x2089: XRF Interrupt Status
  884. * Bit 12-9 LANE_HICERI
  885. * Bit 8-5 HS_SD_LANEI
  886. * Bit 4 ALIGN_STATUS_ERRI
  887. * Bit 3-0 LANE_SYNC_STAT_ERRI
  888. *----------------------------------------------------------------------------*/
  889. #define SUNI1x10GEXP_BITMSK_LANE_HICERI 0x1E00
  890. #define SUNI1x10GEXP_BITOFF_LANE_HICERI 9
  891. #define SUNI1x10GEXP_BITMSK_HS_SD_LANEI 0x01E0
  892. #define SUNI1x10GEXP_BITOFF_HS_SD_LANEI 5
  893. #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRI 0x0010
  894. #define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRI 0x000F
  895. #define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRI 0
  896. /*----------------------------------------------------------------------------
  897. * Register 0x208A: XRF Error Status
  898. * Bit 8-5 HS_SD_LANE
  899. * Bit 4 ALIGN_STATUS_ERR
  900. * Bit 3-0 LANE_SYNC_STAT_ERR
  901. *----------------------------------------------------------------------------*/
  902. #define SUNI1x10GEXP_BITMSK_HS_SD_LANE3 0x0100
  903. #define SUNI1x10GEXP_BITMSK_HS_SD_LANE2 0x0080
  904. #define SUNI1x10GEXP_BITMSK_HS_SD_LANE1 0x0040
  905. #define SUNI1x10GEXP_BITMSK_HS_SD_LANE0 0x0020
  906. #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERR 0x0010
  907. #define SUNI1x10GEXP_BITMSK_LANE3_SYNC_STAT_ERR 0x0008
  908. #define SUNI1x10GEXP_BITMSK_LANE2_SYNC_STAT_ERR 0x0004
  909. #define SUNI1x10GEXP_BITMSK_LANE1_SYNC_STAT_ERR 0x0002
  910. #define SUNI1x10GEXP_BITMSK_LANE0_SYNC_STAT_ERR 0x0001
  911. /*----------------------------------------------------------------------------
  912. * Register 0x208B: XRF Diagnostic Interrupt Enable
  913. * Bit 7-4 LANE_OVERRUNE
  914. * Bit 3-0 LANE_UNDERRUNE
  915. *----------------------------------------------------------------------------*/
  916. #define SUNI1x10GEXP_BITMSK_LANE_OVERRUNE 0x00F0
  917. #define SUNI1x10GEXP_BITOFF_LANE_OVERRUNE 4
  918. #define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNE 0x000F
  919. #define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNE 0
  920. /*----------------------------------------------------------------------------
  921. * Register 0x208C: XRF Diagnostic Interrupt Status
  922. * Bit 7-4 LANE_OVERRUNI
  923. * Bit 3-0 LANE_UNDERRUNI
  924. *----------------------------------------------------------------------------*/
  925. #define SUNI1x10GEXP_BITMSK_LANE_OVERRUNI 0x00F0
  926. #define SUNI1x10GEXP_BITOFF_LANE_OVERRUNI 4
  927. #define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNI 0x000F
  928. #define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNI 0
  929. /*----------------------------------------------------------------------------
  930. * Register 0x20C0: RXOAM Configuration
  931. * Bit 15 RXOAM_BUSY
  932. * Bit 14-12 RXOAM_F2_SEL
  933. * Bit 10-8 RXOAM_F1_SEL
  934. * Bit 7-6 RXOAM_FILTER_CTRL
  935. * Bit 5-0 RXOAM_PX_EN
  936. *----------------------------------------------------------------------------*/
  937. #define SUNI1x10GEXP_BITMSK_RXOAM_BUSY 0x8000
  938. #define SUNI1x10GEXP_BITMSK_RXOAM_F2_SEL 0x7000
  939. #define SUNI1x10GEXP_BITOFF_RXOAM_F2_SEL 12
  940. #define SUNI1x10GEXP_BITMSK_RXOAM_F1_SEL 0x0700
  941. #define SUNI1x10GEXP_BITOFF_RXOAM_F1_SEL 8
  942. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_CTRL 0x00C0
  943. #define SUNI1x10GEXP_BITOFF_RXOAM_FILTER_CTRL 6
  944. #define SUNI1x10GEXP_BITMSK_RXOAM_PX_EN 0x003F
  945. #define SUNI1x10GEXP_BITOFF_RXOAM_PX_EN 0
  946. /*----------------------------------------------------------------------------
  947. * Register 0x20C1,0x20C2: RXOAM Filter Configuration
  948. * Bit 15-8 RXOAM_FX_MASK
  949. * Bit 7-0 RXOAM_FX_VAL
  950. *----------------------------------------------------------------------------*/
  951. #define SUNI1x10GEXP_BITMSK_RXOAM_FX_MASK 0xFF00
  952. #define SUNI1x10GEXP_BITOFF_RXOAM_FX_MASK 8
  953. #define SUNI1x10GEXP_BITMSK_RXOAM_FX_VAL 0x00FF
  954. #define SUNI1x10GEXP_BITOFF_RXOAM_FX_VAl 0
  955. /*----------------------------------------------------------------------------
  956. * Register 0x20C3: RXOAM Configuration Register 2
  957. * Bit 13 RXOAM_REC_BYTE_VAL
  958. * Bit 11-10 RXOAM_BYPASS_MODE
  959. * Bit 5-0 RXOAM_PX_CLEAR
  960. *----------------------------------------------------------------------------*/
  961. #define SUNI1x10GEXP_BITMSK_RXOAM_REC_BYTE_VAL 0x2000
  962. #define SUNI1x10GEXP_BITMSK_RXOAM_BYPASS_MODE 0x0C00
  963. #define SUNI1x10GEXP_BITOFF_RXOAM_BYPASS_MODE 10
  964. #define SUNI1x10GEXP_BITMSK_RXOAM_PX_CLEAR 0x003F
  965. #define SUNI1x10GEXP_BITOFF_RXOAM_PX_CLEAR 0
  966. /*----------------------------------------------------------------------------
  967. * Register 0x20C4: RXOAM HEC Configuration
  968. * Bit 15-8 RXOAM_COSET
  969. * Bit 2 RXOAM_HEC_ERR_PKT
  970. * Bit 0 RXOAM_HEC_EN
  971. *----------------------------------------------------------------------------*/
  972. #define SUNI1x10GEXP_BITMSK_RXOAM_COSET 0xFF00
  973. #define SUNI1x10GEXP_BITOFF_RXOAM_COSET 8
  974. #define SUNI1x10GEXP_BITMSK_RXOAM_HEC_ERR_PKT 0x0004
  975. #define SUNI1x10GEXP_BITMSK_RXOAM_HEC_EN 0x0001
  976. /*----------------------------------------------------------------------------
  977. * Register 0x20C7: RXOAM Interrupt Enable
  978. * Bit 10 RXOAM_FILTER_THRSHE
  979. * Bit 9 RXOAM_OAM_ERRE
  980. * Bit 8 RXOAM_HECE_THRSHE
  981. * Bit 7 RXOAM_SOPE
  982. * Bit 6 RXOAM_RFE
  983. * Bit 5 RXOAM_LFE
  984. * Bit 4 RXOAM_DV_ERRE
  985. * Bit 3 RXOAM_DATA_INVALIDE
  986. * Bit 2 RXOAM_FILTER_DROPE
  987. * Bit 1 RXOAM_HECE
  988. * Bit 0 RXOAM_OFLE
  989. *----------------------------------------------------------------------------*/
  990. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHE 0x0400
  991. #define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRE 0x0200
  992. #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHE 0x0100
  993. #define SUNI1x10GEXP_BITMSK_RXOAM_SOPE 0x0080
  994. #define SUNI1x10GEXP_BITMSK_RXOAM_RFE 0x0040
  995. #define SUNI1x10GEXP_BITMSK_RXOAM_LFE 0x0020
  996. #define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRE 0x0010
  997. #define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDE 0x0008
  998. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPE 0x0004
  999. #define SUNI1x10GEXP_BITMSK_RXOAM_HECE 0x0002
  1000. #define SUNI1x10GEXP_BITMSK_RXOAM_OFLE 0x0001
  1001. /*----------------------------------------------------------------------------
  1002. * Register 0x20C8: RXOAM Interrupt Status
  1003. * Bit 10 RXOAM_FILTER_THRSHI
  1004. * Bit 9 RXOAM_OAM_ERRI
  1005. * Bit 8 RXOAM_HECE_THRSHI
  1006. * Bit 7 RXOAM_SOPI
  1007. * Bit 6 RXOAM_RFI
  1008. * Bit 5 RXOAM_LFI
  1009. * Bit 4 RXOAM_DV_ERRI
  1010. * Bit 3 RXOAM_DATA_INVALIDI
  1011. * Bit 2 RXOAM_FILTER_DROPI
  1012. * Bit 1 RXOAM_HECI
  1013. * Bit 0 RXOAM_OFLI
  1014. *----------------------------------------------------------------------------*/
  1015. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHI 0x0400
  1016. #define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRI 0x0200
  1017. #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHI 0x0100
  1018. #define SUNI1x10GEXP_BITMSK_RXOAM_SOPI 0x0080
  1019. #define SUNI1x10GEXP_BITMSK_RXOAM_RFI 0x0040
  1020. #define SUNI1x10GEXP_BITMSK_RXOAM_LFI 0x0020
  1021. #define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRI 0x0010
  1022. #define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDI 0x0008
  1023. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPI 0x0004
  1024. #define SUNI1x10GEXP_BITMSK_RXOAM_HECI 0x0002
  1025. #define SUNI1x10GEXP_BITMSK_RXOAM_OFLI 0x0001
  1026. /*----------------------------------------------------------------------------
  1027. * Register 0x20C9: RXOAM Status
  1028. * Bit 10 RXOAM_FILTER_THRSHV
  1029. * Bit 8 RXOAM_HECE_THRSHV
  1030. * Bit 6 RXOAM_RFV
  1031. * Bit 5 RXOAM_LFV
  1032. *----------------------------------------------------------------------------*/
  1033. #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHV 0x0400
  1034. #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHV 0x0100
  1035. #define SUNI1x10GEXP_BITMSK_RXOAM_RFV 0x0040
  1036. #define SUNI1x10GEXP_BITMSK_RXOAM_LFV 0x0020
  1037. /*----------------------------------------------------------------------------
  1038. * Register 0x2100: MSTAT Control
  1039. * Bit 2 MSTAT_WRITE
  1040. * Bit 1 MSTAT_CLEAR
  1041. * Bit 0 MSTAT_SNAP
  1042. *----------------------------------------------------------------------------*/
  1043. #define SUNI1x10GEXP_BITMSK_MSTAT_WRITE 0x0004
  1044. #define SUNI1x10GEXP_BITMSK_MSTAT_CLEAR 0x0002
  1045. #define SUNI1x10GEXP_BITMSK_MSTAT_SNAP 0x0001
  1046. /*----------------------------------------------------------------------------
  1047. * Register 0x2109: MSTAT Counter Write Address
  1048. * Bit 5-0 MSTAT_WRITE_ADDRESS
  1049. *----------------------------------------------------------------------------*/
  1050. #define SUNI1x10GEXP_BITMSK_MSTAT_WRITE_ADDRESS 0x003F
  1051. #define SUNI1x10GEXP_BITOFF_MSTAT_WRITE_ADDRESS 0
  1052. /*----------------------------------------------------------------------------
  1053. * Register 0x2200: IFLX Global Configuration Register
  1054. * Bit 15 IFLX_IRCU_ENABLE
  1055. * Bit 14 IFLX_IDSWT_ENABLE
  1056. * Bit 13-0 IFLX_IFD_CNT
  1057. *----------------------------------------------------------------------------*/
  1058. #define SUNI1x10GEXP_BITMSK_IFLX_IRCU_ENABLE 0x8000
  1059. #define SUNI1x10GEXP_BITMSK_IFLX_IDSWT_ENABLE 0x4000
  1060. #define SUNI1x10GEXP_BITMSK_IFLX_IFD_CNT 0x3FFF
  1061. #define SUNI1x10GEXP_BITOFF_IFLX_IFD_CNT 0
  1062. /*----------------------------------------------------------------------------
  1063. * Register 0x2209: IFLX FIFO Overflow Enable
  1064. * Bit 0 IFLX_OVFE
  1065. *----------------------------------------------------------------------------*/
  1066. #define SUNI1x10GEXP_BITMSK_IFLX_OVFE 0x0001
  1067. /*----------------------------------------------------------------------------
  1068. * Register 0x220A: IFLX FIFO Overflow Interrupt
  1069. * Bit 0 IFLX_OVFI
  1070. *----------------------------------------------------------------------------*/
  1071. #define SUNI1x10GEXP_BITMSK_IFLX_OVFI 0x0001
  1072. /*----------------------------------------------------------------------------
  1073. * Register 0x220D: IFLX Indirect Channel Address
  1074. * Bit 15 IFLX_BUSY
  1075. * Bit 14 IFLX_RWB
  1076. *----------------------------------------------------------------------------*/
  1077. #define SUNI1x10GEXP_BITMSK_IFLX_BUSY 0x8000
  1078. #define SUNI1x10GEXP_BITMSK_IFLX_RWB 0x4000
  1079. /*----------------------------------------------------------------------------
  1080. * Register 0x220E: IFLX Indirect Logical FIFO Low Limit & Provision
  1081. * Bit 9-0 IFLX_LOLIM
  1082. *----------------------------------------------------------------------------*/
  1083. #define SUNI1x10GEXP_BITMSK_IFLX_LOLIM 0x03FF
  1084. #define SUNI1x10GEXP_BITOFF_IFLX_LOLIM 0
  1085. /*----------------------------------------------------------------------------
  1086. * Register 0x220F: IFLX Indirect Logical FIFO High Limit
  1087. * Bit 9-0 IFLX_HILIM
  1088. *----------------------------------------------------------------------------*/
  1089. #define SUNI1x10GEXP_BITMSK_IFLX_HILIM 0x03FF
  1090. #define SUNI1x10GEXP_BITOFF_IFLX_HILIM 0
  1091. /*----------------------------------------------------------------------------
  1092. * Register 0x2210: IFLX Indirect Full/Almost Full Status & Limit
  1093. * Bit 15 IFLX_FULL
  1094. * Bit 14 IFLX_AFULL
  1095. * Bit 13-0 IFLX_AFTH
  1096. *----------------------------------------------------------------------------*/
  1097. #define SUNI1x10GEXP_BITMSK_IFLX_FULL 0x8000
  1098. #define SUNI1x10GEXP_BITMSK_IFLX_AFULL 0x4000
  1099. #define SUNI1x10GEXP_BITMSK_IFLX_AFTH 0x3FFF
  1100. #define SUNI1x10GEXP_BITOFF_IFLX_AFTH 0
  1101. /*----------------------------------------------------------------------------
  1102. * Register 0x2211: IFLX Indirect Empty/Almost Empty Status & Limit
  1103. * Bit 15 IFLX_EMPTY
  1104. * Bit 14 IFLX_AEMPTY
  1105. * Bit 13-0 IFLX_AETH
  1106. *----------------------------------------------------------------------------*/
  1107. #define SUNI1x10GEXP_BITMSK_IFLX_EMPTY 0x8000
  1108. #define SUNI1x10GEXP_BITMSK_IFLX_AEMPTY 0x4000
  1109. #define SUNI1x10GEXP_BITMSK_IFLX_AETH 0x3FFF
  1110. #define SUNI1x10GEXP_BITOFF_IFLX_AETH 0
  1111. /*----------------------------------------------------------------------------
  1112. * Register 0x2240: PL4MOS Configuration Register
  1113. * Bit 3 PL4MOS_RE_INIT
  1114. * Bit 2 PL4MOS_EN
  1115. * Bit 1 PL4MOS_NO_STATUS
  1116. *----------------------------------------------------------------------------*/
  1117. #define SUNI1x10GEXP_BITMSK_PL4MOS_RE_INIT 0x0008
  1118. #define SUNI1x10GEXP_BITMSK_PL4MOS_EN 0x0004
  1119. #define SUNI1x10GEXP_BITMSK_PL4MOS_NO_STATUS 0x0002
  1120. /*----------------------------------------------------------------------------
  1121. * Register 0x2243: PL4MOS MaxBurst1 Register
  1122. * Bit 11-0 PL4MOS_MAX_BURST1
  1123. *----------------------------------------------------------------------------*/
  1124. #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST1 0x0FFF
  1125. #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST1 0
  1126. /*----------------------------------------------------------------------------
  1127. * Register 0x2244: PL4MOS MaxBurst2 Register
  1128. * Bit 11-0 PL4MOS_MAX_BURST2
  1129. *----------------------------------------------------------------------------*/
  1130. #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST2 0x0FFF
  1131. #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST2 0
  1132. /*----------------------------------------------------------------------------
  1133. * Register 0x2245: PL4MOS Transfer Size Register
  1134. * Bit 7-0 PL4MOS_MAX_TRANSFER
  1135. *----------------------------------------------------------------------------*/
  1136. #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_TRANSFER 0x00FF
  1137. #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_TRANSFER 0
  1138. /*----------------------------------------------------------------------------
  1139. * Register 0x2280: PL4ODP Configuration
  1140. * Bit 15-12 PL4ODP_REPEAT_T
  1141. * Bit 8 PL4ODP_SOP_RULE
  1142. * Bit 1 PL4ODP_EN_PORTS
  1143. * Bit 0 PL4ODP_EN_DFWD
  1144. *----------------------------------------------------------------------------*/
  1145. #define SUNI1x10GEXP_BITMSK_PL4ODP_REPEAT_T 0xF000
  1146. #define SUNI1x10GEXP_BITOFF_PL4ODP_REPEAT_T 12
  1147. #define SUNI1x10GEXP_BITMSK_PL4ODP_SOP_RULE 0x0100
  1148. #define SUNI1x10GEXP_BITMSK_PL4ODP_EN_PORTS 0x0002
  1149. #define SUNI1x10GEXP_BITMSK_PL4ODP_EN_DFWD 0x0001
  1150. /*----------------------------------------------------------------------------
  1151. * Register 0x2282: PL4ODP Interrupt Mask
  1152. * Bit 0 PL4ODP_OUT_DISE
  1153. *----------------------------------------------------------------------------*/
  1154. #define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISE 0x0001
  1155. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBE 0x0080
  1156. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPE 0x0040
  1157. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPE 0x0008
  1158. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPE 0x0004
  1159. #define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRE 0x0002
  1160. /*----------------------------------------------------------------------------
  1161. * Register 0x2283: PL4ODP Interrupt
  1162. * Bit 0 PL4ODP_OUT_DISI
  1163. *----------------------------------------------------------------------------*/
  1164. #define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISI 0x0001
  1165. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBI 0x0080
  1166. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPI 0x0040
  1167. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPI 0x0008
  1168. #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPI 0x0004
  1169. #define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRI 0x0002
  1170. /*----------------------------------------------------------------------------
  1171. * Register 0x2300: PL4IO Lock Detect Status
  1172. * Bit 15 PL4IO_OUT_ROOLV
  1173. * Bit 12 PL4IO_IS_ROOLV
  1174. * Bit 11 PL4IO_DIP2_ERRV
  1175. * Bit 8 PL4IO_ID_ROOLV
  1176. * Bit 4 PL4IO_IS_DOOLV
  1177. * Bit 0 PL4IO_ID_DOOLV
  1178. *----------------------------------------------------------------------------*/
  1179. #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLV 0x8000
  1180. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLV 0x1000
  1181. #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRV 0x0800
  1182. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLV 0x0100
  1183. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLV 0x0010
  1184. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLV 0x0001
  1185. /*----------------------------------------------------------------------------
  1186. * Register 0x2301: PL4IO Lock Detect Change
  1187. * Bit 15 PL4IO_OUT_ROOLI
  1188. * Bit 12 PL4IO_IS_ROOLI
  1189. * Bit 11 PL4IO_DIP2_ERRI
  1190. * Bit 8 PL4IO_ID_ROOLI
  1191. * Bit 4 PL4IO_IS_DOOLI
  1192. * Bit 0 PL4IO_ID_DOOLI
  1193. *----------------------------------------------------------------------------*/
  1194. #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLI 0x8000
  1195. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLI 0x1000
  1196. #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRI 0x0800
  1197. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLI 0x0100
  1198. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLI 0x0010
  1199. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLI 0x0001
  1200. /*----------------------------------------------------------------------------
  1201. * Register 0x2302: PL4IO Lock Detect Mask
  1202. * Bit 15 PL4IO_OUT_ROOLE
  1203. * Bit 12 PL4IO_IS_ROOLE
  1204. * Bit 11 PL4IO_DIP2_ERRE
  1205. * Bit 8 PL4IO_ID_ROOLE
  1206. * Bit 4 PL4IO_IS_DOOLE
  1207. * Bit 0 PL4IO_ID_DOOLE
  1208. *----------------------------------------------------------------------------*/
  1209. #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLE 0x8000
  1210. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLE 0x1000
  1211. #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRE 0x0800
  1212. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLE 0x0100
  1213. #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLE 0x0010
  1214. #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLE 0x0001
  1215. /*----------------------------------------------------------------------------
  1216. * Register 0x2303: PL4IO Lock Detect Limits
  1217. * Bit 15-8 PL4IO_REF_LIMIT
  1218. * Bit 7-0 PL4IO_TRAN_LIMIT
  1219. *----------------------------------------------------------------------------*/
  1220. #define SUNI1x10GEXP_BITMSK_PL4IO_REF_LIMIT 0xFF00
  1221. #define SUNI1x10GEXP_BITOFF_PL4IO_REF_LIMIT 8
  1222. #define SUNI1x10GEXP_BITMSK_PL4IO_TRAN_LIMIT 0x00FF
  1223. #define SUNI1x10GEXP_BITOFF_PL4IO_TRAN_LIMIT 0
  1224. /*----------------------------------------------------------------------------
  1225. * Register 0x2304: PL4IO Calendar Repetitions
  1226. * Bit 15-8 PL4IO_IN_MUL
  1227. * Bit 7-0 PL4IO_OUT_MUL
  1228. *----------------------------------------------------------------------------*/
  1229. #define SUNI1x10GEXP_BITMSK_PL4IO_IN_MUL 0xFF00
  1230. #define SUNI1x10GEXP_BITOFF_PL4IO_IN_MUL 8
  1231. #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_MUL 0x00FF
  1232. #define SUNI1x10GEXP_BITOFF_PL4IO_OUT_MUL 0
  1233. /*----------------------------------------------------------------------------
  1234. * Register 0x2305: PL4IO Configuration
  1235. * Bit 15 PL4IO_DIP2_ERR_CHK
  1236. * Bit 11 PL4IO_ODAT_DIS
  1237. * Bit 10 PL4IO_TRAIN_DIS
  1238. * Bit 9 PL4IO_OSTAT_DIS
  1239. * Bit 8 PL4IO_ISTAT_DIS
  1240. * Bit 7 PL4IO_NO_ISTAT
  1241. * Bit 6 PL4IO_STAT_OUTSEL
  1242. * Bit 5 PL4IO_INSEL
  1243. * Bit 4 PL4IO_DLSEL
  1244. * Bit 1-0 PL4IO_OUTSEL
  1245. *----------------------------------------------------------------------------*/
  1246. #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERR_CHK 0x8000
  1247. #define SUNI1x10GEXP_BITMSK_PL4IO_ODAT_DIS 0x0800
  1248. #define SUNI1x10GEXP_BITMSK_PL4IO_TRAIN_DIS 0x0400
  1249. #define SUNI1x10GEXP_BITMSK_PL4IO_OSTAT_DIS 0x0200
  1250. #define SUNI1x10GEXP_BITMSK_PL4IO_ISTAT_DIS 0x0100
  1251. #define SUNI1x10GEXP_BITMSK_PL4IO_NO_ISTAT 0x0080
  1252. #define SUNI1x10GEXP_BITMSK_PL4IO_STAT_OUTSEL 0x0040
  1253. #define SUNI1x10GEXP_BITMSK_PL4IO_INSEL 0x0020
  1254. #define SUNI1x10GEXP_BITMSK_PL4IO_DLSEL 0x0010
  1255. #define SUNI1x10GEXP_BITMSK_PL4IO_OUTSEL 0x0003
  1256. #define SUNI1x10GEXP_BITOFF_PL4IO_OUTSEL 0
  1257. /*----------------------------------------------------------------------------
  1258. * Register 0x3040: TXXG Configuration Register 1
  1259. * Bit 15 TXXG_TXEN0
  1260. * Bit 13 TXXG_HOSTPAUSE
  1261. * Bit 12-7 TXXG_IPGT
  1262. * Bit 5 TXXG_32BIT_ALIGN
  1263. * Bit 4 TXXG_CRCEN
  1264. * Bit 3 TXXG_FCTX
  1265. * Bit 2 TXXG_FCRX
  1266. * Bit 1 TXXG_PADEN
  1267. * Bit 0 TXXG_SPRE
  1268. *----------------------------------------------------------------------------*/
  1269. #define SUNI1x10GEXP_BITMSK_TXXG_TXEN0 0x8000
  1270. #define SUNI1x10GEXP_BITMSK_TXXG_HOSTPAUSE 0x2000
  1271. #define SUNI1x10GEXP_BITMSK_TXXG_IPGT 0x1F80
  1272. #define SUNI1x10GEXP_BITOFF_TXXG_IPGT 7
  1273. #define SUNI1x10GEXP_BITMSK_TXXG_32BIT_ALIGN 0x0020
  1274. #define SUNI1x10GEXP_BITMSK_TXXG_CRCEN 0x0010
  1275. #define SUNI1x10GEXP_BITMSK_TXXG_FCTX 0x0008
  1276. #define SUNI1x10GEXP_BITMSK_TXXG_FCRX 0x0004
  1277. #define SUNI1x10GEXP_BITMSK_TXXG_PADEN 0x0002
  1278. #define SUNI1x10GEXP_BITMSK_TXXG_SPRE 0x0001
  1279. /*----------------------------------------------------------------------------
  1280. * Register 0x3041: TXXG Configuration Register 2
  1281. * Bit 7-0 TXXG_HDRSIZE
  1282. *----------------------------------------------------------------------------*/
  1283. #define SUNI1x10GEXP_BITMSK_TXXG_HDRSIZE 0x00FF
  1284. /*----------------------------------------------------------------------------
  1285. * Register 0x3042: TXXG Configuration Register 3
  1286. * Bit 15 TXXG_FIFO_ERRE
  1287. * Bit 14 TXXG_FIFO_UDRE
  1288. * Bit 13 TXXG_MAX_LERRE
  1289. * Bit 12 TXXG_MIN_LERRE
  1290. * Bit 11 TXXG_XFERE
  1291. *----------------------------------------------------------------------------*/
  1292. #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRE 0x8000
  1293. #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRE 0x4000
  1294. #define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRE 0x2000
  1295. #define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRE 0x1000
  1296. #define SUNI1x10GEXP_BITMSK_TXXG_XFERE 0x0800
  1297. /*----------------------------------------------------------------------------
  1298. * Register 0x3043: TXXG Interrupt
  1299. * Bit 15 TXXG_FIFO_ERRI
  1300. * Bit 14 TXXG_FIFO_UDRI
  1301. * Bit 13 TXXG_MAX_LERRI
  1302. * Bit 12 TXXG_MIN_LERRI
  1303. * Bit 11 TXXG_XFERI
  1304. *----------------------------------------------------------------------------*/
  1305. #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRI 0x8000
  1306. #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRI 0x4000
  1307. #define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRI 0x2000
  1308. #define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRI 0x1000
  1309. #define SUNI1x10GEXP_BITMSK_TXXG_XFERI 0x0800
  1310. /*----------------------------------------------------------------------------
  1311. * Register 0x3044: TXXG Status Register
  1312. * Bit 1 TXXG_TXACTIVE
  1313. * Bit 0 TXXG_PAUSED
  1314. *----------------------------------------------------------------------------*/
  1315. #define SUNI1x10GEXP_BITMSK_TXXG_TXACTIVE 0x0002
  1316. #define SUNI1x10GEXP_BITMSK_TXXG_PAUSED 0x0001
  1317. /*----------------------------------------------------------------------------
  1318. * Register 0x3046: TXXG TX_MINFR - Transmit Min Frame Size Register
  1319. * Bit 7-0 TXXG_TX_MINFR
  1320. *----------------------------------------------------------------------------*/
  1321. #define SUNI1x10GEXP_BITMSK_TXXG_TX_MINFR 0x00FF
  1322. #define SUNI1x10GEXP_BITOFF_TXXG_TX_MINFR 0
  1323. /*----------------------------------------------------------------------------
  1324. * Register 0x3052: TXXG Pause Quantum Value Configuration Register
  1325. * Bit 7-0 TXXG_FC_PAUSE_QNTM
  1326. *----------------------------------------------------------------------------*/
  1327. #define SUNI1x10GEXP_BITMSK_TXXG_FC_PAUSE_QNTM 0x00FF
  1328. #define SUNI1x10GEXP_BITOFF_TXXG_FC_PAUSE_QNTM 0
  1329. /*----------------------------------------------------------------------------
  1330. * Register 0x3080: XTEF Control
  1331. * Bit 3-0 XTEF_FORCE_PARITY_ERR
  1332. *----------------------------------------------------------------------------*/
  1333. #define SUNI1x10GEXP_BITMSK_XTEF_FORCE_PARITY_ERR 0x000F
  1334. #define SUNI1x10GEXP_BITOFF_XTEF_FORCE_PARITY_ERR 0
  1335. /*----------------------------------------------------------------------------
  1336. * Register 0x3084: XTEF Interrupt Event Register
  1337. * Bit 0 XTEF_LOST_SYNCI
  1338. *----------------------------------------------------------------------------*/
  1339. #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCI 0x0001
  1340. /*----------------------------------------------------------------------------
  1341. * Register 0x3085: XTEF Interrupt Enable Register
  1342. * Bit 0 XTEF_LOST_SYNCE
  1343. *----------------------------------------------------------------------------*/
  1344. #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCE 0x0001
  1345. /*----------------------------------------------------------------------------
  1346. * Register 0x3086: XTEF Visibility Register
  1347. * Bit 0 XTEF_LOST_SYNCV
  1348. *----------------------------------------------------------------------------*/
  1349. #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCV 0x0001
  1350. /*----------------------------------------------------------------------------
  1351. * Register 0x30C0: TXOAM OAM Configuration
  1352. * Bit 15 TXOAM_HEC_EN
  1353. * Bit 14 TXOAM_EMPTYCODE_EN
  1354. * Bit 13 TXOAM_FORCE_IDLE
  1355. * Bit 12 TXOAM_IGNORE_IDLE
  1356. * Bit 11-6 TXOAM_PX_OVERWRITE
  1357. * Bit 5-0 TXOAM_PX_SEL
  1358. *----------------------------------------------------------------------------*/
  1359. #define SUNI1x10GEXP_BITMSK_TXOAM_HEC_EN 0x8000
  1360. #define SUNI1x10GEXP_BITMSK_TXOAM_EMPTYCODE_EN 0x4000
  1361. #define SUNI1x10GEXP_BITMSK_TXOAM_FORCE_IDLE 0x2000
  1362. #define SUNI1x10GEXP_BITMSK_TXOAM_IGNORE_IDLE 0x1000
  1363. #define SUNI1x10GEXP_BITMSK_TXOAM_PX_OVERWRITE 0x0FC0
  1364. #define SUNI1x10GEXP_BITOFF_TXOAM_PX_OVERWRITE 6
  1365. #define SUNI1x10GEXP_BITMSK_TXOAM_PX_SEL 0x003F
  1366. #define SUNI1x10GEXP_BITOFF_TXOAM_PX_SEL 0
  1367. /*----------------------------------------------------------------------------
  1368. * Register 0x30C1: TXOAM Mini-Packet Rate Configuration
  1369. * Bit 15 TXOAM_MINIDIS
  1370. * Bit 14 TXOAM_BUSY
  1371. * Bit 13 TXOAM_TRANS_EN
  1372. * Bit 10-0 TXOAM_MINIRATE
  1373. *----------------------------------------------------------------------------*/
  1374. #define SUNI1x10GEXP_BITMSK_TXOAM_MINIDIS 0x8000
  1375. #define SUNI1x10GEXP_BITMSK_TXOAM_BUSY 0x4000
  1376. #define SUNI1x10GEXP_BITMSK_TXOAM_TRANS_EN 0x2000
  1377. #define SUNI1x10GEXP_BITMSK_TXOAM_MINIRATE 0x07FF
  1378. /*----------------------------------------------------------------------------
  1379. * Register 0x30C2: TXOAM Mini-Packet Gap and FIFO Configuration
  1380. * Bit 13-10 TXOAM_FTHRESH
  1381. * Bit 9-6 TXOAM_MINIPOST
  1382. * Bit 5-0 TXOAM_MINIPRE
  1383. *----------------------------------------------------------------------------*/
  1384. #define SUNI1x10GEXP_BITMSK_TXOAM_FTHRESH 0x3C00
  1385. #define SUNI1x10GEXP_BITOFF_TXOAM_FTHRESH 10
  1386. #define SUNI1x10GEXP_BITMSK_TXOAM_MINIPOST 0x03C0
  1387. #define SUNI1x10GEXP_BITOFF_TXOAM_MINIPOST 6
  1388. #define SUNI1x10GEXP_BITMSK_TXOAM_MINIPRE 0x003F
  1389. /*----------------------------------------------------------------------------
  1390. * Register 0x30C6: TXOAM Interrupt Enable
  1391. * Bit 2 TXOAM_SOP_ERRE
  1392. * Bit 1 TXOAM_OFLE
  1393. * Bit 0 TXOAM_ERRE
  1394. *----------------------------------------------------------------------------*/
  1395. #define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRE 0x0004
  1396. #define SUNI1x10GEXP_BITMSK_TXOAM_OFLE 0x0002
  1397. #define SUNI1x10GEXP_BITMSK_TXOAM_ERRE 0x0001
  1398. /*----------------------------------------------------------------------------
  1399. * Register 0x30C7: TXOAM Interrupt Status
  1400. * Bit 2 TXOAM_SOP_ERRI
  1401. * Bit 1 TXOAM_OFLI
  1402. * Bit 0 TXOAM_ERRI
  1403. *----------------------------------------------------------------------------*/
  1404. #define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRI 0x0004
  1405. #define SUNI1x10GEXP_BITMSK_TXOAM_OFLI 0x0002
  1406. #define SUNI1x10GEXP_BITMSK_TXOAM_ERRI 0x0001
  1407. /*----------------------------------------------------------------------------
  1408. * Register 0x30CF: TXOAM Coset
  1409. * Bit 7-0 TXOAM_COSET
  1410. *----------------------------------------------------------------------------*/
  1411. #define SUNI1x10GEXP_BITMSK_TXOAM_COSET 0x00FF
  1412. /*----------------------------------------------------------------------------
  1413. * Register 0x3200: EFLX Global Configuration
  1414. * Bit 15 EFLX_ERCU_EN
  1415. * Bit 7 EFLX_EN_EDSWT
  1416. *----------------------------------------------------------------------------*/
  1417. #define SUNI1x10GEXP_BITMSK_EFLX_ERCU_EN 0x8000
  1418. #define SUNI1x10GEXP_BITMSK_EFLX_EN_EDSWT 0x0080
  1419. /*----------------------------------------------------------------------------
  1420. * Register 0x3201: EFLX ERCU Global Status
  1421. * Bit 13 EFLX_OVF_ERR
  1422. *----------------------------------------------------------------------------*/
  1423. #define SUNI1x10GEXP_BITMSK_EFLX_OVF_ERR 0x2000
  1424. /*----------------------------------------------------------------------------
  1425. * Register 0x3202: EFLX Indirect Channel Address
  1426. * Bit 15 EFLX_BUSY
  1427. * Bit 14 EFLX_RDWRB
  1428. *----------------------------------------------------------------------------*/
  1429. #define SUNI1x10GEXP_BITMSK_EFLX_BUSY 0x8000
  1430. #define SUNI1x10GEXP_BITMSK_EFLX_RDWRB 0x4000
  1431. /*----------------------------------------------------------------------------
  1432. * Register 0x3203: EFLX Indirect Logical FIFO Low Limit
  1433. *----------------------------------------------------------------------------*/
  1434. #define SUNI1x10GEXP_BITMSK_EFLX_LOLIM 0x03FF
  1435. #define SUNI1x10GEXP_BITOFF_EFLX_LOLIM 0
  1436. /*----------------------------------------------------------------------------
  1437. * Register 0x3204: EFLX Indirect Logical FIFO High Limit
  1438. *----------------------------------------------------------------------------*/
  1439. #define SUNI1x10GEXP_BITMSK_EFLX_HILIM 0x03FF
  1440. #define SUNI1x10GEXP_BITOFF_EFLX_HILIM 0
  1441. /*----------------------------------------------------------------------------
  1442. * Register 0x3205: EFLX Indirect Full/Almost-Full Status and Limit
  1443. * Bit 15 EFLX_FULL
  1444. * Bit 14 EFLX_AFULL
  1445. * Bit 13-0 EFLX_AFTH
  1446. *----------------------------------------------------------------------------*/
  1447. #define SUNI1x10GEXP_BITMSK_EFLX_FULL 0x8000
  1448. #define SUNI1x10GEXP_BITMSK_EFLX_AFULL 0x4000
  1449. #define SUNI1x10GEXP_BITMSK_EFLX_AFTH 0x3FFF
  1450. #define SUNI1x10GEXP_BITOFF_EFLX_AFTH 0
  1451. /*----------------------------------------------------------------------------
  1452. * Register 0x3206: EFLX Indirect Empty/Almost-Empty Status and Limit
  1453. * Bit 15 EFLX_EMPTY
  1454. * Bit 14 EFLX_AEMPTY
  1455. * Bit 13-0 EFLX_AETH
  1456. *----------------------------------------------------------------------------*/
  1457. #define SUNI1x10GEXP_BITMSK_EFLX_EMPTY 0x8000
  1458. #define SUNI1x10GEXP_BITMSK_EFLX_AEMPTY 0x4000
  1459. #define SUNI1x10GEXP_BITMSK_EFLX_AETH 0x3FFF
  1460. #define SUNI1x10GEXP_BITOFF_EFLX_AETH 0
  1461. /*----------------------------------------------------------------------------
  1462. * Register 0x3207: EFLX Indirect FIFO Cut-Through Threshold
  1463. *----------------------------------------------------------------------------*/
  1464. #define SUNI1x10GEXP_BITMSK_EFLX_CUT_THRU 0x3FFF
  1465. #define SUNI1x10GEXP_BITOFF_EFLX_CUT_THRU 0
  1466. /*----------------------------------------------------------------------------
  1467. * Register 0x320C: EFLX FIFO Overflow Error Enable
  1468. * Bit 0 EFLX_OVFE
  1469. *----------------------------------------------------------------------------*/
  1470. #define SUNI1x10GEXP_BITMSK_EFLX_OVFE 0x0001
  1471. /*----------------------------------------------------------------------------
  1472. * Register 0x320D: EFLX FIFO Overflow Error Indication
  1473. * Bit 0 EFLX_OVFI
  1474. *----------------------------------------------------------------------------*/
  1475. #define SUNI1x10GEXP_BITMSK_EFLX_OVFI 0x0001
  1476. /*----------------------------------------------------------------------------
  1477. * Register 0x3210: EFLX Channel Provision
  1478. * Bit 0 EFLX_PROV
  1479. *----------------------------------------------------------------------------*/
  1480. #define SUNI1x10GEXP_BITMSK_EFLX_PROV 0x0001
  1481. /*----------------------------------------------------------------------------
  1482. * Register 0x3280: PL4IDU Configuration
  1483. * Bit 2 PL4IDU_SYNCH_ON_TRAIN
  1484. * Bit 1 PL4IDU_EN_PORTS
  1485. * Bit 0 PL4IDU_EN_DFWD
  1486. *----------------------------------------------------------------------------*/
  1487. #define SUNI1x10GEXP_BITMSK_PL4IDU_SYNCH_ON_TRAIN 0x0004
  1488. #define SUNI1x10GEXP_BITMSK_PL4IDU_EN_PORTS 0x0002
  1489. #define SUNI1x10GEXP_BITMSK_PL4IDU_EN_DFWD 0x0001
  1490. /*----------------------------------------------------------------------------
  1491. * Register 0x3282: PL4IDU Interrupt Mask
  1492. * Bit 1 PL4IDU_DIP4E
  1493. *----------------------------------------------------------------------------*/
  1494. #define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4E 0x0002
  1495. /*----------------------------------------------------------------------------
  1496. * Register 0x3283: PL4IDU Interrupt
  1497. * Bit 1 PL4IDU_DIP4I
  1498. *----------------------------------------------------------------------------*/
  1499. #define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4I 0x0002
  1500. #endif /* _CXGB_SUNI1x10GEXP_REGS_H_ */