t4_regs.h 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094
  1. /*
  2. * This file is part of the Chelsio T4 Ethernet driver for Linux.
  3. *
  4. * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
  5. *
  6. * This software is available to you under a choice of one of two
  7. * licenses. You may choose to be licensed under the terms of the GNU
  8. * General Public License (GPL) Version 2, available from the file
  9. * COPYING in the main directory of this source tree, or the
  10. * OpenIB.org BSD license below:
  11. *
  12. * Redistribution and use in source and binary forms, with or
  13. * without modification, are permitted provided that the following
  14. * conditions are met:
  15. *
  16. * - Redistributions of source code must retain the above
  17. * copyright notice, this list of conditions and the following
  18. * disclaimer.
  19. *
  20. * - Redistributions in binary form must reproduce the above
  21. * copyright notice, this list of conditions and the following
  22. * disclaimer in the documentation and/or other materials
  23. * provided with the distribution.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  28. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  29. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  30. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  31. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  32. * SOFTWARE.
  33. */
  34. #ifndef __T4_REGS_H
  35. #define __T4_REGS_H
  36. #define MYPF_BASE 0x1b000
  37. #define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
  38. #define PF0_BASE 0x1e000
  39. #define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
  40. #define PF_STRIDE 0x400
  41. #define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
  42. #define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
  43. #define MYPORT_BASE 0x1c000
  44. #define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
  45. #define PORT0_BASE 0x20000
  46. #define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
  47. #define PORT_STRIDE 0x2000
  48. #define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
  49. #define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
  50. #define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
  51. #define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
  52. #define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
  53. #define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
  54. #define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  55. #define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  56. #define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  57. #define SGE_PF_KDOORBELL_A 0x0
  58. #define QID_S 15
  59. #define QID_V(x) ((x) << QID_S)
  60. #define DBPRIO_S 14
  61. #define DBPRIO_V(x) ((x) << DBPRIO_S)
  62. #define DBPRIO_F DBPRIO_V(1U)
  63. #define PIDX_S 0
  64. #define PIDX_V(x) ((x) << PIDX_S)
  65. #define SGE_VF_KDOORBELL_A 0x0
  66. #define DBTYPE_S 13
  67. #define DBTYPE_V(x) ((x) << DBTYPE_S)
  68. #define DBTYPE_F DBTYPE_V(1U)
  69. #define PIDX_T5_S 0
  70. #define PIDX_T5_M 0x1fffU
  71. #define PIDX_T5_V(x) ((x) << PIDX_T5_S)
  72. #define PIDX_T5_G(x) (((x) >> PIDX_T5_S) & PIDX_T5_M)
  73. #define SGE_PF_GTS_A 0x4
  74. #define INGRESSQID_S 16
  75. #define INGRESSQID_V(x) ((x) << INGRESSQID_S)
  76. #define TIMERREG_S 13
  77. #define TIMERREG_V(x) ((x) << TIMERREG_S)
  78. #define SEINTARM_S 12
  79. #define SEINTARM_V(x) ((x) << SEINTARM_S)
  80. #define CIDXINC_S 0
  81. #define CIDXINC_M 0xfffU
  82. #define CIDXINC_V(x) ((x) << CIDXINC_S)
  83. #define SGE_CONTROL_A 0x1008
  84. #define SGE_CONTROL2_A 0x1124
  85. #define RXPKTCPLMODE_S 18
  86. #define RXPKTCPLMODE_V(x) ((x) << RXPKTCPLMODE_S)
  87. #define RXPKTCPLMODE_F RXPKTCPLMODE_V(1U)
  88. #define EGRSTATUSPAGESIZE_S 17
  89. #define EGRSTATUSPAGESIZE_V(x) ((x) << EGRSTATUSPAGESIZE_S)
  90. #define EGRSTATUSPAGESIZE_F EGRSTATUSPAGESIZE_V(1U)
  91. #define PKTSHIFT_S 10
  92. #define PKTSHIFT_M 0x7U
  93. #define PKTSHIFT_V(x) ((x) << PKTSHIFT_S)
  94. #define PKTSHIFT_G(x) (((x) >> PKTSHIFT_S) & PKTSHIFT_M)
  95. #define INGPCIEBOUNDARY_S 7
  96. #define INGPCIEBOUNDARY_V(x) ((x) << INGPCIEBOUNDARY_S)
  97. #define INGPADBOUNDARY_S 4
  98. #define INGPADBOUNDARY_M 0x7U
  99. #define INGPADBOUNDARY_V(x) ((x) << INGPADBOUNDARY_S)
  100. #define INGPADBOUNDARY_G(x) (((x) >> INGPADBOUNDARY_S) & INGPADBOUNDARY_M)
  101. #define EGRPCIEBOUNDARY_S 1
  102. #define EGRPCIEBOUNDARY_V(x) ((x) << EGRPCIEBOUNDARY_S)
  103. #define INGPACKBOUNDARY_S 16
  104. #define INGPACKBOUNDARY_M 0x7U
  105. #define INGPACKBOUNDARY_V(x) ((x) << INGPACKBOUNDARY_S)
  106. #define INGPACKBOUNDARY_G(x) (((x) >> INGPACKBOUNDARY_S) \
  107. & INGPACKBOUNDARY_M)
  108. #define VFIFO_ENABLE_S 10
  109. #define VFIFO_ENABLE_V(x) ((x) << VFIFO_ENABLE_S)
  110. #define VFIFO_ENABLE_F VFIFO_ENABLE_V(1U)
  111. #define SGE_DBVFIFO_BADDR_A 0x1138
  112. #define DBVFIFO_SIZE_S 6
  113. #define DBVFIFO_SIZE_M 0xfffU
  114. #define DBVFIFO_SIZE_G(x) (((x) >> DBVFIFO_SIZE_S) & DBVFIFO_SIZE_M)
  115. #define T6_DBVFIFO_SIZE_S 0
  116. #define T6_DBVFIFO_SIZE_M 0x1fffU
  117. #define T6_DBVFIFO_SIZE_G(x) (((x) >> T6_DBVFIFO_SIZE_S) & T6_DBVFIFO_SIZE_M)
  118. #define GLOBALENABLE_S 0
  119. #define GLOBALENABLE_V(x) ((x) << GLOBALENABLE_S)
  120. #define GLOBALENABLE_F GLOBALENABLE_V(1U)
  121. #define SGE_HOST_PAGE_SIZE_A 0x100c
  122. #define HOSTPAGESIZEPF7_S 28
  123. #define HOSTPAGESIZEPF7_M 0xfU
  124. #define HOSTPAGESIZEPF7_V(x) ((x) << HOSTPAGESIZEPF7_S)
  125. #define HOSTPAGESIZEPF7_G(x) (((x) >> HOSTPAGESIZEPF7_S) & HOSTPAGESIZEPF7_M)
  126. #define HOSTPAGESIZEPF6_S 24
  127. #define HOSTPAGESIZEPF6_M 0xfU
  128. #define HOSTPAGESIZEPF6_V(x) ((x) << HOSTPAGESIZEPF6_S)
  129. #define HOSTPAGESIZEPF6_G(x) (((x) >> HOSTPAGESIZEPF6_S) & HOSTPAGESIZEPF6_M)
  130. #define HOSTPAGESIZEPF5_S 20
  131. #define HOSTPAGESIZEPF5_M 0xfU
  132. #define HOSTPAGESIZEPF5_V(x) ((x) << HOSTPAGESIZEPF5_S)
  133. #define HOSTPAGESIZEPF5_G(x) (((x) >> HOSTPAGESIZEPF5_S) & HOSTPAGESIZEPF5_M)
  134. #define HOSTPAGESIZEPF4_S 16
  135. #define HOSTPAGESIZEPF4_M 0xfU
  136. #define HOSTPAGESIZEPF4_V(x) ((x) << HOSTPAGESIZEPF4_S)
  137. #define HOSTPAGESIZEPF4_G(x) (((x) >> HOSTPAGESIZEPF4_S) & HOSTPAGESIZEPF4_M)
  138. #define HOSTPAGESIZEPF3_S 12
  139. #define HOSTPAGESIZEPF3_M 0xfU
  140. #define HOSTPAGESIZEPF3_V(x) ((x) << HOSTPAGESIZEPF3_S)
  141. #define HOSTPAGESIZEPF3_G(x) (((x) >> HOSTPAGESIZEPF3_S) & HOSTPAGESIZEPF3_M)
  142. #define HOSTPAGESIZEPF2_S 8
  143. #define HOSTPAGESIZEPF2_M 0xfU
  144. #define HOSTPAGESIZEPF2_V(x) ((x) << HOSTPAGESIZEPF2_S)
  145. #define HOSTPAGESIZEPF2_G(x) (((x) >> HOSTPAGESIZEPF2_S) & HOSTPAGESIZEPF2_M)
  146. #define HOSTPAGESIZEPF1_S 4
  147. #define HOSTPAGESIZEPF1_M 0xfU
  148. #define HOSTPAGESIZEPF1_V(x) ((x) << HOSTPAGESIZEPF1_S)
  149. #define HOSTPAGESIZEPF1_G(x) (((x) >> HOSTPAGESIZEPF1_S) & HOSTPAGESIZEPF1_M)
  150. #define HOSTPAGESIZEPF0_S 0
  151. #define HOSTPAGESIZEPF0_M 0xfU
  152. #define HOSTPAGESIZEPF0_V(x) ((x) << HOSTPAGESIZEPF0_S)
  153. #define HOSTPAGESIZEPF0_G(x) (((x) >> HOSTPAGESIZEPF0_S) & HOSTPAGESIZEPF0_M)
  154. #define SGE_EGRESS_QUEUES_PER_PAGE_PF_A 0x1010
  155. #define SGE_EGRESS_QUEUES_PER_PAGE_VF_A 0x1014
  156. #define QUEUESPERPAGEPF1_S 4
  157. #define QUEUESPERPAGEPF0_S 0
  158. #define QUEUESPERPAGEPF0_M 0xfU
  159. #define QUEUESPERPAGEPF0_V(x) ((x) << QUEUESPERPAGEPF0_S)
  160. #define QUEUESPERPAGEPF0_G(x) (((x) >> QUEUESPERPAGEPF0_S) & QUEUESPERPAGEPF0_M)
  161. #define SGE_INT_CAUSE1_A 0x1024
  162. #define SGE_INT_CAUSE2_A 0x1030
  163. #define SGE_INT_CAUSE3_A 0x103c
  164. #define ERR_FLM_DBP_S 31
  165. #define ERR_FLM_DBP_V(x) ((x) << ERR_FLM_DBP_S)
  166. #define ERR_FLM_DBP_F ERR_FLM_DBP_V(1U)
  167. #define ERR_FLM_IDMA1_S 30
  168. #define ERR_FLM_IDMA1_V(x) ((x) << ERR_FLM_IDMA1_S)
  169. #define ERR_FLM_IDMA1_F ERR_FLM_IDMA1_V(1U)
  170. #define ERR_FLM_IDMA0_S 29
  171. #define ERR_FLM_IDMA0_V(x) ((x) << ERR_FLM_IDMA0_S)
  172. #define ERR_FLM_IDMA0_F ERR_FLM_IDMA0_V(1U)
  173. #define ERR_FLM_HINT_S 28
  174. #define ERR_FLM_HINT_V(x) ((x) << ERR_FLM_HINT_S)
  175. #define ERR_FLM_HINT_F ERR_FLM_HINT_V(1U)
  176. #define ERR_PCIE_ERROR3_S 27
  177. #define ERR_PCIE_ERROR3_V(x) ((x) << ERR_PCIE_ERROR3_S)
  178. #define ERR_PCIE_ERROR3_F ERR_PCIE_ERROR3_V(1U)
  179. #define ERR_PCIE_ERROR2_S 26
  180. #define ERR_PCIE_ERROR2_V(x) ((x) << ERR_PCIE_ERROR2_S)
  181. #define ERR_PCIE_ERROR2_F ERR_PCIE_ERROR2_V(1U)
  182. #define ERR_PCIE_ERROR1_S 25
  183. #define ERR_PCIE_ERROR1_V(x) ((x) << ERR_PCIE_ERROR1_S)
  184. #define ERR_PCIE_ERROR1_F ERR_PCIE_ERROR1_V(1U)
  185. #define ERR_PCIE_ERROR0_S 24
  186. #define ERR_PCIE_ERROR0_V(x) ((x) << ERR_PCIE_ERROR0_S)
  187. #define ERR_PCIE_ERROR0_F ERR_PCIE_ERROR0_V(1U)
  188. #define ERR_CPL_EXCEED_IQE_SIZE_S 22
  189. #define ERR_CPL_EXCEED_IQE_SIZE_V(x) ((x) << ERR_CPL_EXCEED_IQE_SIZE_S)
  190. #define ERR_CPL_EXCEED_IQE_SIZE_F ERR_CPL_EXCEED_IQE_SIZE_V(1U)
  191. #define ERR_INVALID_CIDX_INC_S 21
  192. #define ERR_INVALID_CIDX_INC_V(x) ((x) << ERR_INVALID_CIDX_INC_S)
  193. #define ERR_INVALID_CIDX_INC_F ERR_INVALID_CIDX_INC_V(1U)
  194. #define ERR_CPL_OPCODE_0_S 19
  195. #define ERR_CPL_OPCODE_0_V(x) ((x) << ERR_CPL_OPCODE_0_S)
  196. #define ERR_CPL_OPCODE_0_F ERR_CPL_OPCODE_0_V(1U)
  197. #define ERR_DROPPED_DB_S 18
  198. #define ERR_DROPPED_DB_V(x) ((x) << ERR_DROPPED_DB_S)
  199. #define ERR_DROPPED_DB_F ERR_DROPPED_DB_V(1U)
  200. #define ERR_DATA_CPL_ON_HIGH_QID1_S 17
  201. #define ERR_DATA_CPL_ON_HIGH_QID1_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID1_S)
  202. #define ERR_DATA_CPL_ON_HIGH_QID1_F ERR_DATA_CPL_ON_HIGH_QID1_V(1U)
  203. #define ERR_DATA_CPL_ON_HIGH_QID0_S 16
  204. #define ERR_DATA_CPL_ON_HIGH_QID0_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID0_S)
  205. #define ERR_DATA_CPL_ON_HIGH_QID0_F ERR_DATA_CPL_ON_HIGH_QID0_V(1U)
  206. #define ERR_BAD_DB_PIDX3_S 15
  207. #define ERR_BAD_DB_PIDX3_V(x) ((x) << ERR_BAD_DB_PIDX3_S)
  208. #define ERR_BAD_DB_PIDX3_F ERR_BAD_DB_PIDX3_V(1U)
  209. #define ERR_BAD_DB_PIDX2_S 14
  210. #define ERR_BAD_DB_PIDX2_V(x) ((x) << ERR_BAD_DB_PIDX2_S)
  211. #define ERR_BAD_DB_PIDX2_F ERR_BAD_DB_PIDX2_V(1U)
  212. #define ERR_BAD_DB_PIDX1_S 13
  213. #define ERR_BAD_DB_PIDX1_V(x) ((x) << ERR_BAD_DB_PIDX1_S)
  214. #define ERR_BAD_DB_PIDX1_F ERR_BAD_DB_PIDX1_V(1U)
  215. #define ERR_BAD_DB_PIDX0_S 12
  216. #define ERR_BAD_DB_PIDX0_V(x) ((x) << ERR_BAD_DB_PIDX0_S)
  217. #define ERR_BAD_DB_PIDX0_F ERR_BAD_DB_PIDX0_V(1U)
  218. #define ERR_ING_CTXT_PRIO_S 10
  219. #define ERR_ING_CTXT_PRIO_V(x) ((x) << ERR_ING_CTXT_PRIO_S)
  220. #define ERR_ING_CTXT_PRIO_F ERR_ING_CTXT_PRIO_V(1U)
  221. #define ERR_EGR_CTXT_PRIO_S 9
  222. #define ERR_EGR_CTXT_PRIO_V(x) ((x) << ERR_EGR_CTXT_PRIO_S)
  223. #define ERR_EGR_CTXT_PRIO_F ERR_EGR_CTXT_PRIO_V(1U)
  224. #define DBFIFO_HP_INT_S 8
  225. #define DBFIFO_HP_INT_V(x) ((x) << DBFIFO_HP_INT_S)
  226. #define DBFIFO_HP_INT_F DBFIFO_HP_INT_V(1U)
  227. #define DBFIFO_LP_INT_S 7
  228. #define DBFIFO_LP_INT_V(x) ((x) << DBFIFO_LP_INT_S)
  229. #define DBFIFO_LP_INT_F DBFIFO_LP_INT_V(1U)
  230. #define INGRESS_SIZE_ERR_S 5
  231. #define INGRESS_SIZE_ERR_V(x) ((x) << INGRESS_SIZE_ERR_S)
  232. #define INGRESS_SIZE_ERR_F INGRESS_SIZE_ERR_V(1U)
  233. #define EGRESS_SIZE_ERR_S 4
  234. #define EGRESS_SIZE_ERR_V(x) ((x) << EGRESS_SIZE_ERR_S)
  235. #define EGRESS_SIZE_ERR_F EGRESS_SIZE_ERR_V(1U)
  236. #define SGE_INT_ENABLE3_A 0x1040
  237. #define SGE_FL_BUFFER_SIZE0_A 0x1044
  238. #define SGE_FL_BUFFER_SIZE1_A 0x1048
  239. #define SGE_FL_BUFFER_SIZE2_A 0x104c
  240. #define SGE_FL_BUFFER_SIZE3_A 0x1050
  241. #define SGE_FL_BUFFER_SIZE4_A 0x1054
  242. #define SGE_FL_BUFFER_SIZE5_A 0x1058
  243. #define SGE_FL_BUFFER_SIZE6_A 0x105c
  244. #define SGE_FL_BUFFER_SIZE7_A 0x1060
  245. #define SGE_FL_BUFFER_SIZE8_A 0x1064
  246. #define SGE_IMSG_CTXT_BADDR_A 0x1088
  247. #define SGE_FLM_CACHE_BADDR_A 0x108c
  248. #define SGE_INGRESS_RX_THRESHOLD_A 0x10a0
  249. #define THRESHOLD_0_S 24
  250. #define THRESHOLD_0_M 0x3fU
  251. #define THRESHOLD_0_V(x) ((x) << THRESHOLD_0_S)
  252. #define THRESHOLD_0_G(x) (((x) >> THRESHOLD_0_S) & THRESHOLD_0_M)
  253. #define THRESHOLD_1_S 16
  254. #define THRESHOLD_1_M 0x3fU
  255. #define THRESHOLD_1_V(x) ((x) << THRESHOLD_1_S)
  256. #define THRESHOLD_1_G(x) (((x) >> THRESHOLD_1_S) & THRESHOLD_1_M)
  257. #define THRESHOLD_2_S 8
  258. #define THRESHOLD_2_M 0x3fU
  259. #define THRESHOLD_2_V(x) ((x) << THRESHOLD_2_S)
  260. #define THRESHOLD_2_G(x) (((x) >> THRESHOLD_2_S) & THRESHOLD_2_M)
  261. #define THRESHOLD_3_S 0
  262. #define THRESHOLD_3_M 0x3fU
  263. #define THRESHOLD_3_V(x) ((x) << THRESHOLD_3_S)
  264. #define THRESHOLD_3_G(x) (((x) >> THRESHOLD_3_S) & THRESHOLD_3_M)
  265. #define SGE_CONM_CTRL_A 0x1094
  266. #define EGRTHRESHOLD_S 8
  267. #define EGRTHRESHOLD_M 0x3fU
  268. #define EGRTHRESHOLD_V(x) ((x) << EGRTHRESHOLD_S)
  269. #define EGRTHRESHOLD_G(x) (((x) >> EGRTHRESHOLD_S) & EGRTHRESHOLD_M)
  270. #define EGRTHRESHOLDPACKING_S 14
  271. #define EGRTHRESHOLDPACKING_M 0x3fU
  272. #define EGRTHRESHOLDPACKING_V(x) ((x) << EGRTHRESHOLDPACKING_S)
  273. #define EGRTHRESHOLDPACKING_G(x) \
  274. (((x) >> EGRTHRESHOLDPACKING_S) & EGRTHRESHOLDPACKING_M)
  275. #define T6_EGRTHRESHOLDPACKING_S 16
  276. #define T6_EGRTHRESHOLDPACKING_M 0xffU
  277. #define T6_EGRTHRESHOLDPACKING_G(x) \
  278. (((x) >> T6_EGRTHRESHOLDPACKING_S) & T6_EGRTHRESHOLDPACKING_M)
  279. #define SGE_TIMESTAMP_LO_A 0x1098
  280. #define SGE_TIMESTAMP_HI_A 0x109c
  281. #define TSOP_S 28
  282. #define TSOP_M 0x3U
  283. #define TSOP_V(x) ((x) << TSOP_S)
  284. #define TSOP_G(x) (((x) >> TSOP_S) & TSOP_M)
  285. #define TSVAL_S 0
  286. #define TSVAL_M 0xfffffffU
  287. #define TSVAL_V(x) ((x) << TSVAL_S)
  288. #define TSVAL_G(x) (((x) >> TSVAL_S) & TSVAL_M)
  289. #define SGE_DBFIFO_STATUS_A 0x10a4
  290. #define SGE_DBVFIFO_SIZE_A 0x113c
  291. #define HP_INT_THRESH_S 28
  292. #define HP_INT_THRESH_M 0xfU
  293. #define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
  294. #define LP_INT_THRESH_S 12
  295. #define LP_INT_THRESH_M 0xfU
  296. #define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
  297. #define SGE_DOORBELL_CONTROL_A 0x10a8
  298. #define NOCOALESCE_S 26
  299. #define NOCOALESCE_V(x) ((x) << NOCOALESCE_S)
  300. #define NOCOALESCE_F NOCOALESCE_V(1U)
  301. #define ENABLE_DROP_S 13
  302. #define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
  303. #define ENABLE_DROP_F ENABLE_DROP_V(1U)
  304. #define SGE_TIMER_VALUE_0_AND_1_A 0x10b8
  305. #define TIMERVALUE0_S 16
  306. #define TIMERVALUE0_M 0xffffU
  307. #define TIMERVALUE0_V(x) ((x) << TIMERVALUE0_S)
  308. #define TIMERVALUE0_G(x) (((x) >> TIMERVALUE0_S) & TIMERVALUE0_M)
  309. #define TIMERVALUE1_S 0
  310. #define TIMERVALUE1_M 0xffffU
  311. #define TIMERVALUE1_V(x) ((x) << TIMERVALUE1_S)
  312. #define TIMERVALUE1_G(x) (((x) >> TIMERVALUE1_S) & TIMERVALUE1_M)
  313. #define SGE_TIMER_VALUE_2_AND_3_A 0x10bc
  314. #define TIMERVALUE2_S 16
  315. #define TIMERVALUE2_M 0xffffU
  316. #define TIMERVALUE2_V(x) ((x) << TIMERVALUE2_S)
  317. #define TIMERVALUE2_G(x) (((x) >> TIMERVALUE2_S) & TIMERVALUE2_M)
  318. #define TIMERVALUE3_S 0
  319. #define TIMERVALUE3_M 0xffffU
  320. #define TIMERVALUE3_V(x) ((x) << TIMERVALUE3_S)
  321. #define TIMERVALUE3_G(x) (((x) >> TIMERVALUE3_S) & TIMERVALUE3_M)
  322. #define SGE_TIMER_VALUE_4_AND_5_A 0x10c0
  323. #define TIMERVALUE4_S 16
  324. #define TIMERVALUE4_M 0xffffU
  325. #define TIMERVALUE4_V(x) ((x) << TIMERVALUE4_S)
  326. #define TIMERVALUE4_G(x) (((x) >> TIMERVALUE4_S) & TIMERVALUE4_M)
  327. #define TIMERVALUE5_S 0
  328. #define TIMERVALUE5_M 0xffffU
  329. #define TIMERVALUE5_V(x) ((x) << TIMERVALUE5_S)
  330. #define TIMERVALUE5_G(x) (((x) >> TIMERVALUE5_S) & TIMERVALUE5_M)
  331. #define SGE_DEBUG_INDEX_A 0x10cc
  332. #define SGE_DEBUG_DATA_HIGH_A 0x10d0
  333. #define SGE_DEBUG_DATA_LOW_A 0x10d4
  334. #define SGE_DEBUG_DATA_LOW_INDEX_2_A 0x12c8
  335. #define SGE_DEBUG_DATA_LOW_INDEX_3_A 0x12cc
  336. #define SGE_DEBUG_DATA_HIGH_INDEX_10_A 0x12a8
  337. #define SGE_INGRESS_QUEUES_PER_PAGE_PF_A 0x10f4
  338. #define SGE_INGRESS_QUEUES_PER_PAGE_VF_A 0x10f8
  339. #define SGE_ERROR_STATS_A 0x1100
  340. #define UNCAPTURED_ERROR_S 18
  341. #define UNCAPTURED_ERROR_V(x) ((x) << UNCAPTURED_ERROR_S)
  342. #define UNCAPTURED_ERROR_F UNCAPTURED_ERROR_V(1U)
  343. #define ERROR_QID_VALID_S 17
  344. #define ERROR_QID_VALID_V(x) ((x) << ERROR_QID_VALID_S)
  345. #define ERROR_QID_VALID_F ERROR_QID_VALID_V(1U)
  346. #define ERROR_QID_S 0
  347. #define ERROR_QID_M 0x1ffffU
  348. #define ERROR_QID_G(x) (((x) >> ERROR_QID_S) & ERROR_QID_M)
  349. #define HP_INT_THRESH_S 28
  350. #define HP_INT_THRESH_M 0xfU
  351. #define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
  352. #define HP_COUNT_S 16
  353. #define HP_COUNT_M 0x7ffU
  354. #define HP_COUNT_G(x) (((x) >> HP_COUNT_S) & HP_COUNT_M)
  355. #define LP_INT_THRESH_S 12
  356. #define LP_INT_THRESH_M 0xfU
  357. #define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
  358. #define LP_COUNT_S 0
  359. #define LP_COUNT_M 0x7ffU
  360. #define LP_COUNT_G(x) (((x) >> LP_COUNT_S) & LP_COUNT_M)
  361. #define LP_INT_THRESH_T5_S 18
  362. #define LP_INT_THRESH_T5_M 0xfffU
  363. #define LP_INT_THRESH_T5_V(x) ((x) << LP_INT_THRESH_T5_S)
  364. #define LP_COUNT_T5_S 0
  365. #define LP_COUNT_T5_M 0x3ffffU
  366. #define LP_COUNT_T5_G(x) (((x) >> LP_COUNT_T5_S) & LP_COUNT_T5_M)
  367. #define SGE_DOORBELL_CONTROL_A 0x10a8
  368. #define SGE_STAT_TOTAL_A 0x10e4
  369. #define SGE_STAT_MATCH_A 0x10e8
  370. #define SGE_STAT_CFG_A 0x10ec
  371. #define STATMODE_S 2
  372. #define STATMODE_V(x) ((x) << STATMODE_S)
  373. #define STATSOURCE_T5_S 9
  374. #define STATSOURCE_T5_M 0xfU
  375. #define STATSOURCE_T5_V(x) ((x) << STATSOURCE_T5_S)
  376. #define STATSOURCE_T5_G(x) (((x) >> STATSOURCE_T5_S) & STATSOURCE_T5_M)
  377. #define SGE_DBFIFO_STATUS2_A 0x1118
  378. #define HP_INT_THRESH_T5_S 10
  379. #define HP_INT_THRESH_T5_M 0xfU
  380. #define HP_INT_THRESH_T5_V(x) ((x) << HP_INT_THRESH_T5_S)
  381. #define HP_COUNT_T5_S 0
  382. #define HP_COUNT_T5_M 0x3ffU
  383. #define HP_COUNT_T5_G(x) (((x) >> HP_COUNT_T5_S) & HP_COUNT_T5_M)
  384. #define ENABLE_DROP_S 13
  385. #define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
  386. #define ENABLE_DROP_F ENABLE_DROP_V(1U)
  387. #define DROPPED_DB_S 0
  388. #define DROPPED_DB_V(x) ((x) << DROPPED_DB_S)
  389. #define DROPPED_DB_F DROPPED_DB_V(1U)
  390. #define SGE_CTXT_CMD_A 0x11fc
  391. #define SGE_DBQ_CTXT_BADDR_A 0x1084
  392. /* registers for module PCIE */
  393. #define PCIE_PF_CFG_A 0x40
  394. #define AIVEC_S 4
  395. #define AIVEC_M 0x3ffU
  396. #define AIVEC_V(x) ((x) << AIVEC_S)
  397. #define PCIE_PF_CLI_A 0x44
  398. #define PCIE_INT_CAUSE_A 0x3004
  399. #define UNXSPLCPLERR_S 29
  400. #define UNXSPLCPLERR_V(x) ((x) << UNXSPLCPLERR_S)
  401. #define UNXSPLCPLERR_F UNXSPLCPLERR_V(1U)
  402. #define PCIEPINT_S 28
  403. #define PCIEPINT_V(x) ((x) << PCIEPINT_S)
  404. #define PCIEPINT_F PCIEPINT_V(1U)
  405. #define PCIESINT_S 27
  406. #define PCIESINT_V(x) ((x) << PCIESINT_S)
  407. #define PCIESINT_F PCIESINT_V(1U)
  408. #define RPLPERR_S 26
  409. #define RPLPERR_V(x) ((x) << RPLPERR_S)
  410. #define RPLPERR_F RPLPERR_V(1U)
  411. #define RXWRPERR_S 25
  412. #define RXWRPERR_V(x) ((x) << RXWRPERR_S)
  413. #define RXWRPERR_F RXWRPERR_V(1U)
  414. #define RXCPLPERR_S 24
  415. #define RXCPLPERR_V(x) ((x) << RXCPLPERR_S)
  416. #define RXCPLPERR_F RXCPLPERR_V(1U)
  417. #define PIOTAGPERR_S 23
  418. #define PIOTAGPERR_V(x) ((x) << PIOTAGPERR_S)
  419. #define PIOTAGPERR_F PIOTAGPERR_V(1U)
  420. #define MATAGPERR_S 22
  421. #define MATAGPERR_V(x) ((x) << MATAGPERR_S)
  422. #define MATAGPERR_F MATAGPERR_V(1U)
  423. #define INTXCLRPERR_S 21
  424. #define INTXCLRPERR_V(x) ((x) << INTXCLRPERR_S)
  425. #define INTXCLRPERR_F INTXCLRPERR_V(1U)
  426. #define FIDPERR_S 20
  427. #define FIDPERR_V(x) ((x) << FIDPERR_S)
  428. #define FIDPERR_F FIDPERR_V(1U)
  429. #define CFGSNPPERR_S 19
  430. #define CFGSNPPERR_V(x) ((x) << CFGSNPPERR_S)
  431. #define CFGSNPPERR_F CFGSNPPERR_V(1U)
  432. #define HRSPPERR_S 18
  433. #define HRSPPERR_V(x) ((x) << HRSPPERR_S)
  434. #define HRSPPERR_F HRSPPERR_V(1U)
  435. #define HREQPERR_S 17
  436. #define HREQPERR_V(x) ((x) << HREQPERR_S)
  437. #define HREQPERR_F HREQPERR_V(1U)
  438. #define HCNTPERR_S 16
  439. #define HCNTPERR_V(x) ((x) << HCNTPERR_S)
  440. #define HCNTPERR_F HCNTPERR_V(1U)
  441. #define DRSPPERR_S 15
  442. #define DRSPPERR_V(x) ((x) << DRSPPERR_S)
  443. #define DRSPPERR_F DRSPPERR_V(1U)
  444. #define DREQPERR_S 14
  445. #define DREQPERR_V(x) ((x) << DREQPERR_S)
  446. #define DREQPERR_F DREQPERR_V(1U)
  447. #define DCNTPERR_S 13
  448. #define DCNTPERR_V(x) ((x) << DCNTPERR_S)
  449. #define DCNTPERR_F DCNTPERR_V(1U)
  450. #define CRSPPERR_S 12
  451. #define CRSPPERR_V(x) ((x) << CRSPPERR_S)
  452. #define CRSPPERR_F CRSPPERR_V(1U)
  453. #define CREQPERR_S 11
  454. #define CREQPERR_V(x) ((x) << CREQPERR_S)
  455. #define CREQPERR_F CREQPERR_V(1U)
  456. #define CCNTPERR_S 10
  457. #define CCNTPERR_V(x) ((x) << CCNTPERR_S)
  458. #define CCNTPERR_F CCNTPERR_V(1U)
  459. #define TARTAGPERR_S 9
  460. #define TARTAGPERR_V(x) ((x) << TARTAGPERR_S)
  461. #define TARTAGPERR_F TARTAGPERR_V(1U)
  462. #define PIOREQPERR_S 8
  463. #define PIOREQPERR_V(x) ((x) << PIOREQPERR_S)
  464. #define PIOREQPERR_F PIOREQPERR_V(1U)
  465. #define PIOCPLPERR_S 7
  466. #define PIOCPLPERR_V(x) ((x) << PIOCPLPERR_S)
  467. #define PIOCPLPERR_F PIOCPLPERR_V(1U)
  468. #define MSIXDIPERR_S 6
  469. #define MSIXDIPERR_V(x) ((x) << MSIXDIPERR_S)
  470. #define MSIXDIPERR_F MSIXDIPERR_V(1U)
  471. #define MSIXDATAPERR_S 5
  472. #define MSIXDATAPERR_V(x) ((x) << MSIXDATAPERR_S)
  473. #define MSIXDATAPERR_F MSIXDATAPERR_V(1U)
  474. #define MSIXADDRHPERR_S 4
  475. #define MSIXADDRHPERR_V(x) ((x) << MSIXADDRHPERR_S)
  476. #define MSIXADDRHPERR_F MSIXADDRHPERR_V(1U)
  477. #define MSIXADDRLPERR_S 3
  478. #define MSIXADDRLPERR_V(x) ((x) << MSIXADDRLPERR_S)
  479. #define MSIXADDRLPERR_F MSIXADDRLPERR_V(1U)
  480. #define MSIDATAPERR_S 2
  481. #define MSIDATAPERR_V(x) ((x) << MSIDATAPERR_S)
  482. #define MSIDATAPERR_F MSIDATAPERR_V(1U)
  483. #define MSIADDRHPERR_S 1
  484. #define MSIADDRHPERR_V(x) ((x) << MSIADDRHPERR_S)
  485. #define MSIADDRHPERR_F MSIADDRHPERR_V(1U)
  486. #define MSIADDRLPERR_S 0
  487. #define MSIADDRLPERR_V(x) ((x) << MSIADDRLPERR_S)
  488. #define MSIADDRLPERR_F MSIADDRLPERR_V(1U)
  489. #define READRSPERR_S 29
  490. #define READRSPERR_V(x) ((x) << READRSPERR_S)
  491. #define READRSPERR_F READRSPERR_V(1U)
  492. #define TRGT1GRPPERR_S 28
  493. #define TRGT1GRPPERR_V(x) ((x) << TRGT1GRPPERR_S)
  494. #define TRGT1GRPPERR_F TRGT1GRPPERR_V(1U)
  495. #define IPSOTPERR_S 27
  496. #define IPSOTPERR_V(x) ((x) << IPSOTPERR_S)
  497. #define IPSOTPERR_F IPSOTPERR_V(1U)
  498. #define IPRETRYPERR_S 26
  499. #define IPRETRYPERR_V(x) ((x) << IPRETRYPERR_S)
  500. #define IPRETRYPERR_F IPRETRYPERR_V(1U)
  501. #define IPRXDATAGRPPERR_S 25
  502. #define IPRXDATAGRPPERR_V(x) ((x) << IPRXDATAGRPPERR_S)
  503. #define IPRXDATAGRPPERR_F IPRXDATAGRPPERR_V(1U)
  504. #define IPRXHDRGRPPERR_S 24
  505. #define IPRXHDRGRPPERR_V(x) ((x) << IPRXHDRGRPPERR_S)
  506. #define IPRXHDRGRPPERR_F IPRXHDRGRPPERR_V(1U)
  507. #define MAGRPPERR_S 22
  508. #define MAGRPPERR_V(x) ((x) << MAGRPPERR_S)
  509. #define MAGRPPERR_F MAGRPPERR_V(1U)
  510. #define VFIDPERR_S 21
  511. #define VFIDPERR_V(x) ((x) << VFIDPERR_S)
  512. #define VFIDPERR_F VFIDPERR_V(1U)
  513. #define HREQWRPERR_S 16
  514. #define HREQWRPERR_V(x) ((x) << HREQWRPERR_S)
  515. #define HREQWRPERR_F HREQWRPERR_V(1U)
  516. #define DREQWRPERR_S 13
  517. #define DREQWRPERR_V(x) ((x) << DREQWRPERR_S)
  518. #define DREQWRPERR_F DREQWRPERR_V(1U)
  519. #define CREQRDPERR_S 11
  520. #define CREQRDPERR_V(x) ((x) << CREQRDPERR_S)
  521. #define CREQRDPERR_F CREQRDPERR_V(1U)
  522. #define MSTTAGQPERR_S 10
  523. #define MSTTAGQPERR_V(x) ((x) << MSTTAGQPERR_S)
  524. #define MSTTAGQPERR_F MSTTAGQPERR_V(1U)
  525. #define PIOREQGRPPERR_S 8
  526. #define PIOREQGRPPERR_V(x) ((x) << PIOREQGRPPERR_S)
  527. #define PIOREQGRPPERR_F PIOREQGRPPERR_V(1U)
  528. #define PIOCPLGRPPERR_S 7
  529. #define PIOCPLGRPPERR_V(x) ((x) << PIOCPLGRPPERR_S)
  530. #define PIOCPLGRPPERR_F PIOCPLGRPPERR_V(1U)
  531. #define MSIXSTIPERR_S 2
  532. #define MSIXSTIPERR_V(x) ((x) << MSIXSTIPERR_S)
  533. #define MSIXSTIPERR_F MSIXSTIPERR_V(1U)
  534. #define MSTTIMEOUTPERR_S 1
  535. #define MSTTIMEOUTPERR_V(x) ((x) << MSTTIMEOUTPERR_S)
  536. #define MSTTIMEOUTPERR_F MSTTIMEOUTPERR_V(1U)
  537. #define MSTGRPPERR_S 0
  538. #define MSTGRPPERR_V(x) ((x) << MSTGRPPERR_S)
  539. #define MSTGRPPERR_F MSTGRPPERR_V(1U)
  540. #define PCIE_NONFAT_ERR_A 0x3010
  541. #define PCIE_CFG_SPACE_REQ_A 0x3060
  542. #define PCIE_CFG_SPACE_DATA_A 0x3064
  543. #define PCIE_MEM_ACCESS_BASE_WIN_A 0x3068
  544. #define PCIEOFST_S 10
  545. #define PCIEOFST_M 0x3fffffU
  546. #define PCIEOFST_G(x) (((x) >> PCIEOFST_S) & PCIEOFST_M)
  547. #define BIR_S 8
  548. #define BIR_M 0x3U
  549. #define BIR_V(x) ((x) << BIR_S)
  550. #define BIR_G(x) (((x) >> BIR_S) & BIR_M)
  551. #define WINDOW_S 0
  552. #define WINDOW_M 0xffU
  553. #define WINDOW_V(x) ((x) << WINDOW_S)
  554. #define WINDOW_G(x) (((x) >> WINDOW_S) & WINDOW_M)
  555. #define PCIE_MEM_ACCESS_OFFSET_A 0x306c
  556. #define ENABLE_S 30
  557. #define ENABLE_V(x) ((x) << ENABLE_S)
  558. #define ENABLE_F ENABLE_V(1U)
  559. #define LOCALCFG_S 28
  560. #define LOCALCFG_V(x) ((x) << LOCALCFG_S)
  561. #define LOCALCFG_F LOCALCFG_V(1U)
  562. #define FUNCTION_S 12
  563. #define FUNCTION_V(x) ((x) << FUNCTION_S)
  564. #define REGISTER_S 0
  565. #define REGISTER_V(x) ((x) << REGISTER_S)
  566. #define T6_ENABLE_S 31
  567. #define T6_ENABLE_V(x) ((x) << T6_ENABLE_S)
  568. #define T6_ENABLE_F T6_ENABLE_V(1U)
  569. #define PFNUM_S 0
  570. #define PFNUM_V(x) ((x) << PFNUM_S)
  571. #define PCIE_FW_A 0x30b8
  572. #define PCIE_FW_PF_A 0x30bc
  573. #define PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS_A 0x5908
  574. #define RNPP_S 31
  575. #define RNPP_V(x) ((x) << RNPP_S)
  576. #define RNPP_F RNPP_V(1U)
  577. #define RPCP_S 29
  578. #define RPCP_V(x) ((x) << RPCP_S)
  579. #define RPCP_F RPCP_V(1U)
  580. #define RCIP_S 27
  581. #define RCIP_V(x) ((x) << RCIP_S)
  582. #define RCIP_F RCIP_V(1U)
  583. #define RCCP_S 26
  584. #define RCCP_V(x) ((x) << RCCP_S)
  585. #define RCCP_F RCCP_V(1U)
  586. #define RFTP_S 23
  587. #define RFTP_V(x) ((x) << RFTP_S)
  588. #define RFTP_F RFTP_V(1U)
  589. #define PTRP_S 20
  590. #define PTRP_V(x) ((x) << PTRP_S)
  591. #define PTRP_F PTRP_V(1U)
  592. #define PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS_A 0x59a4
  593. #define TPCP_S 30
  594. #define TPCP_V(x) ((x) << TPCP_S)
  595. #define TPCP_F TPCP_V(1U)
  596. #define TNPP_S 29
  597. #define TNPP_V(x) ((x) << TNPP_S)
  598. #define TNPP_F TNPP_V(1U)
  599. #define TFTP_S 28
  600. #define TFTP_V(x) ((x) << TFTP_S)
  601. #define TFTP_F TFTP_V(1U)
  602. #define TCAP_S 27
  603. #define TCAP_V(x) ((x) << TCAP_S)
  604. #define TCAP_F TCAP_V(1U)
  605. #define TCIP_S 26
  606. #define TCIP_V(x) ((x) << TCIP_S)
  607. #define TCIP_F TCIP_V(1U)
  608. #define RCAP_S 25
  609. #define RCAP_V(x) ((x) << RCAP_S)
  610. #define RCAP_F RCAP_V(1U)
  611. #define PLUP_S 23
  612. #define PLUP_V(x) ((x) << PLUP_S)
  613. #define PLUP_F PLUP_V(1U)
  614. #define PLDN_S 22
  615. #define PLDN_V(x) ((x) << PLDN_S)
  616. #define PLDN_F PLDN_V(1U)
  617. #define OTDD_S 21
  618. #define OTDD_V(x) ((x) << OTDD_S)
  619. #define OTDD_F OTDD_V(1U)
  620. #define GTRP_S 20
  621. #define GTRP_V(x) ((x) << GTRP_S)
  622. #define GTRP_F GTRP_V(1U)
  623. #define RDPE_S 18
  624. #define RDPE_V(x) ((x) << RDPE_S)
  625. #define RDPE_F RDPE_V(1U)
  626. #define TDCE_S 17
  627. #define TDCE_V(x) ((x) << TDCE_S)
  628. #define TDCE_F TDCE_V(1U)
  629. #define TDUE_S 16
  630. #define TDUE_V(x) ((x) << TDUE_S)
  631. #define TDUE_F TDUE_V(1U)
  632. /* registers for module MC */
  633. #define MC_INT_CAUSE_A 0x7518
  634. #define MC_P_INT_CAUSE_A 0x41318
  635. #define ECC_UE_INT_CAUSE_S 2
  636. #define ECC_UE_INT_CAUSE_V(x) ((x) << ECC_UE_INT_CAUSE_S)
  637. #define ECC_UE_INT_CAUSE_F ECC_UE_INT_CAUSE_V(1U)
  638. #define ECC_CE_INT_CAUSE_S 1
  639. #define ECC_CE_INT_CAUSE_V(x) ((x) << ECC_CE_INT_CAUSE_S)
  640. #define ECC_CE_INT_CAUSE_F ECC_CE_INT_CAUSE_V(1U)
  641. #define PERR_INT_CAUSE_S 0
  642. #define PERR_INT_CAUSE_V(x) ((x) << PERR_INT_CAUSE_S)
  643. #define PERR_INT_CAUSE_F PERR_INT_CAUSE_V(1U)
  644. #define MC_ECC_STATUS_A 0x751c
  645. #define MC_P_ECC_STATUS_A 0x4131c
  646. #define ECC_CECNT_S 16
  647. #define ECC_CECNT_M 0xffffU
  648. #define ECC_CECNT_V(x) ((x) << ECC_CECNT_S)
  649. #define ECC_CECNT_G(x) (((x) >> ECC_CECNT_S) & ECC_CECNT_M)
  650. #define ECC_UECNT_S 0
  651. #define ECC_UECNT_M 0xffffU
  652. #define ECC_UECNT_V(x) ((x) << ECC_UECNT_S)
  653. #define ECC_UECNT_G(x) (((x) >> ECC_UECNT_S) & ECC_UECNT_M)
  654. #define MC_BIST_CMD_A 0x7600
  655. #define START_BIST_S 31
  656. #define START_BIST_V(x) ((x) << START_BIST_S)
  657. #define START_BIST_F START_BIST_V(1U)
  658. #define BIST_CMD_GAP_S 8
  659. #define BIST_CMD_GAP_V(x) ((x) << BIST_CMD_GAP_S)
  660. #define BIST_OPCODE_S 0
  661. #define BIST_OPCODE_V(x) ((x) << BIST_OPCODE_S)
  662. #define MC_BIST_CMD_ADDR_A 0x7604
  663. #define MC_BIST_CMD_LEN_A 0x7608
  664. #define MC_BIST_DATA_PATTERN_A 0x760c
  665. #define MC_BIST_STATUS_RDATA_A 0x7688
  666. /* registers for module MA */
  667. #define MA_EDRAM0_BAR_A 0x77c0
  668. #define EDRAM0_BASE_S 16
  669. #define EDRAM0_BASE_M 0xfffU
  670. #define EDRAM0_BASE_G(x) (((x) >> EDRAM0_BASE_S) & EDRAM0_BASE_M)
  671. #define EDRAM0_SIZE_S 0
  672. #define EDRAM0_SIZE_M 0xfffU
  673. #define EDRAM0_SIZE_V(x) ((x) << EDRAM0_SIZE_S)
  674. #define EDRAM0_SIZE_G(x) (((x) >> EDRAM0_SIZE_S) & EDRAM0_SIZE_M)
  675. #define MA_EDRAM1_BAR_A 0x77c4
  676. #define EDRAM1_BASE_S 16
  677. #define EDRAM1_BASE_M 0xfffU
  678. #define EDRAM1_BASE_G(x) (((x) >> EDRAM1_BASE_S) & EDRAM1_BASE_M)
  679. #define EDRAM1_SIZE_S 0
  680. #define EDRAM1_SIZE_M 0xfffU
  681. #define EDRAM1_SIZE_V(x) ((x) << EDRAM1_SIZE_S)
  682. #define EDRAM1_SIZE_G(x) (((x) >> EDRAM1_SIZE_S) & EDRAM1_SIZE_M)
  683. #define MA_EXT_MEMORY_BAR_A 0x77c8
  684. #define EXT_MEM_BASE_S 16
  685. #define EXT_MEM_BASE_M 0xfffU
  686. #define EXT_MEM_BASE_V(x) ((x) << EXT_MEM_BASE_S)
  687. #define EXT_MEM_BASE_G(x) (((x) >> EXT_MEM_BASE_S) & EXT_MEM_BASE_M)
  688. #define EXT_MEM_SIZE_S 0
  689. #define EXT_MEM_SIZE_M 0xfffU
  690. #define EXT_MEM_SIZE_V(x) ((x) << EXT_MEM_SIZE_S)
  691. #define EXT_MEM_SIZE_G(x) (((x) >> EXT_MEM_SIZE_S) & EXT_MEM_SIZE_M)
  692. #define MA_EXT_MEMORY1_BAR_A 0x7808
  693. #define EXT_MEM1_BASE_S 16
  694. #define EXT_MEM1_BASE_M 0xfffU
  695. #define EXT_MEM1_BASE_G(x) (((x) >> EXT_MEM1_BASE_S) & EXT_MEM1_BASE_M)
  696. #define EXT_MEM1_SIZE_S 0
  697. #define EXT_MEM1_SIZE_M 0xfffU
  698. #define EXT_MEM1_SIZE_V(x) ((x) << EXT_MEM1_SIZE_S)
  699. #define EXT_MEM1_SIZE_G(x) (((x) >> EXT_MEM1_SIZE_S) & EXT_MEM1_SIZE_M)
  700. #define MA_EXT_MEMORY0_BAR_A 0x77c8
  701. #define EXT_MEM0_BASE_S 16
  702. #define EXT_MEM0_BASE_M 0xfffU
  703. #define EXT_MEM0_BASE_G(x) (((x) >> EXT_MEM0_BASE_S) & EXT_MEM0_BASE_M)
  704. #define EXT_MEM0_SIZE_S 0
  705. #define EXT_MEM0_SIZE_M 0xfffU
  706. #define EXT_MEM0_SIZE_V(x) ((x) << EXT_MEM0_SIZE_S)
  707. #define EXT_MEM0_SIZE_G(x) (((x) >> EXT_MEM0_SIZE_S) & EXT_MEM0_SIZE_M)
  708. #define MA_TARGET_MEM_ENABLE_A 0x77d8
  709. #define EXT_MEM_ENABLE_S 2
  710. #define EXT_MEM_ENABLE_V(x) ((x) << EXT_MEM_ENABLE_S)
  711. #define EXT_MEM_ENABLE_F EXT_MEM_ENABLE_V(1U)
  712. #define EDRAM1_ENABLE_S 1
  713. #define EDRAM1_ENABLE_V(x) ((x) << EDRAM1_ENABLE_S)
  714. #define EDRAM1_ENABLE_F EDRAM1_ENABLE_V(1U)
  715. #define EDRAM0_ENABLE_S 0
  716. #define EDRAM0_ENABLE_V(x) ((x) << EDRAM0_ENABLE_S)
  717. #define EDRAM0_ENABLE_F EDRAM0_ENABLE_V(1U)
  718. #define EXT_MEM1_ENABLE_S 4
  719. #define EXT_MEM1_ENABLE_V(x) ((x) << EXT_MEM1_ENABLE_S)
  720. #define EXT_MEM1_ENABLE_F EXT_MEM1_ENABLE_V(1U)
  721. #define EXT_MEM0_ENABLE_S 2
  722. #define EXT_MEM0_ENABLE_V(x) ((x) << EXT_MEM0_ENABLE_S)
  723. #define EXT_MEM0_ENABLE_F EXT_MEM0_ENABLE_V(1U)
  724. #define MA_INT_CAUSE_A 0x77e0
  725. #define MEM_PERR_INT_CAUSE_S 1
  726. #define MEM_PERR_INT_CAUSE_V(x) ((x) << MEM_PERR_INT_CAUSE_S)
  727. #define MEM_PERR_INT_CAUSE_F MEM_PERR_INT_CAUSE_V(1U)
  728. #define MEM_WRAP_INT_CAUSE_S 0
  729. #define MEM_WRAP_INT_CAUSE_V(x) ((x) << MEM_WRAP_INT_CAUSE_S)
  730. #define MEM_WRAP_INT_CAUSE_F MEM_WRAP_INT_CAUSE_V(1U)
  731. #define MA_INT_WRAP_STATUS_A 0x77e4
  732. #define MEM_WRAP_ADDRESS_S 4
  733. #define MEM_WRAP_ADDRESS_M 0xfffffffU
  734. #define MEM_WRAP_ADDRESS_G(x) (((x) >> MEM_WRAP_ADDRESS_S) & MEM_WRAP_ADDRESS_M)
  735. #define MEM_WRAP_CLIENT_NUM_S 0
  736. #define MEM_WRAP_CLIENT_NUM_M 0xfU
  737. #define MEM_WRAP_CLIENT_NUM_G(x) \
  738. (((x) >> MEM_WRAP_CLIENT_NUM_S) & MEM_WRAP_CLIENT_NUM_M)
  739. #define MA_PARITY_ERROR_STATUS_A 0x77f4
  740. #define MA_PARITY_ERROR_STATUS1_A 0x77f4
  741. #define MA_PARITY_ERROR_STATUS2_A 0x7804
  742. /* registers for module EDC_0 */
  743. #define EDC_0_BASE_ADDR 0x7900
  744. #define EDC_BIST_CMD_A 0x7904
  745. #define EDC_BIST_CMD_ADDR_A 0x7908
  746. #define EDC_BIST_CMD_LEN_A 0x790c
  747. #define EDC_BIST_DATA_PATTERN_A 0x7910
  748. #define EDC_BIST_STATUS_RDATA_A 0x7928
  749. #define EDC_INT_CAUSE_A 0x7978
  750. #define ECC_UE_PAR_S 5
  751. #define ECC_UE_PAR_V(x) ((x) << ECC_UE_PAR_S)
  752. #define ECC_UE_PAR_F ECC_UE_PAR_V(1U)
  753. #define ECC_CE_PAR_S 4
  754. #define ECC_CE_PAR_V(x) ((x) << ECC_CE_PAR_S)
  755. #define ECC_CE_PAR_F ECC_CE_PAR_V(1U)
  756. #define PERR_PAR_CAUSE_S 3
  757. #define PERR_PAR_CAUSE_V(x) ((x) << PERR_PAR_CAUSE_S)
  758. #define PERR_PAR_CAUSE_F PERR_PAR_CAUSE_V(1U)
  759. #define EDC_ECC_STATUS_A 0x797c
  760. /* registers for module EDC_1 */
  761. #define EDC_1_BASE_ADDR 0x7980
  762. /* registers for module CIM */
  763. #define CIM_BOOT_CFG_A 0x7b00
  764. #define CIM_SDRAM_BASE_ADDR_A 0x7b14
  765. #define CIM_SDRAM_ADDR_SIZE_A 0x7b18
  766. #define CIM_EXTMEM2_BASE_ADDR_A 0x7b1c
  767. #define CIM_EXTMEM2_ADDR_SIZE_A 0x7b20
  768. #define CIM_PF_MAILBOX_CTRL_SHADOW_COPY_A 0x290
  769. #define BOOTADDR_M 0xffffff00U
  770. #define UPCRST_S 0
  771. #define UPCRST_V(x) ((x) << UPCRST_S)
  772. #define UPCRST_F UPCRST_V(1U)
  773. #define CIM_PF_MAILBOX_DATA_A 0x240
  774. #define CIM_PF_MAILBOX_CTRL_A 0x280
  775. #define MBMSGVALID_S 3
  776. #define MBMSGVALID_V(x) ((x) << MBMSGVALID_S)
  777. #define MBMSGVALID_F MBMSGVALID_V(1U)
  778. #define MBINTREQ_S 2
  779. #define MBINTREQ_V(x) ((x) << MBINTREQ_S)
  780. #define MBINTREQ_F MBINTREQ_V(1U)
  781. #define MBOWNER_S 0
  782. #define MBOWNER_M 0x3U
  783. #define MBOWNER_V(x) ((x) << MBOWNER_S)
  784. #define MBOWNER_G(x) (((x) >> MBOWNER_S) & MBOWNER_M)
  785. #define CIM_PF_HOST_INT_ENABLE_A 0x288
  786. #define MBMSGRDYINTEN_S 19
  787. #define MBMSGRDYINTEN_V(x) ((x) << MBMSGRDYINTEN_S)
  788. #define MBMSGRDYINTEN_F MBMSGRDYINTEN_V(1U)
  789. #define CIM_PF_HOST_INT_CAUSE_A 0x28c
  790. #define MBMSGRDYINT_S 19
  791. #define MBMSGRDYINT_V(x) ((x) << MBMSGRDYINT_S)
  792. #define MBMSGRDYINT_F MBMSGRDYINT_V(1U)
  793. #define CIM_HOST_INT_CAUSE_A 0x7b2c
  794. #define TIEQOUTPARERRINT_S 20
  795. #define TIEQOUTPARERRINT_V(x) ((x) << TIEQOUTPARERRINT_S)
  796. #define TIEQOUTPARERRINT_F TIEQOUTPARERRINT_V(1U)
  797. #define TIEQINPARERRINT_S 19
  798. #define TIEQINPARERRINT_V(x) ((x) << TIEQINPARERRINT_S)
  799. #define TIEQINPARERRINT_F TIEQINPARERRINT_V(1U)
  800. #define PREFDROPINT_S 1
  801. #define PREFDROPINT_V(x) ((x) << PREFDROPINT_S)
  802. #define PREFDROPINT_F PREFDROPINT_V(1U)
  803. #define UPACCNONZERO_S 0
  804. #define UPACCNONZERO_V(x) ((x) << UPACCNONZERO_S)
  805. #define UPACCNONZERO_F UPACCNONZERO_V(1U)
  806. #define MBHOSTPARERR_S 18
  807. #define MBHOSTPARERR_V(x) ((x) << MBHOSTPARERR_S)
  808. #define MBHOSTPARERR_F MBHOSTPARERR_V(1U)
  809. #define MBUPPARERR_S 17
  810. #define MBUPPARERR_V(x) ((x) << MBUPPARERR_S)
  811. #define MBUPPARERR_F MBUPPARERR_V(1U)
  812. #define IBQTP0PARERR_S 16
  813. #define IBQTP0PARERR_V(x) ((x) << IBQTP0PARERR_S)
  814. #define IBQTP0PARERR_F IBQTP0PARERR_V(1U)
  815. #define IBQTP1PARERR_S 15
  816. #define IBQTP1PARERR_V(x) ((x) << IBQTP1PARERR_S)
  817. #define IBQTP1PARERR_F IBQTP1PARERR_V(1U)
  818. #define IBQULPPARERR_S 14
  819. #define IBQULPPARERR_V(x) ((x) << IBQULPPARERR_S)
  820. #define IBQULPPARERR_F IBQULPPARERR_V(1U)
  821. #define IBQSGELOPARERR_S 13
  822. #define IBQSGELOPARERR_V(x) ((x) << IBQSGELOPARERR_S)
  823. #define IBQSGELOPARERR_F IBQSGELOPARERR_V(1U)
  824. #define IBQSGEHIPARERR_S 12
  825. #define IBQSGEHIPARERR_V(x) ((x) << IBQSGEHIPARERR_S)
  826. #define IBQSGEHIPARERR_F IBQSGEHIPARERR_V(1U)
  827. #define IBQNCSIPARERR_S 11
  828. #define IBQNCSIPARERR_V(x) ((x) << IBQNCSIPARERR_S)
  829. #define IBQNCSIPARERR_F IBQNCSIPARERR_V(1U)
  830. #define OBQULP0PARERR_S 10
  831. #define OBQULP0PARERR_V(x) ((x) << OBQULP0PARERR_S)
  832. #define OBQULP0PARERR_F OBQULP0PARERR_V(1U)
  833. #define OBQULP1PARERR_S 9
  834. #define OBQULP1PARERR_V(x) ((x) << OBQULP1PARERR_S)
  835. #define OBQULP1PARERR_F OBQULP1PARERR_V(1U)
  836. #define OBQULP2PARERR_S 8
  837. #define OBQULP2PARERR_V(x) ((x) << OBQULP2PARERR_S)
  838. #define OBQULP2PARERR_F OBQULP2PARERR_V(1U)
  839. #define OBQULP3PARERR_S 7
  840. #define OBQULP3PARERR_V(x) ((x) << OBQULP3PARERR_S)
  841. #define OBQULP3PARERR_F OBQULP3PARERR_V(1U)
  842. #define OBQSGEPARERR_S 6
  843. #define OBQSGEPARERR_V(x) ((x) << OBQSGEPARERR_S)
  844. #define OBQSGEPARERR_F OBQSGEPARERR_V(1U)
  845. #define OBQNCSIPARERR_S 5
  846. #define OBQNCSIPARERR_V(x) ((x) << OBQNCSIPARERR_S)
  847. #define OBQNCSIPARERR_F OBQNCSIPARERR_V(1U)
  848. #define CIM_HOST_UPACC_INT_CAUSE_A 0x7b34
  849. #define EEPROMWRINT_S 30
  850. #define EEPROMWRINT_V(x) ((x) << EEPROMWRINT_S)
  851. #define EEPROMWRINT_F EEPROMWRINT_V(1U)
  852. #define TIMEOUTMAINT_S 29
  853. #define TIMEOUTMAINT_V(x) ((x) << TIMEOUTMAINT_S)
  854. #define TIMEOUTMAINT_F TIMEOUTMAINT_V(1U)
  855. #define TIMEOUTINT_S 28
  856. #define TIMEOUTINT_V(x) ((x) << TIMEOUTINT_S)
  857. #define TIMEOUTINT_F TIMEOUTINT_V(1U)
  858. #define RSPOVRLOOKUPINT_S 27
  859. #define RSPOVRLOOKUPINT_V(x) ((x) << RSPOVRLOOKUPINT_S)
  860. #define RSPOVRLOOKUPINT_F RSPOVRLOOKUPINT_V(1U)
  861. #define REQOVRLOOKUPINT_S 26
  862. #define REQOVRLOOKUPINT_V(x) ((x) << REQOVRLOOKUPINT_S)
  863. #define REQOVRLOOKUPINT_F REQOVRLOOKUPINT_V(1U)
  864. #define BLKWRPLINT_S 25
  865. #define BLKWRPLINT_V(x) ((x) << BLKWRPLINT_S)
  866. #define BLKWRPLINT_F BLKWRPLINT_V(1U)
  867. #define BLKRDPLINT_S 24
  868. #define BLKRDPLINT_V(x) ((x) << BLKRDPLINT_S)
  869. #define BLKRDPLINT_F BLKRDPLINT_V(1U)
  870. #define SGLWRPLINT_S 23
  871. #define SGLWRPLINT_V(x) ((x) << SGLWRPLINT_S)
  872. #define SGLWRPLINT_F SGLWRPLINT_V(1U)
  873. #define SGLRDPLINT_S 22
  874. #define SGLRDPLINT_V(x) ((x) << SGLRDPLINT_S)
  875. #define SGLRDPLINT_F SGLRDPLINT_V(1U)
  876. #define BLKWRCTLINT_S 21
  877. #define BLKWRCTLINT_V(x) ((x) << BLKWRCTLINT_S)
  878. #define BLKWRCTLINT_F BLKWRCTLINT_V(1U)
  879. #define BLKRDCTLINT_S 20
  880. #define BLKRDCTLINT_V(x) ((x) << BLKRDCTLINT_S)
  881. #define BLKRDCTLINT_F BLKRDCTLINT_V(1U)
  882. #define SGLWRCTLINT_S 19
  883. #define SGLWRCTLINT_V(x) ((x) << SGLWRCTLINT_S)
  884. #define SGLWRCTLINT_F SGLWRCTLINT_V(1U)
  885. #define SGLRDCTLINT_S 18
  886. #define SGLRDCTLINT_V(x) ((x) << SGLRDCTLINT_S)
  887. #define SGLRDCTLINT_F SGLRDCTLINT_V(1U)
  888. #define BLKWREEPROMINT_S 17
  889. #define BLKWREEPROMINT_V(x) ((x) << BLKWREEPROMINT_S)
  890. #define BLKWREEPROMINT_F BLKWREEPROMINT_V(1U)
  891. #define BLKRDEEPROMINT_S 16
  892. #define BLKRDEEPROMINT_V(x) ((x) << BLKRDEEPROMINT_S)
  893. #define BLKRDEEPROMINT_F BLKRDEEPROMINT_V(1U)
  894. #define SGLWREEPROMINT_S 15
  895. #define SGLWREEPROMINT_V(x) ((x) << SGLWREEPROMINT_S)
  896. #define SGLWREEPROMINT_F SGLWREEPROMINT_V(1U)
  897. #define SGLRDEEPROMINT_S 14
  898. #define SGLRDEEPROMINT_V(x) ((x) << SGLRDEEPROMINT_S)
  899. #define SGLRDEEPROMINT_F SGLRDEEPROMINT_V(1U)
  900. #define BLKWRFLASHINT_S 13
  901. #define BLKWRFLASHINT_V(x) ((x) << BLKWRFLASHINT_S)
  902. #define BLKWRFLASHINT_F BLKWRFLASHINT_V(1U)
  903. #define BLKRDFLASHINT_S 12
  904. #define BLKRDFLASHINT_V(x) ((x) << BLKRDFLASHINT_S)
  905. #define BLKRDFLASHINT_F BLKRDFLASHINT_V(1U)
  906. #define SGLWRFLASHINT_S 11
  907. #define SGLWRFLASHINT_V(x) ((x) << SGLWRFLASHINT_S)
  908. #define SGLWRFLASHINT_F SGLWRFLASHINT_V(1U)
  909. #define SGLRDFLASHINT_S 10
  910. #define SGLRDFLASHINT_V(x) ((x) << SGLRDFLASHINT_S)
  911. #define SGLRDFLASHINT_F SGLRDFLASHINT_V(1U)
  912. #define BLKWRBOOTINT_S 9
  913. #define BLKWRBOOTINT_V(x) ((x) << BLKWRBOOTINT_S)
  914. #define BLKWRBOOTINT_F BLKWRBOOTINT_V(1U)
  915. #define BLKRDBOOTINT_S 8
  916. #define BLKRDBOOTINT_V(x) ((x) << BLKRDBOOTINT_S)
  917. #define BLKRDBOOTINT_F BLKRDBOOTINT_V(1U)
  918. #define SGLWRBOOTINT_S 7
  919. #define SGLWRBOOTINT_V(x) ((x) << SGLWRBOOTINT_S)
  920. #define SGLWRBOOTINT_F SGLWRBOOTINT_V(1U)
  921. #define SGLRDBOOTINT_S 6
  922. #define SGLRDBOOTINT_V(x) ((x) << SGLRDBOOTINT_S)
  923. #define SGLRDBOOTINT_F SGLRDBOOTINT_V(1U)
  924. #define ILLWRBEINT_S 5
  925. #define ILLWRBEINT_V(x) ((x) << ILLWRBEINT_S)
  926. #define ILLWRBEINT_F ILLWRBEINT_V(1U)
  927. #define ILLRDBEINT_S 4
  928. #define ILLRDBEINT_V(x) ((x) << ILLRDBEINT_S)
  929. #define ILLRDBEINT_F ILLRDBEINT_V(1U)
  930. #define ILLRDINT_S 3
  931. #define ILLRDINT_V(x) ((x) << ILLRDINT_S)
  932. #define ILLRDINT_F ILLRDINT_V(1U)
  933. #define ILLWRINT_S 2
  934. #define ILLWRINT_V(x) ((x) << ILLWRINT_S)
  935. #define ILLWRINT_F ILLWRINT_V(1U)
  936. #define ILLTRANSINT_S 1
  937. #define ILLTRANSINT_V(x) ((x) << ILLTRANSINT_S)
  938. #define ILLTRANSINT_F ILLTRANSINT_V(1U)
  939. #define RSVDSPACEINT_S 0
  940. #define RSVDSPACEINT_V(x) ((x) << RSVDSPACEINT_S)
  941. #define RSVDSPACEINT_F RSVDSPACEINT_V(1U)
  942. /* registers for module TP */
  943. #define DBGLAWHLF_S 23
  944. #define DBGLAWHLF_V(x) ((x) << DBGLAWHLF_S)
  945. #define DBGLAWHLF_F DBGLAWHLF_V(1U)
  946. #define DBGLAWPTR_S 16
  947. #define DBGLAWPTR_M 0x7fU
  948. #define DBGLAWPTR_G(x) (((x) >> DBGLAWPTR_S) & DBGLAWPTR_M)
  949. #define DBGLAENABLE_S 12
  950. #define DBGLAENABLE_V(x) ((x) << DBGLAENABLE_S)
  951. #define DBGLAENABLE_F DBGLAENABLE_V(1U)
  952. #define DBGLARPTR_S 0
  953. #define DBGLARPTR_M 0x7fU
  954. #define DBGLARPTR_V(x) ((x) << DBGLARPTR_S)
  955. #define TP_DBG_LA_DATAL_A 0x7ed8
  956. #define TP_DBG_LA_CONFIG_A 0x7ed4
  957. #define TP_OUT_CONFIG_A 0x7d04
  958. #define TP_GLOBAL_CONFIG_A 0x7d08
  959. #define TP_CMM_TCB_BASE_A 0x7d10
  960. #define TP_CMM_MM_BASE_A 0x7d14
  961. #define TP_CMM_TIMER_BASE_A 0x7d18
  962. #define TP_PMM_TX_BASE_A 0x7d20
  963. #define TP_PMM_RX_BASE_A 0x7d28
  964. #define TP_PMM_RX_PAGE_SIZE_A 0x7d2c
  965. #define TP_PMM_RX_MAX_PAGE_A 0x7d30
  966. #define TP_PMM_TX_PAGE_SIZE_A 0x7d34
  967. #define TP_PMM_TX_MAX_PAGE_A 0x7d38
  968. #define TP_CMM_MM_MAX_PSTRUCT_A 0x7e6c
  969. #define PMRXNUMCHN_S 31
  970. #define PMRXNUMCHN_V(x) ((x) << PMRXNUMCHN_S)
  971. #define PMRXNUMCHN_F PMRXNUMCHN_V(1U)
  972. #define PMTXNUMCHN_S 30
  973. #define PMTXNUMCHN_M 0x3U
  974. #define PMTXNUMCHN_G(x) (((x) >> PMTXNUMCHN_S) & PMTXNUMCHN_M)
  975. #define PMTXMAXPAGE_S 0
  976. #define PMTXMAXPAGE_M 0x1fffffU
  977. #define PMTXMAXPAGE_G(x) (((x) >> PMTXMAXPAGE_S) & PMTXMAXPAGE_M)
  978. #define PMRXMAXPAGE_S 0
  979. #define PMRXMAXPAGE_M 0x1fffffU
  980. #define PMRXMAXPAGE_G(x) (((x) >> PMRXMAXPAGE_S) & PMRXMAXPAGE_M)
  981. #define DBGLAMODE_S 14
  982. #define DBGLAMODE_M 0x3U
  983. #define DBGLAMODE_G(x) (((x) >> DBGLAMODE_S) & DBGLAMODE_M)
  984. #define FIVETUPLELOOKUP_S 17
  985. #define FIVETUPLELOOKUP_M 0x3U
  986. #define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S)
  987. #define FIVETUPLELOOKUP_G(x) (((x) >> FIVETUPLELOOKUP_S) & FIVETUPLELOOKUP_M)
  988. #define TP_PARA_REG2_A 0x7d68
  989. #define MAXRXDATA_S 16
  990. #define MAXRXDATA_M 0xffffU
  991. #define MAXRXDATA_G(x) (((x) >> MAXRXDATA_S) & MAXRXDATA_M)
  992. #define TP_TIMER_RESOLUTION_A 0x7d90
  993. #define TIMERRESOLUTION_S 16
  994. #define TIMERRESOLUTION_M 0xffU
  995. #define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M)
  996. #define TIMESTAMPRESOLUTION_S 8
  997. #define TIMESTAMPRESOLUTION_M 0xffU
  998. #define TIMESTAMPRESOLUTION_G(x) \
  999. (((x) >> TIMESTAMPRESOLUTION_S) & TIMESTAMPRESOLUTION_M)
  1000. #define DELAYEDACKRESOLUTION_S 0
  1001. #define DELAYEDACKRESOLUTION_M 0xffU
  1002. #define DELAYEDACKRESOLUTION_G(x) \
  1003. (((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M)
  1004. #define TP_SHIFT_CNT_A 0x7dc0
  1005. #define TP_RXT_MIN_A 0x7d98
  1006. #define TP_RXT_MAX_A 0x7d9c
  1007. #define TP_PERS_MIN_A 0x7da0
  1008. #define TP_PERS_MAX_A 0x7da4
  1009. #define TP_KEEP_IDLE_A 0x7da8
  1010. #define TP_KEEP_INTVL_A 0x7dac
  1011. #define TP_INIT_SRTT_A 0x7db0
  1012. #define TP_DACK_TIMER_A 0x7db4
  1013. #define TP_FINWAIT2_TIMER_A 0x7db8
  1014. #define INITSRTT_S 0
  1015. #define INITSRTT_M 0xffffU
  1016. #define INITSRTT_G(x) (((x) >> INITSRTT_S) & INITSRTT_M)
  1017. #define PERSMAX_S 0
  1018. #define PERSMAX_M 0x3fffffffU
  1019. #define PERSMAX_V(x) ((x) << PERSMAX_S)
  1020. #define PERSMAX_G(x) (((x) >> PERSMAX_S) & PERSMAX_M)
  1021. #define SYNSHIFTMAX_S 24
  1022. #define SYNSHIFTMAX_M 0xffU
  1023. #define SYNSHIFTMAX_V(x) ((x) << SYNSHIFTMAX_S)
  1024. #define SYNSHIFTMAX_G(x) (((x) >> SYNSHIFTMAX_S) & SYNSHIFTMAX_M)
  1025. #define RXTSHIFTMAXR1_S 20
  1026. #define RXTSHIFTMAXR1_M 0xfU
  1027. #define RXTSHIFTMAXR1_V(x) ((x) << RXTSHIFTMAXR1_S)
  1028. #define RXTSHIFTMAXR1_G(x) (((x) >> RXTSHIFTMAXR1_S) & RXTSHIFTMAXR1_M)
  1029. #define RXTSHIFTMAXR2_S 16
  1030. #define RXTSHIFTMAXR2_M 0xfU
  1031. #define RXTSHIFTMAXR2_V(x) ((x) << RXTSHIFTMAXR2_S)
  1032. #define RXTSHIFTMAXR2_G(x) (((x) >> RXTSHIFTMAXR2_S) & RXTSHIFTMAXR2_M)
  1033. #define PERSHIFTBACKOFFMAX_S 12
  1034. #define PERSHIFTBACKOFFMAX_M 0xfU
  1035. #define PERSHIFTBACKOFFMAX_V(x) ((x) << PERSHIFTBACKOFFMAX_S)
  1036. #define PERSHIFTBACKOFFMAX_G(x) \
  1037. (((x) >> PERSHIFTBACKOFFMAX_S) & PERSHIFTBACKOFFMAX_M)
  1038. #define PERSHIFTMAX_S 8
  1039. #define PERSHIFTMAX_M 0xfU
  1040. #define PERSHIFTMAX_V(x) ((x) << PERSHIFTMAX_S)
  1041. #define PERSHIFTMAX_G(x) (((x) >> PERSHIFTMAX_S) & PERSHIFTMAX_M)
  1042. #define KEEPALIVEMAXR1_S 4
  1043. #define KEEPALIVEMAXR1_M 0xfU
  1044. #define KEEPALIVEMAXR1_V(x) ((x) << KEEPALIVEMAXR1_S)
  1045. #define KEEPALIVEMAXR1_G(x) (((x) >> KEEPALIVEMAXR1_S) & KEEPALIVEMAXR1_M)
  1046. #define KEEPALIVEMAXR2_S 0
  1047. #define KEEPALIVEMAXR2_M 0xfU
  1048. #define KEEPALIVEMAXR2_V(x) ((x) << KEEPALIVEMAXR2_S)
  1049. #define KEEPALIVEMAXR2_G(x) (((x) >> KEEPALIVEMAXR2_S) & KEEPALIVEMAXR2_M)
  1050. #define ROWINDEX_S 16
  1051. #define ROWINDEX_V(x) ((x) << ROWINDEX_S)
  1052. #define TP_CCTRL_TABLE_A 0x7ddc
  1053. #define TP_MTU_TABLE_A 0x7de4
  1054. #define MTUINDEX_S 24
  1055. #define MTUINDEX_V(x) ((x) << MTUINDEX_S)
  1056. #define MTUWIDTH_S 16
  1057. #define MTUWIDTH_M 0xfU
  1058. #define MTUWIDTH_V(x) ((x) << MTUWIDTH_S)
  1059. #define MTUWIDTH_G(x) (((x) >> MTUWIDTH_S) & MTUWIDTH_M)
  1060. #define MTUVALUE_S 0
  1061. #define MTUVALUE_M 0x3fffU
  1062. #define MTUVALUE_V(x) ((x) << MTUVALUE_S)
  1063. #define MTUVALUE_G(x) (((x) >> MTUVALUE_S) & MTUVALUE_M)
  1064. #define TP_RSS_LKP_TABLE_A 0x7dec
  1065. #define TP_CMM_MM_RX_FLST_BASE_A 0x7e60
  1066. #define TP_CMM_MM_TX_FLST_BASE_A 0x7e64
  1067. #define TP_CMM_MM_PS_FLST_BASE_A 0x7e68
  1068. #define LKPTBLROWVLD_S 31
  1069. #define LKPTBLROWVLD_V(x) ((x) << LKPTBLROWVLD_S)
  1070. #define LKPTBLROWVLD_F LKPTBLROWVLD_V(1U)
  1071. #define LKPTBLQUEUE1_S 10
  1072. #define LKPTBLQUEUE1_M 0x3ffU
  1073. #define LKPTBLQUEUE1_G(x) (((x) >> LKPTBLQUEUE1_S) & LKPTBLQUEUE1_M)
  1074. #define LKPTBLQUEUE0_S 0
  1075. #define LKPTBLQUEUE0_M 0x3ffU
  1076. #define LKPTBLQUEUE0_G(x) (((x) >> LKPTBLQUEUE0_S) & LKPTBLQUEUE0_M)
  1077. #define TP_PIO_ADDR_A 0x7e40
  1078. #define TP_PIO_DATA_A 0x7e44
  1079. #define TP_MIB_INDEX_A 0x7e50
  1080. #define TP_MIB_DATA_A 0x7e54
  1081. #define TP_INT_CAUSE_A 0x7e74
  1082. #define FLMTXFLSTEMPTY_S 30
  1083. #define FLMTXFLSTEMPTY_V(x) ((x) << FLMTXFLSTEMPTY_S)
  1084. #define FLMTXFLSTEMPTY_F FLMTXFLSTEMPTY_V(1U)
  1085. #define TP_TX_ORATE_A 0x7ebc
  1086. #define OFDRATE3_S 24
  1087. #define OFDRATE3_M 0xffU
  1088. #define OFDRATE3_G(x) (((x) >> OFDRATE3_S) & OFDRATE3_M)
  1089. #define OFDRATE2_S 16
  1090. #define OFDRATE2_M 0xffU
  1091. #define OFDRATE2_G(x) (((x) >> OFDRATE2_S) & OFDRATE2_M)
  1092. #define OFDRATE1_S 8
  1093. #define OFDRATE1_M 0xffU
  1094. #define OFDRATE1_G(x) (((x) >> OFDRATE1_S) & OFDRATE1_M)
  1095. #define OFDRATE0_S 0
  1096. #define OFDRATE0_M 0xffU
  1097. #define OFDRATE0_G(x) (((x) >> OFDRATE0_S) & OFDRATE0_M)
  1098. #define TP_TX_TRATE_A 0x7ed0
  1099. #define TNLRATE3_S 24
  1100. #define TNLRATE3_M 0xffU
  1101. #define TNLRATE3_G(x) (((x) >> TNLRATE3_S) & TNLRATE3_M)
  1102. #define TNLRATE2_S 16
  1103. #define TNLRATE2_M 0xffU
  1104. #define TNLRATE2_G(x) (((x) >> TNLRATE2_S) & TNLRATE2_M)
  1105. #define TNLRATE1_S 8
  1106. #define TNLRATE1_M 0xffU
  1107. #define TNLRATE1_G(x) (((x) >> TNLRATE1_S) & TNLRATE1_M)
  1108. #define TNLRATE0_S 0
  1109. #define TNLRATE0_M 0xffU
  1110. #define TNLRATE0_G(x) (((x) >> TNLRATE0_S) & TNLRATE0_M)
  1111. #define TP_VLAN_PRI_MAP_A 0x140
  1112. #define FRAGMENTATION_S 9
  1113. #define FRAGMENTATION_V(x) ((x) << FRAGMENTATION_S)
  1114. #define FRAGMENTATION_F FRAGMENTATION_V(1U)
  1115. #define MPSHITTYPE_S 8
  1116. #define MPSHITTYPE_V(x) ((x) << MPSHITTYPE_S)
  1117. #define MPSHITTYPE_F MPSHITTYPE_V(1U)
  1118. #define MACMATCH_S 7
  1119. #define MACMATCH_V(x) ((x) << MACMATCH_S)
  1120. #define MACMATCH_F MACMATCH_V(1U)
  1121. #define ETHERTYPE_S 6
  1122. #define ETHERTYPE_V(x) ((x) << ETHERTYPE_S)
  1123. #define ETHERTYPE_F ETHERTYPE_V(1U)
  1124. #define PROTOCOL_S 5
  1125. #define PROTOCOL_V(x) ((x) << PROTOCOL_S)
  1126. #define PROTOCOL_F PROTOCOL_V(1U)
  1127. #define TOS_S 4
  1128. #define TOS_V(x) ((x) << TOS_S)
  1129. #define TOS_F TOS_V(1U)
  1130. #define VLAN_S 3
  1131. #define VLAN_V(x) ((x) << VLAN_S)
  1132. #define VLAN_F VLAN_V(1U)
  1133. #define VNIC_ID_S 2
  1134. #define VNIC_ID_V(x) ((x) << VNIC_ID_S)
  1135. #define VNIC_ID_F VNIC_ID_V(1U)
  1136. #define PORT_S 1
  1137. #define PORT_V(x) ((x) << PORT_S)
  1138. #define PORT_F PORT_V(1U)
  1139. #define FCOE_S 0
  1140. #define FCOE_V(x) ((x) << FCOE_S)
  1141. #define FCOE_F FCOE_V(1U)
  1142. #define FILTERMODE_S 15
  1143. #define FILTERMODE_V(x) ((x) << FILTERMODE_S)
  1144. #define FILTERMODE_F FILTERMODE_V(1U)
  1145. #define FCOEMASK_S 14
  1146. #define FCOEMASK_V(x) ((x) << FCOEMASK_S)
  1147. #define FCOEMASK_F FCOEMASK_V(1U)
  1148. #define TP_INGRESS_CONFIG_A 0x141
  1149. #define VNIC_S 11
  1150. #define VNIC_V(x) ((x) << VNIC_S)
  1151. #define VNIC_F VNIC_V(1U)
  1152. #define CSUM_HAS_PSEUDO_HDR_S 10
  1153. #define CSUM_HAS_PSEUDO_HDR_V(x) ((x) << CSUM_HAS_PSEUDO_HDR_S)
  1154. #define CSUM_HAS_PSEUDO_HDR_F CSUM_HAS_PSEUDO_HDR_V(1U)
  1155. #define TP_MIB_MAC_IN_ERR_0_A 0x0
  1156. #define TP_MIB_HDR_IN_ERR_0_A 0x4
  1157. #define TP_MIB_TCP_IN_ERR_0_A 0x8
  1158. #define TP_MIB_TCP_OUT_RST_A 0xc
  1159. #define TP_MIB_TCP_IN_SEG_HI_A 0x10
  1160. #define TP_MIB_TCP_IN_SEG_LO_A 0x11
  1161. #define TP_MIB_TCP_OUT_SEG_HI_A 0x12
  1162. #define TP_MIB_TCP_OUT_SEG_LO_A 0x13
  1163. #define TP_MIB_TCP_RXT_SEG_HI_A 0x14
  1164. #define TP_MIB_TCP_RXT_SEG_LO_A 0x15
  1165. #define TP_MIB_TNL_CNG_DROP_0_A 0x18
  1166. #define TP_MIB_OFD_CHN_DROP_0_A 0x1c
  1167. #define TP_MIB_TCP_V6IN_ERR_0_A 0x28
  1168. #define TP_MIB_TCP_V6OUT_RST_A 0x2c
  1169. #define TP_MIB_OFD_ARP_DROP_A 0x36
  1170. #define TP_MIB_CPL_IN_REQ_0_A 0x38
  1171. #define TP_MIB_CPL_OUT_RSP_0_A 0x3c
  1172. #define TP_MIB_TNL_DROP_0_A 0x44
  1173. #define TP_MIB_FCOE_DDP_0_A 0x48
  1174. #define TP_MIB_FCOE_DROP_0_A 0x4c
  1175. #define TP_MIB_FCOE_BYTE_0_HI_A 0x50
  1176. #define TP_MIB_OFD_VLN_DROP_0_A 0x58
  1177. #define TP_MIB_USM_PKTS_A 0x5c
  1178. #define TP_MIB_RQE_DFR_PKT_A 0x64
  1179. #define ULP_TX_INT_CAUSE_A 0x8dcc
  1180. #define ULP_TX_TPT_LLIMIT_A 0x8dd4
  1181. #define ULP_TX_TPT_ULIMIT_A 0x8dd8
  1182. #define ULP_TX_PBL_LLIMIT_A 0x8ddc
  1183. #define ULP_TX_PBL_ULIMIT_A 0x8de0
  1184. #define ULP_TX_ERR_TABLE_BASE_A 0x8e04
  1185. #define PBL_BOUND_ERR_CH3_S 31
  1186. #define PBL_BOUND_ERR_CH3_V(x) ((x) << PBL_BOUND_ERR_CH3_S)
  1187. #define PBL_BOUND_ERR_CH3_F PBL_BOUND_ERR_CH3_V(1U)
  1188. #define PBL_BOUND_ERR_CH2_S 30
  1189. #define PBL_BOUND_ERR_CH2_V(x) ((x) << PBL_BOUND_ERR_CH2_S)
  1190. #define PBL_BOUND_ERR_CH2_F PBL_BOUND_ERR_CH2_V(1U)
  1191. #define PBL_BOUND_ERR_CH1_S 29
  1192. #define PBL_BOUND_ERR_CH1_V(x) ((x) << PBL_BOUND_ERR_CH1_S)
  1193. #define PBL_BOUND_ERR_CH1_F PBL_BOUND_ERR_CH1_V(1U)
  1194. #define PBL_BOUND_ERR_CH0_S 28
  1195. #define PBL_BOUND_ERR_CH0_V(x) ((x) << PBL_BOUND_ERR_CH0_S)
  1196. #define PBL_BOUND_ERR_CH0_F PBL_BOUND_ERR_CH0_V(1U)
  1197. #define PM_RX_INT_CAUSE_A 0x8fdc
  1198. #define PM_RX_STAT_CONFIG_A 0x8fc8
  1199. #define PM_RX_STAT_COUNT_A 0x8fcc
  1200. #define PM_RX_STAT_LSB_A 0x8fd0
  1201. #define PM_RX_DBG_CTRL_A 0x8fd0
  1202. #define PM_RX_DBG_DATA_A 0x8fd4
  1203. #define PM_RX_DBG_STAT_MSB_A 0x10013
  1204. #define PMRX_FRAMING_ERROR_F 0x003ffff0U
  1205. #define ZERO_E_CMD_ERROR_S 22
  1206. #define ZERO_E_CMD_ERROR_V(x) ((x) << ZERO_E_CMD_ERROR_S)
  1207. #define ZERO_E_CMD_ERROR_F ZERO_E_CMD_ERROR_V(1U)
  1208. #define OCSPI_PAR_ERROR_S 3
  1209. #define OCSPI_PAR_ERROR_V(x) ((x) << OCSPI_PAR_ERROR_S)
  1210. #define OCSPI_PAR_ERROR_F OCSPI_PAR_ERROR_V(1U)
  1211. #define DB_OPTIONS_PAR_ERROR_S 2
  1212. #define DB_OPTIONS_PAR_ERROR_V(x) ((x) << DB_OPTIONS_PAR_ERROR_S)
  1213. #define DB_OPTIONS_PAR_ERROR_F DB_OPTIONS_PAR_ERROR_V(1U)
  1214. #define IESPI_PAR_ERROR_S 1
  1215. #define IESPI_PAR_ERROR_V(x) ((x) << IESPI_PAR_ERROR_S)
  1216. #define IESPI_PAR_ERROR_F IESPI_PAR_ERROR_V(1U)
  1217. #define PMRX_E_PCMD_PAR_ERROR_S 0
  1218. #define PMRX_E_PCMD_PAR_ERROR_V(x) ((x) << PMRX_E_PCMD_PAR_ERROR_S)
  1219. #define PMRX_E_PCMD_PAR_ERROR_F PMRX_E_PCMD_PAR_ERROR_V(1U)
  1220. #define PM_TX_INT_CAUSE_A 0x8ffc
  1221. #define PM_TX_STAT_CONFIG_A 0x8fe8
  1222. #define PM_TX_STAT_COUNT_A 0x8fec
  1223. #define PM_TX_STAT_LSB_A 0x8ff0
  1224. #define PM_TX_DBG_CTRL_A 0x8ff0
  1225. #define PM_TX_DBG_DATA_A 0x8ff4
  1226. #define PM_TX_DBG_STAT_MSB_A 0x1001a
  1227. #define PCMD_LEN_OVFL0_S 31
  1228. #define PCMD_LEN_OVFL0_V(x) ((x) << PCMD_LEN_OVFL0_S)
  1229. #define PCMD_LEN_OVFL0_F PCMD_LEN_OVFL0_V(1U)
  1230. #define PCMD_LEN_OVFL1_S 30
  1231. #define PCMD_LEN_OVFL1_V(x) ((x) << PCMD_LEN_OVFL1_S)
  1232. #define PCMD_LEN_OVFL1_F PCMD_LEN_OVFL1_V(1U)
  1233. #define PCMD_LEN_OVFL2_S 29
  1234. #define PCMD_LEN_OVFL2_V(x) ((x) << PCMD_LEN_OVFL2_S)
  1235. #define PCMD_LEN_OVFL2_F PCMD_LEN_OVFL2_V(1U)
  1236. #define ZERO_C_CMD_ERROR_S 28
  1237. #define ZERO_C_CMD_ERROR_V(x) ((x) << ZERO_C_CMD_ERROR_S)
  1238. #define ZERO_C_CMD_ERROR_F ZERO_C_CMD_ERROR_V(1U)
  1239. #define PMTX_FRAMING_ERROR_F 0x0ffffff0U
  1240. #define OESPI_PAR_ERROR_S 3
  1241. #define OESPI_PAR_ERROR_V(x) ((x) << OESPI_PAR_ERROR_S)
  1242. #define OESPI_PAR_ERROR_F OESPI_PAR_ERROR_V(1U)
  1243. #define ICSPI_PAR_ERROR_S 1
  1244. #define ICSPI_PAR_ERROR_V(x) ((x) << ICSPI_PAR_ERROR_S)
  1245. #define ICSPI_PAR_ERROR_F ICSPI_PAR_ERROR_V(1U)
  1246. #define PMTX_C_PCMD_PAR_ERROR_S 0
  1247. #define PMTX_C_PCMD_PAR_ERROR_V(x) ((x) << PMTX_C_PCMD_PAR_ERROR_S)
  1248. #define PMTX_C_PCMD_PAR_ERROR_F PMTX_C_PCMD_PAR_ERROR_V(1U)
  1249. #define MPS_PORT_STAT_TX_PORT_BYTES_L 0x400
  1250. #define MPS_PORT_STAT_TX_PORT_BYTES_H 0x404
  1251. #define MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408
  1252. #define MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c
  1253. #define MPS_PORT_STAT_TX_PORT_BCAST_L 0x410
  1254. #define MPS_PORT_STAT_TX_PORT_BCAST_H 0x414
  1255. #define MPS_PORT_STAT_TX_PORT_MCAST_L 0x418
  1256. #define MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c
  1257. #define MPS_PORT_STAT_TX_PORT_UCAST_L 0x420
  1258. #define MPS_PORT_STAT_TX_PORT_UCAST_H 0x424
  1259. #define MPS_PORT_STAT_TX_PORT_ERROR_L 0x428
  1260. #define MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c
  1261. #define MPS_PORT_STAT_TX_PORT_64B_L 0x430
  1262. #define MPS_PORT_STAT_TX_PORT_64B_H 0x434
  1263. #define MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438
  1264. #define MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c
  1265. #define MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440
  1266. #define MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444
  1267. #define MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448
  1268. #define MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c
  1269. #define MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450
  1270. #define MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454
  1271. #define MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458
  1272. #define MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c
  1273. #define MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460
  1274. #define MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464
  1275. #define MPS_PORT_STAT_TX_PORT_DROP_L 0x468
  1276. #define MPS_PORT_STAT_TX_PORT_DROP_H 0x46c
  1277. #define MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470
  1278. #define MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474
  1279. #define MPS_PORT_STAT_TX_PORT_PPP0_L 0x478
  1280. #define MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c
  1281. #define MPS_PORT_STAT_TX_PORT_PPP1_L 0x480
  1282. #define MPS_PORT_STAT_TX_PORT_PPP1_H 0x484
  1283. #define MPS_PORT_STAT_TX_PORT_PPP2_L 0x488
  1284. #define MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c
  1285. #define MPS_PORT_STAT_TX_PORT_PPP3_L 0x490
  1286. #define MPS_PORT_STAT_TX_PORT_PPP3_H 0x494
  1287. #define MPS_PORT_STAT_TX_PORT_PPP4_L 0x498
  1288. #define MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c
  1289. #define MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0
  1290. #define MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4
  1291. #define MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8
  1292. #define MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac
  1293. #define MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0
  1294. #define MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4
  1295. #define MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0
  1296. #define MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4
  1297. #define MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8
  1298. #define MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc
  1299. #define MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0
  1300. #define MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4
  1301. #define MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8
  1302. #define MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc
  1303. #define MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0
  1304. #define MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4
  1305. #define MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8
  1306. #define MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec
  1307. #define MPS_PORT_STAT_LB_PORT_64B_L 0x4f0
  1308. #define MPS_PORT_STAT_LB_PORT_64B_H 0x4f4
  1309. #define MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8
  1310. #define MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc
  1311. #define MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500
  1312. #define MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504
  1313. #define MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508
  1314. #define MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c
  1315. #define MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510
  1316. #define MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514
  1317. #define MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518
  1318. #define MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c
  1319. #define MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520
  1320. #define MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524
  1321. #define MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528
  1322. #define MPS_PORT_STAT_LB_PORT_DROP_FRAMES_L 0x528
  1323. #define MPS_PORT_STAT_RX_PORT_BYTES_L 0x540
  1324. #define MPS_PORT_STAT_RX_PORT_BYTES_H 0x544
  1325. #define MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548
  1326. #define MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c
  1327. #define MPS_PORT_STAT_RX_PORT_BCAST_L 0x550
  1328. #define MPS_PORT_STAT_RX_PORT_BCAST_H 0x554
  1329. #define MPS_PORT_STAT_RX_PORT_MCAST_L 0x558
  1330. #define MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c
  1331. #define MPS_PORT_STAT_RX_PORT_UCAST_L 0x560
  1332. #define MPS_PORT_STAT_RX_PORT_UCAST_H 0x564
  1333. #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568
  1334. #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c
  1335. #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570
  1336. #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574
  1337. #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578
  1338. #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c
  1339. #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580
  1340. #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584
  1341. #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588
  1342. #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c
  1343. #define MPS_PORT_STAT_RX_PORT_64B_L 0x590
  1344. #define MPS_PORT_STAT_RX_PORT_64B_H 0x594
  1345. #define MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598
  1346. #define MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c
  1347. #define MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0
  1348. #define MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4
  1349. #define MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8
  1350. #define MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac
  1351. #define MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0
  1352. #define MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4
  1353. #define MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8
  1354. #define MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc
  1355. #define MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0
  1356. #define MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4
  1357. #define MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8
  1358. #define MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc
  1359. #define MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0
  1360. #define MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4
  1361. #define MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8
  1362. #define MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc
  1363. #define MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0
  1364. #define MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4
  1365. #define MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8
  1366. #define MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec
  1367. #define MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0
  1368. #define MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4
  1369. #define MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8
  1370. #define MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc
  1371. #define MPS_PORT_STAT_RX_PORT_PPP6_L 0x600
  1372. #define MPS_PORT_STAT_RX_PORT_PPP6_H 0x604
  1373. #define MPS_PORT_STAT_RX_PORT_PPP7_L 0x608
  1374. #define MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c
  1375. #define MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610
  1376. #define MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614
  1377. #define MAC_PORT_MAGIC_MACID_LO 0x824
  1378. #define MAC_PORT_MAGIC_MACID_HI 0x828
  1379. #define MAC_PORT_EPIO_DATA0_A 0x8c0
  1380. #define MAC_PORT_EPIO_DATA1_A 0x8c4
  1381. #define MAC_PORT_EPIO_DATA2_A 0x8c8
  1382. #define MAC_PORT_EPIO_DATA3_A 0x8cc
  1383. #define MAC_PORT_EPIO_OP_A 0x8d0
  1384. #define MAC_PORT_CFG2_A 0x818
  1385. #define MPS_CMN_CTL_A 0x9000
  1386. #define NUMPORTS_S 0
  1387. #define NUMPORTS_M 0x3U
  1388. #define NUMPORTS_G(x) (((x) >> NUMPORTS_S) & NUMPORTS_M)
  1389. #define MPS_INT_CAUSE_A 0x9008
  1390. #define MPS_TX_INT_CAUSE_A 0x9408
  1391. #define FRMERR_S 15
  1392. #define FRMERR_V(x) ((x) << FRMERR_S)
  1393. #define FRMERR_F FRMERR_V(1U)
  1394. #define SECNTERR_S 14
  1395. #define SECNTERR_V(x) ((x) << SECNTERR_S)
  1396. #define SECNTERR_F SECNTERR_V(1U)
  1397. #define BUBBLE_S 13
  1398. #define BUBBLE_V(x) ((x) << BUBBLE_S)
  1399. #define BUBBLE_F BUBBLE_V(1U)
  1400. #define TXDESCFIFO_S 9
  1401. #define TXDESCFIFO_M 0xfU
  1402. #define TXDESCFIFO_V(x) ((x) << TXDESCFIFO_S)
  1403. #define TXDATAFIFO_S 5
  1404. #define TXDATAFIFO_M 0xfU
  1405. #define TXDATAFIFO_V(x) ((x) << TXDATAFIFO_S)
  1406. #define NCSIFIFO_S 4
  1407. #define NCSIFIFO_V(x) ((x) << NCSIFIFO_S)
  1408. #define NCSIFIFO_F NCSIFIFO_V(1U)
  1409. #define TPFIFO_S 0
  1410. #define TPFIFO_M 0xfU
  1411. #define TPFIFO_V(x) ((x) << TPFIFO_S)
  1412. #define MPS_STAT_PERR_INT_CAUSE_SRAM_A 0x9614
  1413. #define MPS_STAT_PERR_INT_CAUSE_TX_FIFO_A 0x9620
  1414. #define MPS_STAT_PERR_INT_CAUSE_RX_FIFO_A 0x962c
  1415. #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640
  1416. #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644
  1417. #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648
  1418. #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c
  1419. #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650
  1420. #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654
  1421. #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658
  1422. #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c
  1423. #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660
  1424. #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664
  1425. #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668
  1426. #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c
  1427. #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670
  1428. #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674
  1429. #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678
  1430. #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c
  1431. #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680
  1432. #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684
  1433. #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688
  1434. #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c
  1435. #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690
  1436. #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694
  1437. #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698
  1438. #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c
  1439. #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0
  1440. #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4
  1441. #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8
  1442. #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac
  1443. #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0
  1444. #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4
  1445. #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8
  1446. #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc
  1447. #define MPS_TRC_CFG_A 0x9800
  1448. #define TRCFIFOEMPTY_S 4
  1449. #define TRCFIFOEMPTY_V(x) ((x) << TRCFIFOEMPTY_S)
  1450. #define TRCFIFOEMPTY_F TRCFIFOEMPTY_V(1U)
  1451. #define TRCIGNOREDROPINPUT_S 3
  1452. #define TRCIGNOREDROPINPUT_V(x) ((x) << TRCIGNOREDROPINPUT_S)
  1453. #define TRCIGNOREDROPINPUT_F TRCIGNOREDROPINPUT_V(1U)
  1454. #define TRCKEEPDUPLICATES_S 2
  1455. #define TRCKEEPDUPLICATES_V(x) ((x) << TRCKEEPDUPLICATES_S)
  1456. #define TRCKEEPDUPLICATES_F TRCKEEPDUPLICATES_V(1U)
  1457. #define TRCEN_S 1
  1458. #define TRCEN_V(x) ((x) << TRCEN_S)
  1459. #define TRCEN_F TRCEN_V(1U)
  1460. #define TRCMULTIFILTER_S 0
  1461. #define TRCMULTIFILTER_V(x) ((x) << TRCMULTIFILTER_S)
  1462. #define TRCMULTIFILTER_F TRCMULTIFILTER_V(1U)
  1463. #define MPS_TRC_RSS_CONTROL_A 0x9808
  1464. #define MPS_TRC_FILTER1_RSS_CONTROL_A 0x9ff4
  1465. #define MPS_TRC_FILTER2_RSS_CONTROL_A 0x9ffc
  1466. #define MPS_TRC_FILTER3_RSS_CONTROL_A 0xa004
  1467. #define MPS_T5_TRC_RSS_CONTROL_A 0xa00c
  1468. #define RSSCONTROL_S 16
  1469. #define RSSCONTROL_V(x) ((x) << RSSCONTROL_S)
  1470. #define QUEUENUMBER_S 0
  1471. #define QUEUENUMBER_V(x) ((x) << QUEUENUMBER_S)
  1472. #define TFINVERTMATCH_S 24
  1473. #define TFINVERTMATCH_V(x) ((x) << TFINVERTMATCH_S)
  1474. #define TFINVERTMATCH_F TFINVERTMATCH_V(1U)
  1475. #define TFEN_S 22
  1476. #define TFEN_V(x) ((x) << TFEN_S)
  1477. #define TFEN_F TFEN_V(1U)
  1478. #define TFPORT_S 18
  1479. #define TFPORT_M 0xfU
  1480. #define TFPORT_V(x) ((x) << TFPORT_S)
  1481. #define TFPORT_G(x) (((x) >> TFPORT_S) & TFPORT_M)
  1482. #define TFLENGTH_S 8
  1483. #define TFLENGTH_M 0x1fU
  1484. #define TFLENGTH_V(x) ((x) << TFLENGTH_S)
  1485. #define TFLENGTH_G(x) (((x) >> TFLENGTH_S) & TFLENGTH_M)
  1486. #define TFOFFSET_S 0
  1487. #define TFOFFSET_M 0x1fU
  1488. #define TFOFFSET_V(x) ((x) << TFOFFSET_S)
  1489. #define TFOFFSET_G(x) (((x) >> TFOFFSET_S) & TFOFFSET_M)
  1490. #define T5_TFINVERTMATCH_S 25
  1491. #define T5_TFINVERTMATCH_V(x) ((x) << T5_TFINVERTMATCH_S)
  1492. #define T5_TFINVERTMATCH_F T5_TFINVERTMATCH_V(1U)
  1493. #define T5_TFEN_S 23
  1494. #define T5_TFEN_V(x) ((x) << T5_TFEN_S)
  1495. #define T5_TFEN_F T5_TFEN_V(1U)
  1496. #define T5_TFPORT_S 18
  1497. #define T5_TFPORT_M 0x1fU
  1498. #define T5_TFPORT_V(x) ((x) << T5_TFPORT_S)
  1499. #define T5_TFPORT_G(x) (((x) >> T5_TFPORT_S) & T5_TFPORT_M)
  1500. #define MPS_TRC_FILTER_MATCH_CTL_A_A 0x9810
  1501. #define MPS_TRC_FILTER_MATCH_CTL_B_A 0x9820
  1502. #define TFMINPKTSIZE_S 16
  1503. #define TFMINPKTSIZE_M 0x1ffU
  1504. #define TFMINPKTSIZE_V(x) ((x) << TFMINPKTSIZE_S)
  1505. #define TFMINPKTSIZE_G(x) (((x) >> TFMINPKTSIZE_S) & TFMINPKTSIZE_M)
  1506. #define TFCAPTUREMAX_S 0
  1507. #define TFCAPTUREMAX_M 0x3fffU
  1508. #define TFCAPTUREMAX_V(x) ((x) << TFCAPTUREMAX_S)
  1509. #define TFCAPTUREMAX_G(x) (((x) >> TFCAPTUREMAX_S) & TFCAPTUREMAX_M)
  1510. #define MPS_TRC_FILTER0_MATCH_A 0x9c00
  1511. #define MPS_TRC_FILTER0_DONT_CARE_A 0x9c80
  1512. #define MPS_TRC_FILTER1_MATCH_A 0x9d00
  1513. #define TP_RSS_CONFIG_A 0x7df0
  1514. #define TNL4TUPENIPV6_S 31
  1515. #define TNL4TUPENIPV6_V(x) ((x) << TNL4TUPENIPV6_S)
  1516. #define TNL4TUPENIPV6_F TNL4TUPENIPV6_V(1U)
  1517. #define TNL2TUPENIPV6_S 30
  1518. #define TNL2TUPENIPV6_V(x) ((x) << TNL2TUPENIPV6_S)
  1519. #define TNL2TUPENIPV6_F TNL2TUPENIPV6_V(1U)
  1520. #define TNL4TUPENIPV4_S 29
  1521. #define TNL4TUPENIPV4_V(x) ((x) << TNL4TUPENIPV4_S)
  1522. #define TNL4TUPENIPV4_F TNL4TUPENIPV4_V(1U)
  1523. #define TNL2TUPENIPV4_S 28
  1524. #define TNL2TUPENIPV4_V(x) ((x) << TNL2TUPENIPV4_S)
  1525. #define TNL2TUPENIPV4_F TNL2TUPENIPV4_V(1U)
  1526. #define TNLTCPSEL_S 27
  1527. #define TNLTCPSEL_V(x) ((x) << TNLTCPSEL_S)
  1528. #define TNLTCPSEL_F TNLTCPSEL_V(1U)
  1529. #define TNLIP6SEL_S 26
  1530. #define TNLIP6SEL_V(x) ((x) << TNLIP6SEL_S)
  1531. #define TNLIP6SEL_F TNLIP6SEL_V(1U)
  1532. #define TNLVRTSEL_S 25
  1533. #define TNLVRTSEL_V(x) ((x) << TNLVRTSEL_S)
  1534. #define TNLVRTSEL_F TNLVRTSEL_V(1U)
  1535. #define TNLMAPEN_S 24
  1536. #define TNLMAPEN_V(x) ((x) << TNLMAPEN_S)
  1537. #define TNLMAPEN_F TNLMAPEN_V(1U)
  1538. #define OFDHASHSAVE_S 19
  1539. #define OFDHASHSAVE_V(x) ((x) << OFDHASHSAVE_S)
  1540. #define OFDHASHSAVE_F OFDHASHSAVE_V(1U)
  1541. #define OFDVRTSEL_S 18
  1542. #define OFDVRTSEL_V(x) ((x) << OFDVRTSEL_S)
  1543. #define OFDVRTSEL_F OFDVRTSEL_V(1U)
  1544. #define OFDMAPEN_S 17
  1545. #define OFDMAPEN_V(x) ((x) << OFDMAPEN_S)
  1546. #define OFDMAPEN_F OFDMAPEN_V(1U)
  1547. #define OFDLKPEN_S 16
  1548. #define OFDLKPEN_V(x) ((x) << OFDLKPEN_S)
  1549. #define OFDLKPEN_F OFDLKPEN_V(1U)
  1550. #define SYN4TUPENIPV6_S 15
  1551. #define SYN4TUPENIPV6_V(x) ((x) << SYN4TUPENIPV6_S)
  1552. #define SYN4TUPENIPV6_F SYN4TUPENIPV6_V(1U)
  1553. #define SYN2TUPENIPV6_S 14
  1554. #define SYN2TUPENIPV6_V(x) ((x) << SYN2TUPENIPV6_S)
  1555. #define SYN2TUPENIPV6_F SYN2TUPENIPV6_V(1U)
  1556. #define SYN4TUPENIPV4_S 13
  1557. #define SYN4TUPENIPV4_V(x) ((x) << SYN4TUPENIPV4_S)
  1558. #define SYN4TUPENIPV4_F SYN4TUPENIPV4_V(1U)
  1559. #define SYN2TUPENIPV4_S 12
  1560. #define SYN2TUPENIPV4_V(x) ((x) << SYN2TUPENIPV4_S)
  1561. #define SYN2TUPENIPV4_F SYN2TUPENIPV4_V(1U)
  1562. #define SYNIP6SEL_S 11
  1563. #define SYNIP6SEL_V(x) ((x) << SYNIP6SEL_S)
  1564. #define SYNIP6SEL_F SYNIP6SEL_V(1U)
  1565. #define SYNVRTSEL_S 10
  1566. #define SYNVRTSEL_V(x) ((x) << SYNVRTSEL_S)
  1567. #define SYNVRTSEL_F SYNVRTSEL_V(1U)
  1568. #define SYNMAPEN_S 9
  1569. #define SYNMAPEN_V(x) ((x) << SYNMAPEN_S)
  1570. #define SYNMAPEN_F SYNMAPEN_V(1U)
  1571. #define SYNLKPEN_S 8
  1572. #define SYNLKPEN_V(x) ((x) << SYNLKPEN_S)
  1573. #define SYNLKPEN_F SYNLKPEN_V(1U)
  1574. #define CHANNELENABLE_S 7
  1575. #define CHANNELENABLE_V(x) ((x) << CHANNELENABLE_S)
  1576. #define CHANNELENABLE_F CHANNELENABLE_V(1U)
  1577. #define PORTENABLE_S 6
  1578. #define PORTENABLE_V(x) ((x) << PORTENABLE_S)
  1579. #define PORTENABLE_F PORTENABLE_V(1U)
  1580. #define TNLALLLOOKUP_S 5
  1581. #define TNLALLLOOKUP_V(x) ((x) << TNLALLLOOKUP_S)
  1582. #define TNLALLLOOKUP_F TNLALLLOOKUP_V(1U)
  1583. #define VIRTENABLE_S 4
  1584. #define VIRTENABLE_V(x) ((x) << VIRTENABLE_S)
  1585. #define VIRTENABLE_F VIRTENABLE_V(1U)
  1586. #define CONGESTIONENABLE_S 3
  1587. #define CONGESTIONENABLE_V(x) ((x) << CONGESTIONENABLE_S)
  1588. #define CONGESTIONENABLE_F CONGESTIONENABLE_V(1U)
  1589. #define HASHTOEPLITZ_S 2
  1590. #define HASHTOEPLITZ_V(x) ((x) << HASHTOEPLITZ_S)
  1591. #define HASHTOEPLITZ_F HASHTOEPLITZ_V(1U)
  1592. #define UDPENABLE_S 1
  1593. #define UDPENABLE_V(x) ((x) << UDPENABLE_S)
  1594. #define UDPENABLE_F UDPENABLE_V(1U)
  1595. #define DISABLE_S 0
  1596. #define DISABLE_V(x) ((x) << DISABLE_S)
  1597. #define DISABLE_F DISABLE_V(1U)
  1598. #define TP_RSS_CONFIG_TNL_A 0x7df4
  1599. #define MASKSIZE_S 28
  1600. #define MASKSIZE_M 0xfU
  1601. #define MASKSIZE_V(x) ((x) << MASKSIZE_S)
  1602. #define MASKSIZE_G(x) (((x) >> MASKSIZE_S) & MASKSIZE_M)
  1603. #define MASKFILTER_S 16
  1604. #define MASKFILTER_M 0x7ffU
  1605. #define MASKFILTER_V(x) ((x) << MASKFILTER_S)
  1606. #define MASKFILTER_G(x) (((x) >> MASKFILTER_S) & MASKFILTER_M)
  1607. #define USEWIRECH_S 0
  1608. #define USEWIRECH_V(x) ((x) << USEWIRECH_S)
  1609. #define USEWIRECH_F USEWIRECH_V(1U)
  1610. #define HASHALL_S 2
  1611. #define HASHALL_V(x) ((x) << HASHALL_S)
  1612. #define HASHALL_F HASHALL_V(1U)
  1613. #define HASHETH_S 1
  1614. #define HASHETH_V(x) ((x) << HASHETH_S)
  1615. #define HASHETH_F HASHETH_V(1U)
  1616. #define TP_RSS_CONFIG_OFD_A 0x7df8
  1617. #define RRCPLMAPEN_S 20
  1618. #define RRCPLMAPEN_V(x) ((x) << RRCPLMAPEN_S)
  1619. #define RRCPLMAPEN_F RRCPLMAPEN_V(1U)
  1620. #define RRCPLQUEWIDTH_S 16
  1621. #define RRCPLQUEWIDTH_M 0xfU
  1622. #define RRCPLQUEWIDTH_V(x) ((x) << RRCPLQUEWIDTH_S)
  1623. #define RRCPLQUEWIDTH_G(x) (((x) >> RRCPLQUEWIDTH_S) & RRCPLQUEWIDTH_M)
  1624. #define TP_RSS_CONFIG_SYN_A 0x7dfc
  1625. #define TP_RSS_CONFIG_VRT_A 0x7e00
  1626. #define VFRDRG_S 25
  1627. #define VFRDRG_V(x) ((x) << VFRDRG_S)
  1628. #define VFRDRG_F VFRDRG_V(1U)
  1629. #define VFRDEN_S 24
  1630. #define VFRDEN_V(x) ((x) << VFRDEN_S)
  1631. #define VFRDEN_F VFRDEN_V(1U)
  1632. #define VFPERREN_S 23
  1633. #define VFPERREN_V(x) ((x) << VFPERREN_S)
  1634. #define VFPERREN_F VFPERREN_V(1U)
  1635. #define KEYPERREN_S 22
  1636. #define KEYPERREN_V(x) ((x) << KEYPERREN_S)
  1637. #define KEYPERREN_F KEYPERREN_V(1U)
  1638. #define DISABLEVLAN_S 21
  1639. #define DISABLEVLAN_V(x) ((x) << DISABLEVLAN_S)
  1640. #define DISABLEVLAN_F DISABLEVLAN_V(1U)
  1641. #define ENABLEUP0_S 20
  1642. #define ENABLEUP0_V(x) ((x) << ENABLEUP0_S)
  1643. #define ENABLEUP0_F ENABLEUP0_V(1U)
  1644. #define HASHDELAY_S 16
  1645. #define HASHDELAY_M 0xfU
  1646. #define HASHDELAY_V(x) ((x) << HASHDELAY_S)
  1647. #define HASHDELAY_G(x) (((x) >> HASHDELAY_S) & HASHDELAY_M)
  1648. #define VFWRADDR_S 8
  1649. #define VFWRADDR_M 0x7fU
  1650. #define VFWRADDR_V(x) ((x) << VFWRADDR_S)
  1651. #define VFWRADDR_G(x) (((x) >> VFWRADDR_S) & VFWRADDR_M)
  1652. #define KEYMODE_S 6
  1653. #define KEYMODE_M 0x3U
  1654. #define KEYMODE_V(x) ((x) << KEYMODE_S)
  1655. #define KEYMODE_G(x) (((x) >> KEYMODE_S) & KEYMODE_M)
  1656. #define VFWREN_S 5
  1657. #define VFWREN_V(x) ((x) << VFWREN_S)
  1658. #define VFWREN_F VFWREN_V(1U)
  1659. #define KEYWREN_S 4
  1660. #define KEYWREN_V(x) ((x) << KEYWREN_S)
  1661. #define KEYWREN_F KEYWREN_V(1U)
  1662. #define KEYWRADDR_S 0
  1663. #define KEYWRADDR_M 0xfU
  1664. #define KEYWRADDR_V(x) ((x) << KEYWRADDR_S)
  1665. #define KEYWRADDR_G(x) (((x) >> KEYWRADDR_S) & KEYWRADDR_M)
  1666. #define KEYWRADDRX_S 30
  1667. #define KEYWRADDRX_M 0x3U
  1668. #define KEYWRADDRX_V(x) ((x) << KEYWRADDRX_S)
  1669. #define KEYWRADDRX_G(x) (((x) >> KEYWRADDRX_S) & KEYWRADDRX_M)
  1670. #define KEYEXTEND_S 26
  1671. #define KEYEXTEND_V(x) ((x) << KEYEXTEND_S)
  1672. #define KEYEXTEND_F KEYEXTEND_V(1U)
  1673. #define LKPIDXSIZE_S 24
  1674. #define LKPIDXSIZE_M 0x3U
  1675. #define LKPIDXSIZE_V(x) ((x) << LKPIDXSIZE_S)
  1676. #define LKPIDXSIZE_G(x) (((x) >> LKPIDXSIZE_S) & LKPIDXSIZE_M)
  1677. #define TP_RSS_VFL_CONFIG_A 0x3a
  1678. #define TP_RSS_VFH_CONFIG_A 0x3b
  1679. #define ENABLEUDPHASH_S 31
  1680. #define ENABLEUDPHASH_V(x) ((x) << ENABLEUDPHASH_S)
  1681. #define ENABLEUDPHASH_F ENABLEUDPHASH_V(1U)
  1682. #define VFUPEN_S 30
  1683. #define VFUPEN_V(x) ((x) << VFUPEN_S)
  1684. #define VFUPEN_F VFUPEN_V(1U)
  1685. #define VFVLNEX_S 28
  1686. #define VFVLNEX_V(x) ((x) << VFVLNEX_S)
  1687. #define VFVLNEX_F VFVLNEX_V(1U)
  1688. #define VFPRTEN_S 27
  1689. #define VFPRTEN_V(x) ((x) << VFPRTEN_S)
  1690. #define VFPRTEN_F VFPRTEN_V(1U)
  1691. #define VFCHNEN_S 26
  1692. #define VFCHNEN_V(x) ((x) << VFCHNEN_S)
  1693. #define VFCHNEN_F VFCHNEN_V(1U)
  1694. #define DEFAULTQUEUE_S 16
  1695. #define DEFAULTQUEUE_M 0x3ffU
  1696. #define DEFAULTQUEUE_G(x) (((x) >> DEFAULTQUEUE_S) & DEFAULTQUEUE_M)
  1697. #define VFIP6TWOTUPEN_S 6
  1698. #define VFIP6TWOTUPEN_V(x) ((x) << VFIP6TWOTUPEN_S)
  1699. #define VFIP6TWOTUPEN_F VFIP6TWOTUPEN_V(1U)
  1700. #define VFIP4FOURTUPEN_S 5
  1701. #define VFIP4FOURTUPEN_V(x) ((x) << VFIP4FOURTUPEN_S)
  1702. #define VFIP4FOURTUPEN_F VFIP4FOURTUPEN_V(1U)
  1703. #define VFIP4TWOTUPEN_S 4
  1704. #define VFIP4TWOTUPEN_V(x) ((x) << VFIP4TWOTUPEN_S)
  1705. #define VFIP4TWOTUPEN_F VFIP4TWOTUPEN_V(1U)
  1706. #define KEYINDEX_S 0
  1707. #define KEYINDEX_M 0xfU
  1708. #define KEYINDEX_G(x) (((x) >> KEYINDEX_S) & KEYINDEX_M)
  1709. #define MAPENABLE_S 31
  1710. #define MAPENABLE_V(x) ((x) << MAPENABLE_S)
  1711. #define MAPENABLE_F MAPENABLE_V(1U)
  1712. #define CHNENABLE_S 30
  1713. #define CHNENABLE_V(x) ((x) << CHNENABLE_S)
  1714. #define CHNENABLE_F CHNENABLE_V(1U)
  1715. #define PRTENABLE_S 29
  1716. #define PRTENABLE_V(x) ((x) << PRTENABLE_S)
  1717. #define PRTENABLE_F PRTENABLE_V(1U)
  1718. #define UDPFOURTUPEN_S 28
  1719. #define UDPFOURTUPEN_V(x) ((x) << UDPFOURTUPEN_S)
  1720. #define UDPFOURTUPEN_F UDPFOURTUPEN_V(1U)
  1721. #define IP6FOURTUPEN_S 27
  1722. #define IP6FOURTUPEN_V(x) ((x) << IP6FOURTUPEN_S)
  1723. #define IP6FOURTUPEN_F IP6FOURTUPEN_V(1U)
  1724. #define IP6TWOTUPEN_S 26
  1725. #define IP6TWOTUPEN_V(x) ((x) << IP6TWOTUPEN_S)
  1726. #define IP6TWOTUPEN_F IP6TWOTUPEN_V(1U)
  1727. #define IP4FOURTUPEN_S 25
  1728. #define IP4FOURTUPEN_V(x) ((x) << IP4FOURTUPEN_S)
  1729. #define IP4FOURTUPEN_F IP4FOURTUPEN_V(1U)
  1730. #define IP4TWOTUPEN_S 24
  1731. #define IP4TWOTUPEN_V(x) ((x) << IP4TWOTUPEN_S)
  1732. #define IP4TWOTUPEN_F IP4TWOTUPEN_V(1U)
  1733. #define IVFWIDTH_S 20
  1734. #define IVFWIDTH_M 0xfU
  1735. #define IVFWIDTH_V(x) ((x) << IVFWIDTH_S)
  1736. #define IVFWIDTH_G(x) (((x) >> IVFWIDTH_S) & IVFWIDTH_M)
  1737. #define CH1DEFAULTQUEUE_S 10
  1738. #define CH1DEFAULTQUEUE_M 0x3ffU
  1739. #define CH1DEFAULTQUEUE_V(x) ((x) << CH1DEFAULTQUEUE_S)
  1740. #define CH1DEFAULTQUEUE_G(x) (((x) >> CH1DEFAULTQUEUE_S) & CH1DEFAULTQUEUE_M)
  1741. #define CH0DEFAULTQUEUE_S 0
  1742. #define CH0DEFAULTQUEUE_M 0x3ffU
  1743. #define CH0DEFAULTQUEUE_V(x) ((x) << CH0DEFAULTQUEUE_S)
  1744. #define CH0DEFAULTQUEUE_G(x) (((x) >> CH0DEFAULTQUEUE_S) & CH0DEFAULTQUEUE_M)
  1745. #define VFLKPIDX_S 8
  1746. #define VFLKPIDX_M 0xffU
  1747. #define VFLKPIDX_G(x) (((x) >> VFLKPIDX_S) & VFLKPIDX_M)
  1748. #define T6_VFWRADDR_S 8
  1749. #define T6_VFWRADDR_M 0xffU
  1750. #define T6_VFWRADDR_V(x) ((x) << T6_VFWRADDR_S)
  1751. #define T6_VFWRADDR_G(x) (((x) >> T6_VFWRADDR_S) & T6_VFWRADDR_M)
  1752. #define TP_RSS_CONFIG_CNG_A 0x7e04
  1753. #define TP_RSS_SECRET_KEY0_A 0x40
  1754. #define TP_RSS_PF0_CONFIG_A 0x30
  1755. #define TP_RSS_PF_MAP_A 0x38
  1756. #define TP_RSS_PF_MSK_A 0x39
  1757. #define PF1LKPIDX_S 3
  1758. #define PF0LKPIDX_M 0x7U
  1759. #define PF1MSKSIZE_S 4
  1760. #define PF1MSKSIZE_M 0xfU
  1761. #define CHNCOUNT3_S 31
  1762. #define CHNCOUNT3_V(x) ((x) << CHNCOUNT3_S)
  1763. #define CHNCOUNT3_F CHNCOUNT3_V(1U)
  1764. #define CHNCOUNT2_S 30
  1765. #define CHNCOUNT2_V(x) ((x) << CHNCOUNT2_S)
  1766. #define CHNCOUNT2_F CHNCOUNT2_V(1U)
  1767. #define CHNCOUNT1_S 29
  1768. #define CHNCOUNT1_V(x) ((x) << CHNCOUNT1_S)
  1769. #define CHNCOUNT1_F CHNCOUNT1_V(1U)
  1770. #define CHNCOUNT0_S 28
  1771. #define CHNCOUNT0_V(x) ((x) << CHNCOUNT0_S)
  1772. #define CHNCOUNT0_F CHNCOUNT0_V(1U)
  1773. #define CHNUNDFLOW3_S 27
  1774. #define CHNUNDFLOW3_V(x) ((x) << CHNUNDFLOW3_S)
  1775. #define CHNUNDFLOW3_F CHNUNDFLOW3_V(1U)
  1776. #define CHNUNDFLOW2_S 26
  1777. #define CHNUNDFLOW2_V(x) ((x) << CHNUNDFLOW2_S)
  1778. #define CHNUNDFLOW2_F CHNUNDFLOW2_V(1U)
  1779. #define CHNUNDFLOW1_S 25
  1780. #define CHNUNDFLOW1_V(x) ((x) << CHNUNDFLOW1_S)
  1781. #define CHNUNDFLOW1_F CHNUNDFLOW1_V(1U)
  1782. #define CHNUNDFLOW0_S 24
  1783. #define CHNUNDFLOW0_V(x) ((x) << CHNUNDFLOW0_S)
  1784. #define CHNUNDFLOW0_F CHNUNDFLOW0_V(1U)
  1785. #define RSTCHN3_S 19
  1786. #define RSTCHN3_V(x) ((x) << RSTCHN3_S)
  1787. #define RSTCHN3_F RSTCHN3_V(1U)
  1788. #define RSTCHN2_S 18
  1789. #define RSTCHN2_V(x) ((x) << RSTCHN2_S)
  1790. #define RSTCHN2_F RSTCHN2_V(1U)
  1791. #define RSTCHN1_S 17
  1792. #define RSTCHN1_V(x) ((x) << RSTCHN1_S)
  1793. #define RSTCHN1_F RSTCHN1_V(1U)
  1794. #define RSTCHN0_S 16
  1795. #define RSTCHN0_V(x) ((x) << RSTCHN0_S)
  1796. #define RSTCHN0_F RSTCHN0_V(1U)
  1797. #define UPDVLD_S 15
  1798. #define UPDVLD_V(x) ((x) << UPDVLD_S)
  1799. #define UPDVLD_F UPDVLD_V(1U)
  1800. #define XOFF_S 14
  1801. #define XOFF_V(x) ((x) << XOFF_S)
  1802. #define XOFF_F XOFF_V(1U)
  1803. #define UPDCHN3_S 13
  1804. #define UPDCHN3_V(x) ((x) << UPDCHN3_S)
  1805. #define UPDCHN3_F UPDCHN3_V(1U)
  1806. #define UPDCHN2_S 12
  1807. #define UPDCHN2_V(x) ((x) << UPDCHN2_S)
  1808. #define UPDCHN2_F UPDCHN2_V(1U)
  1809. #define UPDCHN1_S 11
  1810. #define UPDCHN1_V(x) ((x) << UPDCHN1_S)
  1811. #define UPDCHN1_F UPDCHN1_V(1U)
  1812. #define UPDCHN0_S 10
  1813. #define UPDCHN0_V(x) ((x) << UPDCHN0_S)
  1814. #define UPDCHN0_F UPDCHN0_V(1U)
  1815. #define QUEUE_S 0
  1816. #define QUEUE_M 0x3ffU
  1817. #define QUEUE_V(x) ((x) << QUEUE_S)
  1818. #define QUEUE_G(x) (((x) >> QUEUE_S) & QUEUE_M)
  1819. #define MPS_TRC_INT_CAUSE_A 0x985c
  1820. #define MISCPERR_S 8
  1821. #define MISCPERR_V(x) ((x) << MISCPERR_S)
  1822. #define MISCPERR_F MISCPERR_V(1U)
  1823. #define PKTFIFO_S 4
  1824. #define PKTFIFO_M 0xfU
  1825. #define PKTFIFO_V(x) ((x) << PKTFIFO_S)
  1826. #define FILTMEM_S 0
  1827. #define FILTMEM_M 0xfU
  1828. #define FILTMEM_V(x) ((x) << FILTMEM_S)
  1829. #define MPS_CLS_INT_CAUSE_A 0xd028
  1830. #define HASHSRAM_S 2
  1831. #define HASHSRAM_V(x) ((x) << HASHSRAM_S)
  1832. #define HASHSRAM_F HASHSRAM_V(1U)
  1833. #define MATCHTCAM_S 1
  1834. #define MATCHTCAM_V(x) ((x) << MATCHTCAM_S)
  1835. #define MATCHTCAM_F MATCHTCAM_V(1U)
  1836. #define MATCHSRAM_S 0
  1837. #define MATCHSRAM_V(x) ((x) << MATCHSRAM_S)
  1838. #define MATCHSRAM_F MATCHSRAM_V(1U)
  1839. #define MPS_RX_PG_RSV0_A 0x11010
  1840. #define MPS_RX_PG_RSV4_A 0x11020
  1841. #define MPS_RX_PERR_INT_CAUSE_A 0x11074
  1842. #define MPS_RX_MAC_BG_PG_CNT0_A 0x11208
  1843. #define MPS_RX_LPBK_BG_PG_CNT0_A 0x11218
  1844. #define MPS_CLS_TCAM_Y_L_A 0xf000
  1845. #define MPS_CLS_TCAM_DATA0_A 0xf000
  1846. #define MPS_CLS_TCAM_DATA1_A 0xf004
  1847. #define USED_S 16
  1848. #define USED_M 0x7ffU
  1849. #define USED_G(x) (((x) >> USED_S) & USED_M)
  1850. #define ALLOC_S 0
  1851. #define ALLOC_M 0x7ffU
  1852. #define ALLOC_G(x) (((x) >> ALLOC_S) & ALLOC_M)
  1853. #define T5_USED_S 16
  1854. #define T5_USED_M 0xfffU
  1855. #define T5_USED_G(x) (((x) >> T5_USED_S) & T5_USED_M)
  1856. #define T5_ALLOC_S 0
  1857. #define T5_ALLOC_M 0xfffU
  1858. #define T5_ALLOC_G(x) (((x) >> T5_ALLOC_S) & T5_ALLOC_M)
  1859. #define DMACH_S 0
  1860. #define DMACH_M 0xffffU
  1861. #define DMACH_G(x) (((x) >> DMACH_S) & DMACH_M)
  1862. #define MPS_CLS_TCAM_X_L_A 0xf008
  1863. #define MPS_CLS_TCAM_DATA2_CTL_A 0xf008
  1864. #define CTLCMDTYPE_S 31
  1865. #define CTLCMDTYPE_V(x) ((x) << CTLCMDTYPE_S)
  1866. #define CTLCMDTYPE_F CTLCMDTYPE_V(1U)
  1867. #define CTLTCAMSEL_S 25
  1868. #define CTLTCAMSEL_V(x) ((x) << CTLTCAMSEL_S)
  1869. #define CTLTCAMINDEX_S 17
  1870. #define CTLTCAMINDEX_V(x) ((x) << CTLTCAMINDEX_S)
  1871. #define CTLXYBITSEL_S 16
  1872. #define CTLXYBITSEL_V(x) ((x) << CTLXYBITSEL_S)
  1873. #define MPS_CLS_TCAM_Y_L(idx) (MPS_CLS_TCAM_Y_L_A + (idx) * 16)
  1874. #define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512
  1875. #define MPS_CLS_TCAM_X_L(idx) (MPS_CLS_TCAM_X_L_A + (idx) * 16)
  1876. #define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512
  1877. #define MPS_CLS_SRAM_L_A 0xe000
  1878. #define T6_MULTILISTEN0_S 26
  1879. #define T6_SRAM_PRIO3_S 23
  1880. #define T6_SRAM_PRIO3_M 0x7U
  1881. #define T6_SRAM_PRIO3_G(x) (((x) >> T6_SRAM_PRIO3_S) & T6_SRAM_PRIO3_M)
  1882. #define T6_SRAM_PRIO2_S 20
  1883. #define T6_SRAM_PRIO2_M 0x7U
  1884. #define T6_SRAM_PRIO2_G(x) (((x) >> T6_SRAM_PRIO2_S) & T6_SRAM_PRIO2_M)
  1885. #define T6_SRAM_PRIO1_S 17
  1886. #define T6_SRAM_PRIO1_M 0x7U
  1887. #define T6_SRAM_PRIO1_G(x) (((x) >> T6_SRAM_PRIO1_S) & T6_SRAM_PRIO1_M)
  1888. #define T6_SRAM_PRIO0_S 14
  1889. #define T6_SRAM_PRIO0_M 0x7U
  1890. #define T6_SRAM_PRIO0_G(x) (((x) >> T6_SRAM_PRIO0_S) & T6_SRAM_PRIO0_M)
  1891. #define T6_SRAM_VLD_S 13
  1892. #define T6_SRAM_VLD_V(x) ((x) << T6_SRAM_VLD_S)
  1893. #define T6_SRAM_VLD_F T6_SRAM_VLD_V(1U)
  1894. #define T6_REPLICATE_S 12
  1895. #define T6_REPLICATE_V(x) ((x) << T6_REPLICATE_S)
  1896. #define T6_REPLICATE_F T6_REPLICATE_V(1U)
  1897. #define T6_PF_S 9
  1898. #define T6_PF_M 0x7U
  1899. #define T6_PF_G(x) (((x) >> T6_PF_S) & T6_PF_M)
  1900. #define T6_VF_VALID_S 8
  1901. #define T6_VF_VALID_V(x) ((x) << T6_VF_VALID_S)
  1902. #define T6_VF_VALID_F T6_VF_VALID_V(1U)
  1903. #define T6_VF_S 0
  1904. #define T6_VF_M 0xffU
  1905. #define T6_VF_G(x) (((x) >> T6_VF_S) & T6_VF_M)
  1906. #define MPS_CLS_SRAM_H_A 0xe004
  1907. #define MPS_CLS_SRAM_L(idx) (MPS_CLS_SRAM_L_A + (idx) * 8)
  1908. #define NUM_MPS_CLS_SRAM_L_INSTANCES 336
  1909. #define MPS_CLS_SRAM_H(idx) (MPS_CLS_SRAM_H_A + (idx) * 8)
  1910. #define NUM_MPS_CLS_SRAM_H_INSTANCES 336
  1911. #define MULTILISTEN0_S 25
  1912. #define REPLICATE_S 11
  1913. #define REPLICATE_V(x) ((x) << REPLICATE_S)
  1914. #define REPLICATE_F REPLICATE_V(1U)
  1915. #define PF_S 8
  1916. #define PF_M 0x7U
  1917. #define PF_G(x) (((x) >> PF_S) & PF_M)
  1918. #define VF_VALID_S 7
  1919. #define VF_VALID_V(x) ((x) << VF_VALID_S)
  1920. #define VF_VALID_F VF_VALID_V(1U)
  1921. #define VF_S 0
  1922. #define VF_M 0x7fU
  1923. #define VF_G(x) (((x) >> VF_S) & VF_M)
  1924. #define SRAM_PRIO3_S 22
  1925. #define SRAM_PRIO3_M 0x7U
  1926. #define SRAM_PRIO3_G(x) (((x) >> SRAM_PRIO3_S) & SRAM_PRIO3_M)
  1927. #define SRAM_PRIO2_S 19
  1928. #define SRAM_PRIO2_M 0x7U
  1929. #define SRAM_PRIO2_G(x) (((x) >> SRAM_PRIO2_S) & SRAM_PRIO2_M)
  1930. #define SRAM_PRIO1_S 16
  1931. #define SRAM_PRIO1_M 0x7U
  1932. #define SRAM_PRIO1_G(x) (((x) >> SRAM_PRIO1_S) & SRAM_PRIO1_M)
  1933. #define SRAM_PRIO0_S 13
  1934. #define SRAM_PRIO0_M 0x7U
  1935. #define SRAM_PRIO0_G(x) (((x) >> SRAM_PRIO0_S) & SRAM_PRIO0_M)
  1936. #define SRAM_VLD_S 12
  1937. #define SRAM_VLD_V(x) ((x) << SRAM_VLD_S)
  1938. #define SRAM_VLD_F SRAM_VLD_V(1U)
  1939. #define PORTMAP_S 0
  1940. #define PORTMAP_M 0xfU
  1941. #define PORTMAP_G(x) (((x) >> PORTMAP_S) & PORTMAP_M)
  1942. #define CPL_INTR_CAUSE_A 0x19054
  1943. #define CIM_OP_MAP_PERR_S 5
  1944. #define CIM_OP_MAP_PERR_V(x) ((x) << CIM_OP_MAP_PERR_S)
  1945. #define CIM_OP_MAP_PERR_F CIM_OP_MAP_PERR_V(1U)
  1946. #define CIM_OVFL_ERROR_S 4
  1947. #define CIM_OVFL_ERROR_V(x) ((x) << CIM_OVFL_ERROR_S)
  1948. #define CIM_OVFL_ERROR_F CIM_OVFL_ERROR_V(1U)
  1949. #define TP_FRAMING_ERROR_S 3
  1950. #define TP_FRAMING_ERROR_V(x) ((x) << TP_FRAMING_ERROR_S)
  1951. #define TP_FRAMING_ERROR_F TP_FRAMING_ERROR_V(1U)
  1952. #define SGE_FRAMING_ERROR_S 2
  1953. #define SGE_FRAMING_ERROR_V(x) ((x) << SGE_FRAMING_ERROR_S)
  1954. #define SGE_FRAMING_ERROR_F SGE_FRAMING_ERROR_V(1U)
  1955. #define CIM_FRAMING_ERROR_S 1
  1956. #define CIM_FRAMING_ERROR_V(x) ((x) << CIM_FRAMING_ERROR_S)
  1957. #define CIM_FRAMING_ERROR_F CIM_FRAMING_ERROR_V(1U)
  1958. #define ZERO_SWITCH_ERROR_S 0
  1959. #define ZERO_SWITCH_ERROR_V(x) ((x) << ZERO_SWITCH_ERROR_S)
  1960. #define ZERO_SWITCH_ERROR_F ZERO_SWITCH_ERROR_V(1U)
  1961. #define SMB_INT_CAUSE_A 0x19090
  1962. #define MSTTXFIFOPARINT_S 21
  1963. #define MSTTXFIFOPARINT_V(x) ((x) << MSTTXFIFOPARINT_S)
  1964. #define MSTTXFIFOPARINT_F MSTTXFIFOPARINT_V(1U)
  1965. #define MSTRXFIFOPARINT_S 20
  1966. #define MSTRXFIFOPARINT_V(x) ((x) << MSTRXFIFOPARINT_S)
  1967. #define MSTRXFIFOPARINT_F MSTRXFIFOPARINT_V(1U)
  1968. #define SLVFIFOPARINT_S 19
  1969. #define SLVFIFOPARINT_V(x) ((x) << SLVFIFOPARINT_S)
  1970. #define SLVFIFOPARINT_F SLVFIFOPARINT_V(1U)
  1971. #define ULP_RX_INT_CAUSE_A 0x19158
  1972. #define ULP_RX_ISCSI_LLIMIT_A 0x1915c
  1973. #define ULP_RX_ISCSI_ULIMIT_A 0x19160
  1974. #define ULP_RX_ISCSI_TAGMASK_A 0x19164
  1975. #define ULP_RX_ISCSI_PSZ_A 0x19168
  1976. #define ULP_RX_TDDP_LLIMIT_A 0x1916c
  1977. #define ULP_RX_TDDP_ULIMIT_A 0x19170
  1978. #define ULP_RX_STAG_LLIMIT_A 0x1917c
  1979. #define ULP_RX_STAG_ULIMIT_A 0x19180
  1980. #define ULP_RX_RQ_LLIMIT_A 0x19184
  1981. #define ULP_RX_RQ_ULIMIT_A 0x19188
  1982. #define ULP_RX_PBL_LLIMIT_A 0x1918c
  1983. #define ULP_RX_PBL_ULIMIT_A 0x19190
  1984. #define ULP_RX_CTX_BASE_A 0x19194
  1985. #define ULP_RX_RQUDP_LLIMIT_A 0x191a4
  1986. #define ULP_RX_RQUDP_ULIMIT_A 0x191a8
  1987. #define ULP_RX_LA_CTL_A 0x1923c
  1988. #define ULP_RX_LA_RDPTR_A 0x19240
  1989. #define ULP_RX_LA_RDDATA_A 0x19244
  1990. #define ULP_RX_LA_WRPTR_A 0x19248
  1991. #define HPZ3_S 24
  1992. #define HPZ3_V(x) ((x) << HPZ3_S)
  1993. #define HPZ2_S 16
  1994. #define HPZ2_V(x) ((x) << HPZ2_S)
  1995. #define HPZ1_S 8
  1996. #define HPZ1_V(x) ((x) << HPZ1_S)
  1997. #define HPZ0_S 0
  1998. #define HPZ0_V(x) ((x) << HPZ0_S)
  1999. #define ULP_RX_TDDP_PSZ_A 0x19178
  2000. /* registers for module SF */
  2001. #define SF_DATA_A 0x193f8
  2002. #define SF_OP_A 0x193fc
  2003. #define SF_BUSY_S 31
  2004. #define SF_BUSY_V(x) ((x) << SF_BUSY_S)
  2005. #define SF_BUSY_F SF_BUSY_V(1U)
  2006. #define SF_LOCK_S 4
  2007. #define SF_LOCK_V(x) ((x) << SF_LOCK_S)
  2008. #define SF_LOCK_F SF_LOCK_V(1U)
  2009. #define SF_CONT_S 3
  2010. #define SF_CONT_V(x) ((x) << SF_CONT_S)
  2011. #define SF_CONT_F SF_CONT_V(1U)
  2012. #define BYTECNT_S 1
  2013. #define BYTECNT_V(x) ((x) << BYTECNT_S)
  2014. #define OP_S 0
  2015. #define OP_V(x) ((x) << OP_S)
  2016. #define OP_F OP_V(1U)
  2017. #define PL_PF_INT_CAUSE_A 0x3c0
  2018. #define PFSW_S 3
  2019. #define PFSW_V(x) ((x) << PFSW_S)
  2020. #define PFSW_F PFSW_V(1U)
  2021. #define PFCIM_S 1
  2022. #define PFCIM_V(x) ((x) << PFCIM_S)
  2023. #define PFCIM_F PFCIM_V(1U)
  2024. #define PL_PF_INT_ENABLE_A 0x3c4
  2025. #define PL_PF_CTL_A 0x3c8
  2026. #define PL_WHOAMI_A 0x19400
  2027. #define SOURCEPF_S 8
  2028. #define SOURCEPF_M 0x7U
  2029. #define SOURCEPF_G(x) (((x) >> SOURCEPF_S) & SOURCEPF_M)
  2030. #define T6_SOURCEPF_S 9
  2031. #define T6_SOURCEPF_M 0x7U
  2032. #define T6_SOURCEPF_G(x) (((x) >> T6_SOURCEPF_S) & T6_SOURCEPF_M)
  2033. #define PL_INT_CAUSE_A 0x1940c
  2034. #define ULP_TX_S 27
  2035. #define ULP_TX_V(x) ((x) << ULP_TX_S)
  2036. #define ULP_TX_F ULP_TX_V(1U)
  2037. #define SGE_S 26
  2038. #define SGE_V(x) ((x) << SGE_S)
  2039. #define SGE_F SGE_V(1U)
  2040. #define CPL_SWITCH_S 24
  2041. #define CPL_SWITCH_V(x) ((x) << CPL_SWITCH_S)
  2042. #define CPL_SWITCH_F CPL_SWITCH_V(1U)
  2043. #define ULP_RX_S 23
  2044. #define ULP_RX_V(x) ((x) << ULP_RX_S)
  2045. #define ULP_RX_F ULP_RX_V(1U)
  2046. #define PM_RX_S 22
  2047. #define PM_RX_V(x) ((x) << PM_RX_S)
  2048. #define PM_RX_F PM_RX_V(1U)
  2049. #define PM_TX_S 21
  2050. #define PM_TX_V(x) ((x) << PM_TX_S)
  2051. #define PM_TX_F PM_TX_V(1U)
  2052. #define MA_S 20
  2053. #define MA_V(x) ((x) << MA_S)
  2054. #define MA_F MA_V(1U)
  2055. #define TP_S 19
  2056. #define TP_V(x) ((x) << TP_S)
  2057. #define TP_F TP_V(1U)
  2058. #define LE_S 18
  2059. #define LE_V(x) ((x) << LE_S)
  2060. #define LE_F LE_V(1U)
  2061. #define EDC1_S 17
  2062. #define EDC1_V(x) ((x) << EDC1_S)
  2063. #define EDC1_F EDC1_V(1U)
  2064. #define EDC0_S 16
  2065. #define EDC0_V(x) ((x) << EDC0_S)
  2066. #define EDC0_F EDC0_V(1U)
  2067. #define MC_S 15
  2068. #define MC_V(x) ((x) << MC_S)
  2069. #define MC_F MC_V(1U)
  2070. #define PCIE_S 14
  2071. #define PCIE_V(x) ((x) << PCIE_S)
  2072. #define PCIE_F PCIE_V(1U)
  2073. #define XGMAC_KR1_S 12
  2074. #define XGMAC_KR1_V(x) ((x) << XGMAC_KR1_S)
  2075. #define XGMAC_KR1_F XGMAC_KR1_V(1U)
  2076. #define XGMAC_KR0_S 11
  2077. #define XGMAC_KR0_V(x) ((x) << XGMAC_KR0_S)
  2078. #define XGMAC_KR0_F XGMAC_KR0_V(1U)
  2079. #define XGMAC1_S 10
  2080. #define XGMAC1_V(x) ((x) << XGMAC1_S)
  2081. #define XGMAC1_F XGMAC1_V(1U)
  2082. #define XGMAC0_S 9
  2083. #define XGMAC0_V(x) ((x) << XGMAC0_S)
  2084. #define XGMAC0_F XGMAC0_V(1U)
  2085. #define SMB_S 8
  2086. #define SMB_V(x) ((x) << SMB_S)
  2087. #define SMB_F SMB_V(1U)
  2088. #define SF_S 7
  2089. #define SF_V(x) ((x) << SF_S)
  2090. #define SF_F SF_V(1U)
  2091. #define PL_S 6
  2092. #define PL_V(x) ((x) << PL_S)
  2093. #define PL_F PL_V(1U)
  2094. #define NCSI_S 5
  2095. #define NCSI_V(x) ((x) << NCSI_S)
  2096. #define NCSI_F NCSI_V(1U)
  2097. #define MPS_S 4
  2098. #define MPS_V(x) ((x) << MPS_S)
  2099. #define MPS_F MPS_V(1U)
  2100. #define CIM_S 0
  2101. #define CIM_V(x) ((x) << CIM_S)
  2102. #define CIM_F CIM_V(1U)
  2103. #define MC1_S 31
  2104. #define MC1_V(x) ((x) << MC1_S)
  2105. #define MC1_F MC1_V(1U)
  2106. #define PL_INT_ENABLE_A 0x19410
  2107. #define PL_INT_MAP0_A 0x19414
  2108. #define PL_RST_A 0x19428
  2109. #define PIORST_S 1
  2110. #define PIORST_V(x) ((x) << PIORST_S)
  2111. #define PIORST_F PIORST_V(1U)
  2112. #define PIORSTMODE_S 0
  2113. #define PIORSTMODE_V(x) ((x) << PIORSTMODE_S)
  2114. #define PIORSTMODE_F PIORSTMODE_V(1U)
  2115. #define PL_PL_INT_CAUSE_A 0x19430
  2116. #define FATALPERR_S 4
  2117. #define FATALPERR_V(x) ((x) << FATALPERR_S)
  2118. #define FATALPERR_F FATALPERR_V(1U)
  2119. #define PERRVFID_S 0
  2120. #define PERRVFID_V(x) ((x) << PERRVFID_S)
  2121. #define PERRVFID_F PERRVFID_V(1U)
  2122. #define PL_REV_A 0x1943c
  2123. #define REV_S 0
  2124. #define REV_M 0xfU
  2125. #define REV_V(x) ((x) << REV_S)
  2126. #define REV_G(x) (((x) >> REV_S) & REV_M)
  2127. #define T6_UNKNOWNCMD_S 3
  2128. #define T6_UNKNOWNCMD_V(x) ((x) << T6_UNKNOWNCMD_S)
  2129. #define T6_UNKNOWNCMD_F T6_UNKNOWNCMD_V(1U)
  2130. #define T6_LIP0_S 2
  2131. #define T6_LIP0_V(x) ((x) << T6_LIP0_S)
  2132. #define T6_LIP0_F T6_LIP0_V(1U)
  2133. #define T6_LIPMISS_S 1
  2134. #define T6_LIPMISS_V(x) ((x) << T6_LIPMISS_S)
  2135. #define T6_LIPMISS_F T6_LIPMISS_V(1U)
  2136. #define LE_DB_CONFIG_A 0x19c04
  2137. #define LE_DB_SERVER_INDEX_A 0x19c18
  2138. #define LE_DB_SRVR_START_INDEX_A 0x19c18
  2139. #define LE_DB_ACT_CNT_IPV4_A 0x19c20
  2140. #define LE_DB_ACT_CNT_IPV6_A 0x19c24
  2141. #define LE_DB_HASH_TID_BASE_A 0x19c30
  2142. #define LE_DB_HASH_TBL_BASE_ADDR_A 0x19c30
  2143. #define LE_DB_INT_CAUSE_A 0x19c3c
  2144. #define LE_DB_TID_HASHBASE_A 0x19df8
  2145. #define T6_LE_DB_HASH_TID_BASE_A 0x19df8
  2146. #define HASHEN_S 20
  2147. #define HASHEN_V(x) ((x) << HASHEN_S)
  2148. #define HASHEN_F HASHEN_V(1U)
  2149. #define REQQPARERR_S 16
  2150. #define REQQPARERR_V(x) ((x) << REQQPARERR_S)
  2151. #define REQQPARERR_F REQQPARERR_V(1U)
  2152. #define UNKNOWNCMD_S 15
  2153. #define UNKNOWNCMD_V(x) ((x) << UNKNOWNCMD_S)
  2154. #define UNKNOWNCMD_F UNKNOWNCMD_V(1U)
  2155. #define PARITYERR_S 6
  2156. #define PARITYERR_V(x) ((x) << PARITYERR_S)
  2157. #define PARITYERR_F PARITYERR_V(1U)
  2158. #define LIPMISS_S 5
  2159. #define LIPMISS_V(x) ((x) << LIPMISS_S)
  2160. #define LIPMISS_F LIPMISS_V(1U)
  2161. #define LIP0_S 4
  2162. #define LIP0_V(x) ((x) << LIP0_S)
  2163. #define LIP0_F LIP0_V(1U)
  2164. #define BASEADDR_S 3
  2165. #define BASEADDR_M 0x1fffffffU
  2166. #define BASEADDR_G(x) (((x) >> BASEADDR_S) & BASEADDR_M)
  2167. #define TCAMINTPERR_S 13
  2168. #define TCAMINTPERR_V(x) ((x) << TCAMINTPERR_S)
  2169. #define TCAMINTPERR_F TCAMINTPERR_V(1U)
  2170. #define SSRAMINTPERR_S 10
  2171. #define SSRAMINTPERR_V(x) ((x) << SSRAMINTPERR_S)
  2172. #define SSRAMINTPERR_F SSRAMINTPERR_V(1U)
  2173. #define NCSI_INT_CAUSE_A 0x1a0d8
  2174. #define CIM_DM_PRTY_ERR_S 8
  2175. #define CIM_DM_PRTY_ERR_V(x) ((x) << CIM_DM_PRTY_ERR_S)
  2176. #define CIM_DM_PRTY_ERR_F CIM_DM_PRTY_ERR_V(1U)
  2177. #define MPS_DM_PRTY_ERR_S 7
  2178. #define MPS_DM_PRTY_ERR_V(x) ((x) << MPS_DM_PRTY_ERR_S)
  2179. #define MPS_DM_PRTY_ERR_F MPS_DM_PRTY_ERR_V(1U)
  2180. #define TXFIFO_PRTY_ERR_S 1
  2181. #define TXFIFO_PRTY_ERR_V(x) ((x) << TXFIFO_PRTY_ERR_S)
  2182. #define TXFIFO_PRTY_ERR_F TXFIFO_PRTY_ERR_V(1U)
  2183. #define RXFIFO_PRTY_ERR_S 0
  2184. #define RXFIFO_PRTY_ERR_V(x) ((x) << RXFIFO_PRTY_ERR_S)
  2185. #define RXFIFO_PRTY_ERR_F RXFIFO_PRTY_ERR_V(1U)
  2186. #define XGMAC_PORT_CFG2_A 0x1018
  2187. #define PATEN_S 18
  2188. #define PATEN_V(x) ((x) << PATEN_S)
  2189. #define PATEN_F PATEN_V(1U)
  2190. #define MAGICEN_S 17
  2191. #define MAGICEN_V(x) ((x) << MAGICEN_S)
  2192. #define MAGICEN_F MAGICEN_V(1U)
  2193. #define XGMAC_PORT_MAGIC_MACID_LO 0x1024
  2194. #define XGMAC_PORT_MAGIC_MACID_HI 0x1028
  2195. #define XGMAC_PORT_EPIO_DATA0_A 0x10c0
  2196. #define XGMAC_PORT_EPIO_DATA1_A 0x10c4
  2197. #define XGMAC_PORT_EPIO_DATA2_A 0x10c8
  2198. #define XGMAC_PORT_EPIO_DATA3_A 0x10cc
  2199. #define XGMAC_PORT_EPIO_OP_A 0x10d0
  2200. #define EPIOWR_S 8
  2201. #define EPIOWR_V(x) ((x) << EPIOWR_S)
  2202. #define EPIOWR_F EPIOWR_V(1U)
  2203. #define ADDRESS_S 0
  2204. #define ADDRESS_V(x) ((x) << ADDRESS_S)
  2205. #define MAC_PORT_INT_CAUSE_A 0x8dc
  2206. #define XGMAC_PORT_INT_CAUSE_A 0x10dc
  2207. #define TP_TX_MOD_QUEUE_REQ_MAP_A 0x7e28
  2208. #define TP_TX_MOD_QUEUE_WEIGHT0_A 0x7e30
  2209. #define TP_TX_MOD_CHANNEL_WEIGHT_A 0x7e34
  2210. #define TX_MOD_QUEUE_REQ_MAP_S 0
  2211. #define TX_MOD_QUEUE_REQ_MAP_V(x) ((x) << TX_MOD_QUEUE_REQ_MAP_S)
  2212. #define TX_MODQ_WEIGHT3_S 24
  2213. #define TX_MODQ_WEIGHT3_V(x) ((x) << TX_MODQ_WEIGHT3_S)
  2214. #define TX_MODQ_WEIGHT2_S 16
  2215. #define TX_MODQ_WEIGHT2_V(x) ((x) << TX_MODQ_WEIGHT2_S)
  2216. #define TX_MODQ_WEIGHT1_S 8
  2217. #define TX_MODQ_WEIGHT1_V(x) ((x) << TX_MODQ_WEIGHT1_S)
  2218. #define TX_MODQ_WEIGHT0_S 0
  2219. #define TX_MODQ_WEIGHT0_V(x) ((x) << TX_MODQ_WEIGHT0_S)
  2220. #define TP_TX_SCHED_HDR_A 0x23
  2221. #define TP_TX_SCHED_FIFO_A 0x24
  2222. #define TP_TX_SCHED_PCMD_A 0x25
  2223. #define NUM_MPS_CLS_SRAM_L_INSTANCES 336
  2224. #define NUM_MPS_T5_CLS_SRAM_L_INSTANCES 512
  2225. #define T5_PORT0_BASE 0x30000
  2226. #define T5_PORT_STRIDE 0x4000
  2227. #define T5_PORT_BASE(idx) (T5_PORT0_BASE + (idx) * T5_PORT_STRIDE)
  2228. #define T5_PORT_REG(idx, reg) (T5_PORT_BASE(idx) + (reg))
  2229. #define MC_0_BASE_ADDR 0x40000
  2230. #define MC_1_BASE_ADDR 0x48000
  2231. #define MC_STRIDE (MC_1_BASE_ADDR - MC_0_BASE_ADDR)
  2232. #define MC_REG(reg, idx) (reg + MC_STRIDE * idx)
  2233. #define MC_P_BIST_CMD_A 0x41400
  2234. #define MC_P_BIST_CMD_ADDR_A 0x41404
  2235. #define MC_P_BIST_CMD_LEN_A 0x41408
  2236. #define MC_P_BIST_DATA_PATTERN_A 0x4140c
  2237. #define MC_P_BIST_STATUS_RDATA_A 0x41488
  2238. #define EDC_T50_BASE_ADDR 0x50000
  2239. #define EDC_H_BIST_CMD_A 0x50004
  2240. #define EDC_H_BIST_CMD_ADDR_A 0x50008
  2241. #define EDC_H_BIST_CMD_LEN_A 0x5000c
  2242. #define EDC_H_BIST_DATA_PATTERN_A 0x50010
  2243. #define EDC_H_BIST_STATUS_RDATA_A 0x50028
  2244. #define EDC_H_ECC_ERR_ADDR_A 0x50084
  2245. #define EDC_T51_BASE_ADDR 0x50800
  2246. #define EDC_T5_STRIDE (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR)
  2247. #define EDC_T5_REG(reg, idx) (reg + EDC_T5_STRIDE * idx)
  2248. #define PL_VF_REV_A 0x4
  2249. #define PL_VF_WHOAMI_A 0x0
  2250. #define PL_VF_REVISION_A 0x8
  2251. /* registers for module CIM */
  2252. #define CIM_HOST_ACC_CTRL_A 0x7b50
  2253. #define CIM_HOST_ACC_DATA_A 0x7b54
  2254. #define UP_UP_DBG_LA_CFG_A 0x140
  2255. #define UP_UP_DBG_LA_DATA_A 0x144
  2256. #define HOSTBUSY_S 17
  2257. #define HOSTBUSY_V(x) ((x) << HOSTBUSY_S)
  2258. #define HOSTBUSY_F HOSTBUSY_V(1U)
  2259. #define HOSTWRITE_S 16
  2260. #define HOSTWRITE_V(x) ((x) << HOSTWRITE_S)
  2261. #define HOSTWRITE_F HOSTWRITE_V(1U)
  2262. #define CIM_IBQ_DBG_CFG_A 0x7b60
  2263. #define IBQDBGADDR_S 16
  2264. #define IBQDBGADDR_M 0xfffU
  2265. #define IBQDBGADDR_V(x) ((x) << IBQDBGADDR_S)
  2266. #define IBQDBGADDR_G(x) (((x) >> IBQDBGADDR_S) & IBQDBGADDR_M)
  2267. #define IBQDBGBUSY_S 1
  2268. #define IBQDBGBUSY_V(x) ((x) << IBQDBGBUSY_S)
  2269. #define IBQDBGBUSY_F IBQDBGBUSY_V(1U)
  2270. #define IBQDBGEN_S 0
  2271. #define IBQDBGEN_V(x) ((x) << IBQDBGEN_S)
  2272. #define IBQDBGEN_F IBQDBGEN_V(1U)
  2273. #define CIM_OBQ_DBG_CFG_A 0x7b64
  2274. #define OBQDBGADDR_S 16
  2275. #define OBQDBGADDR_M 0xfffU
  2276. #define OBQDBGADDR_V(x) ((x) << OBQDBGADDR_S)
  2277. #define OBQDBGADDR_G(x) (((x) >> OBQDBGADDR_S) & OBQDBGADDR_M)
  2278. #define OBQDBGBUSY_S 1
  2279. #define OBQDBGBUSY_V(x) ((x) << OBQDBGBUSY_S)
  2280. #define OBQDBGBUSY_F OBQDBGBUSY_V(1U)
  2281. #define OBQDBGEN_S 0
  2282. #define OBQDBGEN_V(x) ((x) << OBQDBGEN_S)
  2283. #define OBQDBGEN_F OBQDBGEN_V(1U)
  2284. #define CIM_IBQ_DBG_DATA_A 0x7b68
  2285. #define CIM_OBQ_DBG_DATA_A 0x7b6c
  2286. #define CIM_DEBUGCFG_A 0x7b70
  2287. #define CIM_DEBUGSTS_A 0x7b74
  2288. #define POLADBGRDPTR_S 23
  2289. #define POLADBGRDPTR_M 0x1ffU
  2290. #define POLADBGRDPTR_V(x) ((x) << POLADBGRDPTR_S)
  2291. #define POLADBGWRPTR_S 16
  2292. #define POLADBGWRPTR_M 0x1ffU
  2293. #define POLADBGWRPTR_G(x) (((x) >> POLADBGWRPTR_S) & POLADBGWRPTR_M)
  2294. #define PILADBGRDPTR_S 14
  2295. #define PILADBGRDPTR_M 0x1ffU
  2296. #define PILADBGRDPTR_V(x) ((x) << PILADBGRDPTR_S)
  2297. #define PILADBGWRPTR_S 0
  2298. #define PILADBGWRPTR_M 0x1ffU
  2299. #define PILADBGWRPTR_G(x) (((x) >> PILADBGWRPTR_S) & PILADBGWRPTR_M)
  2300. #define LADBGEN_S 12
  2301. #define LADBGEN_V(x) ((x) << LADBGEN_S)
  2302. #define LADBGEN_F LADBGEN_V(1U)
  2303. #define CIM_PO_LA_DEBUGDATA_A 0x7b78
  2304. #define CIM_PI_LA_DEBUGDATA_A 0x7b7c
  2305. #define CIM_PO_LA_MADEBUGDATA_A 0x7b80
  2306. #define CIM_PI_LA_MADEBUGDATA_A 0x7b84
  2307. #define UPDBGLARDEN_S 1
  2308. #define UPDBGLARDEN_V(x) ((x) << UPDBGLARDEN_S)
  2309. #define UPDBGLARDEN_F UPDBGLARDEN_V(1U)
  2310. #define UPDBGLAEN_S 0
  2311. #define UPDBGLAEN_V(x) ((x) << UPDBGLAEN_S)
  2312. #define UPDBGLAEN_F UPDBGLAEN_V(1U)
  2313. #define UPDBGLARDPTR_S 2
  2314. #define UPDBGLARDPTR_M 0xfffU
  2315. #define UPDBGLARDPTR_V(x) ((x) << UPDBGLARDPTR_S)
  2316. #define UPDBGLAWRPTR_S 16
  2317. #define UPDBGLAWRPTR_M 0xfffU
  2318. #define UPDBGLAWRPTR_G(x) (((x) >> UPDBGLAWRPTR_S) & UPDBGLAWRPTR_M)
  2319. #define UPDBGLACAPTPCONLY_S 30
  2320. #define UPDBGLACAPTPCONLY_V(x) ((x) << UPDBGLACAPTPCONLY_S)
  2321. #define UPDBGLACAPTPCONLY_F UPDBGLACAPTPCONLY_V(1U)
  2322. #define CIM_QUEUE_CONFIG_REF_A 0x7b48
  2323. #define CIM_QUEUE_CONFIG_CTRL_A 0x7b4c
  2324. #define CIMQSIZE_S 24
  2325. #define CIMQSIZE_M 0x3fU
  2326. #define CIMQSIZE_G(x) (((x) >> CIMQSIZE_S) & CIMQSIZE_M)
  2327. #define CIMQBASE_S 16
  2328. #define CIMQBASE_M 0x3fU
  2329. #define CIMQBASE_G(x) (((x) >> CIMQBASE_S) & CIMQBASE_M)
  2330. #define QUEFULLTHRSH_S 0
  2331. #define QUEFULLTHRSH_M 0x1ffU
  2332. #define QUEFULLTHRSH_G(x) (((x) >> QUEFULLTHRSH_S) & QUEFULLTHRSH_M)
  2333. #define UP_IBQ_0_RDADDR_A 0x10
  2334. #define UP_IBQ_0_SHADOW_RDADDR_A 0x280
  2335. #define UP_OBQ_0_REALADDR_A 0x104
  2336. #define UP_OBQ_0_SHADOW_REALADDR_A 0x394
  2337. #define IBQRDADDR_S 0
  2338. #define IBQRDADDR_M 0x1fffU
  2339. #define IBQRDADDR_G(x) (((x) >> IBQRDADDR_S) & IBQRDADDR_M)
  2340. #define IBQWRADDR_S 0
  2341. #define IBQWRADDR_M 0x1fffU
  2342. #define IBQWRADDR_G(x) (((x) >> IBQWRADDR_S) & IBQWRADDR_M)
  2343. #define QUERDADDR_S 0
  2344. #define QUERDADDR_M 0x7fffU
  2345. #define QUERDADDR_G(x) (((x) >> QUERDADDR_S) & QUERDADDR_M)
  2346. #define QUEREMFLITS_S 0
  2347. #define QUEREMFLITS_M 0x7ffU
  2348. #define QUEREMFLITS_G(x) (((x) >> QUEREMFLITS_S) & QUEREMFLITS_M)
  2349. #define QUEEOPCNT_S 16
  2350. #define QUEEOPCNT_M 0xfffU
  2351. #define QUEEOPCNT_G(x) (((x) >> QUEEOPCNT_S) & QUEEOPCNT_M)
  2352. #define QUESOPCNT_S 0
  2353. #define QUESOPCNT_M 0xfffU
  2354. #define QUESOPCNT_G(x) (((x) >> QUESOPCNT_S) & QUESOPCNT_M)
  2355. #define OBQSELECT_S 4
  2356. #define OBQSELECT_V(x) ((x) << OBQSELECT_S)
  2357. #define OBQSELECT_F OBQSELECT_V(1U)
  2358. #define IBQSELECT_S 3
  2359. #define IBQSELECT_V(x) ((x) << IBQSELECT_S)
  2360. #define IBQSELECT_F IBQSELECT_V(1U)
  2361. #define QUENUMSELECT_S 0
  2362. #define QUENUMSELECT_V(x) ((x) << QUENUMSELECT_S)
  2363. #endif /* __T4_REGS_H */