farch_regs.h 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933
  1. /****************************************************************************
  2. * Driver for Solarflare network controllers and boards
  3. * Copyright 2005-2006 Fen Systems Ltd.
  4. * Copyright 2006-2012 Solarflare Communications Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published
  8. * by the Free Software Foundation, incorporated herein by reference.
  9. */
  10. #ifndef EFX_FARCH_REGS_H
  11. #define EFX_FARCH_REGS_H
  12. /*
  13. * Falcon hardware architecture definitions have a name prefix following
  14. * the format:
  15. *
  16. * F<type>_<min-rev><max-rev>_
  17. *
  18. * The following <type> strings are used:
  19. *
  20. * MMIO register MC register Host memory structure
  21. * -------------------------------------------------------------
  22. * Address R MCR
  23. * Bitfield RF MCRF SF
  24. * Enumerator FE MCFE SE
  25. *
  26. * <min-rev> is the first revision to which the definition applies:
  27. *
  28. * A: Falcon A1 (SFC4000AB)
  29. * B: Falcon B0 (SFC4000BA)
  30. * C: Siena A0 (SFL9021AA)
  31. *
  32. * If the definition has been changed or removed in later revisions
  33. * then <max-rev> is the last revision to which the definition applies;
  34. * otherwise it is "Z".
  35. */
  36. /**************************************************************************
  37. *
  38. * Falcon/Siena registers and descriptors
  39. *
  40. **************************************************************************
  41. */
  42. /* ADR_REGION_REG: Address region register */
  43. #define FR_AZ_ADR_REGION 0x00000000
  44. #define FRF_AZ_ADR_REGION3_LBN 96
  45. #define FRF_AZ_ADR_REGION3_WIDTH 18
  46. #define FRF_AZ_ADR_REGION2_LBN 64
  47. #define FRF_AZ_ADR_REGION2_WIDTH 18
  48. #define FRF_AZ_ADR_REGION1_LBN 32
  49. #define FRF_AZ_ADR_REGION1_WIDTH 18
  50. #define FRF_AZ_ADR_REGION0_LBN 0
  51. #define FRF_AZ_ADR_REGION0_WIDTH 18
  52. /* INT_EN_REG_KER: Kernel driver Interrupt enable register */
  53. #define FR_AZ_INT_EN_KER 0x00000010
  54. #define FRF_AZ_KER_INT_LEVE_SEL_LBN 8
  55. #define FRF_AZ_KER_INT_LEVE_SEL_WIDTH 6
  56. #define FRF_AZ_KER_INT_CHAR_LBN 4
  57. #define FRF_AZ_KER_INT_CHAR_WIDTH 1
  58. #define FRF_AZ_KER_INT_KER_LBN 3
  59. #define FRF_AZ_KER_INT_KER_WIDTH 1
  60. #define FRF_AZ_DRV_INT_EN_KER_LBN 0
  61. #define FRF_AZ_DRV_INT_EN_KER_WIDTH 1
  62. /* INT_EN_REG_CHAR: Char Driver interrupt enable register */
  63. #define FR_BZ_INT_EN_CHAR 0x00000020
  64. #define FRF_BZ_CHAR_INT_LEVE_SEL_LBN 8
  65. #define FRF_BZ_CHAR_INT_LEVE_SEL_WIDTH 6
  66. #define FRF_BZ_CHAR_INT_CHAR_LBN 4
  67. #define FRF_BZ_CHAR_INT_CHAR_WIDTH 1
  68. #define FRF_BZ_CHAR_INT_KER_LBN 3
  69. #define FRF_BZ_CHAR_INT_KER_WIDTH 1
  70. #define FRF_BZ_DRV_INT_EN_CHAR_LBN 0
  71. #define FRF_BZ_DRV_INT_EN_CHAR_WIDTH 1
  72. /* INT_ADR_REG_KER: Interrupt host address for Kernel driver */
  73. #define FR_AZ_INT_ADR_KER 0x00000030
  74. #define FRF_AZ_NORM_INT_VEC_DIS_KER_LBN 64
  75. #define FRF_AZ_NORM_INT_VEC_DIS_KER_WIDTH 1
  76. #define FRF_AZ_INT_ADR_KER_LBN 0
  77. #define FRF_AZ_INT_ADR_KER_WIDTH 64
  78. /* INT_ADR_REG_CHAR: Interrupt host address for Char driver */
  79. #define FR_BZ_INT_ADR_CHAR 0x00000040
  80. #define FRF_BZ_NORM_INT_VEC_DIS_CHAR_LBN 64
  81. #define FRF_BZ_NORM_INT_VEC_DIS_CHAR_WIDTH 1
  82. #define FRF_BZ_INT_ADR_CHAR_LBN 0
  83. #define FRF_BZ_INT_ADR_CHAR_WIDTH 64
  84. /* INT_ACK_KER: Kernel interrupt acknowledge register */
  85. #define FR_AA_INT_ACK_KER 0x00000050
  86. #define FRF_AA_INT_ACK_KER_FIELD_LBN 0
  87. #define FRF_AA_INT_ACK_KER_FIELD_WIDTH 32
  88. /* INT_ISR0_REG: Function 0 Interrupt Acknowledge Status register */
  89. #define FR_BZ_INT_ISR0 0x00000090
  90. #define FRF_BZ_INT_ISR_REG_LBN 0
  91. #define FRF_BZ_INT_ISR_REG_WIDTH 64
  92. /* HW_INIT_REG: Hardware initialization register */
  93. #define FR_AZ_HW_INIT 0x000000c0
  94. #define FRF_BB_BDMRD_CPLF_FULL_LBN 124
  95. #define FRF_BB_BDMRD_CPLF_FULL_WIDTH 1
  96. #define FRF_BB_PCIE_CPL_TIMEOUT_CTRL_LBN 121
  97. #define FRF_BB_PCIE_CPL_TIMEOUT_CTRL_WIDTH 3
  98. #define FRF_CZ_TX_MRG_TAGS_LBN 120
  99. #define FRF_CZ_TX_MRG_TAGS_WIDTH 1
  100. #define FRF_AB_TRGT_MASK_ALL_LBN 100
  101. #define FRF_AB_TRGT_MASK_ALL_WIDTH 1
  102. #define FRF_AZ_DOORBELL_DROP_LBN 92
  103. #define FRF_AZ_DOORBELL_DROP_WIDTH 8
  104. #define FRF_AB_TX_RREQ_MASK_EN_LBN 76
  105. #define FRF_AB_TX_RREQ_MASK_EN_WIDTH 1
  106. #define FRF_AB_PE_EIDLE_DIS_LBN 75
  107. #define FRF_AB_PE_EIDLE_DIS_WIDTH 1
  108. #define FRF_AA_FC_BLOCKING_EN_LBN 45
  109. #define FRF_AA_FC_BLOCKING_EN_WIDTH 1
  110. #define FRF_BZ_B2B_REQ_EN_LBN 45
  111. #define FRF_BZ_B2B_REQ_EN_WIDTH 1
  112. #define FRF_AA_B2B_REQ_EN_LBN 44
  113. #define FRF_AA_B2B_REQ_EN_WIDTH 1
  114. #define FRF_BB_FC_BLOCKING_EN_LBN 44
  115. #define FRF_BB_FC_BLOCKING_EN_WIDTH 1
  116. #define FRF_AZ_POST_WR_MASK_LBN 40
  117. #define FRF_AZ_POST_WR_MASK_WIDTH 4
  118. #define FRF_AZ_TLP_TC_LBN 34
  119. #define FRF_AZ_TLP_TC_WIDTH 3
  120. #define FRF_AZ_TLP_ATTR_LBN 32
  121. #define FRF_AZ_TLP_ATTR_WIDTH 2
  122. #define FRF_AB_INTB_VEC_LBN 24
  123. #define FRF_AB_INTB_VEC_WIDTH 5
  124. #define FRF_AB_INTA_VEC_LBN 16
  125. #define FRF_AB_INTA_VEC_WIDTH 5
  126. #define FRF_AZ_WD_TIMER_LBN 8
  127. #define FRF_AZ_WD_TIMER_WIDTH 8
  128. #define FRF_AZ_US_DISABLE_LBN 5
  129. #define FRF_AZ_US_DISABLE_WIDTH 1
  130. #define FRF_AZ_TLP_EP_LBN 4
  131. #define FRF_AZ_TLP_EP_WIDTH 1
  132. #define FRF_AZ_ATTR_SEL_LBN 3
  133. #define FRF_AZ_ATTR_SEL_WIDTH 1
  134. #define FRF_AZ_TD_SEL_LBN 1
  135. #define FRF_AZ_TD_SEL_WIDTH 1
  136. #define FRF_AZ_TLP_TD_LBN 0
  137. #define FRF_AZ_TLP_TD_WIDTH 1
  138. /* EE_SPI_HCMD_REG: SPI host command register */
  139. #define FR_AB_EE_SPI_HCMD 0x00000100
  140. #define FRF_AB_EE_SPI_HCMD_CMD_EN_LBN 31
  141. #define FRF_AB_EE_SPI_HCMD_CMD_EN_WIDTH 1
  142. #define FRF_AB_EE_WR_TIMER_ACTIVE_LBN 28
  143. #define FRF_AB_EE_WR_TIMER_ACTIVE_WIDTH 1
  144. #define FRF_AB_EE_SPI_HCMD_SF_SEL_LBN 24
  145. #define FRF_AB_EE_SPI_HCMD_SF_SEL_WIDTH 1
  146. #define FRF_AB_EE_SPI_HCMD_DABCNT_LBN 16
  147. #define FRF_AB_EE_SPI_HCMD_DABCNT_WIDTH 5
  148. #define FRF_AB_EE_SPI_HCMD_READ_LBN 15
  149. #define FRF_AB_EE_SPI_HCMD_READ_WIDTH 1
  150. #define FRF_AB_EE_SPI_HCMD_DUBCNT_LBN 12
  151. #define FRF_AB_EE_SPI_HCMD_DUBCNT_WIDTH 2
  152. #define FRF_AB_EE_SPI_HCMD_ADBCNT_LBN 8
  153. #define FRF_AB_EE_SPI_HCMD_ADBCNT_WIDTH 2
  154. #define FRF_AB_EE_SPI_HCMD_ENC_LBN 0
  155. #define FRF_AB_EE_SPI_HCMD_ENC_WIDTH 8
  156. /* USR_EV_CFG: User Level Event Configuration register */
  157. #define FR_CZ_USR_EV_CFG 0x00000100
  158. #define FRF_CZ_USREV_DIS_LBN 16
  159. #define FRF_CZ_USREV_DIS_WIDTH 1
  160. #define FRF_CZ_DFLT_EVQ_LBN 0
  161. #define FRF_CZ_DFLT_EVQ_WIDTH 10
  162. /* EE_SPI_HADR_REG: SPI host address register */
  163. #define FR_AB_EE_SPI_HADR 0x00000110
  164. #define FRF_AB_EE_SPI_HADR_DUBYTE_LBN 24
  165. #define FRF_AB_EE_SPI_HADR_DUBYTE_WIDTH 8
  166. #define FRF_AB_EE_SPI_HADR_ADR_LBN 0
  167. #define FRF_AB_EE_SPI_HADR_ADR_WIDTH 24
  168. /* EE_SPI_HDATA_REG: SPI host data register */
  169. #define FR_AB_EE_SPI_HDATA 0x00000120
  170. #define FRF_AB_EE_SPI_HDATA3_LBN 96
  171. #define FRF_AB_EE_SPI_HDATA3_WIDTH 32
  172. #define FRF_AB_EE_SPI_HDATA2_LBN 64
  173. #define FRF_AB_EE_SPI_HDATA2_WIDTH 32
  174. #define FRF_AB_EE_SPI_HDATA1_LBN 32
  175. #define FRF_AB_EE_SPI_HDATA1_WIDTH 32
  176. #define FRF_AB_EE_SPI_HDATA0_LBN 0
  177. #define FRF_AB_EE_SPI_HDATA0_WIDTH 32
  178. /* EE_BASE_PAGE_REG: Expansion ROM base mirror register */
  179. #define FR_AB_EE_BASE_PAGE 0x00000130
  180. #define FRF_AB_EE_EXPROM_MASK_LBN 16
  181. #define FRF_AB_EE_EXPROM_MASK_WIDTH 13
  182. #define FRF_AB_EE_EXP_ROM_WINDOW_BASE_LBN 0
  183. #define FRF_AB_EE_EXP_ROM_WINDOW_BASE_WIDTH 13
  184. /* EE_VPD_CFG0_REG: SPI/VPD configuration register 0 */
  185. #define FR_AB_EE_VPD_CFG0 0x00000140
  186. #define FRF_AB_EE_SF_FASTRD_EN_LBN 127
  187. #define FRF_AB_EE_SF_FASTRD_EN_WIDTH 1
  188. #define FRF_AB_EE_SF_CLOCK_DIV_LBN 120
  189. #define FRF_AB_EE_SF_CLOCK_DIV_WIDTH 7
  190. #define FRF_AB_EE_VPD_WIP_POLL_LBN 119
  191. #define FRF_AB_EE_VPD_WIP_POLL_WIDTH 1
  192. #define FRF_AB_EE_EE_CLOCK_DIV_LBN 112
  193. #define FRF_AB_EE_EE_CLOCK_DIV_WIDTH 7
  194. #define FRF_AB_EE_EE_WR_TMR_VALUE_LBN 96
  195. #define FRF_AB_EE_EE_WR_TMR_VALUE_WIDTH 16
  196. #define FRF_AB_EE_VPDW_LENGTH_LBN 80
  197. #define FRF_AB_EE_VPDW_LENGTH_WIDTH 15
  198. #define FRF_AB_EE_VPDW_BASE_LBN 64
  199. #define FRF_AB_EE_VPDW_BASE_WIDTH 15
  200. #define FRF_AB_EE_VPD_WR_CMD_EN_LBN 56
  201. #define FRF_AB_EE_VPD_WR_CMD_EN_WIDTH 8
  202. #define FRF_AB_EE_VPD_BASE_LBN 32
  203. #define FRF_AB_EE_VPD_BASE_WIDTH 24
  204. #define FRF_AB_EE_VPD_LENGTH_LBN 16
  205. #define FRF_AB_EE_VPD_LENGTH_WIDTH 15
  206. #define FRF_AB_EE_VPD_AD_SIZE_LBN 8
  207. #define FRF_AB_EE_VPD_AD_SIZE_WIDTH 5
  208. #define FRF_AB_EE_VPD_ACCESS_ON_LBN 5
  209. #define FRF_AB_EE_VPD_ACCESS_ON_WIDTH 1
  210. #define FRF_AB_EE_VPD_ACCESS_BLOCK_LBN 4
  211. #define FRF_AB_EE_VPD_ACCESS_BLOCK_WIDTH 1
  212. #define FRF_AB_EE_VPD_DEV_SF_SEL_LBN 2
  213. #define FRF_AB_EE_VPD_DEV_SF_SEL_WIDTH 1
  214. #define FRF_AB_EE_VPD_EN_AD9_MODE_LBN 1
  215. #define FRF_AB_EE_VPD_EN_AD9_MODE_WIDTH 1
  216. #define FRF_AB_EE_VPD_EN_LBN 0
  217. #define FRF_AB_EE_VPD_EN_WIDTH 1
  218. /* EE_VPD_SW_CNTL_REG: VPD access SW control register */
  219. #define FR_AB_EE_VPD_SW_CNTL 0x00000150
  220. #define FRF_AB_EE_VPD_CYCLE_PENDING_LBN 31
  221. #define FRF_AB_EE_VPD_CYCLE_PENDING_WIDTH 1
  222. #define FRF_AB_EE_VPD_CYC_WRITE_LBN 28
  223. #define FRF_AB_EE_VPD_CYC_WRITE_WIDTH 1
  224. #define FRF_AB_EE_VPD_CYC_ADR_LBN 0
  225. #define FRF_AB_EE_VPD_CYC_ADR_WIDTH 15
  226. /* EE_VPD_SW_DATA_REG: VPD access SW data register */
  227. #define FR_AB_EE_VPD_SW_DATA 0x00000160
  228. #define FRF_AB_EE_VPD_CYC_DAT_LBN 0
  229. #define FRF_AB_EE_VPD_CYC_DAT_WIDTH 32
  230. /* PBMX_DBG_IADDR_REG: Capture Module address register */
  231. #define FR_CZ_PBMX_DBG_IADDR 0x000001f0
  232. #define FRF_CZ_PBMX_DBG_IADDR_LBN 0
  233. #define FRF_CZ_PBMX_DBG_IADDR_WIDTH 32
  234. /* PCIE_CORE_INDIRECT_REG: Indirect Access to PCIE Core registers */
  235. #define FR_BB_PCIE_CORE_INDIRECT 0x000001f0
  236. #define FRF_BB_PCIE_CORE_TARGET_DATA_LBN 32
  237. #define FRF_BB_PCIE_CORE_TARGET_DATA_WIDTH 32
  238. #define FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_LBN 15
  239. #define FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_WIDTH 1
  240. #define FRF_BB_PCIE_CORE_TARGET_REG_ADRS_LBN 0
  241. #define FRF_BB_PCIE_CORE_TARGET_REG_ADRS_WIDTH 12
  242. /* PBMX_DBG_IDATA_REG: Capture Module data register */
  243. #define FR_CZ_PBMX_DBG_IDATA 0x000001f8
  244. #define FRF_CZ_PBMX_DBG_IDATA_LBN 0
  245. #define FRF_CZ_PBMX_DBG_IDATA_WIDTH 64
  246. /* NIC_STAT_REG: NIC status register */
  247. #define FR_AB_NIC_STAT 0x00000200
  248. #define FRF_BB_AER_DIS_LBN 34
  249. #define FRF_BB_AER_DIS_WIDTH 1
  250. #define FRF_BB_EE_STRAP_EN_LBN 31
  251. #define FRF_BB_EE_STRAP_EN_WIDTH 1
  252. #define FRF_BB_EE_STRAP_LBN 24
  253. #define FRF_BB_EE_STRAP_WIDTH 4
  254. #define FRF_BB_REVISION_ID_LBN 17
  255. #define FRF_BB_REVISION_ID_WIDTH 7
  256. #define FRF_AB_ONCHIP_SRAM_LBN 16
  257. #define FRF_AB_ONCHIP_SRAM_WIDTH 1
  258. #define FRF_AB_SF_PRST_LBN 9
  259. #define FRF_AB_SF_PRST_WIDTH 1
  260. #define FRF_AB_EE_PRST_LBN 8
  261. #define FRF_AB_EE_PRST_WIDTH 1
  262. #define FRF_AB_ATE_MODE_LBN 3
  263. #define FRF_AB_ATE_MODE_WIDTH 1
  264. #define FRF_AB_STRAP_PINS_LBN 0
  265. #define FRF_AB_STRAP_PINS_WIDTH 3
  266. /* GPIO_CTL_REG: GPIO control register */
  267. #define FR_AB_GPIO_CTL 0x00000210
  268. #define FRF_AB_GPIO_OUT3_LBN 112
  269. #define FRF_AB_GPIO_OUT3_WIDTH 16
  270. #define FRF_AB_GPIO_IN3_LBN 104
  271. #define FRF_AB_GPIO_IN3_WIDTH 8
  272. #define FRF_AB_GPIO_PWRUP_VALUE3_LBN 96
  273. #define FRF_AB_GPIO_PWRUP_VALUE3_WIDTH 8
  274. #define FRF_AB_GPIO_OUT2_LBN 80
  275. #define FRF_AB_GPIO_OUT2_WIDTH 16
  276. #define FRF_AB_GPIO_IN2_LBN 72
  277. #define FRF_AB_GPIO_IN2_WIDTH 8
  278. #define FRF_AB_GPIO_PWRUP_VALUE2_LBN 64
  279. #define FRF_AB_GPIO_PWRUP_VALUE2_WIDTH 8
  280. #define FRF_AB_GPIO15_OEN_LBN 63
  281. #define FRF_AB_GPIO15_OEN_WIDTH 1
  282. #define FRF_AB_GPIO14_OEN_LBN 62
  283. #define FRF_AB_GPIO14_OEN_WIDTH 1
  284. #define FRF_AB_GPIO13_OEN_LBN 61
  285. #define FRF_AB_GPIO13_OEN_WIDTH 1
  286. #define FRF_AB_GPIO12_OEN_LBN 60
  287. #define FRF_AB_GPIO12_OEN_WIDTH 1
  288. #define FRF_AB_GPIO11_OEN_LBN 59
  289. #define FRF_AB_GPIO11_OEN_WIDTH 1
  290. #define FRF_AB_GPIO10_OEN_LBN 58
  291. #define FRF_AB_GPIO10_OEN_WIDTH 1
  292. #define FRF_AB_GPIO9_OEN_LBN 57
  293. #define FRF_AB_GPIO9_OEN_WIDTH 1
  294. #define FRF_AB_GPIO8_OEN_LBN 56
  295. #define FRF_AB_GPIO8_OEN_WIDTH 1
  296. #define FRF_AB_GPIO15_OUT_LBN 55
  297. #define FRF_AB_GPIO15_OUT_WIDTH 1
  298. #define FRF_AB_GPIO14_OUT_LBN 54
  299. #define FRF_AB_GPIO14_OUT_WIDTH 1
  300. #define FRF_AB_GPIO13_OUT_LBN 53
  301. #define FRF_AB_GPIO13_OUT_WIDTH 1
  302. #define FRF_AB_GPIO12_OUT_LBN 52
  303. #define FRF_AB_GPIO12_OUT_WIDTH 1
  304. #define FRF_AB_GPIO11_OUT_LBN 51
  305. #define FRF_AB_GPIO11_OUT_WIDTH 1
  306. #define FRF_AB_GPIO10_OUT_LBN 50
  307. #define FRF_AB_GPIO10_OUT_WIDTH 1
  308. #define FRF_AB_GPIO9_OUT_LBN 49
  309. #define FRF_AB_GPIO9_OUT_WIDTH 1
  310. #define FRF_AB_GPIO8_OUT_LBN 48
  311. #define FRF_AB_GPIO8_OUT_WIDTH 1
  312. #define FRF_AB_GPIO15_IN_LBN 47
  313. #define FRF_AB_GPIO15_IN_WIDTH 1
  314. #define FRF_AB_GPIO14_IN_LBN 46
  315. #define FRF_AB_GPIO14_IN_WIDTH 1
  316. #define FRF_AB_GPIO13_IN_LBN 45
  317. #define FRF_AB_GPIO13_IN_WIDTH 1
  318. #define FRF_AB_GPIO12_IN_LBN 44
  319. #define FRF_AB_GPIO12_IN_WIDTH 1
  320. #define FRF_AB_GPIO11_IN_LBN 43
  321. #define FRF_AB_GPIO11_IN_WIDTH 1
  322. #define FRF_AB_GPIO10_IN_LBN 42
  323. #define FRF_AB_GPIO10_IN_WIDTH 1
  324. #define FRF_AB_GPIO9_IN_LBN 41
  325. #define FRF_AB_GPIO9_IN_WIDTH 1
  326. #define FRF_AB_GPIO8_IN_LBN 40
  327. #define FRF_AB_GPIO8_IN_WIDTH 1
  328. #define FRF_AB_GPIO15_PWRUP_VALUE_LBN 39
  329. #define FRF_AB_GPIO15_PWRUP_VALUE_WIDTH 1
  330. #define FRF_AB_GPIO14_PWRUP_VALUE_LBN 38
  331. #define FRF_AB_GPIO14_PWRUP_VALUE_WIDTH 1
  332. #define FRF_AB_GPIO13_PWRUP_VALUE_LBN 37
  333. #define FRF_AB_GPIO13_PWRUP_VALUE_WIDTH 1
  334. #define FRF_AB_GPIO12_PWRUP_VALUE_LBN 36
  335. #define FRF_AB_GPIO12_PWRUP_VALUE_WIDTH 1
  336. #define FRF_AB_GPIO11_PWRUP_VALUE_LBN 35
  337. #define FRF_AB_GPIO11_PWRUP_VALUE_WIDTH 1
  338. #define FRF_AB_GPIO10_PWRUP_VALUE_LBN 34
  339. #define FRF_AB_GPIO10_PWRUP_VALUE_WIDTH 1
  340. #define FRF_AB_GPIO9_PWRUP_VALUE_LBN 33
  341. #define FRF_AB_GPIO9_PWRUP_VALUE_WIDTH 1
  342. #define FRF_AB_GPIO8_PWRUP_VALUE_LBN 32
  343. #define FRF_AB_GPIO8_PWRUP_VALUE_WIDTH 1
  344. #define FRF_AB_CLK156_OUT_EN_LBN 31
  345. #define FRF_AB_CLK156_OUT_EN_WIDTH 1
  346. #define FRF_AB_USE_NIC_CLK_LBN 30
  347. #define FRF_AB_USE_NIC_CLK_WIDTH 1
  348. #define FRF_AB_GPIO5_OEN_LBN 29
  349. #define FRF_AB_GPIO5_OEN_WIDTH 1
  350. #define FRF_AB_GPIO4_OEN_LBN 28
  351. #define FRF_AB_GPIO4_OEN_WIDTH 1
  352. #define FRF_AB_GPIO3_OEN_LBN 27
  353. #define FRF_AB_GPIO3_OEN_WIDTH 1
  354. #define FRF_AB_GPIO2_OEN_LBN 26
  355. #define FRF_AB_GPIO2_OEN_WIDTH 1
  356. #define FRF_AB_GPIO1_OEN_LBN 25
  357. #define FRF_AB_GPIO1_OEN_WIDTH 1
  358. #define FRF_AB_GPIO0_OEN_LBN 24
  359. #define FRF_AB_GPIO0_OEN_WIDTH 1
  360. #define FRF_AB_GPIO7_OUT_LBN 23
  361. #define FRF_AB_GPIO7_OUT_WIDTH 1
  362. #define FRF_AB_GPIO6_OUT_LBN 22
  363. #define FRF_AB_GPIO6_OUT_WIDTH 1
  364. #define FRF_AB_GPIO5_OUT_LBN 21
  365. #define FRF_AB_GPIO5_OUT_WIDTH 1
  366. #define FRF_AB_GPIO4_OUT_LBN 20
  367. #define FRF_AB_GPIO4_OUT_WIDTH 1
  368. #define FRF_AB_GPIO3_OUT_LBN 19
  369. #define FRF_AB_GPIO3_OUT_WIDTH 1
  370. #define FRF_AB_GPIO2_OUT_LBN 18
  371. #define FRF_AB_GPIO2_OUT_WIDTH 1
  372. #define FRF_AB_GPIO1_OUT_LBN 17
  373. #define FRF_AB_GPIO1_OUT_WIDTH 1
  374. #define FRF_AB_GPIO0_OUT_LBN 16
  375. #define FRF_AB_GPIO0_OUT_WIDTH 1
  376. #define FRF_AB_GPIO7_IN_LBN 15
  377. #define FRF_AB_GPIO7_IN_WIDTH 1
  378. #define FRF_AB_GPIO6_IN_LBN 14
  379. #define FRF_AB_GPIO6_IN_WIDTH 1
  380. #define FRF_AB_GPIO5_IN_LBN 13
  381. #define FRF_AB_GPIO5_IN_WIDTH 1
  382. #define FRF_AB_GPIO4_IN_LBN 12
  383. #define FRF_AB_GPIO4_IN_WIDTH 1
  384. #define FRF_AB_GPIO3_IN_LBN 11
  385. #define FRF_AB_GPIO3_IN_WIDTH 1
  386. #define FRF_AB_GPIO2_IN_LBN 10
  387. #define FRF_AB_GPIO2_IN_WIDTH 1
  388. #define FRF_AB_GPIO1_IN_LBN 9
  389. #define FRF_AB_GPIO1_IN_WIDTH 1
  390. #define FRF_AB_GPIO0_IN_LBN 8
  391. #define FRF_AB_GPIO0_IN_WIDTH 1
  392. #define FRF_AB_GPIO7_PWRUP_VALUE_LBN 7
  393. #define FRF_AB_GPIO7_PWRUP_VALUE_WIDTH 1
  394. #define FRF_AB_GPIO6_PWRUP_VALUE_LBN 6
  395. #define FRF_AB_GPIO6_PWRUP_VALUE_WIDTH 1
  396. #define FRF_AB_GPIO5_PWRUP_VALUE_LBN 5
  397. #define FRF_AB_GPIO5_PWRUP_VALUE_WIDTH 1
  398. #define FRF_AB_GPIO4_PWRUP_VALUE_LBN 4
  399. #define FRF_AB_GPIO4_PWRUP_VALUE_WIDTH 1
  400. #define FRF_AB_GPIO3_PWRUP_VALUE_LBN 3
  401. #define FRF_AB_GPIO3_PWRUP_VALUE_WIDTH 1
  402. #define FRF_AB_GPIO2_PWRUP_VALUE_LBN 2
  403. #define FRF_AB_GPIO2_PWRUP_VALUE_WIDTH 1
  404. #define FRF_AB_GPIO1_PWRUP_VALUE_LBN 1
  405. #define FRF_AB_GPIO1_PWRUP_VALUE_WIDTH 1
  406. #define FRF_AB_GPIO0_PWRUP_VALUE_LBN 0
  407. #define FRF_AB_GPIO0_PWRUP_VALUE_WIDTH 1
  408. /* GLB_CTL_REG: Global control register */
  409. #define FR_AB_GLB_CTL 0x00000220
  410. #define FRF_AB_EXT_PHY_RST_CTL_LBN 63
  411. #define FRF_AB_EXT_PHY_RST_CTL_WIDTH 1
  412. #define FRF_AB_XAUI_SD_RST_CTL_LBN 62
  413. #define FRF_AB_XAUI_SD_RST_CTL_WIDTH 1
  414. #define FRF_AB_PCIE_SD_RST_CTL_LBN 61
  415. #define FRF_AB_PCIE_SD_RST_CTL_WIDTH 1
  416. #define FRF_AA_PCIX_RST_CTL_LBN 60
  417. #define FRF_AA_PCIX_RST_CTL_WIDTH 1
  418. #define FRF_BB_BIU_RST_CTL_LBN 60
  419. #define FRF_BB_BIU_RST_CTL_WIDTH 1
  420. #define FRF_AB_PCIE_STKY_RST_CTL_LBN 59
  421. #define FRF_AB_PCIE_STKY_RST_CTL_WIDTH 1
  422. #define FRF_AB_PCIE_NSTKY_RST_CTL_LBN 58
  423. #define FRF_AB_PCIE_NSTKY_RST_CTL_WIDTH 1
  424. #define FRF_AB_PCIE_CORE_RST_CTL_LBN 57
  425. #define FRF_AB_PCIE_CORE_RST_CTL_WIDTH 1
  426. #define FRF_AB_XGRX_RST_CTL_LBN 56
  427. #define FRF_AB_XGRX_RST_CTL_WIDTH 1
  428. #define FRF_AB_XGTX_RST_CTL_LBN 55
  429. #define FRF_AB_XGTX_RST_CTL_WIDTH 1
  430. #define FRF_AB_EM_RST_CTL_LBN 54
  431. #define FRF_AB_EM_RST_CTL_WIDTH 1
  432. #define FRF_AB_EV_RST_CTL_LBN 53
  433. #define FRF_AB_EV_RST_CTL_WIDTH 1
  434. #define FRF_AB_SR_RST_CTL_LBN 52
  435. #define FRF_AB_SR_RST_CTL_WIDTH 1
  436. #define FRF_AB_RX_RST_CTL_LBN 51
  437. #define FRF_AB_RX_RST_CTL_WIDTH 1
  438. #define FRF_AB_TX_RST_CTL_LBN 50
  439. #define FRF_AB_TX_RST_CTL_WIDTH 1
  440. #define FRF_AB_EE_RST_CTL_LBN 49
  441. #define FRF_AB_EE_RST_CTL_WIDTH 1
  442. #define FRF_AB_CS_RST_CTL_LBN 48
  443. #define FRF_AB_CS_RST_CTL_WIDTH 1
  444. #define FRF_AB_HOT_RST_CTL_LBN 40
  445. #define FRF_AB_HOT_RST_CTL_WIDTH 2
  446. #define FRF_AB_RST_EXT_PHY_LBN 31
  447. #define FRF_AB_RST_EXT_PHY_WIDTH 1
  448. #define FRF_AB_RST_XAUI_SD_LBN 30
  449. #define FRF_AB_RST_XAUI_SD_WIDTH 1
  450. #define FRF_AB_RST_PCIE_SD_LBN 29
  451. #define FRF_AB_RST_PCIE_SD_WIDTH 1
  452. #define FRF_AA_RST_PCIX_LBN 28
  453. #define FRF_AA_RST_PCIX_WIDTH 1
  454. #define FRF_BB_RST_BIU_LBN 28
  455. #define FRF_BB_RST_BIU_WIDTH 1
  456. #define FRF_AB_RST_PCIE_STKY_LBN 27
  457. #define FRF_AB_RST_PCIE_STKY_WIDTH 1
  458. #define FRF_AB_RST_PCIE_NSTKY_LBN 26
  459. #define FRF_AB_RST_PCIE_NSTKY_WIDTH 1
  460. #define FRF_AB_RST_PCIE_CORE_LBN 25
  461. #define FRF_AB_RST_PCIE_CORE_WIDTH 1
  462. #define FRF_AB_RST_XGRX_LBN 24
  463. #define FRF_AB_RST_XGRX_WIDTH 1
  464. #define FRF_AB_RST_XGTX_LBN 23
  465. #define FRF_AB_RST_XGTX_WIDTH 1
  466. #define FRF_AB_RST_EM_LBN 22
  467. #define FRF_AB_RST_EM_WIDTH 1
  468. #define FRF_AB_RST_EV_LBN 21
  469. #define FRF_AB_RST_EV_WIDTH 1
  470. #define FRF_AB_RST_SR_LBN 20
  471. #define FRF_AB_RST_SR_WIDTH 1
  472. #define FRF_AB_RST_RX_LBN 19
  473. #define FRF_AB_RST_RX_WIDTH 1
  474. #define FRF_AB_RST_TX_LBN 18
  475. #define FRF_AB_RST_TX_WIDTH 1
  476. #define FRF_AB_RST_SF_LBN 17
  477. #define FRF_AB_RST_SF_WIDTH 1
  478. #define FRF_AB_RST_CS_LBN 16
  479. #define FRF_AB_RST_CS_WIDTH 1
  480. #define FRF_AB_INT_RST_DUR_LBN 4
  481. #define FRF_AB_INT_RST_DUR_WIDTH 3
  482. #define FRF_AB_EXT_PHY_RST_DUR_LBN 1
  483. #define FRF_AB_EXT_PHY_RST_DUR_WIDTH 3
  484. #define FFE_AB_EXT_PHY_RST_DUR_10240US 7
  485. #define FFE_AB_EXT_PHY_RST_DUR_5120US 6
  486. #define FFE_AB_EXT_PHY_RST_DUR_2560US 5
  487. #define FFE_AB_EXT_PHY_RST_DUR_1280US 4
  488. #define FFE_AB_EXT_PHY_RST_DUR_640US 3
  489. #define FFE_AB_EXT_PHY_RST_DUR_320US 2
  490. #define FFE_AB_EXT_PHY_RST_DUR_160US 1
  491. #define FFE_AB_EXT_PHY_RST_DUR_80US 0
  492. #define FRF_AB_SWRST_LBN 0
  493. #define FRF_AB_SWRST_WIDTH 1
  494. /* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */
  495. #define FR_AZ_FATAL_INTR_KER 0x00000230
  496. #define FRF_CZ_SRAM_PERR_INT_P_KER_EN_LBN 44
  497. #define FRF_CZ_SRAM_PERR_INT_P_KER_EN_WIDTH 1
  498. #define FRF_AB_PCI_BUSERR_INT_KER_EN_LBN 43
  499. #define FRF_AB_PCI_BUSERR_INT_KER_EN_WIDTH 1
  500. #define FRF_CZ_MBU_PERR_INT_KER_EN_LBN 43
  501. #define FRF_CZ_MBU_PERR_INT_KER_EN_WIDTH 1
  502. #define FRF_AZ_SRAM_OOB_INT_KER_EN_LBN 42
  503. #define FRF_AZ_SRAM_OOB_INT_KER_EN_WIDTH 1
  504. #define FRF_AZ_BUFID_OOB_INT_KER_EN_LBN 41
  505. #define FRF_AZ_BUFID_OOB_INT_KER_EN_WIDTH 1
  506. #define FRF_AZ_MEM_PERR_INT_KER_EN_LBN 40
  507. #define FRF_AZ_MEM_PERR_INT_KER_EN_WIDTH 1
  508. #define FRF_AZ_RBUF_OWN_INT_KER_EN_LBN 39
  509. #define FRF_AZ_RBUF_OWN_INT_KER_EN_WIDTH 1
  510. #define FRF_AZ_TBUF_OWN_INT_KER_EN_LBN 38
  511. #define FRF_AZ_TBUF_OWN_INT_KER_EN_WIDTH 1
  512. #define FRF_AZ_RDESCQ_OWN_INT_KER_EN_LBN 37
  513. #define FRF_AZ_RDESCQ_OWN_INT_KER_EN_WIDTH 1
  514. #define FRF_AZ_TDESCQ_OWN_INT_KER_EN_LBN 36
  515. #define FRF_AZ_TDESCQ_OWN_INT_KER_EN_WIDTH 1
  516. #define FRF_AZ_EVQ_OWN_INT_KER_EN_LBN 35
  517. #define FRF_AZ_EVQ_OWN_INT_KER_EN_WIDTH 1
  518. #define FRF_AZ_EVF_OFLO_INT_KER_EN_LBN 34
  519. #define FRF_AZ_EVF_OFLO_INT_KER_EN_WIDTH 1
  520. #define FRF_AZ_ILL_ADR_INT_KER_EN_LBN 33
  521. #define FRF_AZ_ILL_ADR_INT_KER_EN_WIDTH 1
  522. #define FRF_AZ_SRM_PERR_INT_KER_EN_LBN 32
  523. #define FRF_AZ_SRM_PERR_INT_KER_EN_WIDTH 1
  524. #define FRF_CZ_SRAM_PERR_INT_P_KER_LBN 12
  525. #define FRF_CZ_SRAM_PERR_INT_P_KER_WIDTH 1
  526. #define FRF_AB_PCI_BUSERR_INT_KER_LBN 11
  527. #define FRF_AB_PCI_BUSERR_INT_KER_WIDTH 1
  528. #define FRF_CZ_MBU_PERR_INT_KER_LBN 11
  529. #define FRF_CZ_MBU_PERR_INT_KER_WIDTH 1
  530. #define FRF_AZ_SRAM_OOB_INT_KER_LBN 10
  531. #define FRF_AZ_SRAM_OOB_INT_KER_WIDTH 1
  532. #define FRF_AZ_BUFID_DC_OOB_INT_KER_LBN 9
  533. #define FRF_AZ_BUFID_DC_OOB_INT_KER_WIDTH 1
  534. #define FRF_AZ_MEM_PERR_INT_KER_LBN 8
  535. #define FRF_AZ_MEM_PERR_INT_KER_WIDTH 1
  536. #define FRF_AZ_RBUF_OWN_INT_KER_LBN 7
  537. #define FRF_AZ_RBUF_OWN_INT_KER_WIDTH 1
  538. #define FRF_AZ_TBUF_OWN_INT_KER_LBN 6
  539. #define FRF_AZ_TBUF_OWN_INT_KER_WIDTH 1
  540. #define FRF_AZ_RDESCQ_OWN_INT_KER_LBN 5
  541. #define FRF_AZ_RDESCQ_OWN_INT_KER_WIDTH 1
  542. #define FRF_AZ_TDESCQ_OWN_INT_KER_LBN 4
  543. #define FRF_AZ_TDESCQ_OWN_INT_KER_WIDTH 1
  544. #define FRF_AZ_EVQ_OWN_INT_KER_LBN 3
  545. #define FRF_AZ_EVQ_OWN_INT_KER_WIDTH 1
  546. #define FRF_AZ_EVF_OFLO_INT_KER_LBN 2
  547. #define FRF_AZ_EVF_OFLO_INT_KER_WIDTH 1
  548. #define FRF_AZ_ILL_ADR_INT_KER_LBN 1
  549. #define FRF_AZ_ILL_ADR_INT_KER_WIDTH 1
  550. #define FRF_AZ_SRM_PERR_INT_KER_LBN 0
  551. #define FRF_AZ_SRM_PERR_INT_KER_WIDTH 1
  552. /* FATAL_INTR_REG_CHAR: Fatal interrupt register for Char */
  553. #define FR_BZ_FATAL_INTR_CHAR 0x00000240
  554. #define FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_LBN 44
  555. #define FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_WIDTH 1
  556. #define FRF_BB_PCI_BUSERR_INT_CHAR_EN_LBN 43
  557. #define FRF_BB_PCI_BUSERR_INT_CHAR_EN_WIDTH 1
  558. #define FRF_CZ_MBU_PERR_INT_CHAR_EN_LBN 43
  559. #define FRF_CZ_MBU_PERR_INT_CHAR_EN_WIDTH 1
  560. #define FRF_BZ_SRAM_OOB_INT_CHAR_EN_LBN 42
  561. #define FRF_BZ_SRAM_OOB_INT_CHAR_EN_WIDTH 1
  562. #define FRF_BZ_BUFID_OOB_INT_CHAR_EN_LBN 41
  563. #define FRF_BZ_BUFID_OOB_INT_CHAR_EN_WIDTH 1
  564. #define FRF_BZ_MEM_PERR_INT_CHAR_EN_LBN 40
  565. #define FRF_BZ_MEM_PERR_INT_CHAR_EN_WIDTH 1
  566. #define FRF_BZ_RBUF_OWN_INT_CHAR_EN_LBN 39
  567. #define FRF_BZ_RBUF_OWN_INT_CHAR_EN_WIDTH 1
  568. #define FRF_BZ_TBUF_OWN_INT_CHAR_EN_LBN 38
  569. #define FRF_BZ_TBUF_OWN_INT_CHAR_EN_WIDTH 1
  570. #define FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_LBN 37
  571. #define FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_WIDTH 1
  572. #define FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_LBN 36
  573. #define FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_WIDTH 1
  574. #define FRF_BZ_EVQ_OWN_INT_CHAR_EN_LBN 35
  575. #define FRF_BZ_EVQ_OWN_INT_CHAR_EN_WIDTH 1
  576. #define FRF_BZ_EVF_OFLO_INT_CHAR_EN_LBN 34
  577. #define FRF_BZ_EVF_OFLO_INT_CHAR_EN_WIDTH 1
  578. #define FRF_BZ_ILL_ADR_INT_CHAR_EN_LBN 33
  579. #define FRF_BZ_ILL_ADR_INT_CHAR_EN_WIDTH 1
  580. #define FRF_BZ_SRM_PERR_INT_CHAR_EN_LBN 32
  581. #define FRF_BZ_SRM_PERR_INT_CHAR_EN_WIDTH 1
  582. #define FRF_CZ_SRAM_PERR_INT_P_CHAR_LBN 12
  583. #define FRF_CZ_SRAM_PERR_INT_P_CHAR_WIDTH 1
  584. #define FRF_BB_PCI_BUSERR_INT_CHAR_LBN 11
  585. #define FRF_BB_PCI_BUSERR_INT_CHAR_WIDTH 1
  586. #define FRF_CZ_MBU_PERR_INT_CHAR_LBN 11
  587. #define FRF_CZ_MBU_PERR_INT_CHAR_WIDTH 1
  588. #define FRF_BZ_SRAM_OOB_INT_CHAR_LBN 10
  589. #define FRF_BZ_SRAM_OOB_INT_CHAR_WIDTH 1
  590. #define FRF_BZ_BUFID_DC_OOB_INT_CHAR_LBN 9
  591. #define FRF_BZ_BUFID_DC_OOB_INT_CHAR_WIDTH 1
  592. #define FRF_BZ_MEM_PERR_INT_CHAR_LBN 8
  593. #define FRF_BZ_MEM_PERR_INT_CHAR_WIDTH 1
  594. #define FRF_BZ_RBUF_OWN_INT_CHAR_LBN 7
  595. #define FRF_BZ_RBUF_OWN_INT_CHAR_WIDTH 1
  596. #define FRF_BZ_TBUF_OWN_INT_CHAR_LBN 6
  597. #define FRF_BZ_TBUF_OWN_INT_CHAR_WIDTH 1
  598. #define FRF_BZ_RDESCQ_OWN_INT_CHAR_LBN 5
  599. #define FRF_BZ_RDESCQ_OWN_INT_CHAR_WIDTH 1
  600. #define FRF_BZ_TDESCQ_OWN_INT_CHAR_LBN 4
  601. #define FRF_BZ_TDESCQ_OWN_INT_CHAR_WIDTH 1
  602. #define FRF_BZ_EVQ_OWN_INT_CHAR_LBN 3
  603. #define FRF_BZ_EVQ_OWN_INT_CHAR_WIDTH 1
  604. #define FRF_BZ_EVF_OFLO_INT_CHAR_LBN 2
  605. #define FRF_BZ_EVF_OFLO_INT_CHAR_WIDTH 1
  606. #define FRF_BZ_ILL_ADR_INT_CHAR_LBN 1
  607. #define FRF_BZ_ILL_ADR_INT_CHAR_WIDTH 1
  608. #define FRF_BZ_SRM_PERR_INT_CHAR_LBN 0
  609. #define FRF_BZ_SRM_PERR_INT_CHAR_WIDTH 1
  610. /* DP_CTRL_REG: Datapath control register */
  611. #define FR_BZ_DP_CTRL 0x00000250
  612. #define FRF_BZ_FLS_EVQ_ID_LBN 0
  613. #define FRF_BZ_FLS_EVQ_ID_WIDTH 12
  614. /* MEM_STAT_REG: Memory status register */
  615. #define FR_AZ_MEM_STAT 0x00000260
  616. #define FRF_AB_MEM_PERR_VEC_LBN 53
  617. #define FRF_AB_MEM_PERR_VEC_WIDTH 38
  618. #define FRF_AB_MBIST_CORR_LBN 38
  619. #define FRF_AB_MBIST_CORR_WIDTH 15
  620. #define FRF_AB_MBIST_ERR_LBN 0
  621. #define FRF_AB_MBIST_ERR_WIDTH 40
  622. #define FRF_CZ_MEM_PERR_VEC_LBN 0
  623. #define FRF_CZ_MEM_PERR_VEC_WIDTH 35
  624. /* CS_DEBUG_REG: Debug register */
  625. #define FR_AZ_CS_DEBUG 0x00000270
  626. #define FRF_AB_GLB_DEBUG2_SEL_LBN 50
  627. #define FRF_AB_GLB_DEBUG2_SEL_WIDTH 3
  628. #define FRF_AB_DEBUG_BLK_SEL2_LBN 47
  629. #define FRF_AB_DEBUG_BLK_SEL2_WIDTH 3
  630. #define FRF_AB_DEBUG_BLK_SEL1_LBN 44
  631. #define FRF_AB_DEBUG_BLK_SEL1_WIDTH 3
  632. #define FRF_AB_DEBUG_BLK_SEL0_LBN 41
  633. #define FRF_AB_DEBUG_BLK_SEL0_WIDTH 3
  634. #define FRF_CZ_CS_PORT_NUM_LBN 40
  635. #define FRF_CZ_CS_PORT_NUM_WIDTH 2
  636. #define FRF_AB_MISC_DEBUG_ADDR_LBN 36
  637. #define FRF_AB_MISC_DEBUG_ADDR_WIDTH 5
  638. #define FRF_AB_SERDES_DEBUG_ADDR_LBN 31
  639. #define FRF_AB_SERDES_DEBUG_ADDR_WIDTH 5
  640. #define FRF_CZ_CS_PORT_FPE_LBN 1
  641. #define FRF_CZ_CS_PORT_FPE_WIDTH 35
  642. #define FRF_AB_EM_DEBUG_ADDR_LBN 26
  643. #define FRF_AB_EM_DEBUG_ADDR_WIDTH 5
  644. #define FRF_AB_SR_DEBUG_ADDR_LBN 21
  645. #define FRF_AB_SR_DEBUG_ADDR_WIDTH 5
  646. #define FRF_AB_EV_DEBUG_ADDR_LBN 16
  647. #define FRF_AB_EV_DEBUG_ADDR_WIDTH 5
  648. #define FRF_AB_RX_DEBUG_ADDR_LBN 11
  649. #define FRF_AB_RX_DEBUG_ADDR_WIDTH 5
  650. #define FRF_AB_TX_DEBUG_ADDR_LBN 6
  651. #define FRF_AB_TX_DEBUG_ADDR_WIDTH 5
  652. #define FRF_AB_CS_BIU_DEBUG_ADDR_LBN 1
  653. #define FRF_AB_CS_BIU_DEBUG_ADDR_WIDTH 5
  654. #define FRF_AZ_CS_DEBUG_EN_LBN 0
  655. #define FRF_AZ_CS_DEBUG_EN_WIDTH 1
  656. /* DRIVER_REG: Driver scratch register [0-7] */
  657. #define FR_AZ_DRIVER 0x00000280
  658. #define FR_AZ_DRIVER_STEP 16
  659. #define FR_AZ_DRIVER_ROWS 8
  660. #define FRF_AZ_DRIVER_DW0_LBN 0
  661. #define FRF_AZ_DRIVER_DW0_WIDTH 32
  662. /* ALTERA_BUILD_REG: Altera build register */
  663. #define FR_AZ_ALTERA_BUILD 0x00000300
  664. #define FRF_AZ_ALTERA_BUILD_VER_LBN 0
  665. #define FRF_AZ_ALTERA_BUILD_VER_WIDTH 32
  666. /* CSR_SPARE_REG: Spare register */
  667. #define FR_AZ_CSR_SPARE 0x00000310
  668. #define FRF_AB_MEM_PERR_EN_LBN 64
  669. #define FRF_AB_MEM_PERR_EN_WIDTH 38
  670. #define FRF_CZ_MEM_PERR_EN_LBN 64
  671. #define FRF_CZ_MEM_PERR_EN_WIDTH 35
  672. #define FRF_AB_MEM_PERR_EN_TX_DATA_LBN 72
  673. #define FRF_AB_MEM_PERR_EN_TX_DATA_WIDTH 2
  674. #define FRF_AZ_CSR_SPARE_BITS_LBN 0
  675. #define FRF_AZ_CSR_SPARE_BITS_WIDTH 32
  676. /* PCIE_SD_CTL0123_REG: PCIE SerDes control register 0 to 3 */
  677. #define FR_AB_PCIE_SD_CTL0123 0x00000320
  678. #define FRF_AB_PCIE_TESTSIG_H_LBN 96
  679. #define FRF_AB_PCIE_TESTSIG_H_WIDTH 19
  680. #define FRF_AB_PCIE_TESTSIG_L_LBN 64
  681. #define FRF_AB_PCIE_TESTSIG_L_WIDTH 19
  682. #define FRF_AB_PCIE_OFFSET_LBN 56
  683. #define FRF_AB_PCIE_OFFSET_WIDTH 8
  684. #define FRF_AB_PCIE_OFFSETEN_H_LBN 55
  685. #define FRF_AB_PCIE_OFFSETEN_H_WIDTH 1
  686. #define FRF_AB_PCIE_OFFSETEN_L_LBN 54
  687. #define FRF_AB_PCIE_OFFSETEN_L_WIDTH 1
  688. #define FRF_AB_PCIE_HIVMODE_H_LBN 53
  689. #define FRF_AB_PCIE_HIVMODE_H_WIDTH 1
  690. #define FRF_AB_PCIE_HIVMODE_L_LBN 52
  691. #define FRF_AB_PCIE_HIVMODE_L_WIDTH 1
  692. #define FRF_AB_PCIE_PARRESET_H_LBN 51
  693. #define FRF_AB_PCIE_PARRESET_H_WIDTH 1
  694. #define FRF_AB_PCIE_PARRESET_L_LBN 50
  695. #define FRF_AB_PCIE_PARRESET_L_WIDTH 1
  696. #define FRF_AB_PCIE_LPBKWDRV_H_LBN 49
  697. #define FRF_AB_PCIE_LPBKWDRV_H_WIDTH 1
  698. #define FRF_AB_PCIE_LPBKWDRV_L_LBN 48
  699. #define FRF_AB_PCIE_LPBKWDRV_L_WIDTH 1
  700. #define FRF_AB_PCIE_LPBK_LBN 40
  701. #define FRF_AB_PCIE_LPBK_WIDTH 8
  702. #define FRF_AB_PCIE_PARLPBK_LBN 32
  703. #define FRF_AB_PCIE_PARLPBK_WIDTH 8
  704. #define FRF_AB_PCIE_RXTERMADJ_H_LBN 30
  705. #define FRF_AB_PCIE_RXTERMADJ_H_WIDTH 2
  706. #define FRF_AB_PCIE_RXTERMADJ_L_LBN 28
  707. #define FRF_AB_PCIE_RXTERMADJ_L_WIDTH 2
  708. #define FFE_AB_PCIE_RXTERMADJ_MIN15PCNT 3
  709. #define FFE_AB_PCIE_RXTERMADJ_PL10PCNT 2
  710. #define FFE_AB_PCIE_RXTERMADJ_MIN17PCNT 1
  711. #define FFE_AB_PCIE_RXTERMADJ_NOMNL 0
  712. #define FRF_AB_PCIE_TXTERMADJ_H_LBN 26
  713. #define FRF_AB_PCIE_TXTERMADJ_H_WIDTH 2
  714. #define FRF_AB_PCIE_TXTERMADJ_L_LBN 24
  715. #define FRF_AB_PCIE_TXTERMADJ_L_WIDTH 2
  716. #define FFE_AB_PCIE_TXTERMADJ_MIN15PCNT 3
  717. #define FFE_AB_PCIE_TXTERMADJ_PL10PCNT 2
  718. #define FFE_AB_PCIE_TXTERMADJ_MIN17PCNT 1
  719. #define FFE_AB_PCIE_TXTERMADJ_NOMNL 0
  720. #define FRF_AB_PCIE_RXEQCTL_H_LBN 18
  721. #define FRF_AB_PCIE_RXEQCTL_H_WIDTH 2
  722. #define FRF_AB_PCIE_RXEQCTL_L_LBN 16
  723. #define FRF_AB_PCIE_RXEQCTL_L_WIDTH 2
  724. #define FFE_AB_PCIE_RXEQCTL_OFF_ALT 3
  725. #define FFE_AB_PCIE_RXEQCTL_OFF 2
  726. #define FFE_AB_PCIE_RXEQCTL_MIN 1
  727. #define FFE_AB_PCIE_RXEQCTL_MAX 0
  728. #define FRF_AB_PCIE_HIDRV_LBN 8
  729. #define FRF_AB_PCIE_HIDRV_WIDTH 8
  730. #define FRF_AB_PCIE_LODRV_LBN 0
  731. #define FRF_AB_PCIE_LODRV_WIDTH 8
  732. /* PCIE_SD_CTL45_REG: PCIE SerDes control register 4 and 5 */
  733. #define FR_AB_PCIE_SD_CTL45 0x00000330
  734. #define FRF_AB_PCIE_DTX7_LBN 60
  735. #define FRF_AB_PCIE_DTX7_WIDTH 4
  736. #define FRF_AB_PCIE_DTX6_LBN 56
  737. #define FRF_AB_PCIE_DTX6_WIDTH 4
  738. #define FRF_AB_PCIE_DTX5_LBN 52
  739. #define FRF_AB_PCIE_DTX5_WIDTH 4
  740. #define FRF_AB_PCIE_DTX4_LBN 48
  741. #define FRF_AB_PCIE_DTX4_WIDTH 4
  742. #define FRF_AB_PCIE_DTX3_LBN 44
  743. #define FRF_AB_PCIE_DTX3_WIDTH 4
  744. #define FRF_AB_PCIE_DTX2_LBN 40
  745. #define FRF_AB_PCIE_DTX2_WIDTH 4
  746. #define FRF_AB_PCIE_DTX1_LBN 36
  747. #define FRF_AB_PCIE_DTX1_WIDTH 4
  748. #define FRF_AB_PCIE_DTX0_LBN 32
  749. #define FRF_AB_PCIE_DTX0_WIDTH 4
  750. #define FRF_AB_PCIE_DEQ7_LBN 28
  751. #define FRF_AB_PCIE_DEQ7_WIDTH 4
  752. #define FRF_AB_PCIE_DEQ6_LBN 24
  753. #define FRF_AB_PCIE_DEQ6_WIDTH 4
  754. #define FRF_AB_PCIE_DEQ5_LBN 20
  755. #define FRF_AB_PCIE_DEQ5_WIDTH 4
  756. #define FRF_AB_PCIE_DEQ4_LBN 16
  757. #define FRF_AB_PCIE_DEQ4_WIDTH 4
  758. #define FRF_AB_PCIE_DEQ3_LBN 12
  759. #define FRF_AB_PCIE_DEQ3_WIDTH 4
  760. #define FRF_AB_PCIE_DEQ2_LBN 8
  761. #define FRF_AB_PCIE_DEQ2_WIDTH 4
  762. #define FRF_AB_PCIE_DEQ1_LBN 4
  763. #define FRF_AB_PCIE_DEQ1_WIDTH 4
  764. #define FRF_AB_PCIE_DEQ0_LBN 0
  765. #define FRF_AB_PCIE_DEQ0_WIDTH 4
  766. /* PCIE_PCS_CTL_STAT_REG: PCIE PCS control and status register */
  767. #define FR_AB_PCIE_PCS_CTL_STAT 0x00000340
  768. #define FRF_AB_PCIE_PRBSERRCOUNT0_H_LBN 52
  769. #define FRF_AB_PCIE_PRBSERRCOUNT0_H_WIDTH 4
  770. #define FRF_AB_PCIE_PRBSERRCOUNT0_L_LBN 48
  771. #define FRF_AB_PCIE_PRBSERRCOUNT0_L_WIDTH 4
  772. #define FRF_AB_PCIE_PRBSERR_LBN 40
  773. #define FRF_AB_PCIE_PRBSERR_WIDTH 8
  774. #define FRF_AB_PCIE_PRBSERRH0_LBN 32
  775. #define FRF_AB_PCIE_PRBSERRH0_WIDTH 8
  776. #define FRF_AB_PCIE_FASTINIT_H_LBN 15
  777. #define FRF_AB_PCIE_FASTINIT_H_WIDTH 1
  778. #define FRF_AB_PCIE_FASTINIT_L_LBN 14
  779. #define FRF_AB_PCIE_FASTINIT_L_WIDTH 1
  780. #define FRF_AB_PCIE_CTCDISABLE_H_LBN 13
  781. #define FRF_AB_PCIE_CTCDISABLE_H_WIDTH 1
  782. #define FRF_AB_PCIE_CTCDISABLE_L_LBN 12
  783. #define FRF_AB_PCIE_CTCDISABLE_L_WIDTH 1
  784. #define FRF_AB_PCIE_PRBSSYNC_H_LBN 11
  785. #define FRF_AB_PCIE_PRBSSYNC_H_WIDTH 1
  786. #define FRF_AB_PCIE_PRBSSYNC_L_LBN 10
  787. #define FRF_AB_PCIE_PRBSSYNC_L_WIDTH 1
  788. #define FRF_AB_PCIE_PRBSERRACK_H_LBN 9
  789. #define FRF_AB_PCIE_PRBSERRACK_H_WIDTH 1
  790. #define FRF_AB_PCIE_PRBSERRACK_L_LBN 8
  791. #define FRF_AB_PCIE_PRBSERRACK_L_WIDTH 1
  792. #define FRF_AB_PCIE_PRBSSEL_LBN 0
  793. #define FRF_AB_PCIE_PRBSSEL_WIDTH 8
  794. /* DEBUG_DATA_OUT_REG: Live Debug and Debug 2 out ports */
  795. #define FR_BB_DEBUG_DATA_OUT 0x00000350
  796. #define FRF_BB_DEBUG2_PORT_LBN 25
  797. #define FRF_BB_DEBUG2_PORT_WIDTH 15
  798. #define FRF_BB_DEBUG1_PORT_LBN 0
  799. #define FRF_BB_DEBUG1_PORT_WIDTH 25
  800. /* EVQ_RPTR_REGP0: Event queue read pointer register */
  801. #define FR_BZ_EVQ_RPTR_P0 0x00000400
  802. #define FR_BZ_EVQ_RPTR_P0_STEP 8192
  803. #define FR_BZ_EVQ_RPTR_P0_ROWS 1024
  804. /* EVQ_RPTR_REG_KER: Event queue read pointer register */
  805. #define FR_AA_EVQ_RPTR_KER 0x00011b00
  806. #define FR_AA_EVQ_RPTR_KER_STEP 4
  807. #define FR_AA_EVQ_RPTR_KER_ROWS 4
  808. /* EVQ_RPTR_REG: Event queue read pointer register */
  809. #define FR_BZ_EVQ_RPTR 0x00fa0000
  810. #define FR_BZ_EVQ_RPTR_STEP 16
  811. #define FR_BB_EVQ_RPTR_ROWS 4096
  812. #define FR_CZ_EVQ_RPTR_ROWS 1024
  813. /* EVQ_RPTR_REGP123: Event queue read pointer register */
  814. #define FR_BB_EVQ_RPTR_P123 0x01000400
  815. #define FR_BB_EVQ_RPTR_P123_STEP 8192
  816. #define FR_BB_EVQ_RPTR_P123_ROWS 3072
  817. #define FRF_AZ_EVQ_RPTR_VLD_LBN 15
  818. #define FRF_AZ_EVQ_RPTR_VLD_WIDTH 1
  819. #define FRF_AZ_EVQ_RPTR_LBN 0
  820. #define FRF_AZ_EVQ_RPTR_WIDTH 15
  821. /* TIMER_COMMAND_REGP0: Timer Command Registers */
  822. #define FR_BZ_TIMER_COMMAND_P0 0x00000420
  823. #define FR_BZ_TIMER_COMMAND_P0_STEP 8192
  824. #define FR_BZ_TIMER_COMMAND_P0_ROWS 1024
  825. /* TIMER_COMMAND_REG_KER: Timer Command Registers */
  826. #define FR_AA_TIMER_COMMAND_KER 0x00000420
  827. #define FR_AA_TIMER_COMMAND_KER_STEP 8192
  828. #define FR_AA_TIMER_COMMAND_KER_ROWS 4
  829. /* TIMER_COMMAND_REGP123: Timer Command Registers */
  830. #define FR_BB_TIMER_COMMAND_P123 0x01000420
  831. #define FR_BB_TIMER_COMMAND_P123_STEP 8192
  832. #define FR_BB_TIMER_COMMAND_P123_ROWS 3072
  833. #define FRF_CZ_TC_TIMER_MODE_LBN 14
  834. #define FRF_CZ_TC_TIMER_MODE_WIDTH 2
  835. #define FRF_AB_TC_TIMER_MODE_LBN 12
  836. #define FRF_AB_TC_TIMER_MODE_WIDTH 2
  837. #define FRF_CZ_TC_TIMER_VAL_LBN 0
  838. #define FRF_CZ_TC_TIMER_VAL_WIDTH 14
  839. #define FRF_AB_TC_TIMER_VAL_LBN 0
  840. #define FRF_AB_TC_TIMER_VAL_WIDTH 12
  841. /* DRV_EV_REG: Driver generated event register */
  842. #define FR_AZ_DRV_EV 0x00000440
  843. #define FRF_AZ_DRV_EV_QID_LBN 64
  844. #define FRF_AZ_DRV_EV_QID_WIDTH 12
  845. #define FRF_AZ_DRV_EV_DATA_LBN 0
  846. #define FRF_AZ_DRV_EV_DATA_WIDTH 64
  847. /* EVQ_CTL_REG: Event queue control register */
  848. #define FR_AZ_EVQ_CTL 0x00000450
  849. #define FRF_CZ_RX_EVQ_WAKEUP_MASK_LBN 15
  850. #define FRF_CZ_RX_EVQ_WAKEUP_MASK_WIDTH 10
  851. #define FRF_BB_RX_EVQ_WAKEUP_MASK_LBN 15
  852. #define FRF_BB_RX_EVQ_WAKEUP_MASK_WIDTH 6
  853. #define FRF_AZ_EVQ_OWNERR_CTL_LBN 14
  854. #define FRF_AZ_EVQ_OWNERR_CTL_WIDTH 1
  855. #define FRF_AZ_EVQ_FIFO_AF_TH_LBN 7
  856. #define FRF_AZ_EVQ_FIFO_AF_TH_WIDTH 7
  857. #define FRF_AZ_EVQ_FIFO_NOTAF_TH_LBN 0
  858. #define FRF_AZ_EVQ_FIFO_NOTAF_TH_WIDTH 7
  859. /* EVQ_CNT1_REG: Event counter 1 register */
  860. #define FR_AZ_EVQ_CNT1 0x00000460
  861. #define FRF_AZ_EVQ_CNT_PRE_FIFO_LBN 120
  862. #define FRF_AZ_EVQ_CNT_PRE_FIFO_WIDTH 7
  863. #define FRF_AZ_EVQ_CNT_TOBIU_LBN 100
  864. #define FRF_AZ_EVQ_CNT_TOBIU_WIDTH 20
  865. #define FRF_AZ_EVQ_TX_REQ_CNT_LBN 80
  866. #define FRF_AZ_EVQ_TX_REQ_CNT_WIDTH 20
  867. #define FRF_AZ_EVQ_RX_REQ_CNT_LBN 60
  868. #define FRF_AZ_EVQ_RX_REQ_CNT_WIDTH 20
  869. #define FRF_AZ_EVQ_EM_REQ_CNT_LBN 40
  870. #define FRF_AZ_EVQ_EM_REQ_CNT_WIDTH 20
  871. #define FRF_AZ_EVQ_CSR_REQ_CNT_LBN 20
  872. #define FRF_AZ_EVQ_CSR_REQ_CNT_WIDTH 20
  873. #define FRF_AZ_EVQ_ERR_REQ_CNT_LBN 0
  874. #define FRF_AZ_EVQ_ERR_REQ_CNT_WIDTH 20
  875. /* EVQ_CNT2_REG: Event counter 2 register */
  876. #define FR_AZ_EVQ_CNT2 0x00000470
  877. #define FRF_AZ_EVQ_UPD_REQ_CNT_LBN 104
  878. #define FRF_AZ_EVQ_UPD_REQ_CNT_WIDTH 20
  879. #define FRF_AZ_EVQ_CLR_REQ_CNT_LBN 84
  880. #define FRF_AZ_EVQ_CLR_REQ_CNT_WIDTH 20
  881. #define FRF_AZ_EVQ_RDY_CNT_LBN 80
  882. #define FRF_AZ_EVQ_RDY_CNT_WIDTH 4
  883. #define FRF_AZ_EVQ_WU_REQ_CNT_LBN 60
  884. #define FRF_AZ_EVQ_WU_REQ_CNT_WIDTH 20
  885. #define FRF_AZ_EVQ_WET_REQ_CNT_LBN 40
  886. #define FRF_AZ_EVQ_WET_REQ_CNT_WIDTH 20
  887. #define FRF_AZ_EVQ_INIT_REQ_CNT_LBN 20
  888. #define FRF_AZ_EVQ_INIT_REQ_CNT_WIDTH 20
  889. #define FRF_AZ_EVQ_TM_REQ_CNT_LBN 0
  890. #define FRF_AZ_EVQ_TM_REQ_CNT_WIDTH 20
  891. /* USR_EV_REG: Event mailbox register */
  892. #define FR_CZ_USR_EV 0x00000540
  893. #define FR_CZ_USR_EV_STEP 8192
  894. #define FR_CZ_USR_EV_ROWS 1024
  895. #define FRF_CZ_USR_EV_DATA_LBN 0
  896. #define FRF_CZ_USR_EV_DATA_WIDTH 32
  897. /* BUF_TBL_CFG_REG: Buffer table configuration register */
  898. #define FR_AZ_BUF_TBL_CFG 0x00000600
  899. #define FRF_AZ_BUF_TBL_MODE_LBN 3
  900. #define FRF_AZ_BUF_TBL_MODE_WIDTH 1
  901. /* SRM_RX_DC_CFG_REG: SRAM receive descriptor cache configuration register */
  902. #define FR_AZ_SRM_RX_DC_CFG 0x00000610
  903. #define FRF_AZ_SRM_CLK_TMP_EN_LBN 21
  904. #define FRF_AZ_SRM_CLK_TMP_EN_WIDTH 1
  905. #define FRF_AZ_SRM_RX_DC_BASE_ADR_LBN 0
  906. #define FRF_AZ_SRM_RX_DC_BASE_ADR_WIDTH 21
  907. /* SRM_TX_DC_CFG_REG: SRAM transmit descriptor cache configuration register */
  908. #define FR_AZ_SRM_TX_DC_CFG 0x00000620
  909. #define FRF_AZ_SRM_TX_DC_BASE_ADR_LBN 0
  910. #define FRF_AZ_SRM_TX_DC_BASE_ADR_WIDTH 21
  911. /* SRM_CFG_REG: SRAM configuration register */
  912. #define FR_AZ_SRM_CFG 0x00000630
  913. #define FRF_AZ_SRM_OOB_ADR_INTEN_LBN 5
  914. #define FRF_AZ_SRM_OOB_ADR_INTEN_WIDTH 1
  915. #define FRF_AZ_SRM_OOB_BUF_INTEN_LBN 4
  916. #define FRF_AZ_SRM_OOB_BUF_INTEN_WIDTH 1
  917. #define FRF_AZ_SRM_INIT_EN_LBN 3
  918. #define FRF_AZ_SRM_INIT_EN_WIDTH 1
  919. #define FRF_AZ_SRM_NUM_BANK_LBN 2
  920. #define FRF_AZ_SRM_NUM_BANK_WIDTH 1
  921. #define FRF_AZ_SRM_BANK_SIZE_LBN 0
  922. #define FRF_AZ_SRM_BANK_SIZE_WIDTH 2
  923. /* BUF_TBL_UPD_REG: Buffer table update register */
  924. #define FR_AZ_BUF_TBL_UPD 0x00000650
  925. #define FRF_AZ_BUF_UPD_CMD_LBN 63
  926. #define FRF_AZ_BUF_UPD_CMD_WIDTH 1
  927. #define FRF_AZ_BUF_CLR_CMD_LBN 62
  928. #define FRF_AZ_BUF_CLR_CMD_WIDTH 1
  929. #define FRF_AZ_BUF_CLR_END_ID_LBN 32
  930. #define FRF_AZ_BUF_CLR_END_ID_WIDTH 20
  931. #define FRF_AZ_BUF_CLR_START_ID_LBN 0
  932. #define FRF_AZ_BUF_CLR_START_ID_WIDTH 20
  933. /* SRM_UPD_EVQ_REG: Buffer table update register */
  934. #define FR_AZ_SRM_UPD_EVQ 0x00000660
  935. #define FRF_AZ_SRM_UPD_EVQ_ID_LBN 0
  936. #define FRF_AZ_SRM_UPD_EVQ_ID_WIDTH 12
  937. /* SRAM_PARITY_REG: SRAM parity register. */
  938. #define FR_AZ_SRAM_PARITY 0x00000670
  939. #define FRF_CZ_BYPASS_ECC_LBN 3
  940. #define FRF_CZ_BYPASS_ECC_WIDTH 1
  941. #define FRF_CZ_SEC_INT_LBN 2
  942. #define FRF_CZ_SEC_INT_WIDTH 1
  943. #define FRF_CZ_FORCE_SRAM_DOUBLE_ERR_LBN 1
  944. #define FRF_CZ_FORCE_SRAM_DOUBLE_ERR_WIDTH 1
  945. #define FRF_AB_FORCE_SRAM_PERR_LBN 0
  946. #define FRF_AB_FORCE_SRAM_PERR_WIDTH 1
  947. #define FRF_CZ_FORCE_SRAM_SINGLE_ERR_LBN 0
  948. #define FRF_CZ_FORCE_SRAM_SINGLE_ERR_WIDTH 1
  949. /* RX_CFG_REG: Receive configuration register */
  950. #define FR_AZ_RX_CFG 0x00000800
  951. #define FRF_CZ_RX_MIN_KBUF_SIZE_LBN 72
  952. #define FRF_CZ_RX_MIN_KBUF_SIZE_WIDTH 14
  953. #define FRF_CZ_RX_HDR_SPLIT_EN_LBN 71
  954. #define FRF_CZ_RX_HDR_SPLIT_EN_WIDTH 1
  955. #define FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_LBN 62
  956. #define FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_WIDTH 9
  957. #define FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_LBN 53
  958. #define FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_WIDTH 9
  959. #define FRF_CZ_RX_PRE_RFF_IPG_LBN 49
  960. #define FRF_CZ_RX_PRE_RFF_IPG_WIDTH 4
  961. #define FRF_BZ_RX_TCP_SUP_LBN 48
  962. #define FRF_BZ_RX_TCP_SUP_WIDTH 1
  963. #define FRF_BZ_RX_INGR_EN_LBN 47
  964. #define FRF_BZ_RX_INGR_EN_WIDTH 1
  965. #define FRF_BZ_RX_IP_HASH_LBN 46
  966. #define FRF_BZ_RX_IP_HASH_WIDTH 1
  967. #define FRF_BZ_RX_HASH_ALG_LBN 45
  968. #define FRF_BZ_RX_HASH_ALG_WIDTH 1
  969. #define FRF_BZ_RX_HASH_INSRT_HDR_LBN 44
  970. #define FRF_BZ_RX_HASH_INSRT_HDR_WIDTH 1
  971. #define FRF_BZ_RX_DESC_PUSH_EN_LBN 43
  972. #define FRF_BZ_RX_DESC_PUSH_EN_WIDTH 1
  973. #define FRF_BZ_RX_RDW_PATCH_EN_LBN 42
  974. #define FRF_BZ_RX_RDW_PATCH_EN_WIDTH 1
  975. #define FRF_BB_RX_PCI_BURST_SIZE_LBN 39
  976. #define FRF_BB_RX_PCI_BURST_SIZE_WIDTH 3
  977. #define FRF_BZ_RX_OWNERR_CTL_LBN 38
  978. #define FRF_BZ_RX_OWNERR_CTL_WIDTH 1
  979. #define FRF_BZ_RX_XON_TX_TH_LBN 33
  980. #define FRF_BZ_RX_XON_TX_TH_WIDTH 5
  981. #define FRF_AA_RX_DESC_PUSH_EN_LBN 35
  982. #define FRF_AA_RX_DESC_PUSH_EN_WIDTH 1
  983. #define FRF_AA_RX_RDW_PATCH_EN_LBN 34
  984. #define FRF_AA_RX_RDW_PATCH_EN_WIDTH 1
  985. #define FRF_AA_RX_PCI_BURST_SIZE_LBN 31
  986. #define FRF_AA_RX_PCI_BURST_SIZE_WIDTH 3
  987. #define FRF_BZ_RX_XOFF_TX_TH_LBN 28
  988. #define FRF_BZ_RX_XOFF_TX_TH_WIDTH 5
  989. #define FRF_AA_RX_OWNERR_CTL_LBN 30
  990. #define FRF_AA_RX_OWNERR_CTL_WIDTH 1
  991. #define FRF_AA_RX_XON_TX_TH_LBN 25
  992. #define FRF_AA_RX_XON_TX_TH_WIDTH 5
  993. #define FRF_BZ_RX_USR_BUF_SIZE_LBN 19
  994. #define FRF_BZ_RX_USR_BUF_SIZE_WIDTH 9
  995. #define FRF_AA_RX_XOFF_TX_TH_LBN 20
  996. #define FRF_AA_RX_XOFF_TX_TH_WIDTH 5
  997. #define FRF_AA_RX_USR_BUF_SIZE_LBN 11
  998. #define FRF_AA_RX_USR_BUF_SIZE_WIDTH 9
  999. #define FRF_BZ_RX_XON_MAC_TH_LBN 10
  1000. #define FRF_BZ_RX_XON_MAC_TH_WIDTH 9
  1001. #define FRF_AA_RX_XON_MAC_TH_LBN 6
  1002. #define FRF_AA_RX_XON_MAC_TH_WIDTH 5
  1003. #define FRF_BZ_RX_XOFF_MAC_TH_LBN 1
  1004. #define FRF_BZ_RX_XOFF_MAC_TH_WIDTH 9
  1005. #define FRF_AA_RX_XOFF_MAC_TH_LBN 1
  1006. #define FRF_AA_RX_XOFF_MAC_TH_WIDTH 5
  1007. #define FRF_AZ_RX_XOFF_MAC_EN_LBN 0
  1008. #define FRF_AZ_RX_XOFF_MAC_EN_WIDTH 1
  1009. /* RX_FILTER_CTL_REG: Receive filter control registers */
  1010. #define FR_BZ_RX_FILTER_CTL 0x00000810
  1011. #define FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_LBN 94
  1012. #define FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_WIDTH 8
  1013. #define FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_LBN 86
  1014. #define FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_WIDTH 8
  1015. #define FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_LBN 85
  1016. #define FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_WIDTH 1
  1017. #define FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_LBN 69
  1018. #define FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_WIDTH 16
  1019. #define FRF_CZ_MULTICAST_NOMATCH_Q_ID_LBN 57
  1020. #define FRF_CZ_MULTICAST_NOMATCH_Q_ID_WIDTH 12
  1021. #define FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_LBN 56
  1022. #define FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_WIDTH 1
  1023. #define FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_LBN 55
  1024. #define FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_WIDTH 1
  1025. #define FRF_CZ_UNICAST_NOMATCH_Q_ID_LBN 43
  1026. #define FRF_CZ_UNICAST_NOMATCH_Q_ID_WIDTH 12
  1027. #define FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_LBN 42
  1028. #define FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_WIDTH 1
  1029. #define FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_LBN 41
  1030. #define FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_WIDTH 1
  1031. #define FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_LBN 40
  1032. #define FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_WIDTH 1
  1033. #define FRF_BZ_UDP_FULL_SRCH_LIMIT_LBN 32
  1034. #define FRF_BZ_UDP_FULL_SRCH_LIMIT_WIDTH 8
  1035. #define FRF_BZ_NUM_KER_LBN 24
  1036. #define FRF_BZ_NUM_KER_WIDTH 2
  1037. #define FRF_BZ_UDP_WILD_SRCH_LIMIT_LBN 16
  1038. #define FRF_BZ_UDP_WILD_SRCH_LIMIT_WIDTH 8
  1039. #define FRF_BZ_TCP_WILD_SRCH_LIMIT_LBN 8
  1040. #define FRF_BZ_TCP_WILD_SRCH_LIMIT_WIDTH 8
  1041. #define FRF_BZ_TCP_FULL_SRCH_LIMIT_LBN 0
  1042. #define FRF_BZ_TCP_FULL_SRCH_LIMIT_WIDTH 8
  1043. /* RX_FLUSH_DESCQ_REG: Receive flush descriptor queue register */
  1044. #define FR_AZ_RX_FLUSH_DESCQ 0x00000820
  1045. #define FRF_AZ_RX_FLUSH_DESCQ_CMD_LBN 24
  1046. #define FRF_AZ_RX_FLUSH_DESCQ_CMD_WIDTH 1
  1047. #define FRF_AZ_RX_FLUSH_DESCQ_LBN 0
  1048. #define FRF_AZ_RX_FLUSH_DESCQ_WIDTH 12
  1049. /* RX_DESC_UPD_REGP0: Receive descriptor update register. */
  1050. #define FR_BZ_RX_DESC_UPD_P0 0x00000830
  1051. #define FR_BZ_RX_DESC_UPD_P0_STEP 8192
  1052. #define FR_BZ_RX_DESC_UPD_P0_ROWS 1024
  1053. /* RX_DESC_UPD_REG_KER: Receive descriptor update register. */
  1054. #define FR_AA_RX_DESC_UPD_KER 0x00000830
  1055. #define FR_AA_RX_DESC_UPD_KER_STEP 8192
  1056. #define FR_AA_RX_DESC_UPD_KER_ROWS 4
  1057. /* RX_DESC_UPD_REGP123: Receive descriptor update register. */
  1058. #define FR_BB_RX_DESC_UPD_P123 0x01000830
  1059. #define FR_BB_RX_DESC_UPD_P123_STEP 8192
  1060. #define FR_BB_RX_DESC_UPD_P123_ROWS 3072
  1061. #define FRF_AZ_RX_DESC_WPTR_LBN 96
  1062. #define FRF_AZ_RX_DESC_WPTR_WIDTH 12
  1063. #define FRF_AZ_RX_DESC_PUSH_CMD_LBN 95
  1064. #define FRF_AZ_RX_DESC_PUSH_CMD_WIDTH 1
  1065. #define FRF_AZ_RX_DESC_LBN 0
  1066. #define FRF_AZ_RX_DESC_WIDTH 64
  1067. /* RX_DC_CFG_REG: Receive descriptor cache configuration register */
  1068. #define FR_AZ_RX_DC_CFG 0x00000840
  1069. #define FRF_AB_RX_MAX_PF_LBN 2
  1070. #define FRF_AB_RX_MAX_PF_WIDTH 2
  1071. #define FRF_AZ_RX_DC_SIZE_LBN 0
  1072. #define FRF_AZ_RX_DC_SIZE_WIDTH 2
  1073. #define FFE_AZ_RX_DC_SIZE_64 3
  1074. #define FFE_AZ_RX_DC_SIZE_32 2
  1075. #define FFE_AZ_RX_DC_SIZE_16 1
  1076. #define FFE_AZ_RX_DC_SIZE_8 0
  1077. /* RX_DC_PF_WM_REG: Receive descriptor cache pre-fetch watermark register */
  1078. #define FR_AZ_RX_DC_PF_WM 0x00000850
  1079. #define FRF_AZ_RX_DC_PF_HWM_LBN 6
  1080. #define FRF_AZ_RX_DC_PF_HWM_WIDTH 6
  1081. #define FRF_AZ_RX_DC_PF_LWM_LBN 0
  1082. #define FRF_AZ_RX_DC_PF_LWM_WIDTH 6
  1083. /* RX_RSS_TKEY_REG: RSS Toeplitz hash key */
  1084. #define FR_BZ_RX_RSS_TKEY 0x00000860
  1085. #define FRF_BZ_RX_RSS_TKEY_HI_LBN 64
  1086. #define FRF_BZ_RX_RSS_TKEY_HI_WIDTH 64
  1087. #define FRF_BZ_RX_RSS_TKEY_LO_LBN 0
  1088. #define FRF_BZ_RX_RSS_TKEY_LO_WIDTH 64
  1089. /* RX_NODESC_DROP_REG: Receive dropped packet counter register */
  1090. #define FR_AZ_RX_NODESC_DROP 0x00000880
  1091. #define FRF_CZ_RX_NODESC_DROP_CNT_LBN 0
  1092. #define FRF_CZ_RX_NODESC_DROP_CNT_WIDTH 32
  1093. #define FRF_AB_RX_NODESC_DROP_CNT_LBN 0
  1094. #define FRF_AB_RX_NODESC_DROP_CNT_WIDTH 16
  1095. /* RX_SELF_RST_REG: Receive self reset register */
  1096. #define FR_AA_RX_SELF_RST 0x00000890
  1097. #define FRF_AA_RX_ISCSI_DIS_LBN 17
  1098. #define FRF_AA_RX_ISCSI_DIS_WIDTH 1
  1099. #define FRF_AA_RX_SW_RST_REG_LBN 16
  1100. #define FRF_AA_RX_SW_RST_REG_WIDTH 1
  1101. #define FRF_AA_RX_NODESC_WAIT_DIS_LBN 9
  1102. #define FRF_AA_RX_NODESC_WAIT_DIS_WIDTH 1
  1103. #define FRF_AA_RX_SELF_RST_EN_LBN 8
  1104. #define FRF_AA_RX_SELF_RST_EN_WIDTH 1
  1105. #define FRF_AA_RX_MAX_PF_LAT_LBN 4
  1106. #define FRF_AA_RX_MAX_PF_LAT_WIDTH 4
  1107. #define FRF_AA_RX_MAX_LU_LAT_LBN 0
  1108. #define FRF_AA_RX_MAX_LU_LAT_WIDTH 4
  1109. /* RX_DEBUG_REG: undocumented register */
  1110. #define FR_AZ_RX_DEBUG 0x000008a0
  1111. #define FRF_AZ_RX_DEBUG_LBN 0
  1112. #define FRF_AZ_RX_DEBUG_WIDTH 64
  1113. /* RX_PUSH_DROP_REG: Receive descriptor push dropped counter register */
  1114. #define FR_AZ_RX_PUSH_DROP 0x000008b0
  1115. #define FRF_AZ_RX_PUSH_DROP_CNT_LBN 0
  1116. #define FRF_AZ_RX_PUSH_DROP_CNT_WIDTH 32
  1117. /* RX_RSS_IPV6_REG1: IPv6 RSS Toeplitz hash key low bytes */
  1118. #define FR_CZ_RX_RSS_IPV6_REG1 0x000008d0
  1119. #define FRF_CZ_RX_RSS_IPV6_TKEY_LO_LBN 0
  1120. #define FRF_CZ_RX_RSS_IPV6_TKEY_LO_WIDTH 128
  1121. /* RX_RSS_IPV6_REG2: IPv6 RSS Toeplitz hash key middle bytes */
  1122. #define FR_CZ_RX_RSS_IPV6_REG2 0x000008e0
  1123. #define FRF_CZ_RX_RSS_IPV6_TKEY_MID_LBN 0
  1124. #define FRF_CZ_RX_RSS_IPV6_TKEY_MID_WIDTH 128
  1125. /* RX_RSS_IPV6_REG3: IPv6 RSS Toeplitz hash key upper bytes and IPv6 RSS settings */
  1126. #define FR_CZ_RX_RSS_IPV6_REG3 0x000008f0
  1127. #define FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_LBN 66
  1128. #define FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_WIDTH 1
  1129. #define FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_LBN 65
  1130. #define FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_WIDTH 1
  1131. #define FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_LBN 64
  1132. #define FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_WIDTH 1
  1133. #define FRF_CZ_RX_RSS_IPV6_TKEY_HI_LBN 0
  1134. #define FRF_CZ_RX_RSS_IPV6_TKEY_HI_WIDTH 64
  1135. /* TX_FLUSH_DESCQ_REG: Transmit flush descriptor queue register */
  1136. #define FR_AZ_TX_FLUSH_DESCQ 0x00000a00
  1137. #define FRF_AZ_TX_FLUSH_DESCQ_CMD_LBN 12
  1138. #define FRF_AZ_TX_FLUSH_DESCQ_CMD_WIDTH 1
  1139. #define FRF_AZ_TX_FLUSH_DESCQ_LBN 0
  1140. #define FRF_AZ_TX_FLUSH_DESCQ_WIDTH 12
  1141. /* TX_DESC_UPD_REGP0: Transmit descriptor update register. */
  1142. #define FR_BZ_TX_DESC_UPD_P0 0x00000a10
  1143. #define FR_BZ_TX_DESC_UPD_P0_STEP 8192
  1144. #define FR_BZ_TX_DESC_UPD_P0_ROWS 1024
  1145. /* TX_DESC_UPD_REG_KER: Transmit descriptor update register. */
  1146. #define FR_AA_TX_DESC_UPD_KER 0x00000a10
  1147. #define FR_AA_TX_DESC_UPD_KER_STEP 8192
  1148. #define FR_AA_TX_DESC_UPD_KER_ROWS 8
  1149. /* TX_DESC_UPD_REGP123: Transmit descriptor update register. */
  1150. #define FR_BB_TX_DESC_UPD_P123 0x01000a10
  1151. #define FR_BB_TX_DESC_UPD_P123_STEP 8192
  1152. #define FR_BB_TX_DESC_UPD_P123_ROWS 3072
  1153. #define FRF_AZ_TX_DESC_WPTR_LBN 96
  1154. #define FRF_AZ_TX_DESC_WPTR_WIDTH 12
  1155. #define FRF_AZ_TX_DESC_PUSH_CMD_LBN 95
  1156. #define FRF_AZ_TX_DESC_PUSH_CMD_WIDTH 1
  1157. #define FRF_AZ_TX_DESC_LBN 0
  1158. #define FRF_AZ_TX_DESC_WIDTH 95
  1159. /* TX_DC_CFG_REG: Transmit descriptor cache configuration register */
  1160. #define FR_AZ_TX_DC_CFG 0x00000a20
  1161. #define FRF_AZ_TX_DC_SIZE_LBN 0
  1162. #define FRF_AZ_TX_DC_SIZE_WIDTH 2
  1163. #define FFE_AZ_TX_DC_SIZE_32 2
  1164. #define FFE_AZ_TX_DC_SIZE_16 1
  1165. #define FFE_AZ_TX_DC_SIZE_8 0
  1166. /* TX_CHKSM_CFG_REG: Transmit checksum configuration register */
  1167. #define FR_AA_TX_CHKSM_CFG 0x00000a30
  1168. #define FRF_AA_TX_Q_CHKSM_DIS_96_127_LBN 96
  1169. #define FRF_AA_TX_Q_CHKSM_DIS_96_127_WIDTH 32
  1170. #define FRF_AA_TX_Q_CHKSM_DIS_64_95_LBN 64
  1171. #define FRF_AA_TX_Q_CHKSM_DIS_64_95_WIDTH 32
  1172. #define FRF_AA_TX_Q_CHKSM_DIS_32_63_LBN 32
  1173. #define FRF_AA_TX_Q_CHKSM_DIS_32_63_WIDTH 32
  1174. #define FRF_AA_TX_Q_CHKSM_DIS_0_31_LBN 0
  1175. #define FRF_AA_TX_Q_CHKSM_DIS_0_31_WIDTH 32
  1176. /* TX_CFG_REG: Transmit configuration register */
  1177. #define FR_AZ_TX_CFG 0x00000a50
  1178. #define FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_LBN 114
  1179. #define FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_WIDTH 8
  1180. #define FRF_CZ_TX_FILTER_TEST_MODE_BIT_LBN 113
  1181. #define FRF_CZ_TX_FILTER_TEST_MODE_BIT_WIDTH 1
  1182. #define FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_LBN 105
  1183. #define FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_WIDTH 8
  1184. #define FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_LBN 97
  1185. #define FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_WIDTH 8
  1186. #define FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_LBN 89
  1187. #define FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8
  1188. #define FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_LBN 81
  1189. #define FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8
  1190. #define FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_LBN 73
  1191. #define FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8
  1192. #define FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_LBN 65
  1193. #define FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8
  1194. #define FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_LBN 64
  1195. #define FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_WIDTH 1
  1196. #define FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_LBN 48
  1197. #define FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_WIDTH 16
  1198. #define FRF_CZ_TX_FILTER_EN_BIT_LBN 47
  1199. #define FRF_CZ_TX_FILTER_EN_BIT_WIDTH 1
  1200. #define FRF_AZ_TX_IP_ID_P0_OFS_LBN 16
  1201. #define FRF_AZ_TX_IP_ID_P0_OFS_WIDTH 15
  1202. #define FRF_AZ_TX_NO_EOP_DISC_EN_LBN 5
  1203. #define FRF_AZ_TX_NO_EOP_DISC_EN_WIDTH 1
  1204. #define FRF_AZ_TX_P1_PRI_EN_LBN 4
  1205. #define FRF_AZ_TX_P1_PRI_EN_WIDTH 1
  1206. #define FRF_AZ_TX_OWNERR_CTL_LBN 2
  1207. #define FRF_AZ_TX_OWNERR_CTL_WIDTH 1
  1208. #define FRF_AA_TX_NON_IP_DROP_DIS_LBN 1
  1209. #define FRF_AA_TX_NON_IP_DROP_DIS_WIDTH 1
  1210. #define FRF_AZ_TX_IP_ID_REP_EN_LBN 0
  1211. #define FRF_AZ_TX_IP_ID_REP_EN_WIDTH 1
  1212. /* TX_PUSH_DROP_REG: Transmit push dropped register */
  1213. #define FR_AZ_TX_PUSH_DROP 0x00000a60
  1214. #define FRF_AZ_TX_PUSH_DROP_CNT_LBN 0
  1215. #define FRF_AZ_TX_PUSH_DROP_CNT_WIDTH 32
  1216. /* TX_RESERVED_REG: Transmit configuration register */
  1217. #define FR_AZ_TX_RESERVED 0x00000a80
  1218. #define FRF_AZ_TX_EVT_CNT_LBN 121
  1219. #define FRF_AZ_TX_EVT_CNT_WIDTH 7
  1220. #define FRF_AZ_TX_PREF_AGE_CNT_LBN 119
  1221. #define FRF_AZ_TX_PREF_AGE_CNT_WIDTH 2
  1222. #define FRF_AZ_TX_RD_COMP_TMR_LBN 96
  1223. #define FRF_AZ_TX_RD_COMP_TMR_WIDTH 23
  1224. #define FRF_AZ_TX_PUSH_EN_LBN 89
  1225. #define FRF_AZ_TX_PUSH_EN_WIDTH 1
  1226. #define FRF_AZ_TX_PUSH_CHK_DIS_LBN 88
  1227. #define FRF_AZ_TX_PUSH_CHK_DIS_WIDTH 1
  1228. #define FRF_AZ_TX_D_FF_FULL_P0_LBN 85
  1229. #define FRF_AZ_TX_D_FF_FULL_P0_WIDTH 1
  1230. #define FRF_AZ_TX_DMAR_ST_P0_LBN 81
  1231. #define FRF_AZ_TX_DMAR_ST_P0_WIDTH 1
  1232. #define FRF_AZ_TX_DMAQ_ST_LBN 78
  1233. #define FRF_AZ_TX_DMAQ_ST_WIDTH 1
  1234. #define FRF_AZ_TX_RX_SPACER_LBN 64
  1235. #define FRF_AZ_TX_RX_SPACER_WIDTH 8
  1236. #define FRF_AZ_TX_DROP_ABORT_EN_LBN 60
  1237. #define FRF_AZ_TX_DROP_ABORT_EN_WIDTH 1
  1238. #define FRF_AZ_TX_SOFT_EVT_EN_LBN 59
  1239. #define FRF_AZ_TX_SOFT_EVT_EN_WIDTH 1
  1240. #define FRF_AZ_TX_PS_EVT_DIS_LBN 58
  1241. #define FRF_AZ_TX_PS_EVT_DIS_WIDTH 1
  1242. #define FRF_AZ_TX_RX_SPACER_EN_LBN 57
  1243. #define FRF_AZ_TX_RX_SPACER_EN_WIDTH 1
  1244. #define FRF_AZ_TX_XP_TIMER_LBN 52
  1245. #define FRF_AZ_TX_XP_TIMER_WIDTH 5
  1246. #define FRF_AZ_TX_PREF_SPACER_LBN 44
  1247. #define FRF_AZ_TX_PREF_SPACER_WIDTH 8
  1248. #define FRF_AZ_TX_PREF_WD_TMR_LBN 22
  1249. #define FRF_AZ_TX_PREF_WD_TMR_WIDTH 22
  1250. #define FRF_AZ_TX_ONLY1TAG_LBN 21
  1251. #define FRF_AZ_TX_ONLY1TAG_WIDTH 1
  1252. #define FRF_AZ_TX_PREF_THRESHOLD_LBN 19
  1253. #define FRF_AZ_TX_PREF_THRESHOLD_WIDTH 2
  1254. #define FRF_AZ_TX_ONE_PKT_PER_Q_LBN 18
  1255. #define FRF_AZ_TX_ONE_PKT_PER_Q_WIDTH 1
  1256. #define FRF_AZ_TX_DIS_NON_IP_EV_LBN 17
  1257. #define FRF_AZ_TX_DIS_NON_IP_EV_WIDTH 1
  1258. #define FRF_AA_TX_DMA_FF_THR_LBN 16
  1259. #define FRF_AA_TX_DMA_FF_THR_WIDTH 1
  1260. #define FRF_AZ_TX_DMA_SPACER_LBN 8
  1261. #define FRF_AZ_TX_DMA_SPACER_WIDTH 8
  1262. #define FRF_AA_TX_TCP_DIS_LBN 7
  1263. #define FRF_AA_TX_TCP_DIS_WIDTH 1
  1264. #define FRF_BZ_TX_FLUSH_MIN_LEN_EN_LBN 7
  1265. #define FRF_BZ_TX_FLUSH_MIN_LEN_EN_WIDTH 1
  1266. #define FRF_AA_TX_IP_DIS_LBN 6
  1267. #define FRF_AA_TX_IP_DIS_WIDTH 1
  1268. #define FRF_AZ_TX_MAX_CPL_LBN 2
  1269. #define FRF_AZ_TX_MAX_CPL_WIDTH 2
  1270. #define FFE_AZ_TX_MAX_CPL_16 3
  1271. #define FFE_AZ_TX_MAX_CPL_8 2
  1272. #define FFE_AZ_TX_MAX_CPL_4 1
  1273. #define FFE_AZ_TX_MAX_CPL_NOLIMIT 0
  1274. #define FRF_AZ_TX_MAX_PREF_LBN 0
  1275. #define FRF_AZ_TX_MAX_PREF_WIDTH 2
  1276. #define FFE_AZ_TX_MAX_PREF_32 3
  1277. #define FFE_AZ_TX_MAX_PREF_16 2
  1278. #define FFE_AZ_TX_MAX_PREF_8 1
  1279. #define FFE_AZ_TX_MAX_PREF_OFF 0
  1280. /* TX_PACE_REG: Transmit pace control register */
  1281. #define FR_BZ_TX_PACE 0x00000a90
  1282. #define FRF_BZ_TX_PACE_SB_NOT_AF_LBN 19
  1283. #define FRF_BZ_TX_PACE_SB_NOT_AF_WIDTH 10
  1284. #define FRF_BZ_TX_PACE_SB_AF_LBN 9
  1285. #define FRF_BZ_TX_PACE_SB_AF_WIDTH 10
  1286. #define FRF_BZ_TX_PACE_FB_BASE_LBN 5
  1287. #define FRF_BZ_TX_PACE_FB_BASE_WIDTH 4
  1288. #define FRF_BZ_TX_PACE_BIN_TH_LBN 0
  1289. #define FRF_BZ_TX_PACE_BIN_TH_WIDTH 5
  1290. /* TX_PACE_DROP_QID_REG: PACE Drop QID Counter */
  1291. #define FR_BZ_TX_PACE_DROP_QID 0x00000aa0
  1292. #define FRF_BZ_TX_PACE_QID_DRP_CNT_LBN 0
  1293. #define FRF_BZ_TX_PACE_QID_DRP_CNT_WIDTH 16
  1294. /* TX_VLAN_REG: Transmit VLAN tag register */
  1295. #define FR_BB_TX_VLAN 0x00000ae0
  1296. #define FRF_BB_TX_VLAN_EN_LBN 127
  1297. #define FRF_BB_TX_VLAN_EN_WIDTH 1
  1298. #define FRF_BB_TX_VLAN7_PORT1_EN_LBN 125
  1299. #define FRF_BB_TX_VLAN7_PORT1_EN_WIDTH 1
  1300. #define FRF_BB_TX_VLAN7_PORT0_EN_LBN 124
  1301. #define FRF_BB_TX_VLAN7_PORT0_EN_WIDTH 1
  1302. #define FRF_BB_TX_VLAN7_LBN 112
  1303. #define FRF_BB_TX_VLAN7_WIDTH 12
  1304. #define FRF_BB_TX_VLAN6_PORT1_EN_LBN 109
  1305. #define FRF_BB_TX_VLAN6_PORT1_EN_WIDTH 1
  1306. #define FRF_BB_TX_VLAN6_PORT0_EN_LBN 108
  1307. #define FRF_BB_TX_VLAN6_PORT0_EN_WIDTH 1
  1308. #define FRF_BB_TX_VLAN6_LBN 96
  1309. #define FRF_BB_TX_VLAN6_WIDTH 12
  1310. #define FRF_BB_TX_VLAN5_PORT1_EN_LBN 93
  1311. #define FRF_BB_TX_VLAN5_PORT1_EN_WIDTH 1
  1312. #define FRF_BB_TX_VLAN5_PORT0_EN_LBN 92
  1313. #define FRF_BB_TX_VLAN5_PORT0_EN_WIDTH 1
  1314. #define FRF_BB_TX_VLAN5_LBN 80
  1315. #define FRF_BB_TX_VLAN5_WIDTH 12
  1316. #define FRF_BB_TX_VLAN4_PORT1_EN_LBN 77
  1317. #define FRF_BB_TX_VLAN4_PORT1_EN_WIDTH 1
  1318. #define FRF_BB_TX_VLAN4_PORT0_EN_LBN 76
  1319. #define FRF_BB_TX_VLAN4_PORT0_EN_WIDTH 1
  1320. #define FRF_BB_TX_VLAN4_LBN 64
  1321. #define FRF_BB_TX_VLAN4_WIDTH 12
  1322. #define FRF_BB_TX_VLAN3_PORT1_EN_LBN 61
  1323. #define FRF_BB_TX_VLAN3_PORT1_EN_WIDTH 1
  1324. #define FRF_BB_TX_VLAN3_PORT0_EN_LBN 60
  1325. #define FRF_BB_TX_VLAN3_PORT0_EN_WIDTH 1
  1326. #define FRF_BB_TX_VLAN3_LBN 48
  1327. #define FRF_BB_TX_VLAN3_WIDTH 12
  1328. #define FRF_BB_TX_VLAN2_PORT1_EN_LBN 45
  1329. #define FRF_BB_TX_VLAN2_PORT1_EN_WIDTH 1
  1330. #define FRF_BB_TX_VLAN2_PORT0_EN_LBN 44
  1331. #define FRF_BB_TX_VLAN2_PORT0_EN_WIDTH 1
  1332. #define FRF_BB_TX_VLAN2_LBN 32
  1333. #define FRF_BB_TX_VLAN2_WIDTH 12
  1334. #define FRF_BB_TX_VLAN1_PORT1_EN_LBN 29
  1335. #define FRF_BB_TX_VLAN1_PORT1_EN_WIDTH 1
  1336. #define FRF_BB_TX_VLAN1_PORT0_EN_LBN 28
  1337. #define FRF_BB_TX_VLAN1_PORT0_EN_WIDTH 1
  1338. #define FRF_BB_TX_VLAN1_LBN 16
  1339. #define FRF_BB_TX_VLAN1_WIDTH 12
  1340. #define FRF_BB_TX_VLAN0_PORT1_EN_LBN 13
  1341. #define FRF_BB_TX_VLAN0_PORT1_EN_WIDTH 1
  1342. #define FRF_BB_TX_VLAN0_PORT0_EN_LBN 12
  1343. #define FRF_BB_TX_VLAN0_PORT0_EN_WIDTH 1
  1344. #define FRF_BB_TX_VLAN0_LBN 0
  1345. #define FRF_BB_TX_VLAN0_WIDTH 12
  1346. /* TX_IPFIL_PORTEN_REG: Transmit filter control register */
  1347. #define FR_BZ_TX_IPFIL_PORTEN 0x00000af0
  1348. #define FRF_BZ_TX_MADR0_FIL_EN_LBN 64
  1349. #define FRF_BZ_TX_MADR0_FIL_EN_WIDTH 1
  1350. #define FRF_BB_TX_IPFIL31_PORT_EN_LBN 62
  1351. #define FRF_BB_TX_IPFIL31_PORT_EN_WIDTH 1
  1352. #define FRF_BB_TX_IPFIL30_PORT_EN_LBN 60
  1353. #define FRF_BB_TX_IPFIL30_PORT_EN_WIDTH 1
  1354. #define FRF_BB_TX_IPFIL29_PORT_EN_LBN 58
  1355. #define FRF_BB_TX_IPFIL29_PORT_EN_WIDTH 1
  1356. #define FRF_BB_TX_IPFIL28_PORT_EN_LBN 56
  1357. #define FRF_BB_TX_IPFIL28_PORT_EN_WIDTH 1
  1358. #define FRF_BB_TX_IPFIL27_PORT_EN_LBN 54
  1359. #define FRF_BB_TX_IPFIL27_PORT_EN_WIDTH 1
  1360. #define FRF_BB_TX_IPFIL26_PORT_EN_LBN 52
  1361. #define FRF_BB_TX_IPFIL26_PORT_EN_WIDTH 1
  1362. #define FRF_BB_TX_IPFIL25_PORT_EN_LBN 50
  1363. #define FRF_BB_TX_IPFIL25_PORT_EN_WIDTH 1
  1364. #define FRF_BB_TX_IPFIL24_PORT_EN_LBN 48
  1365. #define FRF_BB_TX_IPFIL24_PORT_EN_WIDTH 1
  1366. #define FRF_BB_TX_IPFIL23_PORT_EN_LBN 46
  1367. #define FRF_BB_TX_IPFIL23_PORT_EN_WIDTH 1
  1368. #define FRF_BB_TX_IPFIL22_PORT_EN_LBN 44
  1369. #define FRF_BB_TX_IPFIL22_PORT_EN_WIDTH 1
  1370. #define FRF_BB_TX_IPFIL21_PORT_EN_LBN 42
  1371. #define FRF_BB_TX_IPFIL21_PORT_EN_WIDTH 1
  1372. #define FRF_BB_TX_IPFIL20_PORT_EN_LBN 40
  1373. #define FRF_BB_TX_IPFIL20_PORT_EN_WIDTH 1
  1374. #define FRF_BB_TX_IPFIL19_PORT_EN_LBN 38
  1375. #define FRF_BB_TX_IPFIL19_PORT_EN_WIDTH 1
  1376. #define FRF_BB_TX_IPFIL18_PORT_EN_LBN 36
  1377. #define FRF_BB_TX_IPFIL18_PORT_EN_WIDTH 1
  1378. #define FRF_BB_TX_IPFIL17_PORT_EN_LBN 34
  1379. #define FRF_BB_TX_IPFIL17_PORT_EN_WIDTH 1
  1380. #define FRF_BB_TX_IPFIL16_PORT_EN_LBN 32
  1381. #define FRF_BB_TX_IPFIL16_PORT_EN_WIDTH 1
  1382. #define FRF_BB_TX_IPFIL15_PORT_EN_LBN 30
  1383. #define FRF_BB_TX_IPFIL15_PORT_EN_WIDTH 1
  1384. #define FRF_BB_TX_IPFIL14_PORT_EN_LBN 28
  1385. #define FRF_BB_TX_IPFIL14_PORT_EN_WIDTH 1
  1386. #define FRF_BB_TX_IPFIL13_PORT_EN_LBN 26
  1387. #define FRF_BB_TX_IPFIL13_PORT_EN_WIDTH 1
  1388. #define FRF_BB_TX_IPFIL12_PORT_EN_LBN 24
  1389. #define FRF_BB_TX_IPFIL12_PORT_EN_WIDTH 1
  1390. #define FRF_BB_TX_IPFIL11_PORT_EN_LBN 22
  1391. #define FRF_BB_TX_IPFIL11_PORT_EN_WIDTH 1
  1392. #define FRF_BB_TX_IPFIL10_PORT_EN_LBN 20
  1393. #define FRF_BB_TX_IPFIL10_PORT_EN_WIDTH 1
  1394. #define FRF_BB_TX_IPFIL9_PORT_EN_LBN 18
  1395. #define FRF_BB_TX_IPFIL9_PORT_EN_WIDTH 1
  1396. #define FRF_BB_TX_IPFIL8_PORT_EN_LBN 16
  1397. #define FRF_BB_TX_IPFIL8_PORT_EN_WIDTH 1
  1398. #define FRF_BB_TX_IPFIL7_PORT_EN_LBN 14
  1399. #define FRF_BB_TX_IPFIL7_PORT_EN_WIDTH 1
  1400. #define FRF_BB_TX_IPFIL6_PORT_EN_LBN 12
  1401. #define FRF_BB_TX_IPFIL6_PORT_EN_WIDTH 1
  1402. #define FRF_BB_TX_IPFIL5_PORT_EN_LBN 10
  1403. #define FRF_BB_TX_IPFIL5_PORT_EN_WIDTH 1
  1404. #define FRF_BB_TX_IPFIL4_PORT_EN_LBN 8
  1405. #define FRF_BB_TX_IPFIL4_PORT_EN_WIDTH 1
  1406. #define FRF_BB_TX_IPFIL3_PORT_EN_LBN 6
  1407. #define FRF_BB_TX_IPFIL3_PORT_EN_WIDTH 1
  1408. #define FRF_BB_TX_IPFIL2_PORT_EN_LBN 4
  1409. #define FRF_BB_TX_IPFIL2_PORT_EN_WIDTH 1
  1410. #define FRF_BB_TX_IPFIL1_PORT_EN_LBN 2
  1411. #define FRF_BB_TX_IPFIL1_PORT_EN_WIDTH 1
  1412. #define FRF_BB_TX_IPFIL0_PORT_EN_LBN 0
  1413. #define FRF_BB_TX_IPFIL0_PORT_EN_WIDTH 1
  1414. /* TX_IPFIL_TBL: Transmit IP source address filter table */
  1415. #define FR_BB_TX_IPFIL_TBL 0x00000b00
  1416. #define FR_BB_TX_IPFIL_TBL_STEP 16
  1417. #define FR_BB_TX_IPFIL_TBL_ROWS 16
  1418. #define FRF_BB_TX_IPFIL_MASK_1_LBN 96
  1419. #define FRF_BB_TX_IPFIL_MASK_1_WIDTH 32
  1420. #define FRF_BB_TX_IP_SRC_ADR_1_LBN 64
  1421. #define FRF_BB_TX_IP_SRC_ADR_1_WIDTH 32
  1422. #define FRF_BB_TX_IPFIL_MASK_0_LBN 32
  1423. #define FRF_BB_TX_IPFIL_MASK_0_WIDTH 32
  1424. #define FRF_BB_TX_IP_SRC_ADR_0_LBN 0
  1425. #define FRF_BB_TX_IP_SRC_ADR_0_WIDTH 32
  1426. /* MD_TXD_REG: PHY management transmit data register */
  1427. #define FR_AB_MD_TXD 0x00000c00
  1428. #define FRF_AB_MD_TXD_LBN 0
  1429. #define FRF_AB_MD_TXD_WIDTH 16
  1430. /* MD_RXD_REG: PHY management receive data register */
  1431. #define FR_AB_MD_RXD 0x00000c10
  1432. #define FRF_AB_MD_RXD_LBN 0
  1433. #define FRF_AB_MD_RXD_WIDTH 16
  1434. /* MD_CS_REG: PHY management configuration & status register */
  1435. #define FR_AB_MD_CS 0x00000c20
  1436. #define FRF_AB_MD_RD_EN_CMD_LBN 15
  1437. #define FRF_AB_MD_RD_EN_CMD_WIDTH 1
  1438. #define FRF_AB_MD_WR_EN_CMD_LBN 14
  1439. #define FRF_AB_MD_WR_EN_CMD_WIDTH 1
  1440. #define FRF_AB_MD_ADDR_CMD_LBN 13
  1441. #define FRF_AB_MD_ADDR_CMD_WIDTH 1
  1442. #define FRF_AB_MD_PT_LBN 7
  1443. #define FRF_AB_MD_PT_WIDTH 3
  1444. #define FRF_AB_MD_PL_LBN 6
  1445. #define FRF_AB_MD_PL_WIDTH 1
  1446. #define FRF_AB_MD_INT_CLR_LBN 5
  1447. #define FRF_AB_MD_INT_CLR_WIDTH 1
  1448. #define FRF_AB_MD_GC_LBN 4
  1449. #define FRF_AB_MD_GC_WIDTH 1
  1450. #define FRF_AB_MD_PRSP_LBN 3
  1451. #define FRF_AB_MD_PRSP_WIDTH 1
  1452. #define FRF_AB_MD_RIC_LBN 2
  1453. #define FRF_AB_MD_RIC_WIDTH 1
  1454. #define FRF_AB_MD_RDC_LBN 1
  1455. #define FRF_AB_MD_RDC_WIDTH 1
  1456. #define FRF_AB_MD_WRC_LBN 0
  1457. #define FRF_AB_MD_WRC_WIDTH 1
  1458. /* MD_PHY_ADR_REG: PHY management PHY address register */
  1459. #define FR_AB_MD_PHY_ADR 0x00000c30
  1460. #define FRF_AB_MD_PHY_ADR_LBN 0
  1461. #define FRF_AB_MD_PHY_ADR_WIDTH 16
  1462. /* MD_ID_REG: PHY management ID register */
  1463. #define FR_AB_MD_ID 0x00000c40
  1464. #define FRF_AB_MD_PRT_ADR_LBN 11
  1465. #define FRF_AB_MD_PRT_ADR_WIDTH 5
  1466. #define FRF_AB_MD_DEV_ADR_LBN 6
  1467. #define FRF_AB_MD_DEV_ADR_WIDTH 5
  1468. /* MD_STAT_REG: PHY management status & mask register */
  1469. #define FR_AB_MD_STAT 0x00000c50
  1470. #define FRF_AB_MD_PINT_LBN 4
  1471. #define FRF_AB_MD_PINT_WIDTH 1
  1472. #define FRF_AB_MD_DONE_LBN 3
  1473. #define FRF_AB_MD_DONE_WIDTH 1
  1474. #define FRF_AB_MD_BSERR_LBN 2
  1475. #define FRF_AB_MD_BSERR_WIDTH 1
  1476. #define FRF_AB_MD_LNFL_LBN 1
  1477. #define FRF_AB_MD_LNFL_WIDTH 1
  1478. #define FRF_AB_MD_BSY_LBN 0
  1479. #define FRF_AB_MD_BSY_WIDTH 1
  1480. /* MAC_STAT_DMA_REG: Port MAC statistical counter DMA register */
  1481. #define FR_AB_MAC_STAT_DMA 0x00000c60
  1482. #define FRF_AB_MAC_STAT_DMA_CMD_LBN 48
  1483. #define FRF_AB_MAC_STAT_DMA_CMD_WIDTH 1
  1484. #define FRF_AB_MAC_STAT_DMA_ADR_LBN 0
  1485. #define FRF_AB_MAC_STAT_DMA_ADR_WIDTH 48
  1486. /* MAC_CTRL_REG: Port MAC control register */
  1487. #define FR_AB_MAC_CTRL 0x00000c80
  1488. #define FRF_AB_MAC_XOFF_VAL_LBN 16
  1489. #define FRF_AB_MAC_XOFF_VAL_WIDTH 16
  1490. #define FRF_BB_TXFIFO_DRAIN_EN_LBN 7
  1491. #define FRF_BB_TXFIFO_DRAIN_EN_WIDTH 1
  1492. #define FRF_AB_MAC_XG_DISTXCRC_LBN 5
  1493. #define FRF_AB_MAC_XG_DISTXCRC_WIDTH 1
  1494. #define FRF_AB_MAC_BCAD_ACPT_LBN 4
  1495. #define FRF_AB_MAC_BCAD_ACPT_WIDTH 1
  1496. #define FRF_AB_MAC_UC_PROM_LBN 3
  1497. #define FRF_AB_MAC_UC_PROM_WIDTH 1
  1498. #define FRF_AB_MAC_LINK_STATUS_LBN 2
  1499. #define FRF_AB_MAC_LINK_STATUS_WIDTH 1
  1500. #define FRF_AB_MAC_SPEED_LBN 0
  1501. #define FRF_AB_MAC_SPEED_WIDTH 2
  1502. #define FFE_AB_MAC_SPEED_10G 3
  1503. #define FFE_AB_MAC_SPEED_1G 2
  1504. #define FFE_AB_MAC_SPEED_100M 1
  1505. #define FFE_AB_MAC_SPEED_10M 0
  1506. /* GEN_MODE_REG: General Purpose mode register (external interrupt mask) */
  1507. #define FR_BB_GEN_MODE 0x00000c90
  1508. #define FRF_BB_XFP_PHY_INT_POL_SEL_LBN 3
  1509. #define FRF_BB_XFP_PHY_INT_POL_SEL_WIDTH 1
  1510. #define FRF_BB_XG_PHY_INT_POL_SEL_LBN 2
  1511. #define FRF_BB_XG_PHY_INT_POL_SEL_WIDTH 1
  1512. #define FRF_BB_XFP_PHY_INT_MASK_LBN 1
  1513. #define FRF_BB_XFP_PHY_INT_MASK_WIDTH 1
  1514. #define FRF_BB_XG_PHY_INT_MASK_LBN 0
  1515. #define FRF_BB_XG_PHY_INT_MASK_WIDTH 1
  1516. /* MAC_MC_HASH_REG0: Multicast address hash table */
  1517. #define FR_AB_MAC_MC_HASH_REG0 0x00000ca0
  1518. #define FRF_AB_MAC_MCAST_HASH0_LBN 0
  1519. #define FRF_AB_MAC_MCAST_HASH0_WIDTH 128
  1520. /* MAC_MC_HASH_REG1: Multicast address hash table */
  1521. #define FR_AB_MAC_MC_HASH_REG1 0x00000cb0
  1522. #define FRF_AB_MAC_MCAST_HASH1_LBN 0
  1523. #define FRF_AB_MAC_MCAST_HASH1_WIDTH 128
  1524. /* GM_CFG1_REG: GMAC configuration register 1 */
  1525. #define FR_AB_GM_CFG1 0x00000e00
  1526. #define FRF_AB_GM_SW_RST_LBN 31
  1527. #define FRF_AB_GM_SW_RST_WIDTH 1
  1528. #define FRF_AB_GM_SIM_RST_LBN 30
  1529. #define FRF_AB_GM_SIM_RST_WIDTH 1
  1530. #define FRF_AB_GM_RST_RX_MAC_CTL_LBN 19
  1531. #define FRF_AB_GM_RST_RX_MAC_CTL_WIDTH 1
  1532. #define FRF_AB_GM_RST_TX_MAC_CTL_LBN 18
  1533. #define FRF_AB_GM_RST_TX_MAC_CTL_WIDTH 1
  1534. #define FRF_AB_GM_RST_RX_FUNC_LBN 17
  1535. #define FRF_AB_GM_RST_RX_FUNC_WIDTH 1
  1536. #define FRF_AB_GM_RST_TX_FUNC_LBN 16
  1537. #define FRF_AB_GM_RST_TX_FUNC_WIDTH 1
  1538. #define FRF_AB_GM_LOOP_LBN 8
  1539. #define FRF_AB_GM_LOOP_WIDTH 1
  1540. #define FRF_AB_GM_RX_FC_EN_LBN 5
  1541. #define FRF_AB_GM_RX_FC_EN_WIDTH 1
  1542. #define FRF_AB_GM_TX_FC_EN_LBN 4
  1543. #define FRF_AB_GM_TX_FC_EN_WIDTH 1
  1544. #define FRF_AB_GM_SYNC_RXEN_LBN 3
  1545. #define FRF_AB_GM_SYNC_RXEN_WIDTH 1
  1546. #define FRF_AB_GM_RX_EN_LBN 2
  1547. #define FRF_AB_GM_RX_EN_WIDTH 1
  1548. #define FRF_AB_GM_SYNC_TXEN_LBN 1
  1549. #define FRF_AB_GM_SYNC_TXEN_WIDTH 1
  1550. #define FRF_AB_GM_TX_EN_LBN 0
  1551. #define FRF_AB_GM_TX_EN_WIDTH 1
  1552. /* GM_CFG2_REG: GMAC configuration register 2 */
  1553. #define FR_AB_GM_CFG2 0x00000e10
  1554. #define FRF_AB_GM_PAMBL_LEN_LBN 12
  1555. #define FRF_AB_GM_PAMBL_LEN_WIDTH 4
  1556. #define FRF_AB_GM_IF_MODE_LBN 8
  1557. #define FRF_AB_GM_IF_MODE_WIDTH 2
  1558. #define FFE_AB_IF_MODE_BYTE_MODE 2
  1559. #define FFE_AB_IF_MODE_NIBBLE_MODE 1
  1560. #define FRF_AB_GM_HUGE_FRM_EN_LBN 5
  1561. #define FRF_AB_GM_HUGE_FRM_EN_WIDTH 1
  1562. #define FRF_AB_GM_LEN_CHK_LBN 4
  1563. #define FRF_AB_GM_LEN_CHK_WIDTH 1
  1564. #define FRF_AB_GM_PAD_CRC_EN_LBN 2
  1565. #define FRF_AB_GM_PAD_CRC_EN_WIDTH 1
  1566. #define FRF_AB_GM_CRC_EN_LBN 1
  1567. #define FRF_AB_GM_CRC_EN_WIDTH 1
  1568. #define FRF_AB_GM_FD_LBN 0
  1569. #define FRF_AB_GM_FD_WIDTH 1
  1570. /* GM_IPG_REG: GMAC IPG register */
  1571. #define FR_AB_GM_IPG 0x00000e20
  1572. #define FRF_AB_GM_NONB2B_IPG1_LBN 24
  1573. #define FRF_AB_GM_NONB2B_IPG1_WIDTH 7
  1574. #define FRF_AB_GM_NONB2B_IPG2_LBN 16
  1575. #define FRF_AB_GM_NONB2B_IPG2_WIDTH 7
  1576. #define FRF_AB_GM_MIN_IPG_ENF_LBN 8
  1577. #define FRF_AB_GM_MIN_IPG_ENF_WIDTH 8
  1578. #define FRF_AB_GM_B2B_IPG_LBN 0
  1579. #define FRF_AB_GM_B2B_IPG_WIDTH 7
  1580. /* GM_HD_REG: GMAC half duplex register */
  1581. #define FR_AB_GM_HD 0x00000e30
  1582. #define FRF_AB_GM_ALT_BOFF_VAL_LBN 20
  1583. #define FRF_AB_GM_ALT_BOFF_VAL_WIDTH 4
  1584. #define FRF_AB_GM_ALT_BOFF_EN_LBN 19
  1585. #define FRF_AB_GM_ALT_BOFF_EN_WIDTH 1
  1586. #define FRF_AB_GM_BP_NO_BOFF_LBN 18
  1587. #define FRF_AB_GM_BP_NO_BOFF_WIDTH 1
  1588. #define FRF_AB_GM_DIS_BOFF_LBN 17
  1589. #define FRF_AB_GM_DIS_BOFF_WIDTH 1
  1590. #define FRF_AB_GM_EXDEF_TX_EN_LBN 16
  1591. #define FRF_AB_GM_EXDEF_TX_EN_WIDTH 1
  1592. #define FRF_AB_GM_RTRY_LIMIT_LBN 12
  1593. #define FRF_AB_GM_RTRY_LIMIT_WIDTH 4
  1594. #define FRF_AB_GM_COL_WIN_LBN 0
  1595. #define FRF_AB_GM_COL_WIN_WIDTH 10
  1596. /* GM_MAX_FLEN_REG: GMAC maximum frame length register */
  1597. #define FR_AB_GM_MAX_FLEN 0x00000e40
  1598. #define FRF_AB_GM_MAX_FLEN_LBN 0
  1599. #define FRF_AB_GM_MAX_FLEN_WIDTH 16
  1600. /* GM_TEST_REG: GMAC test register */
  1601. #define FR_AB_GM_TEST 0x00000e70
  1602. #define FRF_AB_GM_MAX_BOFF_LBN 3
  1603. #define FRF_AB_GM_MAX_BOFF_WIDTH 1
  1604. #define FRF_AB_GM_REG_TX_FLOW_EN_LBN 2
  1605. #define FRF_AB_GM_REG_TX_FLOW_EN_WIDTH 1
  1606. #define FRF_AB_GM_TEST_PAUSE_LBN 1
  1607. #define FRF_AB_GM_TEST_PAUSE_WIDTH 1
  1608. #define FRF_AB_GM_SHORT_SLOT_LBN 0
  1609. #define FRF_AB_GM_SHORT_SLOT_WIDTH 1
  1610. /* GM_ADR1_REG: GMAC station address register 1 */
  1611. #define FR_AB_GM_ADR1 0x00000f00
  1612. #define FRF_AB_GM_ADR_B0_LBN 24
  1613. #define FRF_AB_GM_ADR_B0_WIDTH 8
  1614. #define FRF_AB_GM_ADR_B1_LBN 16
  1615. #define FRF_AB_GM_ADR_B1_WIDTH 8
  1616. #define FRF_AB_GM_ADR_B2_LBN 8
  1617. #define FRF_AB_GM_ADR_B2_WIDTH 8
  1618. #define FRF_AB_GM_ADR_B3_LBN 0
  1619. #define FRF_AB_GM_ADR_B3_WIDTH 8
  1620. /* GM_ADR2_REG: GMAC station address register 2 */
  1621. #define FR_AB_GM_ADR2 0x00000f10
  1622. #define FRF_AB_GM_ADR_B4_LBN 24
  1623. #define FRF_AB_GM_ADR_B4_WIDTH 8
  1624. #define FRF_AB_GM_ADR_B5_LBN 16
  1625. #define FRF_AB_GM_ADR_B5_WIDTH 8
  1626. /* GMF_CFG0_REG: GMAC FIFO configuration register 0 */
  1627. #define FR_AB_GMF_CFG0 0x00000f20
  1628. #define FRF_AB_GMF_FTFENRPLY_LBN 20
  1629. #define FRF_AB_GMF_FTFENRPLY_WIDTH 1
  1630. #define FRF_AB_GMF_STFENRPLY_LBN 19
  1631. #define FRF_AB_GMF_STFENRPLY_WIDTH 1
  1632. #define FRF_AB_GMF_FRFENRPLY_LBN 18
  1633. #define FRF_AB_GMF_FRFENRPLY_WIDTH 1
  1634. #define FRF_AB_GMF_SRFENRPLY_LBN 17
  1635. #define FRF_AB_GMF_SRFENRPLY_WIDTH 1
  1636. #define FRF_AB_GMF_WTMENRPLY_LBN 16
  1637. #define FRF_AB_GMF_WTMENRPLY_WIDTH 1
  1638. #define FRF_AB_GMF_FTFENREQ_LBN 12
  1639. #define FRF_AB_GMF_FTFENREQ_WIDTH 1
  1640. #define FRF_AB_GMF_STFENREQ_LBN 11
  1641. #define FRF_AB_GMF_STFENREQ_WIDTH 1
  1642. #define FRF_AB_GMF_FRFENREQ_LBN 10
  1643. #define FRF_AB_GMF_FRFENREQ_WIDTH 1
  1644. #define FRF_AB_GMF_SRFENREQ_LBN 9
  1645. #define FRF_AB_GMF_SRFENREQ_WIDTH 1
  1646. #define FRF_AB_GMF_WTMENREQ_LBN 8
  1647. #define FRF_AB_GMF_WTMENREQ_WIDTH 1
  1648. #define FRF_AB_GMF_HSTRSTFT_LBN 4
  1649. #define FRF_AB_GMF_HSTRSTFT_WIDTH 1
  1650. #define FRF_AB_GMF_HSTRSTST_LBN 3
  1651. #define FRF_AB_GMF_HSTRSTST_WIDTH 1
  1652. #define FRF_AB_GMF_HSTRSTFR_LBN 2
  1653. #define FRF_AB_GMF_HSTRSTFR_WIDTH 1
  1654. #define FRF_AB_GMF_HSTRSTSR_LBN 1
  1655. #define FRF_AB_GMF_HSTRSTSR_WIDTH 1
  1656. #define FRF_AB_GMF_HSTRSTWT_LBN 0
  1657. #define FRF_AB_GMF_HSTRSTWT_WIDTH 1
  1658. /* GMF_CFG1_REG: GMAC FIFO configuration register 1 */
  1659. #define FR_AB_GMF_CFG1 0x00000f30
  1660. #define FRF_AB_GMF_CFGFRTH_LBN 16
  1661. #define FRF_AB_GMF_CFGFRTH_WIDTH 5
  1662. #define FRF_AB_GMF_CFGXOFFRTX_LBN 0
  1663. #define FRF_AB_GMF_CFGXOFFRTX_WIDTH 16
  1664. /* GMF_CFG2_REG: GMAC FIFO configuration register 2 */
  1665. #define FR_AB_GMF_CFG2 0x00000f40
  1666. #define FRF_AB_GMF_CFGHWM_LBN 16
  1667. #define FRF_AB_GMF_CFGHWM_WIDTH 6
  1668. #define FRF_AB_GMF_CFGLWM_LBN 0
  1669. #define FRF_AB_GMF_CFGLWM_WIDTH 6
  1670. /* GMF_CFG3_REG: GMAC FIFO configuration register 3 */
  1671. #define FR_AB_GMF_CFG3 0x00000f50
  1672. #define FRF_AB_GMF_CFGHWMFT_LBN 16
  1673. #define FRF_AB_GMF_CFGHWMFT_WIDTH 6
  1674. #define FRF_AB_GMF_CFGFTTH_LBN 0
  1675. #define FRF_AB_GMF_CFGFTTH_WIDTH 6
  1676. /* GMF_CFG4_REG: GMAC FIFO configuration register 4 */
  1677. #define FR_AB_GMF_CFG4 0x00000f60
  1678. #define FRF_AB_GMF_HSTFLTRFRM_LBN 0
  1679. #define FRF_AB_GMF_HSTFLTRFRM_WIDTH 18
  1680. /* GMF_CFG5_REG: GMAC FIFO configuration register 5 */
  1681. #define FR_AB_GMF_CFG5 0x00000f70
  1682. #define FRF_AB_GMF_CFGHDPLX_LBN 22
  1683. #define FRF_AB_GMF_CFGHDPLX_WIDTH 1
  1684. #define FRF_AB_GMF_SRFULL_LBN 21
  1685. #define FRF_AB_GMF_SRFULL_WIDTH 1
  1686. #define FRF_AB_GMF_HSTSRFULLCLR_LBN 20
  1687. #define FRF_AB_GMF_HSTSRFULLCLR_WIDTH 1
  1688. #define FRF_AB_GMF_CFGBYTMODE_LBN 19
  1689. #define FRF_AB_GMF_CFGBYTMODE_WIDTH 1
  1690. #define FRF_AB_GMF_HSTDRPLT64_LBN 18
  1691. #define FRF_AB_GMF_HSTDRPLT64_WIDTH 1
  1692. #define FRF_AB_GMF_HSTFLTRFRMDC_LBN 0
  1693. #define FRF_AB_GMF_HSTFLTRFRMDC_WIDTH 18
  1694. /* TX_SRC_MAC_TBL: Transmit IP source address filter table */
  1695. #define FR_BB_TX_SRC_MAC_TBL 0x00001000
  1696. #define FR_BB_TX_SRC_MAC_TBL_STEP 16
  1697. #define FR_BB_TX_SRC_MAC_TBL_ROWS 16
  1698. #define FRF_BB_TX_SRC_MAC_ADR_1_LBN 64
  1699. #define FRF_BB_TX_SRC_MAC_ADR_1_WIDTH 48
  1700. #define FRF_BB_TX_SRC_MAC_ADR_0_LBN 0
  1701. #define FRF_BB_TX_SRC_MAC_ADR_0_WIDTH 48
  1702. /* TX_SRC_MAC_CTL_REG: Transmit MAC source address filter control */
  1703. #define FR_BB_TX_SRC_MAC_CTL 0x00001100
  1704. #define FRF_BB_TX_SRC_DROP_CTR_LBN 16
  1705. #define FRF_BB_TX_SRC_DROP_CTR_WIDTH 16
  1706. #define FRF_BB_TX_SRC_FLTR_EN_LBN 15
  1707. #define FRF_BB_TX_SRC_FLTR_EN_WIDTH 1
  1708. #define FRF_BB_TX_DROP_CTR_CLR_LBN 12
  1709. #define FRF_BB_TX_DROP_CTR_CLR_WIDTH 1
  1710. #define FRF_BB_TX_MAC_QID_SEL_LBN 0
  1711. #define FRF_BB_TX_MAC_QID_SEL_WIDTH 3
  1712. /* XM_ADR_LO_REG: XGMAC address register low */
  1713. #define FR_AB_XM_ADR_LO 0x00001200
  1714. #define FRF_AB_XM_ADR_LO_LBN 0
  1715. #define FRF_AB_XM_ADR_LO_WIDTH 32
  1716. /* XM_ADR_HI_REG: XGMAC address register high */
  1717. #define FR_AB_XM_ADR_HI 0x00001210
  1718. #define FRF_AB_XM_ADR_HI_LBN 0
  1719. #define FRF_AB_XM_ADR_HI_WIDTH 16
  1720. /* XM_GLB_CFG_REG: XGMAC global configuration */
  1721. #define FR_AB_XM_GLB_CFG 0x00001220
  1722. #define FRF_AB_XM_RMTFLT_GEN_LBN 17
  1723. #define FRF_AB_XM_RMTFLT_GEN_WIDTH 1
  1724. #define FRF_AB_XM_DEBUG_MODE_LBN 16
  1725. #define FRF_AB_XM_DEBUG_MODE_WIDTH 1
  1726. #define FRF_AB_XM_RX_STAT_EN_LBN 11
  1727. #define FRF_AB_XM_RX_STAT_EN_WIDTH 1
  1728. #define FRF_AB_XM_TX_STAT_EN_LBN 10
  1729. #define FRF_AB_XM_TX_STAT_EN_WIDTH 1
  1730. #define FRF_AB_XM_RX_JUMBO_MODE_LBN 6
  1731. #define FRF_AB_XM_RX_JUMBO_MODE_WIDTH 1
  1732. #define FRF_AB_XM_WAN_MODE_LBN 5
  1733. #define FRF_AB_XM_WAN_MODE_WIDTH 1
  1734. #define FRF_AB_XM_INTCLR_MODE_LBN 3
  1735. #define FRF_AB_XM_INTCLR_MODE_WIDTH 1
  1736. #define FRF_AB_XM_CORE_RST_LBN 0
  1737. #define FRF_AB_XM_CORE_RST_WIDTH 1
  1738. /* XM_TX_CFG_REG: XGMAC transmit configuration */
  1739. #define FR_AB_XM_TX_CFG 0x00001230
  1740. #define FRF_AB_XM_TX_PROG_LBN 24
  1741. #define FRF_AB_XM_TX_PROG_WIDTH 1
  1742. #define FRF_AB_XM_IPG_LBN 16
  1743. #define FRF_AB_XM_IPG_WIDTH 4
  1744. #define FRF_AB_XM_FCNTL_LBN 10
  1745. #define FRF_AB_XM_FCNTL_WIDTH 1
  1746. #define FRF_AB_XM_TXCRC_LBN 8
  1747. #define FRF_AB_XM_TXCRC_WIDTH 1
  1748. #define FRF_AB_XM_EDRC_LBN 6
  1749. #define FRF_AB_XM_EDRC_WIDTH 1
  1750. #define FRF_AB_XM_AUTO_PAD_LBN 5
  1751. #define FRF_AB_XM_AUTO_PAD_WIDTH 1
  1752. #define FRF_AB_XM_TX_PRMBL_LBN 2
  1753. #define FRF_AB_XM_TX_PRMBL_WIDTH 1
  1754. #define FRF_AB_XM_TXEN_LBN 1
  1755. #define FRF_AB_XM_TXEN_WIDTH 1
  1756. #define FRF_AB_XM_TX_RST_LBN 0
  1757. #define FRF_AB_XM_TX_RST_WIDTH 1
  1758. /* XM_RX_CFG_REG: XGMAC receive configuration */
  1759. #define FR_AB_XM_RX_CFG 0x00001240
  1760. #define FRF_AB_XM_PASS_LENERR_LBN 26
  1761. #define FRF_AB_XM_PASS_LENERR_WIDTH 1
  1762. #define FRF_AB_XM_PASS_CRC_ERR_LBN 25
  1763. #define FRF_AB_XM_PASS_CRC_ERR_WIDTH 1
  1764. #define FRF_AB_XM_PASS_PRMBLE_ERR_LBN 24
  1765. #define FRF_AB_XM_PASS_PRMBLE_ERR_WIDTH 1
  1766. #define FRF_AB_XM_REJ_BCAST_LBN 20
  1767. #define FRF_AB_XM_REJ_BCAST_WIDTH 1
  1768. #define FRF_AB_XM_ACPT_ALL_MCAST_LBN 11
  1769. #define FRF_AB_XM_ACPT_ALL_MCAST_WIDTH 1
  1770. #define FRF_AB_XM_ACPT_ALL_UCAST_LBN 9
  1771. #define FRF_AB_XM_ACPT_ALL_UCAST_WIDTH 1
  1772. #define FRF_AB_XM_AUTO_DEPAD_LBN 8
  1773. #define FRF_AB_XM_AUTO_DEPAD_WIDTH 1
  1774. #define FRF_AB_XM_RXCRC_LBN 3
  1775. #define FRF_AB_XM_RXCRC_WIDTH 1
  1776. #define FRF_AB_XM_RX_PRMBL_LBN 2
  1777. #define FRF_AB_XM_RX_PRMBL_WIDTH 1
  1778. #define FRF_AB_XM_RXEN_LBN 1
  1779. #define FRF_AB_XM_RXEN_WIDTH 1
  1780. #define FRF_AB_XM_RX_RST_LBN 0
  1781. #define FRF_AB_XM_RX_RST_WIDTH 1
  1782. /* XM_MGT_INT_MASK: documentation to be written for sum_XM_MGT_INT_MASK */
  1783. #define FR_AB_XM_MGT_INT_MASK 0x00001250
  1784. #define FRF_AB_XM_MSK_STA_INTR_LBN 16
  1785. #define FRF_AB_XM_MSK_STA_INTR_WIDTH 1
  1786. #define FRF_AB_XM_MSK_STAT_CNTR_HF_LBN 9
  1787. #define FRF_AB_XM_MSK_STAT_CNTR_HF_WIDTH 1
  1788. #define FRF_AB_XM_MSK_STAT_CNTR_OF_LBN 8
  1789. #define FRF_AB_XM_MSK_STAT_CNTR_OF_WIDTH 1
  1790. #define FRF_AB_XM_MSK_PRMBLE_ERR_LBN 2
  1791. #define FRF_AB_XM_MSK_PRMBLE_ERR_WIDTH 1
  1792. #define FRF_AB_XM_MSK_RMTFLT_LBN 1
  1793. #define FRF_AB_XM_MSK_RMTFLT_WIDTH 1
  1794. #define FRF_AB_XM_MSK_LCLFLT_LBN 0
  1795. #define FRF_AB_XM_MSK_LCLFLT_WIDTH 1
  1796. /* XM_FC_REG: XGMAC flow control register */
  1797. #define FR_AB_XM_FC 0x00001270
  1798. #define FRF_AB_XM_PAUSE_TIME_LBN 16
  1799. #define FRF_AB_XM_PAUSE_TIME_WIDTH 16
  1800. #define FRF_AB_XM_RX_MAC_STAT_LBN 11
  1801. #define FRF_AB_XM_RX_MAC_STAT_WIDTH 1
  1802. #define FRF_AB_XM_TX_MAC_STAT_LBN 10
  1803. #define FRF_AB_XM_TX_MAC_STAT_WIDTH 1
  1804. #define FRF_AB_XM_MCNTL_PASS_LBN 8
  1805. #define FRF_AB_XM_MCNTL_PASS_WIDTH 2
  1806. #define FRF_AB_XM_REJ_CNTL_UCAST_LBN 6
  1807. #define FRF_AB_XM_REJ_CNTL_UCAST_WIDTH 1
  1808. #define FRF_AB_XM_REJ_CNTL_MCAST_LBN 5
  1809. #define FRF_AB_XM_REJ_CNTL_MCAST_WIDTH 1
  1810. #define FRF_AB_XM_ZPAUSE_LBN 2
  1811. #define FRF_AB_XM_ZPAUSE_WIDTH 1
  1812. #define FRF_AB_XM_XMIT_PAUSE_LBN 1
  1813. #define FRF_AB_XM_XMIT_PAUSE_WIDTH 1
  1814. #define FRF_AB_XM_DIS_FCNTL_LBN 0
  1815. #define FRF_AB_XM_DIS_FCNTL_WIDTH 1
  1816. /* XM_PAUSE_TIME_REG: XGMAC pause time register */
  1817. #define FR_AB_XM_PAUSE_TIME 0x00001290
  1818. #define FRF_AB_XM_TX_PAUSE_CNT_LBN 16
  1819. #define FRF_AB_XM_TX_PAUSE_CNT_WIDTH 16
  1820. #define FRF_AB_XM_RX_PAUSE_CNT_LBN 0
  1821. #define FRF_AB_XM_RX_PAUSE_CNT_WIDTH 16
  1822. /* XM_TX_PARAM_REG: XGMAC transmit parameter register */
  1823. #define FR_AB_XM_TX_PARAM 0x000012d0
  1824. #define FRF_AB_XM_TX_JUMBO_MODE_LBN 31
  1825. #define FRF_AB_XM_TX_JUMBO_MODE_WIDTH 1
  1826. #define FRF_AB_XM_MAX_TX_FRM_SIZE_HI_LBN 19
  1827. #define FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH 11
  1828. #define FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN 16
  1829. #define FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH 3
  1830. #define FRF_AB_XM_PAD_CHAR_LBN 0
  1831. #define FRF_AB_XM_PAD_CHAR_WIDTH 8
  1832. /* XM_RX_PARAM_REG: XGMAC receive parameter register */
  1833. #define FR_AB_XM_RX_PARAM 0x000012e0
  1834. #define FRF_AB_XM_MAX_RX_FRM_SIZE_HI_LBN 3
  1835. #define FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH 11
  1836. #define FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN 0
  1837. #define FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH 3
  1838. /* XM_MGT_INT_MSK_REG: XGMAC management interrupt mask register */
  1839. #define FR_AB_XM_MGT_INT_MSK 0x000012f0
  1840. #define FRF_AB_XM_STAT_CNTR_OF_LBN 9
  1841. #define FRF_AB_XM_STAT_CNTR_OF_WIDTH 1
  1842. #define FRF_AB_XM_STAT_CNTR_HF_LBN 8
  1843. #define FRF_AB_XM_STAT_CNTR_HF_WIDTH 1
  1844. #define FRF_AB_XM_PRMBLE_ERR_LBN 2
  1845. #define FRF_AB_XM_PRMBLE_ERR_WIDTH 1
  1846. #define FRF_AB_XM_RMTFLT_LBN 1
  1847. #define FRF_AB_XM_RMTFLT_WIDTH 1
  1848. #define FRF_AB_XM_LCLFLT_LBN 0
  1849. #define FRF_AB_XM_LCLFLT_WIDTH 1
  1850. /* XX_PWR_RST_REG: XGXS/XAUI powerdown/reset register */
  1851. #define FR_AB_XX_PWR_RST 0x00001300
  1852. #define FRF_AB_XX_PWRDND_SIG_LBN 31
  1853. #define FRF_AB_XX_PWRDND_SIG_WIDTH 1
  1854. #define FRF_AB_XX_PWRDNC_SIG_LBN 30
  1855. #define FRF_AB_XX_PWRDNC_SIG_WIDTH 1
  1856. #define FRF_AB_XX_PWRDNB_SIG_LBN 29
  1857. #define FRF_AB_XX_PWRDNB_SIG_WIDTH 1
  1858. #define FRF_AB_XX_PWRDNA_SIG_LBN 28
  1859. #define FRF_AB_XX_PWRDNA_SIG_WIDTH 1
  1860. #define FRF_AB_XX_SIM_MODE_LBN 27
  1861. #define FRF_AB_XX_SIM_MODE_WIDTH 1
  1862. #define FRF_AB_XX_RSTPLLCD_SIG_LBN 25
  1863. #define FRF_AB_XX_RSTPLLCD_SIG_WIDTH 1
  1864. #define FRF_AB_XX_RSTPLLAB_SIG_LBN 24
  1865. #define FRF_AB_XX_RSTPLLAB_SIG_WIDTH 1
  1866. #define FRF_AB_XX_RESETD_SIG_LBN 23
  1867. #define FRF_AB_XX_RESETD_SIG_WIDTH 1
  1868. #define FRF_AB_XX_RESETC_SIG_LBN 22
  1869. #define FRF_AB_XX_RESETC_SIG_WIDTH 1
  1870. #define FRF_AB_XX_RESETB_SIG_LBN 21
  1871. #define FRF_AB_XX_RESETB_SIG_WIDTH 1
  1872. #define FRF_AB_XX_RESETA_SIG_LBN 20
  1873. #define FRF_AB_XX_RESETA_SIG_WIDTH 1
  1874. #define FRF_AB_XX_RSTXGXSRX_SIG_LBN 18
  1875. #define FRF_AB_XX_RSTXGXSRX_SIG_WIDTH 1
  1876. #define FRF_AB_XX_RSTXGXSTX_SIG_LBN 17
  1877. #define FRF_AB_XX_RSTXGXSTX_SIG_WIDTH 1
  1878. #define FRF_AB_XX_SD_RST_ACT_LBN 16
  1879. #define FRF_AB_XX_SD_RST_ACT_WIDTH 1
  1880. #define FRF_AB_XX_PWRDND_EN_LBN 15
  1881. #define FRF_AB_XX_PWRDND_EN_WIDTH 1
  1882. #define FRF_AB_XX_PWRDNC_EN_LBN 14
  1883. #define FRF_AB_XX_PWRDNC_EN_WIDTH 1
  1884. #define FRF_AB_XX_PWRDNB_EN_LBN 13
  1885. #define FRF_AB_XX_PWRDNB_EN_WIDTH 1
  1886. #define FRF_AB_XX_PWRDNA_EN_LBN 12
  1887. #define FRF_AB_XX_PWRDNA_EN_WIDTH 1
  1888. #define FRF_AB_XX_RSTPLLCD_EN_LBN 9
  1889. #define FRF_AB_XX_RSTPLLCD_EN_WIDTH 1
  1890. #define FRF_AB_XX_RSTPLLAB_EN_LBN 8
  1891. #define FRF_AB_XX_RSTPLLAB_EN_WIDTH 1
  1892. #define FRF_AB_XX_RESETD_EN_LBN 7
  1893. #define FRF_AB_XX_RESETD_EN_WIDTH 1
  1894. #define FRF_AB_XX_RESETC_EN_LBN 6
  1895. #define FRF_AB_XX_RESETC_EN_WIDTH 1
  1896. #define FRF_AB_XX_RESETB_EN_LBN 5
  1897. #define FRF_AB_XX_RESETB_EN_WIDTH 1
  1898. #define FRF_AB_XX_RESETA_EN_LBN 4
  1899. #define FRF_AB_XX_RESETA_EN_WIDTH 1
  1900. #define FRF_AB_XX_RSTXGXSRX_EN_LBN 2
  1901. #define FRF_AB_XX_RSTXGXSRX_EN_WIDTH 1
  1902. #define FRF_AB_XX_RSTXGXSTX_EN_LBN 1
  1903. #define FRF_AB_XX_RSTXGXSTX_EN_WIDTH 1
  1904. #define FRF_AB_XX_RST_XX_EN_LBN 0
  1905. #define FRF_AB_XX_RST_XX_EN_WIDTH 1
  1906. /* XX_SD_CTL_REG: XGXS/XAUI powerdown/reset control register */
  1907. #define FR_AB_XX_SD_CTL 0x00001310
  1908. #define FRF_AB_XX_TERMADJ1_LBN 17
  1909. #define FRF_AB_XX_TERMADJ1_WIDTH 1
  1910. #define FRF_AB_XX_TERMADJ0_LBN 16
  1911. #define FRF_AB_XX_TERMADJ0_WIDTH 1
  1912. #define FRF_AB_XX_HIDRVD_LBN 15
  1913. #define FRF_AB_XX_HIDRVD_WIDTH 1
  1914. #define FRF_AB_XX_LODRVD_LBN 14
  1915. #define FRF_AB_XX_LODRVD_WIDTH 1
  1916. #define FRF_AB_XX_HIDRVC_LBN 13
  1917. #define FRF_AB_XX_HIDRVC_WIDTH 1
  1918. #define FRF_AB_XX_LODRVC_LBN 12
  1919. #define FRF_AB_XX_LODRVC_WIDTH 1
  1920. #define FRF_AB_XX_HIDRVB_LBN 11
  1921. #define FRF_AB_XX_HIDRVB_WIDTH 1
  1922. #define FRF_AB_XX_LODRVB_LBN 10
  1923. #define FRF_AB_XX_LODRVB_WIDTH 1
  1924. #define FRF_AB_XX_HIDRVA_LBN 9
  1925. #define FRF_AB_XX_HIDRVA_WIDTH 1
  1926. #define FRF_AB_XX_LODRVA_LBN 8
  1927. #define FRF_AB_XX_LODRVA_WIDTH 1
  1928. #define FRF_AB_XX_LPBKD_LBN 3
  1929. #define FRF_AB_XX_LPBKD_WIDTH 1
  1930. #define FRF_AB_XX_LPBKC_LBN 2
  1931. #define FRF_AB_XX_LPBKC_WIDTH 1
  1932. #define FRF_AB_XX_LPBKB_LBN 1
  1933. #define FRF_AB_XX_LPBKB_WIDTH 1
  1934. #define FRF_AB_XX_LPBKA_LBN 0
  1935. #define FRF_AB_XX_LPBKA_WIDTH 1
  1936. /* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */
  1937. #define FR_AB_XX_TXDRV_CTL 0x00001320
  1938. #define FRF_AB_XX_DEQD_LBN 28
  1939. #define FRF_AB_XX_DEQD_WIDTH 4
  1940. #define FRF_AB_XX_DEQC_LBN 24
  1941. #define FRF_AB_XX_DEQC_WIDTH 4
  1942. #define FRF_AB_XX_DEQB_LBN 20
  1943. #define FRF_AB_XX_DEQB_WIDTH 4
  1944. #define FRF_AB_XX_DEQA_LBN 16
  1945. #define FRF_AB_XX_DEQA_WIDTH 4
  1946. #define FRF_AB_XX_DTXD_LBN 12
  1947. #define FRF_AB_XX_DTXD_WIDTH 4
  1948. #define FRF_AB_XX_DTXC_LBN 8
  1949. #define FRF_AB_XX_DTXC_WIDTH 4
  1950. #define FRF_AB_XX_DTXB_LBN 4
  1951. #define FRF_AB_XX_DTXB_WIDTH 4
  1952. #define FRF_AB_XX_DTXA_LBN 0
  1953. #define FRF_AB_XX_DTXA_WIDTH 4
  1954. /* XX_PRBS_CTL_REG: documentation to be written for sum_XX_PRBS_CTL_REG */
  1955. #define FR_AB_XX_PRBS_CTL 0x00001330
  1956. #define FRF_AB_XX_CH3_RX_PRBS_SEL_LBN 30
  1957. #define FRF_AB_XX_CH3_RX_PRBS_SEL_WIDTH 2
  1958. #define FRF_AB_XX_CH3_RX_PRBS_INV_LBN 29
  1959. #define FRF_AB_XX_CH3_RX_PRBS_INV_WIDTH 1
  1960. #define FRF_AB_XX_CH3_RX_PRBS_CHKEN_LBN 28
  1961. #define FRF_AB_XX_CH3_RX_PRBS_CHKEN_WIDTH 1
  1962. #define FRF_AB_XX_CH2_RX_PRBS_SEL_LBN 26
  1963. #define FRF_AB_XX_CH2_RX_PRBS_SEL_WIDTH 2
  1964. #define FRF_AB_XX_CH2_RX_PRBS_INV_LBN 25
  1965. #define FRF_AB_XX_CH2_RX_PRBS_INV_WIDTH 1
  1966. #define FRF_AB_XX_CH2_RX_PRBS_CHKEN_LBN 24
  1967. #define FRF_AB_XX_CH2_RX_PRBS_CHKEN_WIDTH 1
  1968. #define FRF_AB_XX_CH1_RX_PRBS_SEL_LBN 22
  1969. #define FRF_AB_XX_CH1_RX_PRBS_SEL_WIDTH 2
  1970. #define FRF_AB_XX_CH1_RX_PRBS_INV_LBN 21
  1971. #define FRF_AB_XX_CH1_RX_PRBS_INV_WIDTH 1
  1972. #define FRF_AB_XX_CH1_RX_PRBS_CHKEN_LBN 20
  1973. #define FRF_AB_XX_CH1_RX_PRBS_CHKEN_WIDTH 1
  1974. #define FRF_AB_XX_CH0_RX_PRBS_SEL_LBN 18
  1975. #define FRF_AB_XX_CH0_RX_PRBS_SEL_WIDTH 2
  1976. #define FRF_AB_XX_CH0_RX_PRBS_INV_LBN 17
  1977. #define FRF_AB_XX_CH0_RX_PRBS_INV_WIDTH 1
  1978. #define FRF_AB_XX_CH0_RX_PRBS_CHKEN_LBN 16
  1979. #define FRF_AB_XX_CH0_RX_PRBS_CHKEN_WIDTH 1
  1980. #define FRF_AB_XX_CH3_TX_PRBS_SEL_LBN 14
  1981. #define FRF_AB_XX_CH3_TX_PRBS_SEL_WIDTH 2
  1982. #define FRF_AB_XX_CH3_TX_PRBS_INV_LBN 13
  1983. #define FRF_AB_XX_CH3_TX_PRBS_INV_WIDTH 1
  1984. #define FRF_AB_XX_CH3_TX_PRBS_CHKEN_LBN 12
  1985. #define FRF_AB_XX_CH3_TX_PRBS_CHKEN_WIDTH 1
  1986. #define FRF_AB_XX_CH2_TX_PRBS_SEL_LBN 10
  1987. #define FRF_AB_XX_CH2_TX_PRBS_SEL_WIDTH 2
  1988. #define FRF_AB_XX_CH2_TX_PRBS_INV_LBN 9
  1989. #define FRF_AB_XX_CH2_TX_PRBS_INV_WIDTH 1
  1990. #define FRF_AB_XX_CH2_TX_PRBS_CHKEN_LBN 8
  1991. #define FRF_AB_XX_CH2_TX_PRBS_CHKEN_WIDTH 1
  1992. #define FRF_AB_XX_CH1_TX_PRBS_SEL_LBN 6
  1993. #define FRF_AB_XX_CH1_TX_PRBS_SEL_WIDTH 2
  1994. #define FRF_AB_XX_CH1_TX_PRBS_INV_LBN 5
  1995. #define FRF_AB_XX_CH1_TX_PRBS_INV_WIDTH 1
  1996. #define FRF_AB_XX_CH1_TX_PRBS_CHKEN_LBN 4
  1997. #define FRF_AB_XX_CH1_TX_PRBS_CHKEN_WIDTH 1
  1998. #define FRF_AB_XX_CH0_TX_PRBS_SEL_LBN 2
  1999. #define FRF_AB_XX_CH0_TX_PRBS_SEL_WIDTH 2
  2000. #define FRF_AB_XX_CH0_TX_PRBS_INV_LBN 1
  2001. #define FRF_AB_XX_CH0_TX_PRBS_INV_WIDTH 1
  2002. #define FRF_AB_XX_CH0_TX_PRBS_CHKEN_LBN 0
  2003. #define FRF_AB_XX_CH0_TX_PRBS_CHKEN_WIDTH 1
  2004. /* XX_PRBS_CHK_REG: documentation to be written for sum_XX_PRBS_CHK_REG */
  2005. #define FR_AB_XX_PRBS_CHK 0x00001340
  2006. #define FRF_AB_XX_REV_LB_EN_LBN 16
  2007. #define FRF_AB_XX_REV_LB_EN_WIDTH 1
  2008. #define FRF_AB_XX_CH3_DEG_DET_LBN 15
  2009. #define FRF_AB_XX_CH3_DEG_DET_WIDTH 1
  2010. #define FRF_AB_XX_CH3_LFSR_LOCK_IND_LBN 14
  2011. #define FRF_AB_XX_CH3_LFSR_LOCK_IND_WIDTH 1
  2012. #define FRF_AB_XX_CH3_PRBS_FRUN_LBN 13
  2013. #define FRF_AB_XX_CH3_PRBS_FRUN_WIDTH 1
  2014. #define FRF_AB_XX_CH3_ERR_CHK_LBN 12
  2015. #define FRF_AB_XX_CH3_ERR_CHK_WIDTH 1
  2016. #define FRF_AB_XX_CH2_DEG_DET_LBN 11
  2017. #define FRF_AB_XX_CH2_DEG_DET_WIDTH 1
  2018. #define FRF_AB_XX_CH2_LFSR_LOCK_IND_LBN 10
  2019. #define FRF_AB_XX_CH2_LFSR_LOCK_IND_WIDTH 1
  2020. #define FRF_AB_XX_CH2_PRBS_FRUN_LBN 9
  2021. #define FRF_AB_XX_CH2_PRBS_FRUN_WIDTH 1
  2022. #define FRF_AB_XX_CH2_ERR_CHK_LBN 8
  2023. #define FRF_AB_XX_CH2_ERR_CHK_WIDTH 1
  2024. #define FRF_AB_XX_CH1_DEG_DET_LBN 7
  2025. #define FRF_AB_XX_CH1_DEG_DET_WIDTH 1
  2026. #define FRF_AB_XX_CH1_LFSR_LOCK_IND_LBN 6
  2027. #define FRF_AB_XX_CH1_LFSR_LOCK_IND_WIDTH 1
  2028. #define FRF_AB_XX_CH1_PRBS_FRUN_LBN 5
  2029. #define FRF_AB_XX_CH1_PRBS_FRUN_WIDTH 1
  2030. #define FRF_AB_XX_CH1_ERR_CHK_LBN 4
  2031. #define FRF_AB_XX_CH1_ERR_CHK_WIDTH 1
  2032. #define FRF_AB_XX_CH0_DEG_DET_LBN 3
  2033. #define FRF_AB_XX_CH0_DEG_DET_WIDTH 1
  2034. #define FRF_AB_XX_CH0_LFSR_LOCK_IND_LBN 2
  2035. #define FRF_AB_XX_CH0_LFSR_LOCK_IND_WIDTH 1
  2036. #define FRF_AB_XX_CH0_PRBS_FRUN_LBN 1
  2037. #define FRF_AB_XX_CH0_PRBS_FRUN_WIDTH 1
  2038. #define FRF_AB_XX_CH0_ERR_CHK_LBN 0
  2039. #define FRF_AB_XX_CH0_ERR_CHK_WIDTH 1
  2040. /* XX_PRBS_ERR_REG: documentation to be written for sum_XX_PRBS_ERR_REG */
  2041. #define FR_AB_XX_PRBS_ERR 0x00001350
  2042. #define FRF_AB_XX_CH3_PRBS_ERR_CNT_LBN 24
  2043. #define FRF_AB_XX_CH3_PRBS_ERR_CNT_WIDTH 8
  2044. #define FRF_AB_XX_CH2_PRBS_ERR_CNT_LBN 16
  2045. #define FRF_AB_XX_CH2_PRBS_ERR_CNT_WIDTH 8
  2046. #define FRF_AB_XX_CH1_PRBS_ERR_CNT_LBN 8
  2047. #define FRF_AB_XX_CH1_PRBS_ERR_CNT_WIDTH 8
  2048. #define FRF_AB_XX_CH0_PRBS_ERR_CNT_LBN 0
  2049. #define FRF_AB_XX_CH0_PRBS_ERR_CNT_WIDTH 8
  2050. /* XX_CORE_STAT_REG: XAUI XGXS core status register */
  2051. #define FR_AB_XX_CORE_STAT 0x00001360
  2052. #define FRF_AB_XX_FORCE_SIG3_LBN 31
  2053. #define FRF_AB_XX_FORCE_SIG3_WIDTH 1
  2054. #define FRF_AB_XX_FORCE_SIG3_VAL_LBN 30
  2055. #define FRF_AB_XX_FORCE_SIG3_VAL_WIDTH 1
  2056. #define FRF_AB_XX_FORCE_SIG2_LBN 29
  2057. #define FRF_AB_XX_FORCE_SIG2_WIDTH 1
  2058. #define FRF_AB_XX_FORCE_SIG2_VAL_LBN 28
  2059. #define FRF_AB_XX_FORCE_SIG2_VAL_WIDTH 1
  2060. #define FRF_AB_XX_FORCE_SIG1_LBN 27
  2061. #define FRF_AB_XX_FORCE_SIG1_WIDTH 1
  2062. #define FRF_AB_XX_FORCE_SIG1_VAL_LBN 26
  2063. #define FRF_AB_XX_FORCE_SIG1_VAL_WIDTH 1
  2064. #define FRF_AB_XX_FORCE_SIG0_LBN 25
  2065. #define FRF_AB_XX_FORCE_SIG0_WIDTH 1
  2066. #define FRF_AB_XX_FORCE_SIG0_VAL_LBN 24
  2067. #define FRF_AB_XX_FORCE_SIG0_VAL_WIDTH 1
  2068. #define FRF_AB_XX_XGXS_LB_EN_LBN 23
  2069. #define FRF_AB_XX_XGXS_LB_EN_WIDTH 1
  2070. #define FRF_AB_XX_XGMII_LB_EN_LBN 22
  2071. #define FRF_AB_XX_XGMII_LB_EN_WIDTH 1
  2072. #define FRF_AB_XX_MATCH_FAULT_LBN 21
  2073. #define FRF_AB_XX_MATCH_FAULT_WIDTH 1
  2074. #define FRF_AB_XX_ALIGN_DONE_LBN 20
  2075. #define FRF_AB_XX_ALIGN_DONE_WIDTH 1
  2076. #define FRF_AB_XX_SYNC_STAT3_LBN 19
  2077. #define FRF_AB_XX_SYNC_STAT3_WIDTH 1
  2078. #define FRF_AB_XX_SYNC_STAT2_LBN 18
  2079. #define FRF_AB_XX_SYNC_STAT2_WIDTH 1
  2080. #define FRF_AB_XX_SYNC_STAT1_LBN 17
  2081. #define FRF_AB_XX_SYNC_STAT1_WIDTH 1
  2082. #define FRF_AB_XX_SYNC_STAT0_LBN 16
  2083. #define FRF_AB_XX_SYNC_STAT0_WIDTH 1
  2084. #define FRF_AB_XX_COMMA_DET_CH3_LBN 15
  2085. #define FRF_AB_XX_COMMA_DET_CH3_WIDTH 1
  2086. #define FRF_AB_XX_COMMA_DET_CH2_LBN 14
  2087. #define FRF_AB_XX_COMMA_DET_CH2_WIDTH 1
  2088. #define FRF_AB_XX_COMMA_DET_CH1_LBN 13
  2089. #define FRF_AB_XX_COMMA_DET_CH1_WIDTH 1
  2090. #define FRF_AB_XX_COMMA_DET_CH0_LBN 12
  2091. #define FRF_AB_XX_COMMA_DET_CH0_WIDTH 1
  2092. #define FRF_AB_XX_CGRP_ALIGN_CH3_LBN 11
  2093. #define FRF_AB_XX_CGRP_ALIGN_CH3_WIDTH 1
  2094. #define FRF_AB_XX_CGRP_ALIGN_CH2_LBN 10
  2095. #define FRF_AB_XX_CGRP_ALIGN_CH2_WIDTH 1
  2096. #define FRF_AB_XX_CGRP_ALIGN_CH1_LBN 9
  2097. #define FRF_AB_XX_CGRP_ALIGN_CH1_WIDTH 1
  2098. #define FRF_AB_XX_CGRP_ALIGN_CH0_LBN 8
  2099. #define FRF_AB_XX_CGRP_ALIGN_CH0_WIDTH 1
  2100. #define FRF_AB_XX_CHAR_ERR_CH3_LBN 7
  2101. #define FRF_AB_XX_CHAR_ERR_CH3_WIDTH 1
  2102. #define FRF_AB_XX_CHAR_ERR_CH2_LBN 6
  2103. #define FRF_AB_XX_CHAR_ERR_CH2_WIDTH 1
  2104. #define FRF_AB_XX_CHAR_ERR_CH1_LBN 5
  2105. #define FRF_AB_XX_CHAR_ERR_CH1_WIDTH 1
  2106. #define FRF_AB_XX_CHAR_ERR_CH0_LBN 4
  2107. #define FRF_AB_XX_CHAR_ERR_CH0_WIDTH 1
  2108. #define FRF_AB_XX_DISPERR_CH3_LBN 3
  2109. #define FRF_AB_XX_DISPERR_CH3_WIDTH 1
  2110. #define FRF_AB_XX_DISPERR_CH2_LBN 2
  2111. #define FRF_AB_XX_DISPERR_CH2_WIDTH 1
  2112. #define FRF_AB_XX_DISPERR_CH1_LBN 1
  2113. #define FRF_AB_XX_DISPERR_CH1_WIDTH 1
  2114. #define FRF_AB_XX_DISPERR_CH0_LBN 0
  2115. #define FRF_AB_XX_DISPERR_CH0_WIDTH 1
  2116. /* RX_DESC_PTR_TBL_KER: Receive descriptor pointer table */
  2117. #define FR_AA_RX_DESC_PTR_TBL_KER 0x00011800
  2118. #define FR_AA_RX_DESC_PTR_TBL_KER_STEP 16
  2119. #define FR_AA_RX_DESC_PTR_TBL_KER_ROWS 4
  2120. /* RX_DESC_PTR_TBL: Receive descriptor pointer table */
  2121. #define FR_BZ_RX_DESC_PTR_TBL 0x00f40000
  2122. #define FR_BZ_RX_DESC_PTR_TBL_STEP 16
  2123. #define FR_BB_RX_DESC_PTR_TBL_ROWS 4096
  2124. #define FR_CZ_RX_DESC_PTR_TBL_ROWS 1024
  2125. #define FRF_CZ_RX_HDR_SPLIT_LBN 90
  2126. #define FRF_CZ_RX_HDR_SPLIT_WIDTH 1
  2127. #define FRF_AA_RX_RESET_LBN 89
  2128. #define FRF_AA_RX_RESET_WIDTH 1
  2129. #define FRF_AZ_RX_ISCSI_DDIG_EN_LBN 88
  2130. #define FRF_AZ_RX_ISCSI_DDIG_EN_WIDTH 1
  2131. #define FRF_AZ_RX_ISCSI_HDIG_EN_LBN 87
  2132. #define FRF_AZ_RX_ISCSI_HDIG_EN_WIDTH 1
  2133. #define FRF_AZ_RX_DESC_PREF_ACT_LBN 86
  2134. #define FRF_AZ_RX_DESC_PREF_ACT_WIDTH 1
  2135. #define FRF_AZ_RX_DC_HW_RPTR_LBN 80
  2136. #define FRF_AZ_RX_DC_HW_RPTR_WIDTH 6
  2137. #define FRF_AZ_RX_DESCQ_HW_RPTR_LBN 68
  2138. #define FRF_AZ_RX_DESCQ_HW_RPTR_WIDTH 12
  2139. #define FRF_AZ_RX_DESCQ_SW_WPTR_LBN 56
  2140. #define FRF_AZ_RX_DESCQ_SW_WPTR_WIDTH 12
  2141. #define FRF_AZ_RX_DESCQ_BUF_BASE_ID_LBN 36
  2142. #define FRF_AZ_RX_DESCQ_BUF_BASE_ID_WIDTH 20
  2143. #define FRF_AZ_RX_DESCQ_EVQ_ID_LBN 24
  2144. #define FRF_AZ_RX_DESCQ_EVQ_ID_WIDTH 12
  2145. #define FRF_AZ_RX_DESCQ_OWNER_ID_LBN 10
  2146. #define FRF_AZ_RX_DESCQ_OWNER_ID_WIDTH 14
  2147. #define FRF_AZ_RX_DESCQ_LABEL_LBN 5
  2148. #define FRF_AZ_RX_DESCQ_LABEL_WIDTH 5
  2149. #define FRF_AZ_RX_DESCQ_SIZE_LBN 3
  2150. #define FRF_AZ_RX_DESCQ_SIZE_WIDTH 2
  2151. #define FFE_AZ_RX_DESCQ_SIZE_4K 3
  2152. #define FFE_AZ_RX_DESCQ_SIZE_2K 2
  2153. #define FFE_AZ_RX_DESCQ_SIZE_1K 1
  2154. #define FFE_AZ_RX_DESCQ_SIZE_512 0
  2155. #define FRF_AZ_RX_DESCQ_TYPE_LBN 2
  2156. #define FRF_AZ_RX_DESCQ_TYPE_WIDTH 1
  2157. #define FRF_AZ_RX_DESCQ_JUMBO_LBN 1
  2158. #define FRF_AZ_RX_DESCQ_JUMBO_WIDTH 1
  2159. #define FRF_AZ_RX_DESCQ_EN_LBN 0
  2160. #define FRF_AZ_RX_DESCQ_EN_WIDTH 1
  2161. /* TX_DESC_PTR_TBL_KER: Transmit descriptor pointer */
  2162. #define FR_AA_TX_DESC_PTR_TBL_KER 0x00011900
  2163. #define FR_AA_TX_DESC_PTR_TBL_KER_STEP 16
  2164. #define FR_AA_TX_DESC_PTR_TBL_KER_ROWS 8
  2165. /* TX_DESC_PTR_TBL: Transmit descriptor pointer */
  2166. #define FR_BZ_TX_DESC_PTR_TBL 0x00f50000
  2167. #define FR_BZ_TX_DESC_PTR_TBL_STEP 16
  2168. #define FR_BB_TX_DESC_PTR_TBL_ROWS 4096
  2169. #define FR_CZ_TX_DESC_PTR_TBL_ROWS 1024
  2170. #define FRF_CZ_TX_DPT_Q_MASK_WIDTH_LBN 94
  2171. #define FRF_CZ_TX_DPT_Q_MASK_WIDTH_WIDTH 2
  2172. #define FRF_CZ_TX_DPT_ETH_FILT_EN_LBN 93
  2173. #define FRF_CZ_TX_DPT_ETH_FILT_EN_WIDTH 1
  2174. #define FRF_CZ_TX_DPT_IP_FILT_EN_LBN 92
  2175. #define FRF_CZ_TX_DPT_IP_FILT_EN_WIDTH 1
  2176. #define FRF_BZ_TX_NON_IP_DROP_DIS_LBN 91
  2177. #define FRF_BZ_TX_NON_IP_DROP_DIS_WIDTH 1
  2178. #define FRF_BZ_TX_IP_CHKSM_DIS_LBN 90
  2179. #define FRF_BZ_TX_IP_CHKSM_DIS_WIDTH 1
  2180. #define FRF_BZ_TX_TCP_CHKSM_DIS_LBN 89
  2181. #define FRF_BZ_TX_TCP_CHKSM_DIS_WIDTH 1
  2182. #define FRF_AZ_TX_DESCQ_EN_LBN 88
  2183. #define FRF_AZ_TX_DESCQ_EN_WIDTH 1
  2184. #define FRF_AZ_TX_ISCSI_DDIG_EN_LBN 87
  2185. #define FRF_AZ_TX_ISCSI_DDIG_EN_WIDTH 1
  2186. #define FRF_AZ_TX_ISCSI_HDIG_EN_LBN 86
  2187. #define FRF_AZ_TX_ISCSI_HDIG_EN_WIDTH 1
  2188. #define FRF_AZ_TX_DC_HW_RPTR_LBN 80
  2189. #define FRF_AZ_TX_DC_HW_RPTR_WIDTH 6
  2190. #define FRF_AZ_TX_DESCQ_HW_RPTR_LBN 68
  2191. #define FRF_AZ_TX_DESCQ_HW_RPTR_WIDTH 12
  2192. #define FRF_AZ_TX_DESCQ_SW_WPTR_LBN 56
  2193. #define FRF_AZ_TX_DESCQ_SW_WPTR_WIDTH 12
  2194. #define FRF_AZ_TX_DESCQ_BUF_BASE_ID_LBN 36
  2195. #define FRF_AZ_TX_DESCQ_BUF_BASE_ID_WIDTH 20
  2196. #define FRF_AZ_TX_DESCQ_EVQ_ID_LBN 24
  2197. #define FRF_AZ_TX_DESCQ_EVQ_ID_WIDTH 12
  2198. #define FRF_AZ_TX_DESCQ_OWNER_ID_LBN 10
  2199. #define FRF_AZ_TX_DESCQ_OWNER_ID_WIDTH 14
  2200. #define FRF_AZ_TX_DESCQ_LABEL_LBN 5
  2201. #define FRF_AZ_TX_DESCQ_LABEL_WIDTH 5
  2202. #define FRF_AZ_TX_DESCQ_SIZE_LBN 3
  2203. #define FRF_AZ_TX_DESCQ_SIZE_WIDTH 2
  2204. #define FFE_AZ_TX_DESCQ_SIZE_4K 3
  2205. #define FFE_AZ_TX_DESCQ_SIZE_2K 2
  2206. #define FFE_AZ_TX_DESCQ_SIZE_1K 1
  2207. #define FFE_AZ_TX_DESCQ_SIZE_512 0
  2208. #define FRF_AZ_TX_DESCQ_TYPE_LBN 1
  2209. #define FRF_AZ_TX_DESCQ_TYPE_WIDTH 2
  2210. #define FRF_AZ_TX_DESCQ_FLUSH_LBN 0
  2211. #define FRF_AZ_TX_DESCQ_FLUSH_WIDTH 1
  2212. /* EVQ_PTR_TBL_KER: Event queue pointer table */
  2213. #define FR_AA_EVQ_PTR_TBL_KER 0x00011a00
  2214. #define FR_AA_EVQ_PTR_TBL_KER_STEP 16
  2215. #define FR_AA_EVQ_PTR_TBL_KER_ROWS 4
  2216. /* EVQ_PTR_TBL: Event queue pointer table */
  2217. #define FR_BZ_EVQ_PTR_TBL 0x00f60000
  2218. #define FR_BZ_EVQ_PTR_TBL_STEP 16
  2219. #define FR_CZ_EVQ_PTR_TBL_ROWS 1024
  2220. #define FR_BB_EVQ_PTR_TBL_ROWS 4096
  2221. #define FRF_BZ_EVQ_RPTR_IGN_LBN 40
  2222. #define FRF_BZ_EVQ_RPTR_IGN_WIDTH 1
  2223. #define FRF_AB_EVQ_WKUP_OR_INT_EN_LBN 39
  2224. #define FRF_AB_EVQ_WKUP_OR_INT_EN_WIDTH 1
  2225. #define FRF_CZ_EVQ_DOS_PROTECT_EN_LBN 39
  2226. #define FRF_CZ_EVQ_DOS_PROTECT_EN_WIDTH 1
  2227. #define FRF_AZ_EVQ_NXT_WPTR_LBN 24
  2228. #define FRF_AZ_EVQ_NXT_WPTR_WIDTH 15
  2229. #define FRF_AZ_EVQ_EN_LBN 23
  2230. #define FRF_AZ_EVQ_EN_WIDTH 1
  2231. #define FRF_AZ_EVQ_SIZE_LBN 20
  2232. #define FRF_AZ_EVQ_SIZE_WIDTH 3
  2233. #define FFE_AZ_EVQ_SIZE_32K 6
  2234. #define FFE_AZ_EVQ_SIZE_16K 5
  2235. #define FFE_AZ_EVQ_SIZE_8K 4
  2236. #define FFE_AZ_EVQ_SIZE_4K 3
  2237. #define FFE_AZ_EVQ_SIZE_2K 2
  2238. #define FFE_AZ_EVQ_SIZE_1K 1
  2239. #define FFE_AZ_EVQ_SIZE_512 0
  2240. #define FRF_AZ_EVQ_BUF_BASE_ID_LBN 0
  2241. #define FRF_AZ_EVQ_BUF_BASE_ID_WIDTH 20
  2242. /* BUF_HALF_TBL_KER: Buffer table in half buffer table mode direct access by driver */
  2243. #define FR_AA_BUF_HALF_TBL_KER 0x00018000
  2244. #define FR_AA_BUF_HALF_TBL_KER_STEP 8
  2245. #define FR_AA_BUF_HALF_TBL_KER_ROWS 4096
  2246. /* BUF_HALF_TBL: Buffer table in half buffer table mode direct access by driver */
  2247. #define FR_BZ_BUF_HALF_TBL 0x00800000
  2248. #define FR_BZ_BUF_HALF_TBL_STEP 8
  2249. #define FR_CZ_BUF_HALF_TBL_ROWS 147456
  2250. #define FR_BB_BUF_HALF_TBL_ROWS 524288
  2251. #define FRF_AZ_BUF_ADR_HBUF_ODD_LBN 44
  2252. #define FRF_AZ_BUF_ADR_HBUF_ODD_WIDTH 20
  2253. #define FRF_AZ_BUF_OWNER_ID_HBUF_ODD_LBN 32
  2254. #define FRF_AZ_BUF_OWNER_ID_HBUF_ODD_WIDTH 12
  2255. #define FRF_AZ_BUF_ADR_HBUF_EVEN_LBN 12
  2256. #define FRF_AZ_BUF_ADR_HBUF_EVEN_WIDTH 20
  2257. #define FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_LBN 0
  2258. #define FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_WIDTH 12
  2259. /* BUF_FULL_TBL_KER: Buffer table in full buffer table mode direct access by driver */
  2260. #define FR_AA_BUF_FULL_TBL_KER 0x00018000
  2261. #define FR_AA_BUF_FULL_TBL_KER_STEP 8
  2262. #define FR_AA_BUF_FULL_TBL_KER_ROWS 4096
  2263. /* BUF_FULL_TBL: Buffer table in full buffer table mode direct access by driver */
  2264. #define FR_BZ_BUF_FULL_TBL 0x00800000
  2265. #define FR_BZ_BUF_FULL_TBL_STEP 8
  2266. #define FR_CZ_BUF_FULL_TBL_ROWS 147456
  2267. #define FR_BB_BUF_FULL_TBL_ROWS 917504
  2268. #define FRF_AZ_BUF_FULL_UNUSED_LBN 51
  2269. #define FRF_AZ_BUF_FULL_UNUSED_WIDTH 13
  2270. #define FRF_AZ_IP_DAT_BUF_SIZE_LBN 50
  2271. #define FRF_AZ_IP_DAT_BUF_SIZE_WIDTH 1
  2272. #define FRF_AZ_BUF_ADR_REGION_LBN 48
  2273. #define FRF_AZ_BUF_ADR_REGION_WIDTH 2
  2274. #define FFE_AZ_BUF_ADR_REGN3 3
  2275. #define FFE_AZ_BUF_ADR_REGN2 2
  2276. #define FFE_AZ_BUF_ADR_REGN1 1
  2277. #define FFE_AZ_BUF_ADR_REGN0 0
  2278. #define FRF_AZ_BUF_ADR_FBUF_LBN 14
  2279. #define FRF_AZ_BUF_ADR_FBUF_WIDTH 34
  2280. #define FRF_AZ_BUF_OWNER_ID_FBUF_LBN 0
  2281. #define FRF_AZ_BUF_OWNER_ID_FBUF_WIDTH 14
  2282. /* RX_FILTER_TBL0: TCP/IPv4 Receive filter table */
  2283. #define FR_BZ_RX_FILTER_TBL0 0x00f00000
  2284. #define FR_BZ_RX_FILTER_TBL0_STEP 32
  2285. #define FR_BZ_RX_FILTER_TBL0_ROWS 8192
  2286. /* RX_FILTER_TBL1: TCP/IPv4 Receive filter table */
  2287. #define FR_BB_RX_FILTER_TBL1 0x00f00010
  2288. #define FR_BB_RX_FILTER_TBL1_STEP 32
  2289. #define FR_BB_RX_FILTER_TBL1_ROWS 8192
  2290. #define FRF_BZ_RSS_EN_LBN 110
  2291. #define FRF_BZ_RSS_EN_WIDTH 1
  2292. #define FRF_BZ_SCATTER_EN_LBN 109
  2293. #define FRF_BZ_SCATTER_EN_WIDTH 1
  2294. #define FRF_BZ_TCP_UDP_LBN 108
  2295. #define FRF_BZ_TCP_UDP_WIDTH 1
  2296. #define FRF_BZ_RXQ_ID_LBN 96
  2297. #define FRF_BZ_RXQ_ID_WIDTH 12
  2298. #define FRF_BZ_DEST_IP_LBN 64
  2299. #define FRF_BZ_DEST_IP_WIDTH 32
  2300. #define FRF_BZ_DEST_PORT_TCP_LBN 48
  2301. #define FRF_BZ_DEST_PORT_TCP_WIDTH 16
  2302. #define FRF_BZ_SRC_IP_LBN 16
  2303. #define FRF_BZ_SRC_IP_WIDTH 32
  2304. #define FRF_BZ_SRC_TCP_DEST_UDP_LBN 0
  2305. #define FRF_BZ_SRC_TCP_DEST_UDP_WIDTH 16
  2306. /* RX_MAC_FILTER_TBL0: Receive Ethernet filter table */
  2307. #define FR_CZ_RX_MAC_FILTER_TBL0 0x00f00010
  2308. #define FR_CZ_RX_MAC_FILTER_TBL0_STEP 32
  2309. #define FR_CZ_RX_MAC_FILTER_TBL0_ROWS 512
  2310. #define FRF_CZ_RMFT_RSS_EN_LBN 75
  2311. #define FRF_CZ_RMFT_RSS_EN_WIDTH 1
  2312. #define FRF_CZ_RMFT_SCATTER_EN_LBN 74
  2313. #define FRF_CZ_RMFT_SCATTER_EN_WIDTH 1
  2314. #define FRF_CZ_RMFT_IP_OVERRIDE_LBN 73
  2315. #define FRF_CZ_RMFT_IP_OVERRIDE_WIDTH 1
  2316. #define FRF_CZ_RMFT_RXQ_ID_LBN 61
  2317. #define FRF_CZ_RMFT_RXQ_ID_WIDTH 12
  2318. #define FRF_CZ_RMFT_WILDCARD_MATCH_LBN 60
  2319. #define FRF_CZ_RMFT_WILDCARD_MATCH_WIDTH 1
  2320. #define FRF_CZ_RMFT_DEST_MAC_LBN 12
  2321. #define FRF_CZ_RMFT_DEST_MAC_WIDTH 48
  2322. #define FRF_CZ_RMFT_VLAN_ID_LBN 0
  2323. #define FRF_CZ_RMFT_VLAN_ID_WIDTH 12
  2324. /* TIMER_TBL: Timer table */
  2325. #define FR_BZ_TIMER_TBL 0x00f70000
  2326. #define FR_BZ_TIMER_TBL_STEP 16
  2327. #define FR_CZ_TIMER_TBL_ROWS 1024
  2328. #define FR_BB_TIMER_TBL_ROWS 4096
  2329. #define FRF_CZ_TIMER_Q_EN_LBN 33
  2330. #define FRF_CZ_TIMER_Q_EN_WIDTH 1
  2331. #define FRF_CZ_INT_ARMD_LBN 32
  2332. #define FRF_CZ_INT_ARMD_WIDTH 1
  2333. #define FRF_CZ_INT_PEND_LBN 31
  2334. #define FRF_CZ_INT_PEND_WIDTH 1
  2335. #define FRF_CZ_HOST_NOTIFY_MODE_LBN 30
  2336. #define FRF_CZ_HOST_NOTIFY_MODE_WIDTH 1
  2337. #define FRF_CZ_RELOAD_TIMER_VAL_LBN 16
  2338. #define FRF_CZ_RELOAD_TIMER_VAL_WIDTH 14
  2339. #define FRF_CZ_TIMER_MODE_LBN 14
  2340. #define FRF_CZ_TIMER_MODE_WIDTH 2
  2341. #define FFE_CZ_TIMER_MODE_INT_HLDOFF 3
  2342. #define FFE_CZ_TIMER_MODE_TRIG_START 2
  2343. #define FFE_CZ_TIMER_MODE_IMMED_START 1
  2344. #define FFE_CZ_TIMER_MODE_DIS 0
  2345. #define FRF_BB_TIMER_MODE_LBN 12
  2346. #define FRF_BB_TIMER_MODE_WIDTH 2
  2347. #define FFE_BB_TIMER_MODE_INT_HLDOFF 2
  2348. #define FFE_BB_TIMER_MODE_TRIG_START 2
  2349. #define FFE_BB_TIMER_MODE_IMMED_START 1
  2350. #define FFE_BB_TIMER_MODE_DIS 0
  2351. #define FRF_CZ_TIMER_VAL_LBN 0
  2352. #define FRF_CZ_TIMER_VAL_WIDTH 14
  2353. #define FRF_BB_TIMER_VAL_LBN 0
  2354. #define FRF_BB_TIMER_VAL_WIDTH 12
  2355. /* TX_PACE_TBL: Transmit pacing table */
  2356. #define FR_BZ_TX_PACE_TBL 0x00f80000
  2357. #define FR_BZ_TX_PACE_TBL_STEP 16
  2358. #define FR_CZ_TX_PACE_TBL_ROWS 1024
  2359. #define FR_BB_TX_PACE_TBL_ROWS 4096
  2360. #define FRF_BZ_TX_PACE_LBN 0
  2361. #define FRF_BZ_TX_PACE_WIDTH 5
  2362. /* RX_INDIRECTION_TBL: RX Indirection Table */
  2363. #define FR_BZ_RX_INDIRECTION_TBL 0x00fb0000
  2364. #define FR_BZ_RX_INDIRECTION_TBL_STEP 16
  2365. #define FR_BZ_RX_INDIRECTION_TBL_ROWS 128
  2366. #define FRF_BZ_IT_QUEUE_LBN 0
  2367. #define FRF_BZ_IT_QUEUE_WIDTH 6
  2368. /* TX_FILTER_TBL0: TCP/IPv4 Transmit filter table */
  2369. #define FR_CZ_TX_FILTER_TBL0 0x00fc0000
  2370. #define FR_CZ_TX_FILTER_TBL0_STEP 16
  2371. #define FR_CZ_TX_FILTER_TBL0_ROWS 8192
  2372. #define FRF_CZ_TIFT_TCP_UDP_LBN 108
  2373. #define FRF_CZ_TIFT_TCP_UDP_WIDTH 1
  2374. #define FRF_CZ_TIFT_TXQ_ID_LBN 96
  2375. #define FRF_CZ_TIFT_TXQ_ID_WIDTH 12
  2376. #define FRF_CZ_TIFT_DEST_IP_LBN 64
  2377. #define FRF_CZ_TIFT_DEST_IP_WIDTH 32
  2378. #define FRF_CZ_TIFT_DEST_PORT_TCP_LBN 48
  2379. #define FRF_CZ_TIFT_DEST_PORT_TCP_WIDTH 16
  2380. #define FRF_CZ_TIFT_SRC_IP_LBN 16
  2381. #define FRF_CZ_TIFT_SRC_IP_WIDTH 32
  2382. #define FRF_CZ_TIFT_SRC_TCP_DEST_UDP_LBN 0
  2383. #define FRF_CZ_TIFT_SRC_TCP_DEST_UDP_WIDTH 16
  2384. /* TX_MAC_FILTER_TBL0: Transmit Ethernet filter table */
  2385. #define FR_CZ_TX_MAC_FILTER_TBL0 0x00fe0000
  2386. #define FR_CZ_TX_MAC_FILTER_TBL0_STEP 16
  2387. #define FR_CZ_TX_MAC_FILTER_TBL0_ROWS 512
  2388. #define FRF_CZ_TMFT_TXQ_ID_LBN 61
  2389. #define FRF_CZ_TMFT_TXQ_ID_WIDTH 12
  2390. #define FRF_CZ_TMFT_WILDCARD_MATCH_LBN 60
  2391. #define FRF_CZ_TMFT_WILDCARD_MATCH_WIDTH 1
  2392. #define FRF_CZ_TMFT_SRC_MAC_LBN 12
  2393. #define FRF_CZ_TMFT_SRC_MAC_WIDTH 48
  2394. #define FRF_CZ_TMFT_VLAN_ID_LBN 0
  2395. #define FRF_CZ_TMFT_VLAN_ID_WIDTH 12
  2396. /* MC_TREG_SMEM: MC Shared Memory */
  2397. #define FR_CZ_MC_TREG_SMEM 0x00ff0000
  2398. #define FR_CZ_MC_TREG_SMEM_STEP 4
  2399. #define FR_CZ_MC_TREG_SMEM_ROWS 512
  2400. #define FRF_CZ_MC_TREG_SMEM_ROW_LBN 0
  2401. #define FRF_CZ_MC_TREG_SMEM_ROW_WIDTH 32
  2402. /* MSIX_VECTOR_TABLE: MSIX Vector Table */
  2403. #define FR_BB_MSIX_VECTOR_TABLE 0x00ff0000
  2404. #define FR_BZ_MSIX_VECTOR_TABLE_STEP 16
  2405. #define FR_BB_MSIX_VECTOR_TABLE_ROWS 64
  2406. /* MSIX_VECTOR_TABLE: MSIX Vector Table */
  2407. #define FR_CZ_MSIX_VECTOR_TABLE 0x00000000
  2408. /* FR_BZ_MSIX_VECTOR_TABLE_STEP 16 */
  2409. #define FR_CZ_MSIX_VECTOR_TABLE_ROWS 1024
  2410. #define FRF_BZ_MSIX_VECTOR_RESERVED_LBN 97
  2411. #define FRF_BZ_MSIX_VECTOR_RESERVED_WIDTH 31
  2412. #define FRF_BZ_MSIX_VECTOR_MASK_LBN 96
  2413. #define FRF_BZ_MSIX_VECTOR_MASK_WIDTH 1
  2414. #define FRF_BZ_MSIX_MESSAGE_DATA_LBN 64
  2415. #define FRF_BZ_MSIX_MESSAGE_DATA_WIDTH 32
  2416. #define FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_LBN 32
  2417. #define FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_WIDTH 32
  2418. #define FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_LBN 0
  2419. #define FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_WIDTH 32
  2420. /* MSIX_PBA_TABLE: MSIX Pending Bit Array */
  2421. #define FR_BB_MSIX_PBA_TABLE 0x00ff2000
  2422. #define FR_BZ_MSIX_PBA_TABLE_STEP 4
  2423. #define FR_BB_MSIX_PBA_TABLE_ROWS 2
  2424. /* MSIX_PBA_TABLE: MSIX Pending Bit Array */
  2425. #define FR_CZ_MSIX_PBA_TABLE 0x00008000
  2426. /* FR_BZ_MSIX_PBA_TABLE_STEP 4 */
  2427. #define FR_CZ_MSIX_PBA_TABLE_ROWS 32
  2428. #define FRF_BZ_MSIX_PBA_PEND_DWORD_LBN 0
  2429. #define FRF_BZ_MSIX_PBA_PEND_DWORD_WIDTH 32
  2430. /* SRM_DBG_REG: SRAM debug access */
  2431. #define FR_BZ_SRM_DBG 0x03000000
  2432. #define FR_BZ_SRM_DBG_STEP 8
  2433. #define FR_CZ_SRM_DBG_ROWS 262144
  2434. #define FR_BB_SRM_DBG_ROWS 2097152
  2435. #define FRF_BZ_SRM_DBG_LBN 0
  2436. #define FRF_BZ_SRM_DBG_WIDTH 64
  2437. /* TB_MSIX_PBA_TABLE: MSIX Pending Bit Array */
  2438. #define FR_CZ_TB_MSIX_PBA_TABLE 0x00008000
  2439. #define FR_CZ_TB_MSIX_PBA_TABLE_STEP 4
  2440. #define FR_CZ_TB_MSIX_PBA_TABLE_ROWS 1024
  2441. #define FRF_CZ_TB_MSIX_PBA_PEND_DWORD_LBN 0
  2442. #define FRF_CZ_TB_MSIX_PBA_PEND_DWORD_WIDTH 32
  2443. /* DRIVER_EV */
  2444. #define FSF_AZ_DRIVER_EV_SUBCODE_LBN 56
  2445. #define FSF_AZ_DRIVER_EV_SUBCODE_WIDTH 4
  2446. #define FSE_BZ_TX_DSC_ERROR_EV 15
  2447. #define FSE_BZ_RX_DSC_ERROR_EV 14
  2448. #define FSE_AA_RX_RECOVER_EV 11
  2449. #define FSE_AZ_TIMER_EV 10
  2450. #define FSE_AZ_TX_PKT_NON_TCP_UDP 9
  2451. #define FSE_AZ_WAKE_UP_EV 6
  2452. #define FSE_AZ_SRM_UPD_DONE_EV 5
  2453. #define FSE_AB_EVQ_NOT_EN_EV 3
  2454. #define FSE_AZ_EVQ_INIT_DONE_EV 2
  2455. #define FSE_AZ_RX_DESCQ_FLS_DONE_EV 1
  2456. #define FSE_AZ_TX_DESCQ_FLS_DONE_EV 0
  2457. #define FSF_AZ_DRIVER_EV_SUBDATA_LBN 0
  2458. #define FSF_AZ_DRIVER_EV_SUBDATA_WIDTH 14
  2459. /* EVENT_ENTRY */
  2460. #define FSF_AZ_EV_CODE_LBN 60
  2461. #define FSF_AZ_EV_CODE_WIDTH 4
  2462. #define FSE_CZ_EV_CODE_MCDI_EV 12
  2463. #define FSE_CZ_EV_CODE_USER_EV 8
  2464. #define FSE_AZ_EV_CODE_DRV_GEN_EV 7
  2465. #define FSE_AZ_EV_CODE_GLOBAL_EV 6
  2466. #define FSE_AZ_EV_CODE_DRIVER_EV 5
  2467. #define FSE_AZ_EV_CODE_TX_EV 2
  2468. #define FSE_AZ_EV_CODE_RX_EV 0
  2469. #define FSF_AZ_EV_DATA_LBN 0
  2470. #define FSF_AZ_EV_DATA_WIDTH 60
  2471. /* GLOBAL_EV */
  2472. #define FSF_BB_GLB_EV_RX_RECOVERY_LBN 12
  2473. #define FSF_BB_GLB_EV_RX_RECOVERY_WIDTH 1
  2474. #define FSF_AA_GLB_EV_RX_RECOVERY_LBN 11
  2475. #define FSF_AA_GLB_EV_RX_RECOVERY_WIDTH 1
  2476. #define FSF_BB_GLB_EV_XG_MGT_INTR_LBN 11
  2477. #define FSF_BB_GLB_EV_XG_MGT_INTR_WIDTH 1
  2478. #define FSF_AB_GLB_EV_XFP_PHY0_INTR_LBN 10
  2479. #define FSF_AB_GLB_EV_XFP_PHY0_INTR_WIDTH 1
  2480. #define FSF_AB_GLB_EV_XG_PHY0_INTR_LBN 9
  2481. #define FSF_AB_GLB_EV_XG_PHY0_INTR_WIDTH 1
  2482. #define FSF_AB_GLB_EV_G_PHY0_INTR_LBN 7
  2483. #define FSF_AB_GLB_EV_G_PHY0_INTR_WIDTH 1
  2484. /* LEGACY_INT_VEC */
  2485. #define FSF_AZ_NET_IVEC_FATAL_INT_LBN 64
  2486. #define FSF_AZ_NET_IVEC_FATAL_INT_WIDTH 1
  2487. #define FSF_AZ_NET_IVEC_INT_Q_LBN 40
  2488. #define FSF_AZ_NET_IVEC_INT_Q_WIDTH 4
  2489. #define FSF_AZ_NET_IVEC_INT_FLAG_LBN 32
  2490. #define FSF_AZ_NET_IVEC_INT_FLAG_WIDTH 1
  2491. #define FSF_AZ_NET_IVEC_EVQ_FIFO_HF_LBN 1
  2492. #define FSF_AZ_NET_IVEC_EVQ_FIFO_HF_WIDTH 1
  2493. #define FSF_AZ_NET_IVEC_EVQ_FIFO_AF_LBN 0
  2494. #define FSF_AZ_NET_IVEC_EVQ_FIFO_AF_WIDTH 1
  2495. /* MC_XGMAC_FLTR_RULE_DEF */
  2496. #define FSF_CZ_MC_XFRC_MODE_LBN 416
  2497. #define FSF_CZ_MC_XFRC_MODE_WIDTH 1
  2498. #define FSE_CZ_MC_XFRC_MODE_LAYERED 1
  2499. #define FSE_CZ_MC_XFRC_MODE_SIMPLE 0
  2500. #define FSF_CZ_MC_XFRC_HASH_LBN 384
  2501. #define FSF_CZ_MC_XFRC_HASH_WIDTH 32
  2502. #define FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_LBN 256
  2503. #define FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_WIDTH 128
  2504. #define FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_LBN 128
  2505. #define FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_WIDTH 128
  2506. #define FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_LBN 0
  2507. #define FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_WIDTH 128
  2508. /* RX_EV */
  2509. #define FSF_CZ_RX_EV_PKT_NOT_PARSED_LBN 58
  2510. #define FSF_CZ_RX_EV_PKT_NOT_PARSED_WIDTH 1
  2511. #define FSF_CZ_RX_EV_IPV6_PKT_LBN 57
  2512. #define FSF_CZ_RX_EV_IPV6_PKT_WIDTH 1
  2513. #define FSF_AZ_RX_EV_PKT_OK_LBN 56
  2514. #define FSF_AZ_RX_EV_PKT_OK_WIDTH 1
  2515. #define FSF_AZ_RX_EV_PAUSE_FRM_ERR_LBN 55
  2516. #define FSF_AZ_RX_EV_PAUSE_FRM_ERR_WIDTH 1
  2517. #define FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_LBN 54
  2518. #define FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_WIDTH 1
  2519. #define FSF_AZ_RX_EV_IP_FRAG_ERR_LBN 53
  2520. #define FSF_AZ_RX_EV_IP_FRAG_ERR_WIDTH 1
  2521. #define FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_LBN 52
  2522. #define FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_WIDTH 1
  2523. #define FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_LBN 51
  2524. #define FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_WIDTH 1
  2525. #define FSF_AZ_RX_EV_ETH_CRC_ERR_LBN 50
  2526. #define FSF_AZ_RX_EV_ETH_CRC_ERR_WIDTH 1
  2527. #define FSF_AZ_RX_EV_FRM_TRUNC_LBN 49
  2528. #define FSF_AZ_RX_EV_FRM_TRUNC_WIDTH 1
  2529. #define FSF_AA_RX_EV_DRIB_NIB_LBN 49
  2530. #define FSF_AA_RX_EV_DRIB_NIB_WIDTH 1
  2531. #define FSF_AZ_RX_EV_TOBE_DISC_LBN 47
  2532. #define FSF_AZ_RX_EV_TOBE_DISC_WIDTH 1
  2533. #define FSF_AZ_RX_EV_PKT_TYPE_LBN 44
  2534. #define FSF_AZ_RX_EV_PKT_TYPE_WIDTH 3
  2535. #define FSE_AZ_RX_EV_PKT_TYPE_VLAN_JUMBO 5
  2536. #define FSE_AZ_RX_EV_PKT_TYPE_VLAN_LLC 4
  2537. #define FSE_AZ_RX_EV_PKT_TYPE_VLAN 3
  2538. #define FSE_AZ_RX_EV_PKT_TYPE_JUMBO 2
  2539. #define FSE_AZ_RX_EV_PKT_TYPE_LLC 1
  2540. #define FSE_AZ_RX_EV_PKT_TYPE_ETH 0
  2541. #define FSF_AZ_RX_EV_HDR_TYPE_LBN 42
  2542. #define FSF_AZ_RX_EV_HDR_TYPE_WIDTH 2
  2543. #define FSE_AZ_RX_EV_HDR_TYPE_OTHER 3
  2544. #define FSE_AB_RX_EV_HDR_TYPE_IPV4_OTHER 2
  2545. #define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_OTHER 2
  2546. #define FSE_AB_RX_EV_HDR_TYPE_IPV4_UDP 1
  2547. #define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP 1
  2548. #define FSE_AB_RX_EV_HDR_TYPE_IPV4_TCP 0
  2549. #define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP 0
  2550. #define FSF_AZ_RX_EV_DESC_Q_EMPTY_LBN 41
  2551. #define FSF_AZ_RX_EV_DESC_Q_EMPTY_WIDTH 1
  2552. #define FSF_AZ_RX_EV_MCAST_HASH_MATCH_LBN 40
  2553. #define FSF_AZ_RX_EV_MCAST_HASH_MATCH_WIDTH 1
  2554. #define FSF_AZ_RX_EV_MCAST_PKT_LBN 39
  2555. #define FSF_AZ_RX_EV_MCAST_PKT_WIDTH 1
  2556. #define FSF_AA_RX_EV_RECOVERY_FLAG_LBN 37
  2557. #define FSF_AA_RX_EV_RECOVERY_FLAG_WIDTH 1
  2558. #define FSF_AZ_RX_EV_Q_LABEL_LBN 32
  2559. #define FSF_AZ_RX_EV_Q_LABEL_WIDTH 5
  2560. #define FSF_AZ_RX_EV_JUMBO_CONT_LBN 31
  2561. #define FSF_AZ_RX_EV_JUMBO_CONT_WIDTH 1
  2562. #define FSF_AZ_RX_EV_PORT_LBN 30
  2563. #define FSF_AZ_RX_EV_PORT_WIDTH 1
  2564. #define FSF_AZ_RX_EV_BYTE_CNT_LBN 16
  2565. #define FSF_AZ_RX_EV_BYTE_CNT_WIDTH 14
  2566. #define FSF_AZ_RX_EV_SOP_LBN 15
  2567. #define FSF_AZ_RX_EV_SOP_WIDTH 1
  2568. #define FSF_AZ_RX_EV_ISCSI_PKT_OK_LBN 14
  2569. #define FSF_AZ_RX_EV_ISCSI_PKT_OK_WIDTH 1
  2570. #define FSF_AZ_RX_EV_ISCSI_DDIG_ERR_LBN 13
  2571. #define FSF_AZ_RX_EV_ISCSI_DDIG_ERR_WIDTH 1
  2572. #define FSF_AZ_RX_EV_ISCSI_HDIG_ERR_LBN 12
  2573. #define FSF_AZ_RX_EV_ISCSI_HDIG_ERR_WIDTH 1
  2574. #define FSF_AZ_RX_EV_DESC_PTR_LBN 0
  2575. #define FSF_AZ_RX_EV_DESC_PTR_WIDTH 12
  2576. /* RX_KER_DESC */
  2577. #define FSF_AZ_RX_KER_BUF_SIZE_LBN 48
  2578. #define FSF_AZ_RX_KER_BUF_SIZE_WIDTH 14
  2579. #define FSF_AZ_RX_KER_BUF_REGION_LBN 46
  2580. #define FSF_AZ_RX_KER_BUF_REGION_WIDTH 2
  2581. #define FSF_AZ_RX_KER_BUF_ADDR_LBN 0
  2582. #define FSF_AZ_RX_KER_BUF_ADDR_WIDTH 46
  2583. /* RX_USER_DESC */
  2584. #define FSF_AZ_RX_USER_2BYTE_OFFSET_LBN 20
  2585. #define FSF_AZ_RX_USER_2BYTE_OFFSET_WIDTH 12
  2586. #define FSF_AZ_RX_USER_BUF_ID_LBN 0
  2587. #define FSF_AZ_RX_USER_BUF_ID_WIDTH 20
  2588. /* TX_EV */
  2589. #define FSF_AZ_TX_EV_PKT_ERR_LBN 38
  2590. #define FSF_AZ_TX_EV_PKT_ERR_WIDTH 1
  2591. #define FSF_AZ_TX_EV_PKT_TOO_BIG_LBN 37
  2592. #define FSF_AZ_TX_EV_PKT_TOO_BIG_WIDTH 1
  2593. #define FSF_AZ_TX_EV_Q_LABEL_LBN 32
  2594. #define FSF_AZ_TX_EV_Q_LABEL_WIDTH 5
  2595. #define FSF_AZ_TX_EV_PORT_LBN 16
  2596. #define FSF_AZ_TX_EV_PORT_WIDTH 1
  2597. #define FSF_AZ_TX_EV_WQ_FF_FULL_LBN 15
  2598. #define FSF_AZ_TX_EV_WQ_FF_FULL_WIDTH 1
  2599. #define FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_LBN 14
  2600. #define FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_WIDTH 1
  2601. #define FSF_AZ_TX_EV_COMP_LBN 12
  2602. #define FSF_AZ_TX_EV_COMP_WIDTH 1
  2603. #define FSF_AZ_TX_EV_DESC_PTR_LBN 0
  2604. #define FSF_AZ_TX_EV_DESC_PTR_WIDTH 12
  2605. /* TX_KER_DESC */
  2606. #define FSF_AZ_TX_KER_CONT_LBN 62
  2607. #define FSF_AZ_TX_KER_CONT_WIDTH 1
  2608. #define FSF_AZ_TX_KER_BYTE_COUNT_LBN 48
  2609. #define FSF_AZ_TX_KER_BYTE_COUNT_WIDTH 14
  2610. #define FSF_AZ_TX_KER_BUF_REGION_LBN 46
  2611. #define FSF_AZ_TX_KER_BUF_REGION_WIDTH 2
  2612. #define FSF_AZ_TX_KER_BUF_ADDR_LBN 0
  2613. #define FSF_AZ_TX_KER_BUF_ADDR_WIDTH 46
  2614. /* TX_USER_DESC */
  2615. #define FSF_AZ_TX_USER_SW_EV_EN_LBN 48
  2616. #define FSF_AZ_TX_USER_SW_EV_EN_WIDTH 1
  2617. #define FSF_AZ_TX_USER_CONT_LBN 46
  2618. #define FSF_AZ_TX_USER_CONT_WIDTH 1
  2619. #define FSF_AZ_TX_USER_BYTE_CNT_LBN 33
  2620. #define FSF_AZ_TX_USER_BYTE_CNT_WIDTH 13
  2621. #define FSF_AZ_TX_USER_BUF_ID_LBN 13
  2622. #define FSF_AZ_TX_USER_BUF_ID_WIDTH 20
  2623. #define FSF_AZ_TX_USER_BYTE_OFS_LBN 0
  2624. #define FSF_AZ_TX_USER_BYTE_OFS_WIDTH 13
  2625. /* USER_EV */
  2626. #define FSF_CZ_USER_QID_LBN 32
  2627. #define FSF_CZ_USER_QID_WIDTH 10
  2628. #define FSF_CZ_USER_EV_REG_VALUE_LBN 0
  2629. #define FSF_CZ_USER_EV_REG_VALUE_WIDTH 32
  2630. /**************************************************************************
  2631. *
  2632. * Falcon B0 PCIe core indirect registers
  2633. *
  2634. **************************************************************************
  2635. */
  2636. #define FPCR_BB_PCIE_DEVICE_CTRL_STAT 0x68
  2637. #define FPCR_BB_PCIE_LINK_CTRL_STAT 0x70
  2638. #define FPCR_BB_ACK_RPL_TIMER 0x700
  2639. #define FPCRF_BB_ACK_TL_LBN 0
  2640. #define FPCRF_BB_ACK_TL_WIDTH 16
  2641. #define FPCRF_BB_RPL_TL_LBN 16
  2642. #define FPCRF_BB_RPL_TL_WIDTH 16
  2643. #define FPCR_BB_ACK_FREQ 0x70C
  2644. #define FPCRF_BB_ACK_FREQ_LBN 0
  2645. #define FPCRF_BB_ACK_FREQ_WIDTH 7
  2646. /**************************************************************************
  2647. *
  2648. * Pseudo-registers and fields
  2649. *
  2650. **************************************************************************
  2651. */
  2652. /* Interrupt acknowledge work-around register (A0/A1 only) */
  2653. #define FR_AA_WORK_AROUND_BROKEN_PCI_READS 0x0070
  2654. /* EE_SPI_HCMD_REG: SPI host command register */
  2655. /* Values for the EE_SPI_HCMD_SF_SEL register field */
  2656. #define FFE_AB_SPI_DEVICE_EEPROM 0
  2657. #define FFE_AB_SPI_DEVICE_FLASH 1
  2658. /* NIC_STAT_REG: NIC status register */
  2659. #define FRF_AB_STRAP_10G_LBN 2
  2660. #define FRF_AB_STRAP_10G_WIDTH 1
  2661. #define FRF_AA_STRAP_PCIE_LBN 0
  2662. #define FRF_AA_STRAP_PCIE_WIDTH 1
  2663. /* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */
  2664. #define FRF_AZ_FATAL_INTR_LBN 0
  2665. #define FRF_AZ_FATAL_INTR_WIDTH 12
  2666. /* SRM_CFG_REG: SRAM configuration register */
  2667. /* We treat the number of SRAM banks and bank size as a single field */
  2668. #define FRF_AZ_SRM_NB_SZ_LBN FRF_AZ_SRM_BANK_SIZE_LBN
  2669. #define FRF_AZ_SRM_NB_SZ_WIDTH \
  2670. (FRF_AZ_SRM_BANK_SIZE_WIDTH + FRF_AZ_SRM_NUM_BANK_WIDTH)
  2671. #define FFE_AB_SRM_NB1_SZ2M 0
  2672. #define FFE_AB_SRM_NB1_SZ4M 1
  2673. #define FFE_AB_SRM_NB1_SZ8M 2
  2674. #define FFE_AB_SRM_NB_SZ_DEF 3
  2675. #define FFE_AB_SRM_NB2_SZ4M 4
  2676. #define FFE_AB_SRM_NB2_SZ8M 5
  2677. #define FFE_AB_SRM_NB2_SZ16M 6
  2678. #define FFE_AB_SRM_NB_SZ_RES 7
  2679. /* RX_DESC_UPD_REGP0: Receive descriptor update register. */
  2680. /* We write just the last dword of these registers */
  2681. #define FR_AZ_RX_DESC_UPD_DWORD_P0 \
  2682. (BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
  2683. FR_BZ_RX_DESC_UPD_P0 + 3 * 4)
  2684. #define FRF_AZ_RX_DESC_WPTR_DWORD_LBN (FRF_AZ_RX_DESC_WPTR_LBN - 3 * 32)
  2685. #define FRF_AZ_RX_DESC_WPTR_DWORD_WIDTH FRF_AZ_RX_DESC_WPTR_WIDTH
  2686. /* TX_DESC_UPD_REGP0: Transmit descriptor update register. */
  2687. #define FR_AZ_TX_DESC_UPD_DWORD_P0 \
  2688. (BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
  2689. FR_BZ_TX_DESC_UPD_P0 + 3 * 4)
  2690. #define FRF_AZ_TX_DESC_WPTR_DWORD_LBN (FRF_AZ_TX_DESC_WPTR_LBN - 3 * 32)
  2691. #define FRF_AZ_TX_DESC_WPTR_DWORD_WIDTH FRF_AZ_TX_DESC_WPTR_WIDTH
  2692. /* GMF_CFG4_REG: GMAC FIFO configuration register 4 */
  2693. #define FRF_AB_GMF_HSTFLTRFRM_PAUSE_LBN 12
  2694. #define FRF_AB_GMF_HSTFLTRFRM_PAUSE_WIDTH 1
  2695. /* GMF_CFG5_REG: GMAC FIFO configuration register 5 */
  2696. #define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_LBN 12
  2697. #define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_WIDTH 1
  2698. /* XM_TX_PARAM_REG: XGMAC transmit parameter register */
  2699. #define FRF_AB_XM_MAX_TX_FRM_SIZE_LBN FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN
  2700. #define FRF_AB_XM_MAX_TX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH + \
  2701. FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH)
  2702. /* XM_RX_PARAM_REG: XGMAC receive parameter register */
  2703. #define FRF_AB_XM_MAX_RX_FRM_SIZE_LBN FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN
  2704. #define FRF_AB_XM_MAX_RX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH + \
  2705. FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH)
  2706. /* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */
  2707. /* Default values */
  2708. #define FFE_AB_XX_TXDRV_DEQ_DEF 0xe /* deq=.6 */
  2709. #define FFE_AB_XX_TXDRV_DTX_DEF 0x5 /* 1.25 */
  2710. #define FFE_AB_XX_SD_CTL_DRV_DEF 0 /* 20mA */
  2711. /* XX_CORE_STAT_REG: XAUI XGXS core status register */
  2712. /* XGXS all-lanes status fields */
  2713. #define FRF_AB_XX_SYNC_STAT_LBN FRF_AB_XX_SYNC_STAT0_LBN
  2714. #define FRF_AB_XX_SYNC_STAT_WIDTH 4
  2715. #define FRF_AB_XX_COMMA_DET_LBN FRF_AB_XX_COMMA_DET_CH0_LBN
  2716. #define FRF_AB_XX_COMMA_DET_WIDTH 4
  2717. #define FRF_AB_XX_CHAR_ERR_LBN FRF_AB_XX_CHAR_ERR_CH0_LBN
  2718. #define FRF_AB_XX_CHAR_ERR_WIDTH 4
  2719. #define FRF_AB_XX_DISPERR_LBN FRF_AB_XX_DISPERR_CH0_LBN
  2720. #define FRF_AB_XX_DISPERR_WIDTH 4
  2721. #define FFE_AB_XX_STAT_ALL_LANES 0xf
  2722. #define FRF_AB_XX_FORCE_SIG_LBN FRF_AB_XX_FORCE_SIG0_VAL_LBN
  2723. #define FRF_AB_XX_FORCE_SIG_WIDTH 8
  2724. #define FFE_AB_XX_FORCE_SIG_ALL_LANES 0xff
  2725. /* RX_MAC_FILTER_TBL0 */
  2726. /* RMFT_DEST_MAC is wider than 32 bits */
  2727. #define FRF_CZ_RMFT_DEST_MAC_LO_LBN FRF_CZ_RMFT_DEST_MAC_LBN
  2728. #define FRF_CZ_RMFT_DEST_MAC_LO_WIDTH 32
  2729. #define FRF_CZ_RMFT_DEST_MAC_HI_LBN (FRF_CZ_RMFT_DEST_MAC_LBN + 32)
  2730. #define FRF_CZ_RMFT_DEST_MAC_HI_WIDTH (FRF_CZ_RMFT_DEST_MAC_WIDTH - 32)
  2731. /* TX_MAC_FILTER_TBL0 */
  2732. /* TMFT_SRC_MAC is wider than 32 bits */
  2733. #define FRF_CZ_TMFT_SRC_MAC_LO_LBN FRF_CZ_TMFT_SRC_MAC_LBN
  2734. #define FRF_CZ_TMFT_SRC_MAC_LO_WIDTH 32
  2735. #define FRF_CZ_TMFT_SRC_MAC_HI_LBN (FRF_CZ_TMFT_SRC_MAC_LBN + 32)
  2736. #define FRF_CZ_TMFT_SRC_MAC_HI_WIDTH (FRF_CZ_TMFT_SRC_MAC_WIDTH - 32)
  2737. /* TX_PACE_TBL */
  2738. /* Values >20 are documented as reserved, but will result in a queue going
  2739. * into the fast bin with a pace value of zero. */
  2740. #define FFE_BZ_TX_PACE_OFF 0
  2741. #define FFE_BZ_TX_PACE_RESERVED 21
  2742. /* DRIVER_EV */
  2743. /* Sub-fields of an RX flush completion event */
  2744. #define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_LBN 12
  2745. #define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_WIDTH 1
  2746. #define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_LBN 0
  2747. #define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_WIDTH 12
  2748. /* EVENT_ENTRY */
  2749. /* Magic number field for event test */
  2750. #define FSF_AZ_DRV_GEN_EV_MAGIC_LBN 0
  2751. #define FSF_AZ_DRV_GEN_EV_MAGIC_WIDTH 32
  2752. /* RX packet prefix */
  2753. #define FS_BZ_RX_PREFIX_HASH_OFST 12
  2754. #define FS_BZ_RX_PREFIX_SIZE 16
  2755. #endif /* EFX_FARCH_REGS_H */