You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MT23108_PRM.h 158KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800
  1. /*
  2. This software is available to you under a choice of one of two
  3. licenses. You may choose to be licensed under the terms of the GNU
  4. General Public License (GPL) Version 2, available at
  5. <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
  6. license, available in the LICENSE.TXT file accompanying this
  7. software. These details are also available at
  8. <http://openib.org/license.html>.
  9. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  10. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  12. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  13. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  14. ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. SOFTWARE.
  17. Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
  18. */
  19. /***
  20. *** This file was generated at "Tue Sep 6 09:14:00 2005"
  21. *** by:
  22. *** % csp_bf -copyright=/mswg/misc/license-header.txt -prefix tavorprm_ -bits -fixnames MT23108_PRM.csp
  23. ***/
  24. #ifndef H_prefix_tavorprm_bits_fixnames_MT23108_PRM_csp_H
  25. #define H_prefix_tavorprm_bits_fixnames_MT23108_PRM_csp_H
  26. #include "bit_ops.h"
  27. /* Send doorbell */
  28. struct tavorprm_send_doorbell_st { /* Little Endian */
  29. pseudo_bit_t nopcode[0x00005]; /* Opcode of descriptor to be executed */
  30. pseudo_bit_t f[0x00001]; /* Fence bit. If set, descriptor is fenced */
  31. pseudo_bit_t nda[0x0001a]; /* Bits 31:6 of descriptors virtual address */
  32. /* -------------- */
  33. pseudo_bit_t nds[0x00006]; /* Next descriptor size (in 16-byte chunks) */
  34. pseudo_bit_t reserved0[0x00002];
  35. pseudo_bit_t qpn[0x00018]; /* QP number this doorbell is rung on */
  36. /* -------------- */
  37. };
  38. /* ACCESS_DDR_inject_errors_input_modifier */
  39. struct tavorprm_access_ddr_inject_errors_input_modifier_st { /* Little Endian */
  40. pseudo_bit_t index3[0x00007];
  41. pseudo_bit_t q3[0x00001];
  42. pseudo_bit_t index2[0x00007];
  43. pseudo_bit_t q2[0x00001];
  44. pseudo_bit_t index1[0x00007];
  45. pseudo_bit_t q1[0x00001];
  46. pseudo_bit_t index0[0x00007];
  47. pseudo_bit_t q0[0x00001];
  48. /* -------------- */
  49. };
  50. /* ACCESS_DDR_inject_errors_input_parameter */
  51. struct tavorprm_access_ddr_inject_errors_input_parameter_st { /* Little Endian */
  52. pseudo_bit_t ba[0x00002]; /* Bank Address */
  53. pseudo_bit_t da[0x00002]; /* Dimm Address */
  54. pseudo_bit_t reserved0[0x0001c];
  55. /* -------------- */
  56. pseudo_bit_t ra[0x00010]; /* Row Address */
  57. pseudo_bit_t ca[0x00010]; /* Column Address */
  58. /* -------------- */
  59. };
  60. /* Address Path */
  61. struct tavorprm_address_path_st { /* Little Endian */
  62. pseudo_bit_t pkey_index[0x00007]; /* PKey table index */
  63. pseudo_bit_t reserved0[0x00011];
  64. pseudo_bit_t port_number[0x00002]; /* Specific port associated with this QP/EE.
  65. 1 - Port 1
  66. 2 - Port 2
  67. other - reserved */
  68. pseudo_bit_t reserved1[0x00006];
  69. /* -------------- */
  70. pseudo_bit_t rlid[0x00010]; /* Remote (Destination) LID */
  71. pseudo_bit_t my_lid_path_bits[0x00007];/* Source LID - the lower 7 bits (upper bits are taken from PortInfo) */
  72. pseudo_bit_t g[0x00001]; /* Global address enable - if set, GRH will be formed for packet header */
  73. pseudo_bit_t reserved2[0x00005];
  74. pseudo_bit_t rnr_retry[0x00003]; /* RNR retry count (see C9-132 in IB spec Vol 1)
  75. 0-6 - number of retries
  76. 7 - infinite */
  77. /* -------------- */
  78. pseudo_bit_t hop_limit[0x00008]; /* IPv6 hop limit */
  79. pseudo_bit_t max_stat_rate[0x00003];/* Maximum static rate control.
  80. 0 - 4X injection rate
  81. 1 - 1X injection rate
  82. other - reserved
  83. */
  84. pseudo_bit_t reserved3[0x00005];
  85. pseudo_bit_t mgid_index[0x00006]; /* Index to port GID table */
  86. pseudo_bit_t reserved4[0x00005];
  87. pseudo_bit_t ack_timeout[0x00005]; /* Local ACK timeout - Transport timer for activation of retransmission mechanism. Refer to IB spec Vol1 9.7.6.1.3 for further details.
  88. The transport timer is set to 4.096us*2^ack_timeout, if ack_timeout is 0 then transport timer is disabled. */
  89. /* -------------- */
  90. pseudo_bit_t flow_label[0x00014]; /* IPv6 flow label */
  91. pseudo_bit_t tclass[0x00008]; /* IPv6 TClass */
  92. pseudo_bit_t sl[0x00004]; /* InfiniBand Service Level (SL) */
  93. /* -------------- */
  94. pseudo_bit_t rgid_127_96[0x00020]; /* Remote GID[127:96] */
  95. /* -------------- */
  96. pseudo_bit_t rgid_95_64[0x00020]; /* Remote GID[95:64] */
  97. /* -------------- */
  98. pseudo_bit_t rgid_63_32[0x00020]; /* Remote GID[63:32] */
  99. /* -------------- */
  100. pseudo_bit_t rgid_31_0[0x00020]; /* Remote GID[31:0] */
  101. /* -------------- */
  102. };
  103. /* HCA Command Register (HCR) */
  104. struct tavorprm_hca_command_register_st { /* Little Endian */
  105. pseudo_bit_t in_param_h[0x00020]; /* Input Parameter: parameter[63:32] or pointer[63:32] to input mailbox (see command description) */
  106. /* -------------- */
  107. pseudo_bit_t in_param_l[0x00020]; /* Input Parameter: parameter[31:0] or pointer[31:0] to input mailbox (see command description) */
  108. /* -------------- */
  109. pseudo_bit_t input_modifier[0x00020];/* Input Parameter Modifier */
  110. /* -------------- */
  111. pseudo_bit_t out_param_h[0x00020]; /* Output Parameter: parameter[63:32] or pointer[63:32] to output mailbox (see command description) */
  112. /* -------------- */
  113. pseudo_bit_t out_param_l[0x00020]; /* Output Parameter: parameter[31:0] or pointer[31:0] to output mailbox (see command description) */
  114. /* -------------- */
  115. pseudo_bit_t reserved0[0x00010];
  116. pseudo_bit_t token[0x00010]; /* Software assigned token to the command, to uniquely identify it. The token is returned to the software in the EQE reported. */
  117. /* -------------- */
  118. pseudo_bit_t opcode[0x0000c]; /* Command opcode */
  119. pseudo_bit_t opcode_modifier[0x00004];/* Opcode Modifier, see specific description for each command. */
  120. pseudo_bit_t reserved1[0x00006];
  121. pseudo_bit_t e[0x00001]; /* Event Request
  122. 0 - Don't report event (software will poll the GO bit)
  123. 1 - Report event to EQ when the command completes */
  124. pseudo_bit_t go[0x00001]; /* Go (0=Software ownership for the HCR, 1=Hardware ownership for the HCR)
  125. Software can write to the HCR only if Go bit is cleared.
  126. Software must set the Go bit to trigger the HW to execute the command. Software must not write to this register value other than 1 for the Go bit. */
  127. pseudo_bit_t status[0x00008]; /* Command execution status report. Valid only if command interface in under SW ownership (Go bit is cleared)
  128. 0 - command completed without error. If different than zero, command execution completed with error. Syndrom encoding is depended on command executed and is defined for each command */
  129. /* -------------- */
  130. };
  131. /* EQ Doorbell */
  132. struct tavorprm_eq_cmd_doorbell_st { /* Little Endian */
  133. pseudo_bit_t eqn[0x00006]; /* EQ accessed */
  134. pseudo_bit_t reserved0[0x00012];
  135. pseudo_bit_t eq_cmd[0x00008]; /* Command to be executed on EQ
  136. 01 - increment Consumer_indx by one
  137. 02 - Request notification for next event (Arm EQ)
  138. 03 - Disarm CQ (CQ number is specified in EQ_param)
  139. 04 - set Consumer_indx to value of EQ_param
  140. 05 - move EQ to Always Armed state
  141. other - reserved */
  142. /* -------------- */
  143. pseudo_bit_t eq_param[0x00020]; /* parameter to be used by EQ commands 03 and 04. Reserved for other commands. */
  144. /* -------------- */
  145. };
  146. /* CQ Doorbell */
  147. struct tavorprm_cq_cmd_doorbell_st { /* Little Endian */
  148. pseudo_bit_t cqn[0x00018]; /* CQ number accessed */
  149. pseudo_bit_t cq_cmd[0x00008]; /* Command to be executed on CQ
  150. 01 - Increment Consumer_indx by cq_param plus 1
  151. 02 - Request notification for next Solicited or Unsolicited completion event. CQ_param must contain last succesfully polled consumer index. For newly generated CQs the CQ_param should contain (initial consumer index-1) modulu CQ size. When working with CQs with overrun detection, CQ_param can be set to 0xFFFFFFFF (HW will use the last polled index).
  152. 03 - Request notification for next Solicited completion event CQ_param must contain last succesfully polled consumer index. For newly generated CQs the CQ_param should contain (initial consumer index-1) modulu CQ size. When working with CQs with overrun detection, CQ_param can be set to 0xFFFFFFFF (HW will use the last polled index).
  153. 04 - Set Consumer_indx to value of CQ_param
  154. 05 - Request notification for multiple completions (see Advanced Topics chater)
  155. other - reserved */
  156. /* -------------- */
  157. pseudo_bit_t cq_param[0x00020]; /* parameter to be used by CQ command */
  158. /* -------------- */
  159. };
  160. /* Receive doorbell */
  161. struct tavorprm_receive_doorbell_st { /* Little Endian */
  162. pseudo_bit_t nds[0x00006]; /* Next descriptor size (in 16-byte chunks)
  163. Must be zero for SRQ doorbells */
  164. pseudo_bit_t nda[0x0001a]; /* Bits 31:6 of descriptors virtual address */
  165. /* -------------- */
  166. pseudo_bit_t credits[0x00008]; /* Amount of credits ((length of the chain) posted with the doorbell on receive queue. Chain of up to 256 descriptors can be linked with single doorbell. Zero value in this field means 256. */
  167. pseudo_bit_t qpn[0x00018]; /* QP number or SRQ number this doorbell is rung on */
  168. /* -------------- */
  169. };
  170. /* RD-send doorbell */
  171. struct tavorprm_rd_send_doorbell_st { /* Little Endian */
  172. pseudo_bit_t reserved0[0x00008];
  173. pseudo_bit_t een[0x00018]; /* End-to-end context number (reliable datagram)
  174. Must be zero for Nop and Bind operations */
  175. /* -------------- */
  176. pseudo_bit_t reserved1[0x00008];
  177. pseudo_bit_t qpn[0x00018]; /* QP number this doorbell is rung on */
  178. /* -------------- */
  179. struct tavorprm_send_doorbell_st snd_params;/* Send parameters */
  180. /* -------------- */
  181. };
  182. /* Multicast Group Member QP */
  183. struct tavorprm_mgmqp_st { /* Little Endian */
  184. pseudo_bit_t qpn_i[0x00018]; /* QPN_i: QP number which is a member in this multicast group. Valid only if Qi bit is set. Length of the QPN_i list is set in INIT_HCA */
  185. pseudo_bit_t reserved0[0x00007];
  186. pseudo_bit_t qi[0x00001]; /* Qi: QPN_i is valid */
  187. /* -------------- */
  188. };
  189. /* vsd */
  190. struct tavorprm_vsd_st { /* Little Endian */
  191. pseudo_bit_t vsd_dw0[0x00020];
  192. /* -------------- */
  193. pseudo_bit_t vsd_dw1[0x00020];
  194. /* -------------- */
  195. pseudo_bit_t vsd_dw2[0x00020];
  196. /* -------------- */
  197. pseudo_bit_t vsd_dw3[0x00020];
  198. /* -------------- */
  199. pseudo_bit_t vsd_dw4[0x00020];
  200. /* -------------- */
  201. pseudo_bit_t vsd_dw5[0x00020];
  202. /* -------------- */
  203. pseudo_bit_t vsd_dw6[0x00020];
  204. /* -------------- */
  205. pseudo_bit_t vsd_dw7[0x00020];
  206. /* -------------- */
  207. pseudo_bit_t vsd_dw8[0x00020];
  208. /* -------------- */
  209. pseudo_bit_t vsd_dw9[0x00020];
  210. /* -------------- */
  211. pseudo_bit_t vsd_dw10[0x00020];
  212. /* -------------- */
  213. pseudo_bit_t vsd_dw11[0x00020];
  214. /* -------------- */
  215. pseudo_bit_t vsd_dw12[0x00020];
  216. /* -------------- */
  217. pseudo_bit_t vsd_dw13[0x00020];
  218. /* -------------- */
  219. pseudo_bit_t vsd_dw14[0x00020];
  220. /* -------------- */
  221. pseudo_bit_t vsd_dw15[0x00020];
  222. /* -------------- */
  223. pseudo_bit_t vsd_dw16[0x00020];
  224. /* -------------- */
  225. pseudo_bit_t vsd_dw17[0x00020];
  226. /* -------------- */
  227. pseudo_bit_t vsd_dw18[0x00020];
  228. /* -------------- */
  229. pseudo_bit_t vsd_dw19[0x00020];
  230. /* -------------- */
  231. pseudo_bit_t vsd_dw20[0x00020];
  232. /* -------------- */
  233. pseudo_bit_t vsd_dw21[0x00020];
  234. /* -------------- */
  235. pseudo_bit_t vsd_dw22[0x00020];
  236. /* -------------- */
  237. pseudo_bit_t vsd_dw23[0x00020];
  238. /* -------------- */
  239. pseudo_bit_t vsd_dw24[0x00020];
  240. /* -------------- */
  241. pseudo_bit_t vsd_dw25[0x00020];
  242. /* -------------- */
  243. pseudo_bit_t vsd_dw26[0x00020];
  244. /* -------------- */
  245. pseudo_bit_t vsd_dw27[0x00020];
  246. /* -------------- */
  247. pseudo_bit_t vsd_dw28[0x00020];
  248. /* -------------- */
  249. pseudo_bit_t vsd_dw29[0x00020];
  250. /* -------------- */
  251. pseudo_bit_t vsd_dw30[0x00020];
  252. /* -------------- */
  253. pseudo_bit_t vsd_dw31[0x00020];
  254. /* -------------- */
  255. pseudo_bit_t vsd_dw32[0x00020];
  256. /* -------------- */
  257. pseudo_bit_t vsd_dw33[0x00020];
  258. /* -------------- */
  259. pseudo_bit_t vsd_dw34[0x00020];
  260. /* -------------- */
  261. pseudo_bit_t vsd_dw35[0x00020];
  262. /* -------------- */
  263. pseudo_bit_t vsd_dw36[0x00020];
  264. /* -------------- */
  265. pseudo_bit_t vsd_dw37[0x00020];
  266. /* -------------- */
  267. pseudo_bit_t vsd_dw38[0x00020];
  268. /* -------------- */
  269. pseudo_bit_t vsd_dw39[0x00020];
  270. /* -------------- */
  271. pseudo_bit_t vsd_dw40[0x00020];
  272. /* -------------- */
  273. pseudo_bit_t vsd_dw41[0x00020];
  274. /* -------------- */
  275. pseudo_bit_t vsd_dw42[0x00020];
  276. /* -------------- */
  277. pseudo_bit_t vsd_dw43[0x00020];
  278. /* -------------- */
  279. pseudo_bit_t vsd_dw44[0x00020];
  280. /* -------------- */
  281. pseudo_bit_t vsd_dw45[0x00020];
  282. /* -------------- */
  283. pseudo_bit_t vsd_dw46[0x00020];
  284. /* -------------- */
  285. pseudo_bit_t vsd_dw47[0x00020];
  286. /* -------------- */
  287. pseudo_bit_t vsd_dw48[0x00020];
  288. /* -------------- */
  289. pseudo_bit_t vsd_dw49[0x00020];
  290. /* -------------- */
  291. pseudo_bit_t vsd_dw50[0x00020];
  292. /* -------------- */
  293. pseudo_bit_t vsd_dw51[0x00020];
  294. /* -------------- */
  295. pseudo_bit_t vsd_dw52[0x00020];
  296. /* -------------- */
  297. pseudo_bit_t vsd_dw53[0x00020];
  298. /* -------------- */
  299. pseudo_bit_t vsd_dw54[0x00020];
  300. /* -------------- */
  301. pseudo_bit_t vsd_dw55[0x00020];
  302. /* -------------- */
  303. };
  304. /* ACCESS_DDR_inject_errors */
  305. struct tavorprm_access_ddr_inject_errors_st { /* Little Endian */
  306. struct tavorprm_access_ddr_inject_errors_input_parameter_st access_ddr_inject_errors_input_parameter;
  307. /* -------------- */
  308. struct tavorprm_access_ddr_inject_errors_input_modifier_st access_ddr_inject_errors_input_modifier;
  309. /* -------------- */
  310. pseudo_bit_t reserved0[0x00020];
  311. /* -------------- */
  312. };
  313. /* Logical DIMM Information */
  314. struct tavorprm_dimminfo_st { /* Little Endian */
  315. pseudo_bit_t dimmsize[0x00010]; /* Size of DIMM in units of 2^20 Bytes. This value is valid only when DIMMStatus is 0. */
  316. pseudo_bit_t reserved0[0x00008];
  317. pseudo_bit_t dimmstatus[0x00001]; /* DIMM Status
  318. 0 - Enabled
  319. 1 - Disabled
  320. */
  321. pseudo_bit_t dh[0x00001]; /* When set, the DIMM is Hidden and can not be accessed from the PCI bus. */
  322. pseudo_bit_t wo[0x00001]; /* When set, the DIMM is write only.
  323. If data integrity is configured (other than none), the DIMM must be
  324. only targeted by write transactions where the address and size are multiples of 16 bytes. */
  325. pseudo_bit_t reserved1[0x00005];
  326. /* -------------- */
  327. pseudo_bit_t spd[0x00001]; /* 0 - DIMM SPD was read from DIMM
  328. 1 - DIMM SPD was read from InfiniHost NVMEM */
  329. pseudo_bit_t sladr[0x00003]; /* SPD Slave Address 3 LSBits.
  330. Valid only if spd bit is 0. */
  331. pseudo_bit_t sock_num[0x00002]; /* DIMM socket number (for double sided DIMM one of the two numbers will be reported) */
  332. pseudo_bit_t syn[0x00004]; /* Error syndrome (valid regardless of status value)
  333. 0 - DIMM has no error
  334. 1 - SPD error (e.g. checksum error, no response, error while reading)
  335. 2 - DIMM out of bounds (e.g. DIMM rows number is not between 7 and 14, DIMM type is not 2)
  336. 3 - DIMM conflict (e.g. mix of registered and unbuffered DIMMs, CAS latency conflict)
  337. 5 - DIMM size trimmed due to configuration (size exceeds)
  338. other - Error, reserved
  339. */
  340. pseudo_bit_t reserved2[0x00016];
  341. /* -------------- */
  342. pseudo_bit_t vendor_id_h[0x00020]; /* JDEC Manufacturer ID[63:32] */
  343. /* -------------- */
  344. pseudo_bit_t vendor_id_l[0x00020]; /* JDEC Manufacturer ID[31:0] */
  345. /* -------------- */
  346. pseudo_bit_t dimm_start_adr_h[0x00020];/* DIMM memory start address [63:32]. This value is valid only when DIMMStatus is 0. */
  347. /* -------------- */
  348. pseudo_bit_t dimm_start_adr_l[0x00020];/* DIMM memory start address [31:0]. This value is valid only when DIMMStatus is 0. */
  349. /* -------------- */
  350. pseudo_bit_t reserved3[0x00040];
  351. /* -------------- */
  352. };
  353. /* UAR Parameters */
  354. struct tavorprm_uar_params_st { /* Little Endian */
  355. pseudo_bit_t uar_base_addr_h[0x00020];/* UAR Base Address [63:32] (QUERY_HCA only) */
  356. /* -------------- */
  357. pseudo_bit_t reserved0[0x00014];
  358. pseudo_bit_t uar_base_addr_l[0x0000c];/* UAR Base Address [31:20] (QUERY_HCA only) */
  359. /* -------------- */
  360. pseudo_bit_t uar_page_sz[0x00008]; /* This field defines the size of each UAR page.
  361. Size of UAR Page is 4KB*2^UAR_Page_Size */
  362. pseudo_bit_t reserved1[0x00018];
  363. /* -------------- */
  364. pseudo_bit_t reserved2[0x00020];
  365. /* -------------- */
  366. pseudo_bit_t uar_scratch_base_addr_h[0x00020];/* Base address of UAR scratchpad [63:32].
  367. Number of entries in table is UAR BAR size divided by UAR Page Size.
  368. Table must be aligned to entry size. */
  369. /* -------------- */
  370. pseudo_bit_t uar_scratch_base_addr_l[0x00020];/* Base address of UAR scratchpad [31:0].
  371. Number of entries in table is UAR BAR size divided by UAR Page Size.
  372. Table must be aligned to entry size. */
  373. /* -------------- */
  374. pseudo_bit_t reserved3[0x00040];
  375. /* -------------- */
  376. };
  377. /* Translation and Protection Tables Parameters */
  378. struct tavorprm_tptparams_st { /* Little Endian */
  379. pseudo_bit_t mpt_base_adr_h[0x00020];/* MPT - Memory Protection Table base physical address [63:32].
  380. Entry size is 64 bytes.
  381. Table must be aligned to its size.
  382. Address may be set to zero if address translation and protection is not supported. */
  383. /* -------------- */
  384. pseudo_bit_t mpt_base_adr_l[0x00020];/* MPT - Memory Protection Table base physical address [31:0].
  385. Entry size is 64 bytes.
  386. Table must be aligned to its size.
  387. Address may be set to zero if address translation and protection is not supported. */
  388. /* -------------- */
  389. pseudo_bit_t log_mpt_sz[0x00006]; /* Log (base 2) of the number of region/windows entries in the MPT table. */
  390. pseudo_bit_t reserved0[0x00002];
  391. pseudo_bit_t pfto[0x00005]; /* Page Fault RNR Timeout -
  392. The field returned in RNR Naks generated when a page fault is detected.
  393. It has no effect when on-demand-paging is not used. */
  394. pseudo_bit_t reserved1[0x00003];
  395. pseudo_bit_t mtt_segment_size[0x00003];/* The size of MTT segment is 64*2^MTT_Segment_Size bytes */
  396. pseudo_bit_t reserved2[0x0000d];
  397. /* -------------- */
  398. pseudo_bit_t mtt_version[0x00008]; /* Version of MTT page walk. Must be zero */
  399. pseudo_bit_t reserved3[0x00018];
  400. /* -------------- */
  401. pseudo_bit_t mtt_base_addr_h[0x00020];/* MTT - Memory Translation table base physical address [63:32].
  402. Table must be aligned to its size.
  403. Address may be set to zero if address translation and protection is not supported. */
  404. /* -------------- */
  405. pseudo_bit_t mtt_base_addr_l[0x00020];/* MTT - Memory Translation table base physical address [31:0].
  406. Table must be aligned to its size.
  407. Address may be set to zero if address translation and protection is not supported. */
  408. /* -------------- */
  409. pseudo_bit_t reserved4[0x00040];
  410. /* -------------- */
  411. };
  412. /* Multicast Support Parameters */
  413. struct tavorprm_multicastparam_st { /* Little Endian */
  414. pseudo_bit_t mc_base_addr_h[0x00020];/* Base Address of the Multicast Table [63:32].
  415. The base address must be aligned to the entry size.
  416. Address may be set to zero if multicast is not supported. */
  417. /* -------------- */
  418. pseudo_bit_t mc_base_addr_l[0x00020];/* Base Address of the Multicast Table [31:0].
  419. The base address must be aligned to the entry size.
  420. Address may be set to zero if multicast is not supported. */
  421. /* -------------- */
  422. pseudo_bit_t reserved0[0x00040];
  423. /* -------------- */
  424. pseudo_bit_t log_mc_table_entry_sz[0x00010];/* Log2 of the Size of multicast group member (MGM) entry.
  425. Must be greater than 5 (to allow CTRL and GID sections).
  426. That implies the number of QPs per MC table entry. */
  427. pseudo_bit_t reserved1[0x00010];
  428. /* -------------- */
  429. pseudo_bit_t mc_table_hash_sz[0x00011];/* Number of entries in multicast DGID hash table (must be power of 2)
  430. INIT_HCA - the required number of entries
  431. QUERY_HCA - the actual number of entries assigned by firmware (will be less than or equal to the amount required in INIT_HCA) */
  432. pseudo_bit_t reserved2[0x0000f];
  433. /* -------------- */
  434. pseudo_bit_t log_mc_table_sz[0x00005];/* Log2 of the overall number of MC entries in the MCG table (includes both hash and auxiliary tables) */
  435. pseudo_bit_t reserved3[0x00013];
  436. pseudo_bit_t mc_hash_fn[0x00003]; /* Multicast hash function
  437. 0 - Default hash function
  438. other - reserved */
  439. pseudo_bit_t reserved4[0x00005];
  440. /* -------------- */
  441. pseudo_bit_t reserved5[0x00020];
  442. /* -------------- */
  443. };
  444. /* Memory Access Parameters for UD Address Vector Table */
  445. struct tavorprm_udavtable_memory_parameters_st { /* Little Endian */
  446. pseudo_bit_t l_key[0x00020]; /* L_Key used to access TPT */
  447. /* -------------- */
  448. pseudo_bit_t pd[0x00018]; /* PD used by TPT for matching against PD of region entry being accessed. */
  449. pseudo_bit_t reserved0[0x00005];
  450. pseudo_bit_t xlation_en[0x00001]; /* When cleared, address is physical address and no translation will be done. When set, address is virtual. TPT will be accessed in both cases for address decoding purposes. */
  451. pseudo_bit_t reserved1[0x00002];
  452. /* -------------- */
  453. };
  454. /* QPC/EEC/CQC/EQC/RDB Parameters */
  455. struct tavorprm_qpcbaseaddr_st { /* Little Endian */
  456. pseudo_bit_t reserved0[0x00080];
  457. /* -------------- */
  458. pseudo_bit_t qpc_base_addr_h[0x00020];/* QPC Base Address [63:32]
  459. Table must be aligned on its size */
  460. /* -------------- */
  461. pseudo_bit_t log_num_of_qp[0x00005];/* Log base 2 of number of supported QPs */
  462. pseudo_bit_t reserved1[0x00002];
  463. pseudo_bit_t qpc_base_addr_l[0x00019];/* QPC Base Address [31:7]
  464. Table must be aligned on its size */
  465. /* -------------- */
  466. pseudo_bit_t reserved2[0x00040];
  467. /* -------------- */
  468. pseudo_bit_t eec_base_addr_h[0x00020];/* EEC Base Address [63:32]
  469. Table must be aligned on its size.
  470. Address may be set to zero if RD is not supported. */
  471. /* -------------- */
  472. pseudo_bit_t log_num_of_ee[0x00005];/* Log base 2 of number of supported EEs. */
  473. pseudo_bit_t reserved3[0x00002];
  474. pseudo_bit_t eec_base_addr_l[0x00019];/* EEC Base Address [31:7]
  475. Table must be aligned on its size
  476. Address may be set to zero if RD is not supported. */
  477. /* -------------- */
  478. pseudo_bit_t srqc_base_addr_h[0x00020];/* SRQ Context Base Address [63:32]
  479. Table must be aligned on its size
  480. Address may be set to zero if SRQ is not supported. */
  481. /* -------------- */
  482. pseudo_bit_t log_num_of_srq[0x00005];/* Log base 2 of number of supported SRQs. */
  483. pseudo_bit_t srqc_base_addr_l[0x0001b];/* SRQ Context Base Address [31:5]
  484. Table must be aligned on its size
  485. Address may be set to zero if SRQ is not supported. */
  486. /* -------------- */
  487. pseudo_bit_t cqc_base_addr_h[0x00020];/* CQC Base Address [63:32]
  488. Table must be aligned on its size */
  489. /* -------------- */
  490. pseudo_bit_t log_num_of_cq[0x00005];/* Log base 2 of number of supported CQs. */
  491. pseudo_bit_t reserved4[0x00001];
  492. pseudo_bit_t cqc_base_addr_l[0x0001a];/* CQC Base Address [31:6]
  493. Table must be aligned on its size */
  494. /* -------------- */
  495. pseudo_bit_t reserved5[0x00040];
  496. /* -------------- */
  497. pseudo_bit_t eqpc_base_addr_h[0x00020];/* Extended QPC Base Address [63:32]
  498. Table has same number of entries as QPC table.
  499. Table must be aligned to entry size. */
  500. /* -------------- */
  501. pseudo_bit_t eqpc_base_addr_l[0x00020];/* Extended QPC Base Address [31:0]
  502. Table has same number of entries as QPC table.
  503. Table must be aligned to entry size. */
  504. /* -------------- */
  505. pseudo_bit_t reserved6[0x00040];
  506. /* -------------- */
  507. pseudo_bit_t eeec_base_addr_h[0x00020];/* Extended EEC Base Address [63:32]
  508. Table has same number of entries as EEC table.
  509. Table must be aligned to entry size.
  510. Address may be set to zero if RD is not supported. */
  511. /* -------------- */
  512. pseudo_bit_t eeec_base_addr_l[0x00020];/* Extended EEC Base Address [31:0]
  513. Table has same number of entries as EEC table.
  514. Table must be aligned to entry size.
  515. Address may be set to zero if RD is not supported. */
  516. /* -------------- */
  517. pseudo_bit_t reserved7[0x00040];
  518. /* -------------- */
  519. pseudo_bit_t eqc_base_addr_h[0x00020];/* EQC Base Address [63:32]
  520. Address may be set to zero if EQs are not supported.
  521. Table must be aligned to entry size. */
  522. /* -------------- */
  523. pseudo_bit_t log_num_eq[0x00004]; /* Log base 2 of number of supported EQs.
  524. Must be 6 or less in InfiniHost. */
  525. pseudo_bit_t reserved8[0x00002];
  526. pseudo_bit_t eqc_base_addr_l[0x0001a];/* EQC Base Address [31:6]
  527. Address may be set to zero if EQs are not supported.
  528. Table must be aligned to entry size. */
  529. /* -------------- */
  530. pseudo_bit_t reserved9[0x00040];
  531. /* -------------- */
  532. pseudo_bit_t rdb_base_addr_h[0x00020];/* Base address of table that holds remote read and remote atomic requests [63:32].
  533. Table must be aligned to RDB entry size (32 bytes).
  534. Address may be set to zero if remote RDMA reads are not supported.
  535. Please refer to QP and EE chapter for further explanation on RDB allocation. */
  536. /* -------------- */
  537. pseudo_bit_t rdb_base_addr_l[0x00020];/* Base address of table that holds remote read and remote atomic requests [31:0].
  538. Table must be aligned to RDB entry size (32 bytes).
  539. This field must always be zero.
  540. Please refer to QP and EE chapter for further explanation on RDB allocation. */
  541. /* -------------- */
  542. pseudo_bit_t reserved10[0x00040];
  543. /* -------------- */
  544. };
  545. /* Performance Monitors */
  546. struct tavorprm_performance_monitors_st { /* Little Endian */
  547. pseudo_bit_t e0[0x00001]; /* Enables counting of respective performance counter */
  548. pseudo_bit_t e1[0x00001]; /* Enables counting of respective performance counter */
  549. pseudo_bit_t e2[0x00001]; /* Enables counting of respective performance counter */
  550. pseudo_bit_t reserved0[0x00001];
  551. pseudo_bit_t r0[0x00001]; /* If written to as '1 - resets respective performance counter, if written to az '0 - no change to matter */
  552. pseudo_bit_t r1[0x00001]; /* If written to as '1 - resets respective performance counter, if written to az '0 - no change to matter */
  553. pseudo_bit_t r2[0x00001]; /* If written to as '1 - resets respective performance counter, if written to az '0 - no change to matter */
  554. pseudo_bit_t reserved1[0x00001];
  555. pseudo_bit_t i0[0x00001]; /* Interrupt enable on respective counter overflow. '1 - interrupt enabled, '0 - interrupt disabled. */
  556. pseudo_bit_t i1[0x00001]; /* Interrupt enable on respective counter overflow. '1 - interrupt enabled, '0 - interrupt disabled. */
  557. pseudo_bit_t i2[0x00001]; /* Interrupt enable on respective counter overflow. '1 - interrupt enabled, '0 - interrupt disabled. */
  558. pseudo_bit_t reserved2[0x00001];
  559. pseudo_bit_t f0[0x00001]; /* Overflow flag. If set, overflow occurred on respective counter. Cleared if written to as '1 */
  560. pseudo_bit_t f1[0x00001]; /* Overflow flag. If set, overflow occurred on respective counter. Cleared if written to as '1 */
  561. pseudo_bit_t f2[0x00001]; /* Overflow flag. If set, overflow occurred on respective counter. Cleared if written to as '1 */
  562. pseudo_bit_t reserved3[0x00001];
  563. pseudo_bit_t ev_cnt1[0x00005]; /* Specifies event to be counted by Event_counter1 See XXX for events' definition. */
  564. pseudo_bit_t reserved4[0x00003];
  565. pseudo_bit_t ev_cnt2[0x00005]; /* Specifies event to be counted by Event_counter2 See XXX for events' definition. */
  566. pseudo_bit_t reserved5[0x00003];
  567. /* -------------- */
  568. pseudo_bit_t clock_counter[0x00020];
  569. /* -------------- */
  570. pseudo_bit_t event_counter1[0x00020];
  571. /* -------------- */
  572. pseudo_bit_t event_counter2[0x00020];/* Read/write event counter, counting events specified by EvCntl and EvCnt2 fields repsectively. When the event counter reaches is maximum value of 0xFFFFFF, the next event will cause it to roll over to zero, set F1 or F2 bit respectively and generate interrupt by I1 I2 bit respectively. */
  573. /* -------------- */
  574. };
  575. /* QP and EE Context Entry */
  576. struct tavorprm_queue_pair_ee_context_entry_st { /* Little Endian */
  577. pseudo_bit_t reserved0[0x00008];
  578. pseudo_bit_t de[0x00001]; /* Send/Receive Descriptor Event enable - if set, events can be generated upon descriptors' completion on send/receive queue (controlled by E bit in WQE). Invalid in EE context */
  579. pseudo_bit_t reserved1[0x00002];
  580. pseudo_bit_t pm_state[0x00002]; /* Path migration state (Migrated, Armed or Rearm)
  581. 11-Migrated
  582. 00-Armed
  583. 01-Rearm
  584. 10-Reserved
  585. Should be set to 11 for UD QPs and for QPs which do not support APM */
  586. pseudo_bit_t reserved2[0x00003];
  587. pseudo_bit_t st[0x00003]; /* Service type (invalid in EE context):
  588. 000-Reliable Connection
  589. 001-Unreliable Connection
  590. 010-Reliable Datagram (Not supported for InfiniHost MT23108)
  591. 011-Unreliable Datagram
  592. 111-MLX transport (raw bits injection). Used for management QPs and RAW */
  593. pseudo_bit_t reserved3[0x00009];
  594. pseudo_bit_t state[0x00004]; /* QP/EE state:
  595. 0 - RST
  596. 1 - INIT
  597. 2 - RTR
  598. 3 - RTS
  599. 4 - SQEr
  600. 5 - SQD (Send Queue Drained)
  601. 6 - ERR
  602. 7 - Send Queue Draining
  603. 8 - F - RESERVED
  604. (Valid for QUERY_QPEE and ERR2RST_QPEE commands only) */
  605. /* -------------- */
  606. pseudo_bit_t sched_queue[0x00004]; /* Schedule queue to be used for WQE scheduling to execution. Determines QOS for this QP. */
  607. pseudo_bit_t reserved4[0x0001c];
  608. /* -------------- */
  609. pseudo_bit_t reserved5[0x00018];
  610. pseudo_bit_t msg_max[0x00005]; /* Max message size allowed on the QP. Maximum message size is 2^msg_Max.
  611. Must be equal to MTU for UD and MLX QPs. */
  612. pseudo_bit_t mtu[0x00003]; /* MTU of the QP (Must be the same for both paths: primary and alternative):
  613. 0x1 - 256 bytes
  614. 0x2 - 512
  615. 0x3 - 1024
  616. 0x4 - 2048
  617. other - reserved
  618. Should be configured to 0x4 for UD and MLX QPs. */
  619. /* -------------- */
  620. pseudo_bit_t usr_page[0x00018]; /* Index (offset) of user page allocated for this QP (see "non_privileged Access to the HCA Hardware"). Not valid (reserved) in EE context. */
  621. pseudo_bit_t reserved6[0x00008];
  622. /* -------------- */
  623. pseudo_bit_t local_qpn_een[0x00018];/* Local QP/EE number Lower bits determine position of this record in QPC table, and - thus - constrained
  624. This field is valid for QUERY and ERR2RST commands only. */
  625. pseudo_bit_t reserved7[0x00008];
  626. /* -------------- */
  627. pseudo_bit_t remote_qpn_een[0x00018];/* Remote QP/EE number */
  628. pseudo_bit_t reserved8[0x00008];
  629. /* -------------- */
  630. pseudo_bit_t reserved9[0x00040];
  631. /* -------------- */
  632. struct tavorprm_address_path_st primary_address_path;/* Primary address path for the QP/EE */
  633. /* -------------- */
  634. struct tavorprm_address_path_st alternative_address_path;/* Alternate address path for the QP/EE */
  635. /* -------------- */
  636. pseudo_bit_t rdd[0x00018]; /* Reliable Datagram Domain */
  637. pseudo_bit_t reserved10[0x00008];
  638. /* -------------- */
  639. pseudo_bit_t pd[0x00018]; /* QP protection domain. Not valid (reserved) in EE context. */
  640. pseudo_bit_t reserved11[0x00008];
  641. /* -------------- */
  642. pseudo_bit_t wqe_base_adr[0x00020]; /* Bits 63:32 of WQE address for both SQ and RQ.
  643. Reserved for EE context. */
  644. /* -------------- */
  645. pseudo_bit_t wqe_lkey[0x00020]; /* memory key (L-Key) to be used to access WQEs. Not valid (reserved) in EE context. */
  646. /* -------------- */
  647. pseudo_bit_t reserved12[0x00003];
  648. pseudo_bit_t ssc[0x00001]; /* Send Signaled Completion
  649. 1 - all send WQEs generate CQEs.
  650. 0 - only send WQEs with C bit set generate completion.
  651. Not valid (reserved) in EE context. */
  652. pseudo_bit_t sic[0x00001]; /* If set - Ignore end to end credits on send queue. Not valid (reserved) in EE context. */
  653. pseudo_bit_t cur_retry_cnt[0x00003];/* Current transport retry counter (QUERY_QPEE only).
  654. The current transport retry counter can vary from retry_count down to 1, where 1 means that the last retry attempt is currently executing. */
  655. pseudo_bit_t cur_rnr_retry[0x00003];/* Current RNR retry counter (QUERY_QPEE only).
  656. The current RNR retry counter can vary from rnr_retry to 1, where 1 means that the last retry attempt is currently executing. */
  657. pseudo_bit_t reserved13[0x00002];
  658. pseudo_bit_t sae[0x00001]; /* If set - Atomic operations enabled on send queue. Not valid (reserved) in EE context. */
  659. pseudo_bit_t swe[0x00001]; /* If set - RDMA - write enabled on send queue. Not valid (reserved) in EE context. */
  660. pseudo_bit_t sre[0x00001]; /* If set - RDMA - read enabled on send queue. Not valid (reserved) in EE context. */
  661. pseudo_bit_t retry_count[0x00003]; /* Transport timeout Retry count */
  662. pseudo_bit_t reserved14[0x00002];
  663. pseudo_bit_t sra_max[0x00003]; /* Maximum number of outstanding RDMA-read/Atomic operations allowed in the send queue. Maximum number is 2^SRA_Max. Must be zero in EE context. */
  664. pseudo_bit_t flight_lim[0x00004]; /* Number of outstanding (in-flight) messages on the wire allowed for this send queue.
  665. Number of outstanding messages is 2^Flight_Lim.
  666. Use 0xF for unlimited number of outstanding messages. */
  667. pseudo_bit_t ack_req_freq[0x00004]; /* ACK required frequency. ACK required bit will be set in every 2^AckReqFreq packets at least. Not valid for RD QP. */
  668. /* -------------- */
  669. pseudo_bit_t reserved15[0x00020];
  670. /* -------------- */
  671. pseudo_bit_t next_send_psn[0x00018];/* Next PSN to be sent */
  672. pseudo_bit_t reserved16[0x00008];
  673. /* -------------- */
  674. pseudo_bit_t cqn_snd[0x00018]; /* CQ number completions from the send queue to be reported to. Not valid (reserved) in EE context. */
  675. pseudo_bit_t reserved17[0x00008];
  676. /* -------------- */
  677. pseudo_bit_t next_snd_wqe_0[0x00020];/* Pointer and properties of next WQE on send queue. The format is same as next segment (first 8 bytes) in the WQE. This field is read-only and provided for debug purposes. Not valid (reserved) in EE context. */
  678. /* -------------- */
  679. pseudo_bit_t next_snd_wqe_1[0x00020];/* Pointer and properties of next WQE on send queue. The format is same as next segment (first 8 bytes) in the WQE. This field is read-only and provided for debug purposes. Not valid (reserved) in EE context. */
  680. /* -------------- */
  681. pseudo_bit_t last_acked_psn[0x00018];/* The last acknowledged PSN for the requester (QUERY_QPEE only) */
  682. pseudo_bit_t reserved18[0x00008];
  683. /* -------------- */
  684. pseudo_bit_t ssn[0x00018]; /* Requester Send Sequence Number (QUERY_QPEE only) */
  685. pseudo_bit_t reserved19[0x00008];
  686. /* -------------- */
  687. pseudo_bit_t reserved20[0x00003];
  688. pseudo_bit_t rsc[0x00001]; /* 1 - all receive WQEs generate CQEs.
  689. 0 - only receive WQEs with C bit set generate completion.
  690. Not valid (reserved) in EE context.
  691. */
  692. pseudo_bit_t ric[0x00001]; /* Invalid Credits.
  693. 1 - place "Invalid Credits" to ACKs sent from this queue.
  694. 0 - ACKs report the actual number of end to end credits on the connection.
  695. Not valid (reserved) in EE context.
  696. Must be set to 1 on QPs which are attached to SRQ. */
  697. pseudo_bit_t reserved21[0x00008];
  698. pseudo_bit_t rae[0x00001]; /* If set - Atomic operations enabled. on receive queue. Not valid (reserved) in EE context. */
  699. pseudo_bit_t rwe[0x00001]; /* If set - RDMA - write enabled on receive queue. Not valid (reserved) in EE context. */
  700. pseudo_bit_t rre[0x00001]; /* If set - RDMA - read enabled on receive queue. Not valid (reserved) in EE context. */
  701. pseudo_bit_t reserved22[0x00005];
  702. pseudo_bit_t rra_max[0x00003]; /* Maximum number of outstanding RDMA-read/Atomic operations allowed on receive queue is 2^RRA_Max.
  703. Must be 0 for EE context. */
  704. pseudo_bit_t reserved23[0x00008];
  705. /* -------------- */
  706. pseudo_bit_t next_rcv_psn[0x00018]; /* Next (expected) PSN on receive */
  707. pseudo_bit_t min_rnr_nak[0x00005]; /* Minimum RNR NAK timer value (TTTTT field encoding according to the IB spec Vol1 9.7.5.2.8).
  708. Not valid (reserved) in EE context. */
  709. pseudo_bit_t reserved24[0x00003];
  710. /* -------------- */
  711. pseudo_bit_t reserved25[0x00005];
  712. pseudo_bit_t ra_buff_indx[0x0001b]; /* Index to outstanding read/atomic buffer.
  713. This field constructs the address to the RDB for maintaining the incoming RDMA read and atomic requests. */
  714. /* -------------- */
  715. pseudo_bit_t cqn_rcv[0x00018]; /* CQ number completions from receive queue to be reported to. Not valid (reserved) in EE context. */
  716. pseudo_bit_t reserved26[0x00008];
  717. /* -------------- */
  718. pseudo_bit_t next_rcv_wqe_0[0x00020];/* Pointer and properties of next WQE on the receive queue. This format is same as next segment (first 8 bytes) in the WQE.This field is read-only and provided for debug purposes. Not valid (reserved) in EE context. */
  719. /* -------------- */
  720. pseudo_bit_t next_rcv_wqe_1[0x00020];/* Pointer and properties of next WQE on the receive queue. This format is same as next segment (first 8 bytes) in the WQE.This field is read-only and provided for debug purposes. Not valid (reserved) in EE context. */
  721. /* -------------- */
  722. pseudo_bit_t q_key[0x00020]; /* Q_Key to be validated against received datagrams.
  723. On send datagrams, if Q_Key[31] specified in the WQE is set, then this Q_Key will be transmitted in the outgoing message.
  724. Not valid (reserved) in EE context. */
  725. /* -------------- */
  726. pseudo_bit_t srqn[0x00018]; /* SRQN - Shared Receive Queue Number - specifies the SRQ number from which the QP dequeues receive descriptors.
  727. SRQN is valid only if SRQ bit is set. Not valid (reserved) in EE context. */
  728. pseudo_bit_t srq[0x00001]; /* SRQ - Shared Receive Queue. If this bit is set, then the QP is associated with a SRQ. Not valid (reserved) in EE context. */
  729. pseudo_bit_t reserved27[0x00007];
  730. /* -------------- */
  731. pseudo_bit_t rmsn[0x00018]; /* Responder current message sequence number (QUERY_QPEE only) */
  732. pseudo_bit_t reserved28[0x00008];
  733. /* -------------- */
  734. pseudo_bit_t reserved29[0x00260];
  735. /* -------------- */
  736. };
  737. /* MOD_STAT_CFG */
  738. struct tavorprm_mod_stat_cfg_st { /* Little Endian */
  739. pseudo_bit_t log_max_srqs[0x00005]; /* Log (base 2) of the number of SRQs to allocate (0 if no SRQs are required), valid only if srq bit is set. */
  740. pseudo_bit_t reserved0[0x00001];
  741. pseudo_bit_t srq[0x00001]; /* When set SRQs are supported */
  742. pseudo_bit_t srq_m[0x00001]; /* Modify SRQ parameters */
  743. pseudo_bit_t reserved1[0x00018];
  744. /* -------------- */
  745. pseudo_bit_t reserved2[0x007e0];
  746. /* -------------- */
  747. };
  748. /* SRQ Context */
  749. struct tavorprm_srq_context_st { /* Little Endian */
  750. pseudo_bit_t wqe_addr_h[0x00020]; /* WQE base address for the SRQ [63:32]
  751. Must be set at SW2HW_SRQ */
  752. /* -------------- */
  753. pseudo_bit_t ds[0x00006]; /* Descriptor Size on the SRQ in units of 16 bytes */
  754. pseudo_bit_t next_wqe_addr_l[0x0001a];/* Next WQE address for the SRQ [31:6]
  755. Valid only on QUERY_SRQ and HW2SW_SRQ commands. */
  756. /* -------------- */
  757. pseudo_bit_t pd[0x00018]; /* SRQ PD - used for descriptor fetching on the SRQ and for data scatter on send operations on QPs attached to SRQ.
  758. In InfiniHost MT23108 SRQ.PD must be equal to the PD of all QPs which are attached to the SRQ */
  759. pseudo_bit_t reserved0[0x00004];
  760. pseudo_bit_t state[0x00004]; /* SRQ State:
  761. 1111 - SW Ownership
  762. 0000 - HW Ownership
  763. 0001 - Error
  764. Valid only on QUERY_SRQ and HW2SW_SRQ commands. */
  765. /* -------------- */
  766. pseudo_bit_t l_key[0x00020]; /* L_Key for descriptor fetching on the SRQ */
  767. /* -------------- */
  768. pseudo_bit_t uar[0x00018]; /* SRQ User Access Region - Index (offset) of user page allocated for the SRQ (see "Non Privileged Access to the HCA HW"). */
  769. pseudo_bit_t reserved1[0x00008];
  770. /* -------------- */
  771. pseudo_bit_t wqe_cnt[0x00010]; /* WQE count on the SRQ.
  772. Valid only on QUERY_SRQ and HW2SW_SRQ commands. */
  773. pseudo_bit_t lwm[0x00010]; /* Limit Water Mark - if the LWM is not zero, and the wqe_cnt drops below LWM when a WQE is dequeued from the SRQ, then a SRQ limit event is fired and the LWM is set to zero. */
  774. /* -------------- */
  775. pseudo_bit_t reserved2[0x00010];
  776. pseudo_bit_t reserved3[0x00010];
  777. /* -------------- */
  778. pseudo_bit_t reserved4[0x00020];
  779. /* -------------- */
  780. };
  781. /* InfiniHost Configuration Registers */
  782. struct tavorprm_mt23108_configuration_registers_st { /* Little Endian */
  783. pseudo_bit_t reserved0[0x403400];
  784. /* -------------- */
  785. struct tavorprm_hca_command_register_st hca_command_interface_register;/* HCA Command Register */
  786. /* -------------- */
  787. pseudo_bit_t reserved1[0x00320];
  788. /* -------------- */
  789. pseudo_bit_t ecr_h[0x00020]; /* Event Cause Register[63:32]. Each bit in the ECR corresponds to one of the 64 Event Queues in InfiniHost. If bit is set, interrupt was asserted due to event reported on corresponding event queue. This register is read-only; writing to this register will cause undefined results
  790. */
  791. /* -------------- */
  792. pseudo_bit_t ecr_l[0x00020]; /* Event Cause Register[31:0]. Each bit in the ECR corresponds to one of the 64 Event Queues in InfiniHost. If bit is set, interrupt was asserted due to event reported on corresponding event queue. This register is read-only; writing to this register will cause undefined results
  793. */
  794. /* -------------- */
  795. pseudo_bit_t clr_ecr_h[0x00020]; /* Clear Event Cause Register[63:32].
  796. This register is used to clear bits in ECR register. Each set bit in data written to this register clears corresponding bit in the ECR register, Each bit written with zero has no effect. This register is write-only. Reading from this register will cause undefined result
  797. */
  798. /* -------------- */
  799. pseudo_bit_t clr_ecr_l[0x00020]; /* Clear Event Cause Register[31:0].
  800. This register is used to clear bits in ECR register. Each set bit in data written to this register clears corresponding bit in the ECR register, Each bit written with zero has no effect. This register is write-only. Reading from this register will cause undefined result
  801. */
  802. /* -------------- */
  803. pseudo_bit_t reserved2[0x4c780];
  804. /* -------------- */
  805. pseudo_bit_t reserved3[0x01000];
  806. /* -------------- */
  807. pseudo_bit_t reserved4[0x32f6c0];
  808. /* -------------- */
  809. pseudo_bit_t clr_int_h[0x00020]; /* Clear Interrupt [63:32]
  810. This register is used to clear (de-assert) interrupt output pins of InfiniHost. The value to be written in this register is obtained by executing QUERY_ADAPTER command on command interface after system boot. This register is write-only. Reading from this register will cause undefined result */
  811. /* -------------- */
  812. pseudo_bit_t clr_int_l[0x00020]; /* Clear Interrupt [31:0]
  813. This register is used to clear (de-assert) interrupt output pins of InfiniHost. The value to be written in this register is obtained by executing QUERY_ADAPTER command on command interface after system boot. This register is write-only. Reading from this register will cause undefined result */
  814. /* -------------- */
  815. pseudo_bit_t reserved5[0x7f900];
  816. /* -------------- */
  817. };
  818. /* Schedule queues configuration */
  819. struct tavorprm_cfg_schq_st { /* Little Endian */
  820. pseudo_bit_t quota[0x00008]; /* Number of WQEs that are executed until preemption of the scheduling queue and switching to the next schedule queue */
  821. pseudo_bit_t reserved0[0x00018];
  822. /* -------------- */
  823. pseudo_bit_t rqsq0[0x00008]; /* Weight for requestor schedule queue */
  824. pseudo_bit_t rssq0[0x00008]; /* Weight for responder schedule queue */
  825. pseudo_bit_t rqsq1[0x00008]; /* Weight for requestor schedule queue */
  826. pseudo_bit_t rssq1[0x00008]; /* Weight for responder schedule queue */
  827. /* -------------- */
  828. pseudo_bit_t rqsq2[0x00008]; /* Weight for requestor schedule queue */
  829. pseudo_bit_t rssq2[0x00008]; /* Weight for responder schedule queue */
  830. pseudo_bit_t rqsq3[0x00008]; /* Weight for requestor schedule queue */
  831. pseudo_bit_t rssq3[0x00008]; /* Weight for responder schedule queue */
  832. /* -------------- */
  833. pseudo_bit_t rqsq4[0x00008]; /* Weight for requestor schedule queue */
  834. pseudo_bit_t rssq4[0x00008]; /* Weight for responder schedule queue */
  835. pseudo_bit_t rqsq5[0x00008]; /* Weight for requestor schedule queue */
  836. pseudo_bit_t rssq5[0x00008]; /* Weight for responder schedule queue */
  837. /* -------------- */
  838. pseudo_bit_t rqsq6[0x00008]; /* Weight for requestor schedule queue */
  839. pseudo_bit_t rssq6[0x00008]; /* Weight for responder schedule queue */
  840. pseudo_bit_t rqsq7[0x00008]; /* Weight for requestor schedule queue */
  841. pseudo_bit_t rssq7[0x00008]; /* Weight for responder schedule queue */
  842. /* -------------- */
  843. pseudo_bit_t rqsq8[0x00008]; /* Weight for requestor schedule queue */
  844. pseudo_bit_t rssq8[0x00008]; /* Weight for responder schedule queue */
  845. pseudo_bit_t rqsq9[0x00008]; /* Weight for requestor schedule queue */
  846. pseudo_bit_t rssq9[0x00008]; /* Weight for responder schedule queue */
  847. /* -------------- */
  848. pseudo_bit_t rqsq10[0x00008]; /* Weight for requestor schedule queue */
  849. pseudo_bit_t rssq10[0x00008]; /* Weight for responder schedule queue */
  850. pseudo_bit_t rqsq11[0x00008]; /* Weight for requestor schedule queue */
  851. pseudo_bit_t rssq11[0x00008]; /* Weight for responder schedule queue */
  852. /* -------------- */
  853. pseudo_bit_t rqsq12[0x00008]; /* Weight for requestor schedule queue */
  854. pseudo_bit_t rssq12[0x00008]; /* Weight for responder schedule queue */
  855. pseudo_bit_t rqsq13[0x00008]; /* Weight for requestor schedule queue */
  856. pseudo_bit_t rssq13[0x00008]; /* Weight for responder schedule queue */
  857. /* -------------- */
  858. pseudo_bit_t rqsq14[0x00008]; /* Weight for requestor schedule queue */
  859. pseudo_bit_t rssq14[0x00008]; /* Weight for responder schedule queue */
  860. pseudo_bit_t rqsq15[0x00008]; /* Weight for requestor schedule queue */
  861. pseudo_bit_t rssq15[0x00008]; /* Weight for responder schedule queue */
  862. /* -------------- */
  863. pseudo_bit_t rqsq16[0x00008]; /* Weight for requestor schedule queue */
  864. pseudo_bit_t rssq16[0x00008]; /* Weight for responder schedule queue */
  865. pseudo_bit_t rqsq17[0x00008]; /* Weight for requestor schedule queue */
  866. pseudo_bit_t rssq17[0x00008]; /* Weight for responder schedule queue */
  867. /* -------------- */
  868. pseudo_bit_t rqsq18[0x00008]; /* Weight for requestor schedule queue */
  869. pseudo_bit_t rssq18[0x00008]; /* Weight for responder schedule queue */
  870. pseudo_bit_t rqsq19[0x00008]; /* Weight for requestor schedule queue */
  871. pseudo_bit_t rssq19[0x00008]; /* Weight for responder schedule queue */
  872. /* -------------- */
  873. pseudo_bit_t rqsq20[0x00008]; /* Weight for requestor schedule queue */
  874. pseudo_bit_t rssq20[0x00008]; /* Weight for responder schedule queue */
  875. pseudo_bit_t rqsq21[0x00008]; /* Weight for requestor schedule queue */
  876. pseudo_bit_t rssq21[0x00008]; /* Weight for responder schedule queue */
  877. /* -------------- */
  878. pseudo_bit_t rqsq22[0x00008]; /* Weight for requestor schedule queue */
  879. pseudo_bit_t rssq22[0x00008]; /* Weight for responder schedule queue */
  880. pseudo_bit_t rqsq23[0x00008]; /* Weight for requestor schedule queue */
  881. pseudo_bit_t rssq23[0x00008]; /* Weight for responder schedule queue */
  882. /* -------------- */
  883. pseudo_bit_t rqsq24[0x00008]; /* Weight for requestor schedule queue */
  884. pseudo_bit_t rssq24[0x00008]; /* Weight for responder schedule queue */
  885. pseudo_bit_t rqsq25[0x00008]; /* Weight for requestor schedule queue */
  886. pseudo_bit_t rssq25[0x00008]; /* Weight for responder schedule queue */
  887. /* -------------- */
  888. pseudo_bit_t rqsq26[0x00008]; /* Weight for requestor schedule queue */
  889. pseudo_bit_t rssq26[0x00008]; /* Weight for responder schedule queue */
  890. pseudo_bit_t rqsq27[0x00008]; /* Weight for requestor schedule queue */
  891. pseudo_bit_t rssq27[0x00008]; /* Weight for responder schedule queue */
  892. /* -------------- */
  893. pseudo_bit_t rqsq28[0x00008]; /* Weight for requestor schedule queue */
  894. pseudo_bit_t rssq28[0x00008]; /* Weight for responder schedule queue */
  895. pseudo_bit_t rqsq29[0x00008]; /* Weight for requestor schedule queue */
  896. pseudo_bit_t rssq29[0x00008]; /* Weight for responder schedule queue */
  897. /* -------------- */
  898. pseudo_bit_t rqsq30[0x00008]; /* Weight for requestor schedule queue */
  899. pseudo_bit_t rssq30[0x00008]; /* Weight for responder schedule queue */
  900. pseudo_bit_t rqsq31[0x00008]; /* Weight for requestor schedule queue */
  901. pseudo_bit_t rssq31[0x00008]; /* Weight for responder schedule queue */
  902. /* -------------- */
  903. pseudo_bit_t reserved1[0x005e0];
  904. /* -------------- */
  905. };
  906. /* Query BAR */
  907. struct tavorprm_query_bar_st { /* Little Endian */
  908. pseudo_bit_t bar_base_h[0x00020]; /* BAR base [63:32] */
  909. /* -------------- */
  910. pseudo_bit_t reserved0[0x00014];
  911. pseudo_bit_t bar_base_l[0x0000c]; /* BAR base [31:20] */
  912. /* -------------- */
  913. };
  914. /* Performance Counters */
  915. struct tavorprm_performance_counters_st { /* Little Endian */
  916. pseudo_bit_t sqpc_access_cnt[0x00020];/* SQPC cache access count */
  917. /* -------------- */
  918. pseudo_bit_t sqpc_miss_cnt[0x00020];/* SQPC cache miss count */
  919. /* -------------- */
  920. pseudo_bit_t reserved0[0x00040];
  921. /* -------------- */
  922. pseudo_bit_t rqpc_access_cnt[0x00020];/* RQPC cache access count */
  923. /* -------------- */
  924. pseudo_bit_t rqpc_miss_cnt[0x00020];/* RQPC cache miss count */
  925. /* -------------- */
  926. pseudo_bit_t reserved1[0x00040];
  927. /* -------------- */
  928. pseudo_bit_t cqc_access_cnt[0x00020];/* CQC cache access count */
  929. /* -------------- */
  930. pseudo_bit_t cqc_miss_cnt[0x00020]; /* CQC cache miss count */
  931. /* -------------- */
  932. pseudo_bit_t reserved2[0x00040];
  933. /* -------------- */
  934. pseudo_bit_t tpt_access_cnt[0x00020];/* TPT cache access count */
  935. /* -------------- */
  936. pseudo_bit_t mpt_miss_cnt[0x00020]; /* MPT cache miss count */
  937. /* -------------- */
  938. pseudo_bit_t mtt_miss_cnt[0x00020]; /* MTT cache miss count */
  939. /* -------------- */
  940. pseudo_bit_t reserved3[0x00620];
  941. /* -------------- */
  942. };
  943. /* Transport and CI Error Counters */
  944. struct tavorprm_transport_and_ci_error_counters_st { /* Little Endian */
  945. pseudo_bit_t rq_num_lle[0x00020]; /* Responder - number of local length errors.
  946. Local Length Errors: Inbound "Send" request message exceeded the responders available buffer space. */
  947. /* -------------- */
  948. pseudo_bit_t sq_num_lle[0x00020]; /* Requester - number of local length errors.
  949. Length Errors: RDMA READ response message contained too much or too little payload data. */
  950. /* -------------- */
  951. pseudo_bit_t rq_num_lqpoe[0x00020]; /* Responder - number local QP operation error.
  952. 1. Malformed WQE: Responder detected a malformed Receive Queue WQE while processing the packet.
  953. 2. Local QP Error: Responder detected a local QP related error while executing the request message. The local error prevented the responder from completing the request. */
  954. /* -------------- */
  955. pseudo_bit_t sq_num_lqpoe[0x00020]; /* Requester - number local QP operation error
  956. 1. Local Operation Error: (WQE gather, affiliated or unaffiliated): An error occurred in the requesters local channel interface that either cannot be associated with a certain WQE, or occurred when reading a WQE.
  957. */
  958. /* -------------- */
  959. pseudo_bit_t rq_num_leeoe[0x00020]; /* Responder - number local EE operation error.
  960. RD */
  961. /* -------------- */
  962. pseudo_bit_t sq_num_leeoe[0x00020]; /* Requester - number local EE operation error.
  963. RD */
  964. /* -------------- */
  965. pseudo_bit_t rq_num_lpe[0x00020]; /* Responder - number of local protection errors.
  966. Local QP (Protection) Error: Responder detected a local access violation error while executing a send request message. The error prevented the responder from completing the request. */
  967. /* -------------- */
  968. pseudo_bit_t sq_num_lpe[0x00020]; /* Requester - number of local protection errors.
  969. Local Memory Protection Error: Requester detected a memory translation/protection (TPT) error.
  970. */
  971. /* -------------- */
  972. pseudo_bit_t rq_num_wrfe[0x00020]; /* Responder - number of CQEs with error generated. */
  973. /* -------------- */
  974. pseudo_bit_t sq_num_wrfe[0x00020]; /* Requester - number of CQEs with error generated. */
  975. /* -------------- */
  976. pseudo_bit_t reserved0[0x00020];
  977. /* -------------- */
  978. pseudo_bit_t sq_num_mwbe[0x00020]; /* Requester - number of memory window bind errors. */
  979. /* -------------- */
  980. pseudo_bit_t reserved1[0x00020];
  981. /* -------------- */
  982. pseudo_bit_t sq_num_bre[0x00020]; /* Requester - number of bad response errors.
  983. Bad response: Unexpected opcode for the response packet received at the expected response PSN. */
  984. /* -------------- */
  985. pseudo_bit_t rq_num_lae[0x00020]; /* Responder - number of local access errors.
  986. Unused. */
  987. /* -------------- */
  988. pseudo_bit_t reserved2[0x00040];
  989. /* -------------- */
  990. pseudo_bit_t sq_num_rire[0x00020]; /* Requester - number of remote invalid request errors.
  991. NAK-Invalid Request on:
  992. 1. Unsupported OpCode: Responder detected an unsupported OpCode.
  993. 2. Unexpected OpCode: Responder detected an error in the sequence of OpCodes, such as a missing "Last" packet.
  994. Note: there is no PSN error, thus this does not indicate a dropped packet. */
  995. /* -------------- */
  996. pseudo_bit_t rq_num_rire[0x00020]; /* Responder - number of remote invalid request errors.
  997. NAK may or may not be sent.
  998. 1. Unsupported or Reserved OpCode: Inbound request OpCode was either reserved, or was for a function not supported by this QP. (E.G. RDMA or ATOMIC on QP not set up for this). For RC this is "QP Async affiliated".
  999. 2. Misaligned ATOMIC: VA does not point to an aligned address on an atomic operation.
  1000. 3. Too many RDMA READ or ATOMIC Requests: There were more requests received and not ACKed than allowed for the connection.
  1001. 4. Out of Sequence OpCode, current packet is "first" or "Only": The Responder detected an error in the sequence of OpCodes; a missing "Last" packet
  1002. 5. Out of Sequence OpCode, current packet is not "first" or "Only": The Responder detected an error in the sequence of OpCodes; a missing "First" packet
  1003. 6. Local Length Error: Inbound "Send" request message exceeded the responder.s available buffer space.
  1004. 7. Length error: RDMA WRITE request message contained too much or too little payload data compared to the DMA length advertised in the first or only packet.
  1005. 8. Length error: Payload length was not consistent with the opcode:
  1006. a: 0 byte <= "only" <= PMTU bytes
  1007. b: ("first" or "middle") == PMTU bytes
  1008. c: 1byte <= "last" <= PMTU bytes
  1009. 9. Length error: Inbound message exceeded the size supported by the CA port. */
  1010. /* -------------- */
  1011. pseudo_bit_t sq_num_rae[0x00020]; /* Requester - number of remote access errors.
  1012. NAK-Remote Access Error on:
  1013. R_Key Violation: Responder detected an invalid R_Key while executing an RDMA Request. */
  1014. /* -------------- */
  1015. pseudo_bit_t rq_num_rae[0x00020]; /* Responder - number of remote access errors.
  1016. R_Key Violation Responder detected an R_Key violation while executing an RDMA request.
  1017. NAK may or may not be sent. */
  1018. /* -------------- */
  1019. pseudo_bit_t sq_num_roe[0x00020]; /* Requester - number of remote operation errors.
  1020. NAK-Remote Operation Error on:
  1021. Remote Operation Error: Responder encountered an error, (local to the responder), which prevented it from completing the request. */
  1022. /* -------------- */
  1023. pseudo_bit_t rq_num_roe[0x00020]; /* Responder - number of remote operation errors.
  1024. NAK-Remote Operation Error on:
  1025. 1. Malformed WQE: Responder detected a malformed Receive Queue WQE while processing the packet.
  1026. 2. Remote Operation Error: Responder encountered an error, (local to the responder), which prevented it from completing the request. */
  1027. /* -------------- */
  1028. pseudo_bit_t sq_num_tree[0x00020]; /* Requester - number of transport retries exceeded errors.
  1029. 1. Packet sequence error: Retry limit exceeded. Responder detected a PSN larger than it expected. The requestor performed retries, and automatic path migration and additional retries, if applicable, but all attempts failed.
  1030. 2. Implied NAK sequence error: Retry limit exceeded. Requestor detected an ACK with a PSN larger than the expected PSN for an RDMA READ or atomic response. The requestor performed retries, and automatic path migration and additional retries, if applicable, but all attempts failed.
  1031. 3. Local Ack Timeout error: Retry limit exceeded. No ACK response within timer interval. The requestor performed retries, and automatic path migration and additional retries, but all attempts failed. */
  1032. /* -------------- */
  1033. pseudo_bit_t reserved3[0x00020];
  1034. /* -------------- */
  1035. pseudo_bit_t sq_num_rree[0x00020]; /* Requester - number of RNR nak retries exceeded errors.
  1036. RNR NAK Retry error. Retry limit exceeded. Excessive RNR NAKs returned by the responder: Requestor retried the request "n" times, but received RNR NAK each time. */
  1037. /* -------------- */
  1038. pseudo_bit_t reserved4[0x00020];
  1039. /* -------------- */
  1040. pseudo_bit_t sq_num_lrdve[0x00020]; /* Requester - number of local RDD violation errors.
  1041. RD only. */
  1042. /* -------------- */
  1043. pseudo_bit_t rq_num_rirdre[0x00020];/* Responder - number of remote invalid RD request errors.
  1044. RD only. */
  1045. /* -------------- */
  1046. pseudo_bit_t reserved5[0x00040];
  1047. /* -------------- */
  1048. pseudo_bit_t sq_num_rabrte[0x00020];/* Requester - number of remote aborted errors.
  1049. RD only. */
  1050. /* -------------- */
  1051. pseudo_bit_t reserved6[0x00020];
  1052. /* -------------- */
  1053. pseudo_bit_t sq_num_ieecne[0x00020];/* Requester - number of invalid EE context number errors.
  1054. RD only. */
  1055. /* -------------- */
  1056. pseudo_bit_t reserved7[0x00020];
  1057. /* -------------- */
  1058. pseudo_bit_t sq_num_ieecse[0x00020];/* Requester - invalid EE context state errors.
  1059. RD only. */
  1060. /* -------------- */
  1061. pseudo_bit_t reserved8[0x00380];
  1062. /* -------------- */
  1063. pseudo_bit_t rq_num_oos[0x00020]; /* Responder - number of out of sequence requests received.
  1064. Out of Sequence Request Packet: Packet PSN of the inbound request is outside the responders valid PSN window.
  1065. NAK may or may not be sent. */
  1066. /* -------------- */
  1067. pseudo_bit_t sq_num_oos[0x00020]; /* Requester - number of out of sequence Naks received.
  1068. NAK-Sequence Error on:
  1069. 1. Packet sequence error. Retry limit not exceeded: Responder detected a PSN larger than it expected. Requester may retry the request.
  1070. 2. Packet sequence error. Retry limit exceeded: Responder detected a PSN larger than it expected. The requestor performed retries, and automatic path migration and additional retries, if applicable, but all attempts failed. */
  1071. /* -------------- */
  1072. pseudo_bit_t rq_num_mce[0x00020]; /* Responder - number of bad multicast packets received.
  1073. Missing GID or bad GID. */
  1074. /* -------------- */
  1075. pseudo_bit_t reserved9[0x00020];
  1076. /* -------------- */
  1077. pseudo_bit_t rq_num_rsync[0x00020]; /* Responder - number of RESYNC operations.
  1078. RD only. */
  1079. /* -------------- */
  1080. pseudo_bit_t sq_num_rsync[0x00020]; /* Requester - number of RESYNC operations.
  1081. RD only. */
  1082. /* -------------- */
  1083. pseudo_bit_t rq_num_udsdprd[0x00020];/* The number of UD packets silently discarded on the receive queue due to lack of receive descriptor.
  1084. Resources Not Ready Error: A UD WQE is not currently available. */
  1085. /* -------------- */
  1086. pseudo_bit_t reserved10[0x00020];
  1087. /* -------------- */
  1088. pseudo_bit_t rq_num_ucsdprd[0x00020];/* The number of UC packets silently discarded on the receive queue due to lack of receive descriptor.
  1089. Resources Not Ready Error: A UC WQE is not currently available. */
  1090. /* -------------- */
  1091. pseudo_bit_t reserved11[0x003e0];
  1092. /* -------------- */
  1093. pseudo_bit_t num_cqovf[0x00020]; /* Number of CQ overflows.
  1094. Incremented each time a completion is discarded due CQ overflow. */
  1095. /* -------------- */
  1096. pseudo_bit_t num_eqovf[0x00020]; /* Number of EQ overflows.
  1097. Incremented each time EQ enters the overflow state. */
  1098. /* -------------- */
  1099. pseudo_bit_t num_baddb[0x00020]; /* Number of bad doorbells.
  1100. Doorbell dropped due to UAR violation or bad resource state. */
  1101. /* -------------- */
  1102. pseudo_bit_t reserved12[0x002a0];
  1103. /* -------------- */
  1104. };
  1105. /* Event_data Field - HCR Completion Event */
  1106. struct tavorprm_hcr_completion_event_st { /* Little Endian */
  1107. pseudo_bit_t token[0x00010]; /* HCR Token */
  1108. pseudo_bit_t reserved0[0x00010];
  1109. /* -------------- */
  1110. pseudo_bit_t reserved1[0x00020];
  1111. /* -------------- */
  1112. pseudo_bit_t status[0x00008]; /* HCR Status */
  1113. pseudo_bit_t reserved2[0x00018];
  1114. /* -------------- */
  1115. pseudo_bit_t out_param_h[0x00020]; /* HCR Output Parameter [63:32] */
  1116. /* -------------- */
  1117. pseudo_bit_t out_param_l[0x00020]; /* HCR Output Parameter [31:0] */
  1118. /* -------------- */
  1119. pseudo_bit_t reserved3[0x00020];
  1120. /* -------------- */
  1121. };
  1122. /* Completion with Error CQE */
  1123. struct tavorprm_completion_with_error_st { /* Little Endian */
  1124. pseudo_bit_t myqpn[0x00018]; /* Indicates the QP for which completion is being reported */
  1125. pseudo_bit_t reserved0[0x00008];
  1126. /* -------------- */
  1127. pseudo_bit_t reserved1[0x00060];
  1128. /* -------------- */
  1129. pseudo_bit_t db_cnt[0x00010]; /* Doorbell count */
  1130. pseudo_bit_t reserved2[0x00008];
  1131. pseudo_bit_t syndrome[0x00008]; /* Completion with error syndrome:
  1132. 0x01 - Local Length Error
  1133. 0x02 - Local QP Operation Error
  1134. 0x03 - Local EE Context Operation Error
  1135. 0x04 - Local Protection Error
  1136. 0x05 - Work Request Flushed Error
  1137. 0x06 - Memory Window Bind Error
  1138. 0x10 - Bad Response Error
  1139. 0x11 - Local Access Error
  1140. 0x12 - Remote Invalid Request Error
  1141. 0x13 - Remote Access Error
  1142. 0x14 - Remote Operation Error
  1143. 0x15 - Transport Retry Counter Exceeded
  1144. 0x16 - RNR Retry Counter Exceeded
  1145. 0x20 - Local RDD Violation Error
  1146. 0x21 - Remote Invalid RD Request
  1147. 0x22 - Remote Aborted Error
  1148. 0x23 - Invalid EE Context Number
  1149. 0x24 - Invalid EE Context State
  1150. other - Reserved
  1151. Syndrome is defined according to the IB specification volume 1. For detailed explanation of the syndromes, refer to chapters 10-11 of the IB specification rev 1.1. */
  1152. /* -------------- */
  1153. pseudo_bit_t reserved3[0x00020];
  1154. /* -------------- */
  1155. pseudo_bit_t wqe_size[0x00006]; /* Size (in 16-byte chunks) of WQE completion is reported for */
  1156. pseudo_bit_t wqe_addr[0x0001a]; /* Bits 31:6 of WQE virtual address completion is reported for. The 6 least significant bits are zero. */
  1157. /* -------------- */
  1158. pseudo_bit_t reserved4[0x00007];
  1159. pseudo_bit_t owner[0x00001]; /* Owner field. Zero value of this field means SW ownership of CQE. */
  1160. pseudo_bit_t reserved5[0x00010];
  1161. pseudo_bit_t opcode[0x00008]; /* The opcode of WQE completion is reported for.
  1162. The following values are reported in case of completion with error:
  1163. 0xFE - For completion with error on Receive Queues
  1164. 0xFF - For completion with error on Send Queues */
  1165. /* -------------- */
  1166. };
  1167. /* Resize CQ Input Mailbox */
  1168. struct tavorprm_resize_cq_st { /* Little Endian */
  1169. pseudo_bit_t reserved0[0x00020];
  1170. /* -------------- */
  1171. pseudo_bit_t start_addr_h[0x00020]; /* Start address of CQ[63:32].
  1172. Must be aligned on CQE size (32 bytes) */
  1173. /* -------------- */
  1174. pseudo_bit_t start_addr_l[0x00020]; /* Start address of CQ[31:0].
  1175. Must be aligned on CQE size (32 bytes) */
  1176. /* -------------- */
  1177. pseudo_bit_t reserved1[0x00018];
  1178. pseudo_bit_t log_cq_size[0x00005]; /* Log (base 2) of the CQ size (in entries) */
  1179. pseudo_bit_t reserved2[0x00003];
  1180. /* -------------- */
  1181. pseudo_bit_t reserved3[0x00060];
  1182. /* -------------- */
  1183. pseudo_bit_t l_key[0x00020]; /* Memory key (L_Key) to be used to access CQ */
  1184. /* -------------- */
  1185. pseudo_bit_t reserved4[0x00100];
  1186. /* -------------- */
  1187. };
  1188. /* SYS_EN Output Parameter */
  1189. struct tavorprm_sys_en_out_param_st { /* Little Endian */
  1190. pseudo_bit_t reserved0[0x00020];
  1191. /* -------------- */
  1192. pseudo_bit_t spd[0x00001]; /* 0 - DIMM SPD was read from DIMM
  1193. 1 - DIMM SPD was read from InfiniHost NVMEM */
  1194. pseudo_bit_t sladr[0x00003]; /* SPD Slave Address 3 LSBits.
  1195. Valid only if spd bit is 0. */
  1196. pseudo_bit_t sock_num[0x00002]; /* DIMM socket number (for double sided DIMM one of the two numbers will be reported) */
  1197. pseudo_bit_t syn[0x00004]; /* Error Syndrome
  1198. 0 - reserved
  1199. 1 - SPD error (e.g. checksum error, no response, error while reading)
  1200. 2 - DIMM out of bounds (e.g. DIMM rows number is not between 7 and 14, DIMM type is not 2)
  1201. 3 - DIMM conflict (e.g. mix of registered and unbuffered DIMMs, CAS latency conflict)
  1202. 4 - Calibration error
  1203. 5 - reserved
  1204. 6- DDR Memory check failed
  1205. other - Error, reserved */
  1206. pseudo_bit_t reserved1[0x00016];
  1207. /* -------------- */
  1208. };
  1209. /* Query Debug Message */
  1210. struct tavorprm_query_debug_msg_st { /* Little Endian */
  1211. pseudo_bit_t base_addr_h[0x00020]; /* Debug Buffers Base Address [63:32] */
  1212. /* -------------- */
  1213. pseudo_bit_t base_addr_l[0x00020]; /* Debug Buffers Base Address [31:0] */
  1214. /* -------------- */
  1215. pseudo_bit_t buf_sz[0x00020]; /* Debug Buffer Size (in bytes) */
  1216. /* -------------- */
  1217. pseudo_bit_t reserved0[0x00020];
  1218. /* -------------- */
  1219. pseudo_bit_t trc_hdr_sz[0x00020]; /* Trace message header size in dwords. */
  1220. /* -------------- */
  1221. pseudo_bit_t trc_arg_num[0x00020]; /* The number of arguments per trace message. */
  1222. /* -------------- */
  1223. pseudo_bit_t reserved1[0x000c0];
  1224. /* -------------- */
  1225. pseudo_bit_t dbg_msk_h[0x00020]; /* Debug messages mask [63:32] */
  1226. /* -------------- */
  1227. pseudo_bit_t dbg_msk_l[0x00020]; /* Debug messages mask [31:0] */
  1228. /* -------------- */
  1229. pseudo_bit_t reserved2[0x00040];
  1230. /* -------------- */
  1231. pseudo_bit_t fs_base_addr0_h[0x00020];/* Base address for format string for irisc 0 bits[63:32] */
  1232. /* -------------- */
  1233. pseudo_bit_t fs_base_addr0_l[0x00020];/* Base address for format string for irisc 0 bits[31:0] */
  1234. /* -------------- */
  1235. pseudo_bit_t fs_base_addr1_h[0x00020];/* Base address for format string for irisc 1 bits[63:32] */
  1236. /* -------------- */
  1237. pseudo_bit_t fs_base_addr1_l[0x00020];/* Base address for format string for irisc 1 bits[31:0] */
  1238. /* -------------- */
  1239. pseudo_bit_t fs_base_addr2_h[0x00020];/* Base address for format string for irisc 2 bits[63:32] */
  1240. /* -------------- */
  1241. pseudo_bit_t fs_base_addr2_l[0x00020];/* Base address for format string for irisc 2 bits[31:0] */
  1242. /* -------------- */
  1243. pseudo_bit_t fs_base_addr3_h[0x00020];/* Base address for format string for irisc 3 bits[63:32] */
  1244. /* -------------- */
  1245. pseudo_bit_t fs_base_addr3_l[0x00020];/* Base address for format string for irisc 3 bits[31:0] */
  1246. /* -------------- */
  1247. pseudo_bit_t fs_base_addr4_h[0x00020];/* Base address for format string for irisc 4 bits[63:32] */
  1248. /* -------------- */
  1249. pseudo_bit_t fs_base_addr4_l[0x00020];/* Base address for format string for irisc 4 bits[31:0] */
  1250. /* -------------- */
  1251. pseudo_bit_t fs_base_addr5_h[0x00020];/* Base address for format string for irisc 5 bits[63:32] */
  1252. /* -------------- */
  1253. pseudo_bit_t fs_base_addr5_l[0x00020];/* Base address for format string for irisc 5 bits[31:0] */
  1254. /* -------------- */
  1255. pseudo_bit_t reserved3[0x00480];
  1256. /* -------------- */
  1257. };
  1258. /* User Access Region */
  1259. struct tavorprm_uar_st { /* Little Endian */
  1260. struct tavorprm_rd_send_doorbell_st rd_send_doorbell;/* Reliable Datagram SQ Doorbell */
  1261. /* -------------- */
  1262. struct tavorprm_send_doorbell_st send_doorbell;/* SQ Doorbell */
  1263. /* -------------- */
  1264. struct tavorprm_receive_doorbell_st receive_doorbell;/* RQ Doorbell */
  1265. /* -------------- */
  1266. struct tavorprm_cq_cmd_doorbell_st cq_command_doorbell;/* CQ Doorbell */
  1267. /* -------------- */
  1268. struct tavorprm_eq_cmd_doorbell_st eq_command_doorbell;/* EQ Doorbell */
  1269. /* -------------- */
  1270. pseudo_bit_t reserved0[0x01e80];
  1271. /* -------------- */
  1272. pseudo_bit_t infini_blast[256][0x00020];/* InfiniBlast buffer (same format as WQE format)
  1273. Infiniblast is not supported by InfiniHost MT23108 */
  1274. /* -------------- */
  1275. };
  1276. /* SET_IB Parameters */
  1277. struct tavorprm_set_ib_st { /* Little Endian */
  1278. pseudo_bit_t rqk[0x00001]; /* Reset QKey Violation Counter */
  1279. pseudo_bit_t reserved0[0x00011];
  1280. pseudo_bit_t sig[0x00001]; /* Set System Image GUID to system_image_guid specified.
  1281. system_image_guid and sig must be the same for all ports. */
  1282. pseudo_bit_t reserved1[0x0000d];
  1283. /* -------------- */
  1284. pseudo_bit_t capability_mask[0x00020];/* PortInfo Capability Mask */
  1285. /* -------------- */
  1286. pseudo_bit_t system_image_guid_h[0x00020];/* System Image GUID[63:32], takes effect only if the SIG bit is set
  1287. Must be the same for both ports. */
  1288. /* -------------- */
  1289. pseudo_bit_t system_image_guid_l[0x00020];/* System Image GUID[31:0], takes effect only if the SIG bit is set
  1290. Must be the same for both ports. */
  1291. /* -------------- */
  1292. pseudo_bit_t reserved2[0x00180];
  1293. /* -------------- */
  1294. };
  1295. /* Multicast Group Member */
  1296. struct tavorprm_mgm_entry_st { /* Little Endian */
  1297. pseudo_bit_t reserved0[0x00006];
  1298. pseudo_bit_t next_gid_index[0x0001a];/* Index of next Multicast Group Member whose GID maps to same MGID_HASH number.
  1299. The index is into the Multicast Group Table, which is the comprised the MGHT and AMGM tables.
  1300. next_gid_index=0 means end of the chain. */
  1301. /* -------------- */
  1302. pseudo_bit_t reserved1[0x00060];
  1303. /* -------------- */
  1304. pseudo_bit_t mgid_128_96[0x00020]; /* Multicast group GID[128:96] in big endian format.
  1305. Use the Reserved GID 0:0:0:0:0:0:0:0 for an invalid entry. */
  1306. /* -------------- */
  1307. pseudo_bit_t mgid_95_64[0x00020]; /* Multicast group GID[95:64] in big endian format.
  1308. Use the Reserved GID 0:0:0:0:0:0:0:0 for an invalid entry. */
  1309. /* -------------- */
  1310. pseudo_bit_t mgid_63_32[0x00020]; /* Multicast group GID[63:32] in big endian format.
  1311. Use the Reserved GID 0:0:0:0:0:0:0:0 for an invalid entry. */
  1312. /* -------------- */
  1313. pseudo_bit_t mgid_31_0[0x00020]; /* Multicast group GID[31:0] in big endian format.
  1314. Use the Reserved GID 0:0:0:0:0:0:0:0 for an invalid entry. */
  1315. /* -------------- */
  1316. struct tavorprm_mgmqp_st mgmqp_0; /* Multicast Group Member QP */
  1317. /* -------------- */
  1318. struct tavorprm_mgmqp_st mgmqp_1; /* Multicast Group Member QP */
  1319. /* -------------- */
  1320. struct tavorprm_mgmqp_st mgmqp_2; /* Multicast Group Member QP */
  1321. /* -------------- */
  1322. struct tavorprm_mgmqp_st mgmqp_3; /* Multicast Group Member QP */
  1323. /* -------------- */
  1324. struct tavorprm_mgmqp_st mgmqp_4; /* Multicast Group Member QP */
  1325. /* -------------- */
  1326. struct tavorprm_mgmqp_st mgmqp_5; /* Multicast Group Member QP */
  1327. /* -------------- */
  1328. struct tavorprm_mgmqp_st mgmqp_6; /* Multicast Group Member QP */
  1329. /* -------------- */
  1330. struct tavorprm_mgmqp_st mgmqp_7; /* Multicast Group Member QP */
  1331. /* -------------- */
  1332. };
  1333. /* INIT_IB Parameters */
  1334. struct tavorprm_init_ib_st { /* Little Endian */
  1335. pseudo_bit_t reserved0[0x00004];
  1336. pseudo_bit_t vl_cap[0x00004]; /* Maximum VLs supported on the port, excluding VL15.
  1337. Legal values are 1,2,4 and 8. */
  1338. pseudo_bit_t port_width_cap[0x00004];/* IB Port Width
  1339. 1 - 1x
  1340. 3 - 1x, 4x
  1341. 11 - 1x, 4x or 12x (must not be used in InfiniHost MT23108)
  1342. else - Reserved */
  1343. pseudo_bit_t mtu_cap[0x00004]; /* Maximum MTU Supported
  1344. 0x0 - Reserved
  1345. 0x1 - 256
  1346. 0x2 - 512
  1347. 0x3 - 1024
  1348. 0x4 - 2048
  1349. 0x5 - 0xF Reserved */
  1350. pseudo_bit_t g0[0x00001]; /* Set port GUID0 to GUID0 specified */
  1351. pseudo_bit_t ng[0x00001]; /* Set node GUID to node_guid specified.
  1352. node_guid and ng must be the same for all ports. */
  1353. pseudo_bit_t sig[0x00001]; /* Set System Image GUID to system_image_guid specified.
  1354. system_image_guid and sig must be the same for all ports. */
  1355. pseudo_bit_t reserved1[0x0000d];
  1356. /* -------------- */
  1357. pseudo_bit_t max_gid[0x00010]; /* Maximum number of GIDs for the port */
  1358. pseudo_bit_t reserved2[0x00010];
  1359. /* -------------- */
  1360. pseudo_bit_t max_pkey[0x00010]; /* Maximum pkeys for the port.
  1361. Must be the same for both ports. */
  1362. pseudo_bit_t reserved3[0x00010];
  1363. /* -------------- */
  1364. pseudo_bit_t reserved4[0x00020];
  1365. /* -------------- */
  1366. pseudo_bit_t guid0_h[0x00020]; /* EUI-64 GUID assigned by the manufacturer, takes effect only if the G0 bit is set (bits 63:32) */
  1367. /* -------------- */
  1368. pseudo_bit_t guid0_l[0x00020]; /* EUI-64 GUID assigned by the manufacturer, takes effect only if the G0 bit is set (bits 31:0) */
  1369. /* -------------- */
  1370. pseudo_bit_t node_guid_h[0x00020]; /* Node GUID[63:32], takes effect only if the NG bit is set
  1371. Must be the same for both ports. */
  1372. /* -------------- */
  1373. pseudo_bit_t node_guid_l[0x00020]; /* Node GUID[31:0], takes effect only if the NG bit is set
  1374. Must be the same for both ports. */
  1375. /* -------------- */
  1376. pseudo_bit_t system_image_guid_h[0x00020];/* System Image GUID[63:32], takes effect only if the SIG bit is set
  1377. Must be the same for both ports. */
  1378. /* -------------- */
  1379. pseudo_bit_t system_image_guid_l[0x00020];/* System Image GUID[31:0], takes effect only if the SIG bit is set
  1380. Must be the same for both ports. */
  1381. /* -------------- */
  1382. pseudo_bit_t reserved5[0x006c0];
  1383. /* -------------- */
  1384. };
  1385. /* Query Device Limitations */
  1386. struct tavorprm_query_dev_lim_st { /* Little Endian */
  1387. pseudo_bit_t reserved0[0x00080];
  1388. /* -------------- */
  1389. pseudo_bit_t log_max_qp[0x00005]; /* Log2 of the Maximum number of QPs supported */
  1390. pseudo_bit_t reserved1[0x00003];
  1391. pseudo_bit_t log2_rsvd_qps[0x00004];/* Log (base 2) of the number of QPs reserved for firmware use
  1392. The reserved resources are numbered from 0 to 2^log2_rsvd_qps-1 */
  1393. pseudo_bit_t reserved2[0x00004];
  1394. pseudo_bit_t log_max_qp_sz[0x00008];/* The maximum number of WQEs allowed on the RQ or the SQ is 2^log_max_qp_sz-1 */
  1395. pseudo_bit_t log_max_srq_sz[0x00008];/* The maximum number of WQEs allowed on the SRQ is 2^log_max_srq_sz-1 */
  1396. /* -------------- */
  1397. pseudo_bit_t log_max_ee[0x00005]; /* Log2 of the Maximum number of EE contexts supported */
  1398. pseudo_bit_t reserved3[0x00003];
  1399. pseudo_bit_t log2_rsvd_ees[0x00004];/* Log (base 2) of the number of EECs reserved for firmware use
  1400. The reserved resources are numbered from 0 to 2^log2_rsvd_ees-1 */
  1401. pseudo_bit_t reserved4[0x00004];
  1402. pseudo_bit_t log_max_srqs[0x00005]; /* Log base 2 of the maximum number of SRQs supported, valid only if SRQ bit is set.
  1403. */
  1404. pseudo_bit_t reserved5[0x00007];
  1405. pseudo_bit_t log2_rsvd_srqs[0x00004];/* Log (base 2) of the number of reserved SRQs for firmware use
  1406. The reserved resources are numbered from 0 to 2^log2_rsvd_srqs-1
  1407. This parameter is valid only if the SRQ bit is set. */
  1408. /* -------------- */
  1409. pseudo_bit_t log_max_cq[0x00005]; /* Log2 of the Maximum number of CQs supported */
  1410. pseudo_bit_t reserved6[0x00003];
  1411. pseudo_bit_t log2_rsvd_cqs[0x00004];/* Log (base 2) of the number of CQs reserved for firmware use
  1412. The reserved resources are numbered from 0 to 2^log2_rsrvd_cqs-1 */
  1413. pseudo_bit_t reserved7[0x00004];
  1414. pseudo_bit_t log_max_cq_sz[0x00008];/* Log2 of the Maximum CQEs allowed in a CQ */
  1415. pseudo_bit_t reserved8[0x00008];
  1416. /* -------------- */
  1417. pseudo_bit_t log_max_eq[0x00003]; /* Log2 of the Maximum number of EQs */
  1418. pseudo_bit_t reserved9[0x00005];
  1419. pseudo_bit_t num_rsvd_eqs[0x00004]; /* The number of EQs reserved for firmware use
  1420. The reserved resources are numbered from 0 to num_rsvd_eqs-1
  1421. If 0 - no resources are reserved. */
  1422. pseudo_bit_t reserved10[0x00004];
  1423. pseudo_bit_t log_max_mpts[0x00006]; /* Log (base 2) of the maximum number of MPT entries (the number of Regions/Windows) */
  1424. pseudo_bit_t reserved11[0x0000a];
  1425. /* -------------- */
  1426. pseudo_bit_t log_max_mtt_seg[0x00006];/* Log2 of the Maximum number of MTT segments */
  1427. pseudo_bit_t reserved12[0x00002];
  1428. pseudo_bit_t log2_rsvd_mrws[0x00004];/* Log (base 2) of the number of MPTs reserved for firmware use
  1429. The reserved resources are numbered from 0 to 2^log2_rsvd_mrws-1 */
  1430. pseudo_bit_t reserved13[0x00004];
  1431. pseudo_bit_t log_max_mrw_sz[0x00008];/* Log2 of the Maximum Size of Memory Region/Window */
  1432. pseudo_bit_t reserved14[0x00004];
  1433. pseudo_bit_t log2_rsvd_mtts[0x00004];/* Log (base 2) of the number of MTT segments reserved for firmware use
  1434. The reserved resources are numbered from 0 to 2^log2_rsvd_mtts-1
  1435. */
  1436. /* -------------- */
  1437. pseudo_bit_t log_max_av[0x00006]; /* Log2 of the Maximum number of Address Vectors */
  1438. pseudo_bit_t reserved15[0x0001a];
  1439. /* -------------- */
  1440. pseudo_bit_t log_max_ra_res_qp[0x00006];/* Log2 of the Maximum number of outstanding RDMA read/Atomic per QP as a responder */
  1441. pseudo_bit_t reserved16[0x0000a];
  1442. pseudo_bit_t log_max_ra_req_qp[0x00006];/* Log2 of the maximum number of outstanding RDMA read/Atomic per QP as a requester */
  1443. pseudo_bit_t reserved17[0x0000a];
  1444. /* -------------- */
  1445. pseudo_bit_t log_max_ra_res_global[0x00006];/* Log2 of the maximum number of RDMA read/atomic operations the HCA responder can support globally. That implies the RDB table size. */
  1446. pseudo_bit_t reserved18[0x0001a];
  1447. /* -------------- */
  1448. pseudo_bit_t reserved19[0x00020];
  1449. /* -------------- */
  1450. pseudo_bit_t num_ports[0x00004]; /* Number of IB ports. */
  1451. pseudo_bit_t max_vl[0x00004]; /* Maximum VLs supported on each port, excluding VL15 */
  1452. pseudo_bit_t max_port_width[0x00004];/* IB Port Width
  1453. 1 - 1x
  1454. 3 - 1x, 4x
  1455. 11 - 1x, 4x or 12x
  1456. else - Reserved */
  1457. pseudo_bit_t max_mtu[0x00004]; /* Maximum MTU Supported
  1458. 0x0 - Reserved
  1459. 0x1 - 256
  1460. 0x2 - 512
  1461. 0x3 - 1024
  1462. 0x4 - 2048
  1463. 0x5 - 0xF Reserved */
  1464. pseudo_bit_t local_ca_ack_delay[0x00005];/* The Local CA ACK Delay. This is the value recommended to be returned in Query HCA verb.
  1465. The delay value in microseconds is computed using 4.096us * 2^(Local_CA_ACK_Delay). */
  1466. pseudo_bit_t reserved20[0x0000b];
  1467. /* -------------- */
  1468. pseudo_bit_t log_max_gid[0x00004]; /* Log2 of the maximum number of GIDs per port */
  1469. pseudo_bit_t reserved21[0x0001c];
  1470. /* -------------- */
  1471. pseudo_bit_t log_max_pkey[0x00004]; /* Log2 of the max PKey Table Size (per IB port) */
  1472. pseudo_bit_t reserved22[0x0001c];
  1473. /* -------------- */
  1474. pseudo_bit_t reserved23[0x00020];
  1475. /* -------------- */
  1476. pseudo_bit_t rc[0x00001]; /* RC Transport supported */
  1477. pseudo_bit_t uc[0x00001]; /* UC Transport Supported */
  1478. pseudo_bit_t ud[0x00001]; /* UD Transport Supported */
  1479. pseudo_bit_t rd[0x00001]; /* RD Transport Supported
  1480. RD is not supported in InfiniHost MT23108 */
  1481. pseudo_bit_t raw_ipv6[0x00001]; /* Raw IPv6 Transport Supported */
  1482. pseudo_bit_t raw_ether[0x00001]; /* Raw Ethertype Transport Supported */
  1483. pseudo_bit_t srq[0x00001]; /* SRQ is supported
  1484. */
  1485. pseudo_bit_t reserved24[0x00001];
  1486. pseudo_bit_t pkv[0x00001]; /* PKey Violation Counter Supported */
  1487. pseudo_bit_t qkv[0x00001]; /* QKey Violation Coutner Supported */
  1488. pseudo_bit_t reserved25[0x00006];
  1489. pseudo_bit_t mw[0x00001]; /* Memory windows supported */
  1490. pseudo_bit_t apm[0x00001]; /* Automatic Path Migration Supported */
  1491. pseudo_bit_t atm[0x00001]; /* Atomic operations supported (atomicity is guaranteed between QPs on this HCA) */
  1492. pseudo_bit_t rm[0x00001]; /* Raw Multicast Supported */
  1493. pseudo_bit_t avp[0x00001]; /* Address Vector Port checking supported */
  1494. pseudo_bit_t udm[0x00001]; /* UD Multicast Supported */
  1495. pseudo_bit_t reserved26[0x00002];
  1496. pseudo_bit_t pg[0x00001]; /* Paging on demand supported */
  1497. pseudo_bit_t r[0x00001]; /* Router mode supported */
  1498. pseudo_bit_t reserved27[0x00006];
  1499. /* -------------- */
  1500. pseudo_bit_t log_pg_sz[0x00008]; /* Minimum system page size supported (log2) .
  1501. For proper operation it must be less than or equal the hosting platform (CPU) minimum page size. */
  1502. pseudo_bit_t reserved28[0x00008];
  1503. pseudo_bit_t uar_sz[0x00006]; /* UAR Area Size = 1MB * 2^uar_sz */
  1504. pseudo_bit_t reserved29[0x00006];
  1505. pseudo_bit_t num_rsvd_uars[0x00004];/* The number of UARs reserved for firmware use
  1506. The reserved resources are numbered from 0 to num_reserved_uars-1
  1507. Note that UAR 1 is always for the kernel
  1508. If 0 - no resources are reserved. */
  1509. /* -------------- */
  1510. pseudo_bit_t reserved30[0x00020];
  1511. /* -------------- */
  1512. pseudo_bit_t max_desc_sz[0x00010]; /* Max descriptor size in bytes */
  1513. pseudo_bit_t max_sg[0x00008]; /* The maximum S/G list elements in a WQE (max_desc_sz/16 - 3) */
  1514. pseudo_bit_t reserved31[0x00008];
  1515. /* -------------- */
  1516. pseudo_bit_t reserved32[0x00060];
  1517. /* -------------- */
  1518. pseudo_bit_t log_max_mcg[0x00008]; /* Log2 of the maximum number of multicast groups */
  1519. pseudo_bit_t num_rsvd_mcgs[0x00004];/* The number of MGMs reserved for firmware use in the MGHT.
  1520. The reserved resources are numbered from 0 to num_reserved_mcgs-1
  1521. If 0 - no resources are reserved. */
  1522. pseudo_bit_t reserved33[0x00004];
  1523. pseudo_bit_t log_max_qp_mcg[0x00008];/* Log2 of the maximum number of QPs per multicast group */
  1524. pseudo_bit_t reserved34[0x00008];
  1525. /* -------------- */
  1526. pseudo_bit_t log_max_rdds[0x00006]; /* Log2 of the maximum number of RDDs */
  1527. pseudo_bit_t reserved35[0x00006];
  1528. pseudo_bit_t num_rsvd_rdds[0x00004];/* The number of RDDs reserved for firmware use
  1529. The reserved resources are numbered from 0 to num_reserved_rdds-1.
  1530. If 0 - no resources are reserved. */
  1531. pseudo_bit_t log_max_pd[0x00006]; /* Log2 of the maximum number of PDs */
  1532. pseudo_bit_t reserved36[0x00006];
  1533. pseudo_bit_t num_rsvd_pds[0x00004]; /* The number of PDs reserved for firmware use
  1534. The reserved resources are numbered from 0 to num_reserved_pds-1
  1535. If 0 - no resources are reserved. */
  1536. /* -------------- */
  1537. pseudo_bit_t reserved37[0x000c0];
  1538. /* -------------- */
  1539. pseudo_bit_t qpc_entry_sz[0x00010]; /* QPC Entry Size for the device
  1540. For the InfiniHost MT23108 entry size is 256 bytes */
  1541. pseudo_bit_t eec_entry_sz[0x00010]; /* EEC Entry Size for the device
  1542. For the InfiniHost MT23108 entry size is 256 bytes */
  1543. /* -------------- */
  1544. pseudo_bit_t eqpc_entry_sz[0x00010];/* Extended QPC entry size for the device
  1545. For the InfiniHost MT23108 entry size is 32 bytes */
  1546. pseudo_bit_t eeec_entry_sz[0x00010];/* Extended EEC entry size for the device
  1547. For the InfiniHost MT23108 entry size is 32 bytes */
  1548. /* -------------- */
  1549. pseudo_bit_t cqc_entry_sz[0x00010]; /* CQC entry size for the device
  1550. For the InfiniHost MT23108 entry size is 64 bytes */
  1551. pseudo_bit_t eqc_entry_sz[0x00010]; /* EQ context entry size for the device
  1552. For the InfiniHost MT23108 entry size is 64 bytes */
  1553. /* -------------- */
  1554. pseudo_bit_t uar_scratch_entry_sz[0x00010];/* UAR Scratchpad Entry Size
  1555. For the InfiniHost MT23108 entry size is 32 bytes */
  1556. pseudo_bit_t srq_entry_sz[0x00010]; /* SRQ context entry size for the device
  1557. For the InfiniHost MT23108 entry size is 32 bytes */
  1558. /* -------------- */
  1559. pseudo_bit_t reserved38[0x00380];
  1560. /* -------------- */
  1561. };
  1562. /* QUERY_ADAPTER Parameters Block */
  1563. struct tavorprm_query_adapter_st { /* Little Endian */
  1564. pseudo_bit_t vendor_id[0x00020]; /* Adapter vendor ID */
  1565. /* -------------- */
  1566. pseudo_bit_t device_id[0x00020]; /* Adapter Device ID */
  1567. /* -------------- */
  1568. pseudo_bit_t revision_id[0x00020]; /* Adapter Revision ID */
  1569. /* -------------- */
  1570. pseudo_bit_t reserved0[0x00020];
  1571. /* -------------- */
  1572. pseudo_bit_t reserved1[0x00018];
  1573. pseudo_bit_t intapin[0x00008]; /* Interrupt Signal ID of HCA device pin that is connected to the INTA trace in the HCA board.
  1574. 0..39 and 63 are valid values
  1575. 255 means INTA trace in board is not connected to the HCA device.
  1576. All other values are reserved */
  1577. /* -------------- */
  1578. pseudo_bit_t mode_pci[0x00001]; /* Set when the device is operating in conventional PCI mode (as opposed to PCI-X/PCI-Express). */
  1579. pseudo_bit_t mode_32bit[0x00001]; /* Set when the device is operating in 32 bit mode (the sampled bus width is 32 bit). */
  1580. pseudo_bit_t reserved2[0x0001e];
  1581. /* -------------- */
  1582. pseudo_bit_t reserved3[0x00040];
  1583. /* -------------- */
  1584. struct tavorprm_vsd_st vsd;
  1585. /* -------------- */
  1586. };
  1587. /* QUERY_FW Parameters Block */
  1588. struct tavorprm_query_fw_st { /* Little Endian */
  1589. pseudo_bit_t fw_rev_major[0x00010]; /* Firmware Revision - Major */
  1590. pseudo_bit_t reserved0[0x00010];
  1591. /* -------------- */
  1592. pseudo_bit_t fw_rev_minor[0x00010]; /* Firmware Revision - Minor */
  1593. pseudo_bit_t fw_rev_subminor[0x00010];/* Firmware Sub-minor version (Patch level). */
  1594. /* -------------- */
  1595. pseudo_bit_t cmd_interface_rev[0x00010];/* Command Interface Interpreter Revision ID */
  1596. pseudo_bit_t reserved1[0x00010];
  1597. /* -------------- */
  1598. pseudo_bit_t log_max_outstanding_cmd[0x00008];/* Log2 of the maximum number of commands the HCR can support simultaneously */
  1599. pseudo_bit_t reserved2[0x00017];
  1600. pseudo_bit_t dt[0x00001]; /* Debug Trace Support
  1601. 0 - Debug trace is not supported
  1602. 1 - Debug trace is supported */
  1603. /* -------------- */
  1604. pseudo_bit_t cmd_interface_db[0x00001];/* Set if the device accepts commands by means of special doorbells. */
  1605. pseudo_bit_t reserved3[0x0001f];
  1606. /* -------------- */
  1607. pseudo_bit_t reserved4[0x00060];
  1608. /* -------------- */
  1609. pseudo_bit_t fw_base_addr_h[0x00020];/* Physical Address of Firmware Area in DDR Memory [63:32] */
  1610. /* -------------- */
  1611. pseudo_bit_t fw_base_addr_l[0x00020];/* Physical Address of Firmware Area in DDR Memory [31:0] */
  1612. /* -------------- */
  1613. pseudo_bit_t fw_end_addr_h[0x00020];/* End of firmware address in DDR memory [63:32] */
  1614. /* -------------- */
  1615. pseudo_bit_t fw_end_addr_l[0x00020];/* End of firmware address in DDR memory [31:0] */
  1616. /* -------------- */
  1617. pseudo_bit_t error_buf_start_h[0x00020];/* Read Only buffer for catastrofic error reports. */
  1618. /* -------------- */
  1619. pseudo_bit_t error_buf_start_l[0x00020];
  1620. /* -------------- */
  1621. pseudo_bit_t error_buf_size[0x00020];/* Size in words */
  1622. /* -------------- */
  1623. pseudo_bit_t reserved5[0x000a0];
  1624. /* -------------- */
  1625. pseudo_bit_t cmd_db_dw1[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 1 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1626. pseudo_bit_t cmd_db_dw0[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 0 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1627. /* -------------- */
  1628. pseudo_bit_t cmd_db_dw3[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 3 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1629. pseudo_bit_t cmd_db_dw2[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 2 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1630. /* -------------- */
  1631. pseudo_bit_t cmd_db_dw5[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 5 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1632. pseudo_bit_t cmd_db_dw4[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 4 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1633. /* -------------- */
  1634. pseudo_bit_t cmd_db_dw7[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 7 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1635. pseudo_bit_t cmd_db_dw6[0x00010]; /* offset in bytes from cmd_db_addr_base where DWord 6 of a Command Interface Doorbell should be written. Valid only if CmdInterfaceDb bit is '1' */
  1636. /* -------------- */
  1637. pseudo_bit_t cmd_db_addr_base_h[0x00020];/* High bits of cmd_db_addr_base, which cmd_db_dw offsets refer to. Valid only if CmdInterfaceDb bit is '1' */
  1638. /* -------------- */
  1639. pseudo_bit_t cmd_db_addr_base_l[0x00020];/* Low bits of cmd_db_addr_base, which cmd_db_dw offsets refer to. Valid only if CmdInterfaceDb bit is '1' */
  1640. /* -------------- */
  1641. pseudo_bit_t reserved6[0x004c0];
  1642. /* -------------- */
  1643. };
  1644. /* ACCESS_DDR */
  1645. struct tavorprm_access_ddr_st { /* Little Endian */
  1646. struct tavorprm_access_ddr_inject_errors_st access_ddr_inject_errors;
  1647. /* -------------- */
  1648. pseudo_bit_t reserved0[0x00080];
  1649. /* -------------- */
  1650. };
  1651. /* QUERY_DDR Parameters Block */
  1652. struct tavorprm_query_ddr_st { /* Little Endian */
  1653. pseudo_bit_t ddr_start_adr_h[0x00020];/* DDR memory start address [63:32] */
  1654. /* -------------- */
  1655. pseudo_bit_t ddr_start_adr_l[0x00020];/* DDR memory start address [31:0] */
  1656. /* -------------- */
  1657. pseudo_bit_t ddr_end_adr_h[0x00020];/* DDR memory end address [63:32] */
  1658. /* -------------- */
  1659. pseudo_bit_t ddr_end_adr_l[0x00020];/* DDR memory end address [31:0] */
  1660. /* -------------- */
  1661. pseudo_bit_t di[0x00002]; /* Data Integrity Configuration:
  1662. 00 - none
  1663. 01 - Parity
  1664. 10 - ECC Detection Only
  1665. 11 - ECC With Correction */
  1666. pseudo_bit_t ap[0x00002]; /* Auto Precharge Mode
  1667. 00 - No auto precharge
  1668. 01 - Auto precharge per transaction
  1669. 10 - Auto precharge per 64 bytes
  1670. 11 - reserved */
  1671. pseudo_bit_t dh[0x00001]; /* When set, DDR is Hidden and can not be accessed from the PCI bus. */
  1672. pseudo_bit_t reserved0[0x0001b];
  1673. /* -------------- */
  1674. pseudo_bit_t reserved1[0x00160];
  1675. /* -------------- */
  1676. struct tavorprm_dimminfo_st dimm0; /* Logical DIMM 0 Parameters */
  1677. /* -------------- */
  1678. struct tavorprm_dimminfo_st dimm1; /* Logical DIMM 1 Parameters */
  1679. /* -------------- */
  1680. struct tavorprm_dimminfo_st dimm2; /* Logical DIMM 2 Parameters */
  1681. /* -------------- */
  1682. struct tavorprm_dimminfo_st dimm3; /* Logical DIMM 3 Parameters */
  1683. /* -------------- */
  1684. pseudo_bit_t reserved2[0x00200];
  1685. /* -------------- */
  1686. };
  1687. /* INIT_HCA & QUERY_HCA Parameters Block */
  1688. struct tavorprm_init_hca_st { /* Little Endian */
  1689. pseudo_bit_t reserved0[0x00060];
  1690. /* -------------- */
  1691. pseudo_bit_t reserved1[0x00018];
  1692. pseudo_bit_t hca_core_clock[0x00008];/* Internal Clock Period (in units of 1/16 ns) (QUERY_HCA only) */
  1693. /* -------------- */
  1694. pseudo_bit_t reserved2[0x00008];
  1695. pseudo_bit_t router_qp[0x00010]; /* Upper 16 bit to be used as a QP number for router mode. Low order 8 bits are taken from the TClass field of the incoming packet.
  1696. Valid only if RE bit is set */
  1697. pseudo_bit_t reserved3[0x00007];
  1698. pseudo_bit_t re[0x00001]; /* Router Mode Enable
  1699. If this bit is set, entire packet (including all headers and ICRC) will be considered as a data payload and will be scattered to memory as specified in the descriptor that is posted on the QP matching the TClass field of packet. */
  1700. /* -------------- */
  1701. pseudo_bit_t udp[0x00001]; /* UD Port Check Enable
  1702. 0 - Port field in Address Vector is ignored
  1703. 1 - HCA will check the port field in AV entry (fetched for UD descriptor) against the Port of the UD QP executing the descriptor. */
  1704. pseudo_bit_t he[0x00001]; /* Host Endianess - Used for Atomic Operations
  1705. 0 - Host is Little Endian
  1706. 1 - Host is Big endian
  1707. */
  1708. pseudo_bit_t ud[0x00001]; /* Force UD address vector protection check. If this bit is set, Passing address vector as immediate data in WQE is suppressed and privileged memory key will be used by hardware to access UD address vector table. */
  1709. pseudo_bit_t reserved4[0x00005];
  1710. pseudo_bit_t responder_exu[0x00004];/* How many execution engines are dedicated to the responder. Legal values are 0x0-0xF. 0 is "auto" */
  1711. pseudo_bit_t reserved5[0x00004];
  1712. pseudo_bit_t wqe_quota[0x0000f]; /* Maximum number of WQEs that are executed prior to preemption of execution unit. 0 - reserved. */
  1713. pseudo_bit_t wqe_quota_en[0x00001]; /* If set - wqe_quota field is used. If cleared - WQE quota is set to "auto" value */
  1714. /* -------------- */
  1715. pseudo_bit_t reserved6[0x00040];
  1716. /* -------------- */
  1717. struct tavorprm_qpcbaseaddr_st qpc_eec_cqc_eqc_rdb_parameters;
  1718. /* -------------- */
  1719. pseudo_bit_t reserved7[0x00080];
  1720. /* -------------- */
  1721. struct tavorprm_udavtable_memory_parameters_st udavtable_memory_parameters;/* Memory Access Parameters for UD Address Vector Table. Used for QPs/EEc that are configured to use protected Address Vectors. */
  1722. /* -------------- */
  1723. pseudo_bit_t reserved8[0x00040];
  1724. /* -------------- */
  1725. struct tavorprm_multicastparam_st multicast_parameters;
  1726. /* -------------- */
  1727. pseudo_bit_t reserved9[0x00080];
  1728. /* -------------- */
  1729. struct tavorprm_tptparams_st tpt_parameters;
  1730. /* -------------- */
  1731. pseudo_bit_t reserved10[0x00080];
  1732. /* -------------- */
  1733. struct tavorprm_uar_params_st uar_parameters;/* UAR Parameters */
  1734. /* -------------- */
  1735. pseudo_bit_t reserved11[0x00600];
  1736. /* -------------- */
  1737. };
  1738. /* Event Queue Context Table Entry */
  1739. struct tavorprm_eqc_st { /* Little Endian */
  1740. pseudo_bit_t reserved0[0x00008];
  1741. pseudo_bit_t st[0x00002]; /* Event delivery state machine
  1742. 01 - Armed
  1743. 10 - Fired
  1744. 11 - Always_Armed (auto-rearm)
  1745. 00 - Reserved */
  1746. pseudo_bit_t reserved1[0x00007];
  1747. pseudo_bit_t oi[0x00001]; /* Ignore overrun on this EQ if this bit is set */
  1748. pseudo_bit_t tr[0x00001]; /* Translation Required. If set - EQ access undergo address translation. */
  1749. pseudo_bit_t reserved2[0x00005];
  1750. pseudo_bit_t owner[0x00004]; /* 0 - SW ownership
  1751. 1 - HW ownership
  1752. Valid for the QUERY_EQ and HW2SW_EQ commands only */
  1753. pseudo_bit_t status[0x00004]; /* EQ status:
  1754. 0000 - OK
  1755. 1001 - EQ overflow
  1756. 1010 - EQ write failure
  1757. Valid for the QUERY_EQ and HW2SW_EQ commands only */
  1758. /* -------------- */
  1759. pseudo_bit_t start_address_h[0x00020];/* Start Address of Event Queue[63:32].
  1760. Must be aligned on 32-byte boundary */
  1761. /* -------------- */
  1762. pseudo_bit_t start_address_l[0x00020];/* Start Address of Event Queue[31:0].
  1763. Must be aligned on 32-byte boundary */
  1764. /* -------------- */
  1765. pseudo_bit_t usr_page[0x00018];
  1766. pseudo_bit_t log_eq_size[0x00005]; /* Amount of entries in this EQ is 2^log_eq_size.
  1767. Log_eq_size must be bigger than 1 */
  1768. pseudo_bit_t reserved3[0x00003];
  1769. /* -------------- */
  1770. pseudo_bit_t pd[0x00018]; /* PD to be used to access EQ */
  1771. pseudo_bit_t reserved4[0x00008];
  1772. /* -------------- */
  1773. pseudo_bit_t intr[0x00008]; /* Interrupt (message) to be generated to report event to INT layer.
  1774. 00iiiiii - specifies GPIO pin to be asserted (according to INTA given in QUERY_ADAPTER)
  1775. 10jjjjjj - specificies type of interrupt message to be generated (total 64 different messages supported).
  1776. If interrupt generation is not required one of the two following options should be set:
  1777. 1. ST must be set on creation to Fired state and not EQ arming doorbell should be performed. In this case hardware will not generate any interrupt.
  1778. 2. intr should be set to 60 decimal
  1779. */
  1780. pseudo_bit_t reserved5[0x00018];
  1781. /* -------------- */
  1782. pseudo_bit_t lost_count[0x00020]; /* Number of events lost due to EQ overrun */
  1783. /* -------------- */
  1784. pseudo_bit_t lkey[0x00020]; /* Memory key (L-Key) to be used to access EQ */
  1785. /* -------------- */
  1786. pseudo_bit_t reserved6[0x00040];
  1787. /* -------------- */
  1788. pseudo_bit_t consumer_indx[0x00020];/* Contains next entry to be read upon polling the event queue.
  1789. Must be initalized to '0 while opening EQ */
  1790. /* -------------- */
  1791. pseudo_bit_t producer_indx[0x00020];/* Contains next entry in EQ to be written by the HCA.
  1792. Must be initalized to '0 while opening EQ. */
  1793. /* -------------- */
  1794. pseudo_bit_t reserved7[0x00080];
  1795. /* -------------- */
  1796. };
  1797. /* Memory Translation Table (MTT) Entry */
  1798. struct tavorprm_mtt_st { /* Little Endian */
  1799. pseudo_bit_t ptag_h[0x00020]; /* High-order bits of physical tag. The size of the field depends on the page size of the region. Maximum PTAG size is 52 bits. */
  1800. /* -------------- */
  1801. pseudo_bit_t p[0x00001]; /* Present bit. If set, page entry is valid. If cleared, access to this page will generate 'non-present page access fault'. */
  1802. pseudo_bit_t reserved0[0x0000b];
  1803. pseudo_bit_t ptag_l[0x00014]; /* Low-order bits of Physical tag. The size of the field depends on the page size of the region. Maximum PTAG size is 52 bits. */
  1804. /* -------------- */
  1805. };
  1806. /* Memory Protection Table (MPT) Entry */
  1807. struct tavorprm_mpt_st { /* Little Endian */
  1808. pseudo_bit_t ver[0x00004]; /* Version. Must be zero for InfiniHost */
  1809. pseudo_bit_t reserved0[0x00004];
  1810. pseudo_bit_t r_w[0x00001]; /* Defines whether this entry is Region (1) or Window (0) */
  1811. pseudo_bit_t pa[0x00001]; /* Physical address. If set, no virtual-to-physical address translation will be performed for this region */
  1812. pseudo_bit_t lr[0x00001]; /* If set - local read access enabled */
  1813. pseudo_bit_t lw[0x00001]; /* If set - local write access enabled */
  1814. pseudo_bit_t rr[0x00001]; /* If set - Remote read access enabled. */
  1815. pseudo_bit_t rw[0x00001]; /* If set - remote write access enabled */
  1816. pseudo_bit_t a[0x00001]; /* If set - Remote Atomic access is enabled */
  1817. pseudo_bit_t eb[0x00001]; /* If set - Bind is enabled. Valid for region entry only. */
  1818. pseudo_bit_t reserved1[0x00001];
  1819. pseudo_bit_t m_io[0x00001]; /* Memory / I/O
  1820. 1 - Memory commands used on the uplink bus
  1821. 0 - I/O commands used on the uplink bus
  1822. Must be 1 for the InfiniHost MT23108. */
  1823. pseudo_bit_t reserved2[0x0000a];
  1824. pseudo_bit_t status[0x00004]; /* Regios/Window Status
  1825. 0xF - not valid (SW ownership)
  1826. else - HW ownership
  1827. Note that an unbound Window is denoted by the reg_wnd_len field equals zero. */
  1828. /* -------------- */
  1829. pseudo_bit_t page_size[0x00005]; /* Page size used for the region. Actual size is [4K]*2^Page_size bytes.
  1830. page_size should be less than 20. */
  1831. pseudo_bit_t reserved3[0x00002];
  1832. pseudo_bit_t reserved4[0x00001];
  1833. pseudo_bit_t reserved5[0x00018];
  1834. /* -------------- */
  1835. pseudo_bit_t mem_key[0x00020]; /* The memory Key. This field is compared to key used to access the region/window. Lower-order bits are restricted (index to the table). */
  1836. /* -------------- */
  1837. pseudo_bit_t pd[0x00018]; /* Protection Domain */
  1838. pseudo_bit_t reserved6[0x00001];
  1839. pseudo_bit_t reserved7[0x00001];
  1840. pseudo_bit_t reserved8[0x00001];
  1841. pseudo_bit_t reserved9[0x00001];
  1842. pseudo_bit_t reserved10[0x00001];
  1843. pseudo_bit_t reserved11[0x00003];
  1844. /* -------------- */
  1845. pseudo_bit_t start_address_h[0x00020];/* Start Address[63:32] - Virtual Address where this region/window starts */
  1846. /* -------------- */
  1847. pseudo_bit_t start_address_l[0x00020];/* Start Address[31:0] - Virtual Address where this region/window starts */
  1848. /* -------------- */
  1849. pseudo_bit_t reg_wnd_len_h[0x00020];/* Region/Window Length[63:32] */
  1850. /* -------------- */
  1851. pseudo_bit_t reg_wnd_len_l[0x00020];/* Region/Window Length[31:0] */
  1852. /* -------------- */
  1853. pseudo_bit_t lkey[0x00020]; /* Must be 0 for SW2HW_MPT.
  1854. On QUERY_MPT and HW2SW_MPT commands for Memory Window it reflects the LKey of the Region that the Window is bound to. */
  1855. /* -------------- */
  1856. pseudo_bit_t win_cnt[0x00020]; /* Number of windows bound to this region. Valid for regions only.
  1857. The field is valid only for the QUERY_MPT and HW2SW_MPT commands. */
  1858. /* -------------- */
  1859. pseudo_bit_t win_cnt_limit[0x00020];/* The number of windows (limit) that can be bound to this region. If a bind operation is attempted when WIN_CNT == WIN_CNT_LIMIT, the operation will be aborted, a CQE with error will be generated, and the QP will be moved into the error state.
  1860. Zero means no limit.
  1861. Note that for best hardware performance, win_cnt_limit should be set to zero. */
  1862. /* -------------- */
  1863. pseudo_bit_t mtt_seg_adr_h[0x00020];/* Base (first) address of the MTT segment, aligned on segment_size boundary (bits 63:31). */
  1864. /* -------------- */
  1865. pseudo_bit_t reserved12[0x00006];
  1866. pseudo_bit_t mtt_seg_adr_l[0x0001a];/* Base (first) address of the MTT segment, aligned on segment_size boundary (bits 31:6). */
  1867. /* -------------- */
  1868. pseudo_bit_t reserved13[0x00060];
  1869. /* -------------- */
  1870. };
  1871. /* Completion Queue Context Table Entry */
  1872. struct tavorprm_completion_queue_context_st { /* Little Endian */
  1873. pseudo_bit_t reserved0[0x00008];
  1874. pseudo_bit_t st[0x00004]; /* Event delivery state machine
  1875. 0x0 - DISARMED
  1876. 0x1 - ARMED (Request for Notification)
  1877. 0x4 - ARMED SOLICITED (Request Solicited Notification)
  1878. 0xA - FIRED
  1879. other - reserved */
  1880. pseudo_bit_t reserved1[0x00005];
  1881. pseudo_bit_t oi[0x00001]; /* Ignore overrun of this CQ if this bit is set */
  1882. pseudo_bit_t tr[0x00001]; /* Translation Required
  1883. 1 - accesses to CQ will undergo address translation
  1884. 0 - accesses to CQ will not undergo address translation */
  1885. pseudo_bit_t reserved2[0x00009];
  1886. pseudo_bit_t status[0x00004]; /* CQ status
  1887. 0000 - OK
  1888. 1001 - CQ overflow
  1889. 1010 - CQ write failure
  1890. Valid for the QUERY_CQ and HW2SW_CQ commands only */
  1891. /* -------------- */
  1892. pseudo_bit_t start_address_h[0x00020];/* Start address of CQ[63:32].
  1893. Must be aligned on CQE size (32 bytes) */
  1894. /* -------------- */
  1895. pseudo_bit_t start_address_l[0x00020];/* Start address of CQ[31:0].
  1896. Must be aligned on CQE size (32 bytes) */
  1897. /* -------------- */
  1898. pseudo_bit_t usr_page[0x00018]; /* UAR page this CQ can be accessed through (ringinig CQ doorbells) */
  1899. pseudo_bit_t log_cq_size[0x00005]; /* Log (base 2) of the CQ size (in entries).
  1900. Maximum CQ size is 128K CQEs (max log_cq_size is 17) */
  1901. pseudo_bit_t reserved3[0x00003];
  1902. /* -------------- */
  1903. pseudo_bit_t e_eqn[0x00008]; /* Event Queue this CQ reports errors to (e.g. CQ overflow)
  1904. Valid values are 0 to 63
  1905. If configured to value other than 0-63, error events will not be reported on the CQ. */
  1906. pseudo_bit_t reserved4[0x00018];
  1907. /* -------------- */
  1908. pseudo_bit_t c_eqn[0x00008]; /* Event Queue this CQ reports completion events to.
  1909. Valid values are 0 to 63
  1910. If configured to value other than 0-63, completion events will not be reported on the CQ. */
  1911. pseudo_bit_t reserved5[0x00018];
  1912. /* -------------- */
  1913. pseudo_bit_t pd[0x00018]; /* Protection Domain to be used to access CQ.
  1914. Must be the same PD of the CQ L_Key. */
  1915. pseudo_bit_t reserved6[0x00008];
  1916. /* -------------- */
  1917. pseudo_bit_t l_key[0x00020]; /* Memory key (L_Key) to be used to access CQ */
  1918. /* -------------- */
  1919. pseudo_bit_t last_notified_indx[0x00020];/* Maintained by HW.
  1920. Valid for QUERY_CQ and HW2SW_CQ commands only. */
  1921. /* -------------- */
  1922. pseudo_bit_t solicit_producer_indx[0x00020];/* Maintained by HW.
  1923. Valid for QUERY_CQ and HW2SW_CQ commands only.
  1924. */
  1925. /* -------------- */
  1926. pseudo_bit_t consumer_indx[0x00020];/* Contains index to the next entry to be read upon poll for completion. The first completion after passing ownership of CQ from software to hardware will be reported to value passed in this field. Only the low log_cq_size bits may be non-zero. */
  1927. /* -------------- */
  1928. pseudo_bit_t producer_indx[0x00020];/* Points to the next entry to be written to by Hardware. CQ overrun is reported if Producer_indx + 1 equals to Consumer_indx.
  1929. Maintained by HW (valid for the QUERY_CQ and HW2SW_CQ commands only) */
  1930. /* -------------- */
  1931. pseudo_bit_t cqn[0x00018]; /* CQ number. Least significant bits are constrained by the position of this CQ in CQC table
  1932. Valid for the QUERY_CQ and HW2SW_CQ commands only */
  1933. pseudo_bit_t reserved7[0x00008];
  1934. /* -------------- */
  1935. pseudo_bit_t reserved8[0x00060];
  1936. /* -------------- */
  1937. };
  1938. /* UD Address Vector */
  1939. struct tavorprm_ud_address_vector_st { /* Little Endian */
  1940. pseudo_bit_t pd[0x00018]; /* Protection Domain */
  1941. pseudo_bit_t port_number[0x00002]; /* Port number
  1942. 1 - Port 1
  1943. 2 - Port 2
  1944. other - reserved */
  1945. pseudo_bit_t reserved0[0x00006];
  1946. /* -------------- */
  1947. pseudo_bit_t rlid[0x00010]; /* Remote (Destination) LID */
  1948. pseudo_bit_t my_lid_path_bits[0x00007];/* Source LID - the lower 7 bits (upper bits are taken from PortInfo) */
  1949. pseudo_bit_t g[0x00001]; /* Global address enable - if set, GRH will be formed for packet header */
  1950. pseudo_bit_t reserved1[0x00008];
  1951. /* -------------- */
  1952. pseudo_bit_t hop_limit[0x00008]; /* IPv6 hop limit */
  1953. pseudo_bit_t max_stat_rate[0x00003];/* Maximum static rate control.
  1954. 0 - 4X injection rate
  1955. 1 - 1X injection rate
  1956. other - reserved
  1957. */
  1958. pseudo_bit_t reserved2[0x00001];
  1959. pseudo_bit_t msg[0x00002]; /* Max Message size, size is 256*2^MSG bytes */
  1960. pseudo_bit_t reserved3[0x00002];
  1961. pseudo_bit_t mgid_index[0x00006]; /* Index to port GID table
  1962. mgid_index = (port_number-1) * 2^log_max_gid + gid_index
  1963. Where:
  1964. 1. log_max_gid is taken from QUERY_DEV_LIM command
  1965. 2. gid_index is the index to the GID table */
  1966. pseudo_bit_t reserved4[0x0000a];
  1967. /* -------------- */
  1968. pseudo_bit_t flow_label[0x00014]; /* IPv6 flow label */
  1969. pseudo_bit_t tclass[0x00008]; /* IPv6 TClass */
  1970. pseudo_bit_t sl[0x00004]; /* InfiniBand Service Level (SL) */
  1971. /* -------------- */
  1972. pseudo_bit_t rgid_127_96[0x00020]; /* Remote GID[127:96] */
  1973. /* -------------- */
  1974. pseudo_bit_t rgid_95_64[0x00020]; /* Remote GID[95:64] */
  1975. /* -------------- */
  1976. pseudo_bit_t rgid_63_32[0x00020]; /* Remote GID[63:32] */
  1977. /* -------------- */
  1978. pseudo_bit_t rgid_31_0[0x00020]; /* Remote GID[31:0] */
  1979. /* -------------- */
  1980. };
  1981. /* GPIO_event_data */
  1982. struct tavorprm_gpio_event_data_st { /* Little Endian */
  1983. pseudo_bit_t reserved0[0x00060];
  1984. /* -------------- */
  1985. pseudo_bit_t gpio_event_hi[0x00020];/* If any bit is set to 1, then a rising/falling event has occurred on the corrsponding GPIO pin. */
  1986. /* -------------- */
  1987. pseudo_bit_t gpio_event_lo[0x00020];/* If any bit is set to 1, then a rising/falling event has occurred on the corrsponding GPIO pin. */
  1988. /* -------------- */
  1989. pseudo_bit_t reserved1[0x00020];
  1990. /* -------------- */
  1991. };
  1992. /* Event_data Field - QP/EE Events */
  1993. struct tavorprm_qp_ee_event_st { /* Little Endian */
  1994. pseudo_bit_t qpn_een[0x00018]; /* QP/EE/SRQ number event is reported for */
  1995. pseudo_bit_t reserved0[0x00008];
  1996. /* -------------- */
  1997. pseudo_bit_t reserved1[0x00020];
  1998. /* -------------- */
  1999. pseudo_bit_t reserved2[0x0001c];
  2000. pseudo_bit_t e_q[0x00001]; /* If set - EEN if cleared - QP in the QPN/EEN field
  2001. Not valid on SRQ events */
  2002. pseudo_bit_t reserved3[0x00003];
  2003. /* -------------- */
  2004. pseudo_bit_t reserved4[0x00060];
  2005. /* -------------- */
  2006. };
  2007. /* InfiniHost Type0 Configuration Header */
  2008. struct tavorprm_mt23108_type0_st { /* Little Endian */
  2009. pseudo_bit_t vendor_id[0x00010]; /* Hardwired to 0x15B3 */
  2010. pseudo_bit_t device_id[0x00010]; /* hardwired to 23108 */
  2011. /* -------------- */
  2012. pseudo_bit_t command[0x00010]; /* PCI Command Register */
  2013. pseudo_bit_t status[0x00010]; /* PCI Status Register */
  2014. /* -------------- */
  2015. pseudo_bit_t revision_id[0x00008];
  2016. pseudo_bit_t class_code_hca_class_code[0x00018];
  2017. /* -------------- */
  2018. pseudo_bit_t cache_line_size[0x00008];/* Cache Line Size */
  2019. pseudo_bit_t latency_timer[0x00008];
  2020. pseudo_bit_t header_type[0x00008]; /* hardwired to zero */
  2021. pseudo_bit_t bist[0x00008];
  2022. /* -------------- */
  2023. pseudo_bit_t bar0_ctrl[0x00004]; /* hard-wired to '0100 */
  2024. pseudo_bit_t reserved0[0x00010];
  2025. pseudo_bit_t bar0_l[0x0000c]; /* Lower bits of BAR0 (configuration space) */
  2026. /* -------------- */
  2027. pseudo_bit_t bar0_h[0x00020]; /* Upper 32 bits of BAR0 (configuration space) */
  2028. /* -------------- */
  2029. pseudo_bit_t bar1_ctrl[0x00004]; /* Hardwired to '1100 */
  2030. pseudo_bit_t reserved1[0x00010];
  2031. pseudo_bit_t bar1_l[0x0000c]; /* Lower bits of BAR1 */
  2032. /* -------------- */
  2033. pseudo_bit_t bar1_h[0x00020]; /* upper 32 bits of BAR1 (User Access Revion - UAR - space) */
  2034. /* -------------- */
  2035. pseudo_bit_t bar2_ctrl[0x00004]; /* Hardwired to '1100 */
  2036. pseudo_bit_t reserved2[0x00010];
  2037. pseudo_bit_t bar2_l[0x0000c]; /* Lower bits of BAR2 */
  2038. /* -------------- */
  2039. pseudo_bit_t bar2_h[0x00020]; /* Upper 32 bits of BAR2 - DDR (attached memory) BAR */
  2040. /* -------------- */
  2041. pseudo_bit_t cardbus_cis_pointer[0x00020];
  2042. /* -------------- */
  2043. pseudo_bit_t subsystem_vendor_id[0x00010];/* Specified by the device NVMEM configuration */
  2044. pseudo_bit_t subsystem_id[0x00010]; /* Specified by the device NVMEM configuration */
  2045. /* -------------- */
  2046. pseudo_bit_t expansion_rom_enable[0x00001];/* Expansion ROM Enable. Hardwired to 0 if expansion ROM is disabled in the device NVMEM configuration. */
  2047. pseudo_bit_t reserved3[0x0000a];
  2048. pseudo_bit_t expansion_rom_base_address[0x00015];/* Expansion ROM Base Address (upper 21 bit). Hardwired to 0 if expansion ROM is disabled in the device NVMEM configuration. */
  2049. /* -------------- */
  2050. pseudo_bit_t capabilities_pointer[0x00008];/* Specified by the device NVMEM configuration */
  2051. pseudo_bit_t reserved4[0x00018];
  2052. /* -------------- */
  2053. pseudo_bit_t reserved5[0x00020];
  2054. /* -------------- */
  2055. pseudo_bit_t interrupt_line[0x00008];
  2056. pseudo_bit_t interrupt_pin[0x00008];
  2057. pseudo_bit_t min_gnt[0x00008];
  2058. pseudo_bit_t max_latency[0x00008];
  2059. /* -------------- */
  2060. pseudo_bit_t reserved6[0x00100];
  2061. /* -------------- */
  2062. pseudo_bit_t msi_cap_id[0x00008];
  2063. pseudo_bit_t msi_next_cap_ptr[0x00008];
  2064. pseudo_bit_t msi_en[0x00001];
  2065. pseudo_bit_t multiple_msg_cap[0x00003];
  2066. pseudo_bit_t multiple_msg_en[0x00003];
  2067. pseudo_bit_t cap_64_bit_addr[0x00001];
  2068. pseudo_bit_t reserved7[0x00008];
  2069. /* -------------- */
  2070. pseudo_bit_t msg_addr_l[0x00020];
  2071. /* -------------- */
  2072. pseudo_bit_t msg_addr_h[0x00020];
  2073. /* -------------- */
  2074. pseudo_bit_t msg_data[0x00010];
  2075. pseudo_bit_t reserved8[0x00010];
  2076. /* -------------- */
  2077. pseudo_bit_t pcix_cap_id[0x00008];
  2078. pseudo_bit_t pcix_next_cap_ptr[0x00008];
  2079. pseudo_bit_t pcix_command_reg[0x00010];/* PCIX command register */
  2080. /* -------------- */
  2081. pseudo_bit_t pcix_status_reg[0x00020];/* PCIX Status Register */
  2082. /* -------------- */
  2083. pseudo_bit_t reserved9[0x00440];
  2084. /* -------------- */
  2085. };
  2086. /* NTU QP Map Table Entry */
  2087. struct tavorprm_ntu_qpm_st { /* Little Endian */
  2088. pseudo_bit_t va_h[0x00020]; /* Bits 63:32 of the virtual address to be used in IB request, Number of bits to be actually used depends on the page size (eg. will use all 52 for 4K page, 51 for 8K page etc). */
  2089. /* -------------- */
  2090. pseudo_bit_t wm[0x00002]; /* Amount of data to fill in to the read response buffer prior to delivering read response to uplink
  2091. 00 - forward
  2092. 01 - MTU
  2093. 10 - full message
  2094. 11 - Reserved */
  2095. pseudo_bit_t mtu[0x00002]; /* MTUI of the channel to be used by this page, value is 256*2MU bytes */
  2096. pseudo_bit_t rd_len[0x00003]; /* Length of speculative prefetch for read, value is 16*2RD_Len bytes */
  2097. pseudo_bit_t fence[0x00002];
  2098. pseudo_bit_t reserved0[0x00002];
  2099. pseudo_bit_t err_fence[0x00001]; /* 0,00 - No action in NTU - normal flow
  2100. 0,01 - Reserved (fence bits value of "01" is not defined)
  2101. 0,10 - Enter PCU transaction to Error fifo, NO fence trap to consequent transaction
  2102. 0,11 - Enter PCU transaction to Error fifo, fence trap to consequent transactions
  2103. 1,xx - Enter PCU transaction to Error fifo, mark QRM indication in error fifo. */
  2104. pseudo_bit_t va_l[0x00014]; /* Bits 31:12 of the virtual address to be used in IB request, Number of bits to be actually used depends on the page size (eg. will use all 52 for 4K page, 51 for 8K page etc). */
  2105. /* -------------- */
  2106. pseudo_bit_t rkey[0x00020]; /* RKey to be places for RDMA IB requests message */
  2107. /* -------------- */
  2108. pseudo_bit_t my_qpn[0x00018]; /* Local QO this page is mapped to */
  2109. pseudo_bit_t s[0x00001]; /* Force solicit event bit in the descriptor */
  2110. pseudo_bit_t e[0x00001]; /* Force E-bit in the descriptor */
  2111. pseudo_bit_t s_r[0x00001]; /* S/R# - generate Send as a result of write hit to this page */
  2112. pseudo_bit_t b[0x00001]; /* Breakpoint - ptransfer control to firmware for every cycle that hits this page */
  2113. pseudo_bit_t reserved1[0x00002];
  2114. pseudo_bit_t ce[0x00001]; /* Cache Enable - entry can be cached if this bit is set. */
  2115. pseudo_bit_t v[0x00001]; /* Valid bit - the entry is valid only if this bit is set */
  2116. /* -------------- */
  2117. };
  2118. /* Event Data Field - Performance Monitor */
  2119. struct tavorprm_performance_monitor_event_st { /* Little Endian */
  2120. struct tavorprm_performance_monitors_st performance_monitor_snapshot;/* Performance monitor snapshot */
  2121. /* -------------- */
  2122. pseudo_bit_t monitor_number[0x00008];/* 0x01 - SQPC
  2123. 0x02 - RQPC
  2124. 0x03 - CQC
  2125. 0x04 - Rkey
  2126. 0x05 - TLB
  2127. 0x06 - port0
  2128. 0x07 - port1 */
  2129. pseudo_bit_t reserved0[0x00018];
  2130. /* -------------- */
  2131. pseudo_bit_t reserved1[0x00040];
  2132. /* -------------- */
  2133. };
  2134. /* Event_data Field - Page Faults */
  2135. struct tavorprm_page_fault_event_data_st { /* Little Endian */
  2136. pseudo_bit_t reserved0[0x00040];
  2137. /* -------------- */
  2138. pseudo_bit_t s_r[0x00001]; /* Send (1) or Receive (0) queue caused page fault */
  2139. pseudo_bit_t r_l[0x00001]; /* Remote (1) or local (0) access caused fault */
  2140. pseudo_bit_t w_d[0x00001]; /* WQE (1) or data (0) access caused fault */
  2141. pseudo_bit_t wqv[0x00001]; /* Indicates whether message caused fault consumes descriptor (valid for receive queue only). */
  2142. pseudo_bit_t fault_type[0x00004]; /* 0000-0111 - RESERVED
  2143. 1000 - Translation page not present
  2144. 1001 - RESERVED
  2145. 1010 - Page write access violation
  2146. 1011 - 1101 - RESERVED
  2147. 1110 - Unsupported non-present page fault
  2148. 1111 - unsupported write access fault */
  2149. pseudo_bit_t reserved1[0x00018];
  2150. /* -------------- */
  2151. pseudo_bit_t va_h[0x00020]; /* Virtual address that caused access fault[63:32] */
  2152. /* -------------- */
  2153. pseudo_bit_t va_l[0x00020]; /* Virtual address that caused access fault[31:0] */
  2154. /* -------------- */
  2155. pseudo_bit_t mem_key[0x00020]; /* Memory Key used for address translation */
  2156. /* -------------- */
  2157. };
  2158. /* Event_data Field - Port State Change */
  2159. struct tavorprm_port_state_change_st { /* Little Endian */
  2160. pseudo_bit_t reserved0[0x00040];
  2161. /* -------------- */
  2162. pseudo_bit_t reserved1[0x0001c];
  2163. pseudo_bit_t p[0x00002]; /* Port number (1 or 2) */
  2164. pseudo_bit_t reserved2[0x00002];
  2165. /* -------------- */
  2166. pseudo_bit_t reserved3[0x00060];
  2167. /* -------------- */
  2168. };
  2169. /* Event_data Field - Completion Queue Error */
  2170. struct tavorprm_completion_queue_error_st { /* Little Endian */
  2171. pseudo_bit_t cqn[0x00018]; /* CQ number event is reported for */
  2172. pseudo_bit_t reserved0[0x00008];
  2173. /* -------------- */
  2174. pseudo_bit_t reserved1[0x00020];
  2175. /* -------------- */
  2176. pseudo_bit_t syndrome[0x00008]; /* Error syndrome
  2177. 0x01 - CQ overrun
  2178. 0x02 - CQ access violation error */
  2179. pseudo_bit_t reserved2[0x00018];
  2180. /* -------------- */
  2181. pseudo_bit_t reserved3[0x00060];
  2182. /* -------------- */
  2183. };
  2184. /* Event_data Field - Completion Event */
  2185. struct tavorprm_completion_event_st { /* Little Endian */
  2186. pseudo_bit_t cqn[0x00018]; /* CQ number event is reported for */
  2187. pseudo_bit_t reserved0[0x00008];
  2188. /* -------------- */
  2189. pseudo_bit_t reserved1[0x000a0];
  2190. /* -------------- */
  2191. };
  2192. /* Event Queue Entry */
  2193. struct tavorprm_event_queue_entry_st { /* Little Endian */
  2194. pseudo_bit_t event_sub_type[0x00008];/* Event Sub Type.
  2195. Defined for events which have sub types, zero elsewhere. */
  2196. pseudo_bit_t reserved0[0x00008];
  2197. pseudo_bit_t event_type[0x00008]; /* Event Type */
  2198. pseudo_bit_t reserved1[0x00008];
  2199. /* -------------- */
  2200. pseudo_bit_t event_data[6][0x00020];/* Delivers auxilary data to handle event. */
  2201. /* -------------- */
  2202. pseudo_bit_t reserved2[0x00007];
  2203. pseudo_bit_t owner[0x00001]; /* Owner of the entry
  2204. 0 SW
  2205. 1 HW */
  2206. pseudo_bit_t reserved3[0x00018];
  2207. /* -------------- */
  2208. };
  2209. /* QP/EE State Transitions Command Parameters */
  2210. struct tavorprm_qp_ee_state_transitions_st { /* Little Endian */
  2211. pseudo_bit_t opt_param_mask[0x00020];/* This field defines which optional parameters are passed. Each bit specifies whether optional parameter is passed (set) or not (cleared). The optparammask is defined for each QP/EE command. */
  2212. /* -------------- */
  2213. pseudo_bit_t reserved0[0x00020];
  2214. /* -------------- */
  2215. struct tavorprm_queue_pair_ee_context_entry_st qpc_eec_data;/* QPC/EEC data */
  2216. /* -------------- */
  2217. pseudo_bit_t reserved1[0x007c0];
  2218. /* -------------- */
  2219. };
  2220. /* Completion Queue Entry Format */
  2221. struct tavorprm_completion_queue_entry_st { /* Little Endian */
  2222. pseudo_bit_t my_qpn[0x00018]; /* Indicates the QP for which completion is being reported */
  2223. pseudo_bit_t reserved0[0x00004];
  2224. pseudo_bit_t ver[0x00004]; /* CQE version.
  2225. 0 for InfiniHost */
  2226. /* -------------- */
  2227. pseudo_bit_t my_ee[0x00018]; /* EE context (for RD only).
  2228. Invalid for Bind and Nop operation on RD. */
  2229. pseudo_bit_t reserved1[0x00008];
  2230. /* -------------- */
  2231. pseudo_bit_t rqpn[0x00018]; /* Remote (source) QP number. Valid in Responder CQE only for Datagram QP. */
  2232. pseudo_bit_t reserved2[0x00008];
  2233. /* -------------- */
  2234. pseudo_bit_t rlid[0x00010]; /* Remote (source) LID of the message. Valid in Responder of UD QP CQE only. */
  2235. pseudo_bit_t ml_path[0x00007]; /* My (destination) LID path bits - these are the lowemost LMC bits of the DLID in an incoming UD packet, higher bits of this field, that are not part of the LMC bits are zeroed by HW.
  2236. Valid in responder of UD QP CQE only.
  2237. Invalid if incoming message DLID is the permissive LID or incoming message is multicast. */
  2238. pseudo_bit_t g[0x00001]; /* GRH present indicator. Valid in Responder of UD QP CQE only. */
  2239. pseudo_bit_t reserved3[0x00001];
  2240. pseudo_bit_t reserved4[0x00003];
  2241. pseudo_bit_t sl[0x00004]; /* Service Level of the message. Valid in Responder of UD QP CQE only. */
  2242. /* -------------- */
  2243. pseudo_bit_t immediate_ethertype_pkey_indx_eecredits[0x00020];/* Valid for receive queue completion only.
  2244. If Opcode field indicates that this was send/write with immediate, this field contains immediate field of the packet.
  2245. If completion corresponds to RAW receive queue, bits 15:0 contain Ethertype field of the packet.
  2246. If completion corresponds to GSI receive queue, bits 31:16 contain index in PKey table that matches PKey of the message arrived.
  2247. For CQE of send queue of the reliable connection service, bits [4:0] of this field contain the encoded EEcredits received in last ACK of the message.
  2248. */
  2249. /* -------------- */
  2250. pseudo_bit_t byte_cnt[0x00020]; /* Byte count of data actually transferred (valid for receive queue completions only) */
  2251. /* -------------- */
  2252. pseudo_bit_t wqe_size[0x00006]; /* Size (in 16-byte chunks) of WQE completion is reported for */
  2253. pseudo_bit_t wqe_adr[0x0001a]; /* Bits 31:6 of WQE virtual address completion is reported for. The 6 least significant bits are zero. */
  2254. /* -------------- */
  2255. pseudo_bit_t reserved5[0x00007];
  2256. pseudo_bit_t owner[0x00001]; /* Owner field. Zero value of this field means SW ownership of CQE. */
  2257. pseudo_bit_t reserved6[0x0000d];
  2258. pseudo_bit_t reserved7[0x00001];
  2259. pseudo_bit_t reserved8[0x00001];
  2260. pseudo_bit_t s[0x00001]; /* If set, completion is reported for Send queue, if cleared - receive queue. */
  2261. pseudo_bit_t opcode[0x00008]; /* The opcode of WQE completion is reported for.
  2262. For CQEs corresponding to send completion, NOPCODE field of the WQE is copied to this field.
  2263. For CQEs corresponding to receive completions, opcode field of last packet in the message copied to this field.
  2264. For CQEs corresponding to the receive queue of QPs mapped to QP1, the opcode will be SEND with Immediate (messages are guaranteed to be SEND only)
  2265. The following values are reported in case of completion with error:
  2266. 0xFE - For completion with error on Receive Queues
  2267. 0xFF - For completion with error on Send Queues */
  2268. /* -------------- */
  2269. };
  2270. /* */
  2271. struct tavorprm_ecc_detect_event_data_st { /* Little Endian */
  2272. pseudo_bit_t reserved0[0x00080];
  2273. /* -------------- */
  2274. pseudo_bit_t cause_lsb[0x00001];
  2275. pseudo_bit_t reserved1[0x00002];
  2276. pseudo_bit_t cause_msb[0x00001];
  2277. pseudo_bit_t reserved2[0x00002];
  2278. pseudo_bit_t err_rmw[0x00001];
  2279. pseudo_bit_t err_src_id[0x00003];
  2280. pseudo_bit_t err_da[0x00002];
  2281. pseudo_bit_t err_ba[0x00002];
  2282. pseudo_bit_t reserved3[0x00011];
  2283. pseudo_bit_t overflow[0x00001];
  2284. /* -------------- */
  2285. pseudo_bit_t err_ra[0x00010];
  2286. pseudo_bit_t err_ca[0x00010];
  2287. /* -------------- */
  2288. };
  2289. /* MAD_IFC Input Mailbox */
  2290. struct tavorprm_mad_ifc_st { /* Little Endian */
  2291. pseudo_bit_t request_mad_packet[64][0x00020];/* Request MAD Packet (256bytes) */
  2292. /* -------------- */
  2293. pseudo_bit_t my_qpn[0x00018]; /* Destination QP number from the received MAD.
  2294. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2295. pseudo_bit_t reserved0[0x00008];
  2296. /* -------------- */
  2297. pseudo_bit_t rqpn[0x00018]; /* Remote (source) QP number from the received MAD.
  2298. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2299. pseudo_bit_t reserved1[0x00008];
  2300. /* -------------- */
  2301. pseudo_bit_t rlid[0x00010]; /* Remote (source) LID from the received MAD.
  2302. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2303. pseudo_bit_t ml_path[0x00007]; /* My (destination) LID path bits from the received MAD.
  2304. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2305. pseudo_bit_t g[0x00001]; /* If set, the GRH field in valid.
  2306. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2307. pseudo_bit_t reserved2[0x00004];
  2308. pseudo_bit_t sl[0x00004]; /* Service Level of the received MAD.
  2309. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2310. /* -------------- */
  2311. pseudo_bit_t pkey_indx[0x00010]; /* Index in PKey table that matches PKey of the received MAD.
  2312. This field is reserved if Mad_extended_info indication in the input modifier is clear. */
  2313. pseudo_bit_t reserved3[0x00010];
  2314. /* -------------- */
  2315. pseudo_bit_t reserved4[0x00180];
  2316. /* -------------- */
  2317. pseudo_bit_t grh[10][0x00020]; /* The GRH field of the MAD packet that was scattered to the first 40 bytes pointed to by the scatter list.
  2318. Valid if Mad_extended_info bit (in the input modifier) and g bit are set.
  2319. Otherwise this field is reserved. */
  2320. /* -------------- */
  2321. pseudo_bit_t reserved5[0x004c0];
  2322. /* -------------- */
  2323. };
  2324. /* Event_data Field - ECC Detection Event */
  2325. struct tavorprm_scrubbing_event_st { /* Little Endian */
  2326. pseudo_bit_t reserved0[0x00080];
  2327. /* -------------- */
  2328. pseudo_bit_t cause_lsb[0x00001]; /* data integrity error cause:
  2329. single ECC error in the 64bit lsb data, on the rise edge of the clock */
  2330. pseudo_bit_t reserved1[0x00002];
  2331. pseudo_bit_t cause_msb[0x00001]; /* data integrity error cause:
  2332. single ECC error in the 64bit msb data, on the fall edge of the clock */
  2333. pseudo_bit_t reserved2[0x00002];
  2334. pseudo_bit_t err_rmw[0x00001]; /* transaction type:
  2335. 0 - read
  2336. 1 - read/modify/write */
  2337. pseudo_bit_t err_src_id[0x00003]; /* source of the transaction: 0x4 - PCI, other - internal or IB */
  2338. pseudo_bit_t err_da[0x00002]; /* Error DIMM address */
  2339. pseudo_bit_t err_ba[0x00002]; /* Error bank address */
  2340. pseudo_bit_t reserved3[0x00011];
  2341. pseudo_bit_t overflow[0x00001]; /* Fatal: ECC error FIFO overflow - ECC errors were detected, which may or may not have been corrected by InfiniHost */
  2342. /* -------------- */
  2343. pseudo_bit_t err_ra[0x00010]; /* Error row address */
  2344. pseudo_bit_t err_ca[0x00010]; /* Error column address */
  2345. /* -------------- */
  2346. };
  2347. /* PBL */
  2348. struct tavorprm_pbl_st { /* Little Endian */
  2349. pseudo_bit_t mtt_0_h[0x00020]; /* First MTT[63:32] */
  2350. /* -------------- */
  2351. pseudo_bit_t mtt_0_l[0x00020]; /* First MTT[31:0] */
  2352. /* -------------- */
  2353. pseudo_bit_t mtt_1_h[0x00020]; /* Second MTT[63:32] */
  2354. /* -------------- */
  2355. pseudo_bit_t mtt_1_l[0x00020]; /* Second MTT[31:0] */
  2356. /* -------------- */
  2357. pseudo_bit_t mtt_2_h[0x00020]; /* Third MTT[63:32] */
  2358. /* -------------- */
  2359. pseudo_bit_t mtt_2_l[0x00020]; /* Third MTT[31:0] */
  2360. /* -------------- */
  2361. pseudo_bit_t mtt_3_h[0x00020]; /* Fourth MTT[63:32] */
  2362. /* -------------- */
  2363. pseudo_bit_t mtt_3_l[0x00020]; /* Fourth MTT[31:0] */
  2364. /* -------------- */
  2365. };
  2366. /* Miscellaneous Counters */
  2367. struct tavorprm_misc_counters_st { /* Little Endian */
  2368. pseudo_bit_t ddr_scan_cnt[0x00020]; /* Number of times whole of DDR was scanned */
  2369. /* -------------- */
  2370. pseudo_bit_t reserved0[0x007e0];
  2371. /* -------------- */
  2372. };
  2373. /* MAD_IFC Opcode Modifier */
  2374. struct tavorprm_mad_ifc_opcode_modifier_st { /* Little Endian */
  2375. pseudo_bit_t mkey[0x00001]; /* Enable MKey validation. */
  2376. pseudo_bit_t bkey[0x00001]; /* Enable BKey validation. */
  2377. pseudo_bit_t reserved0[0x0001d];
  2378. pseudo_bit_t mad_extended_info[0x00001];/* Mad_Extended_Info valid bit.
  2379. Requeried for for trap generation when BKey check is enabled. */
  2380. /* -------------- */
  2381. };
  2382. /* MAD_IFC Input Modifier */
  2383. struct tavorprm_mad_ifc_input_modifier_st { /* Little Endian */
  2384. pseudo_bit_t port_number[0x00008]; /* Port number (1 or 2). */
  2385. pseudo_bit_t reserved0[0x00008];
  2386. pseudo_bit_t rlid[0x00001]; /* Remote (source) LID from the received MAD.
  2387. This field is required for trap generation upon MKey/BKey validation. */
  2388. pseudo_bit_t reserved1[0x0000f];
  2389. /* -------------- */
  2390. };
  2391. /* Fast_Registration_Segment */
  2392. struct tavorprm_fast_registration_segment_st { /* Little Endian */
  2393. pseudo_bit_t reserved0[0x0001b];
  2394. pseudo_bit_t lr[0x00001]; /* If set - Local Read access will be enabled */
  2395. pseudo_bit_t lw[0x00001]; /* If set - Local Write access will be enabled */
  2396. pseudo_bit_t rr[0x00001]; /* If set - Remote Read access will be enabled */
  2397. pseudo_bit_t rw[0x00001]; /* If set - Remote Write access will be enabled */
  2398. pseudo_bit_t a[0x00001]; /* If set - Remote Atomic access will be enabled */
  2399. /* -------------- */
  2400. pseudo_bit_t pbl_ptr_63_32[0x00020];/* Physical address pointer [63:32] to the physical block list */
  2401. /* -------------- */
  2402. pseudo_bit_t mem_key[0x00020]; /* Memory Key on which the fast registration is executed on. */
  2403. /* -------------- */
  2404. pseudo_bit_t page_size[0x00005]; /* Page size used for the region. Actual size is [4K]*2^Page_size bytes.
  2405. page_size should be less than 20. */
  2406. pseudo_bit_t reserved1[0x00002];
  2407. pseudo_bit_t zb[0x00001]; /* Zero Based Region */
  2408. pseudo_bit_t pbl_ptr_31_8[0x00018]; /* Physical address pointer [31:8] to the physical block list */
  2409. /* -------------- */
  2410. pseudo_bit_t start_address_h[0x00020];/* Start Address[63:32] - Virtual Address where this region starts */
  2411. /* -------------- */
  2412. pseudo_bit_t start_address_l[0x00020];/* Start Address[31:0] - Virtual Address where this region starts */
  2413. /* -------------- */
  2414. pseudo_bit_t reg_len_h[0x00020]; /* Region Length[63:32] */
  2415. /* -------------- */
  2416. pseudo_bit_t reg_len_l[0x00020]; /* Region Length[31:0] */
  2417. /* -------------- */
  2418. };
  2419. /* 0 */
  2420. struct tavorprm_tavor_prm_st { /* Little Endian */
  2421. struct tavorprm_completion_queue_entry_st completion_queue_entry;/* Completion Queue Entry Format */
  2422. /* -------------- */
  2423. pseudo_bit_t reserved0[0x7ff00];
  2424. /* -------------- */
  2425. struct tavorprm_qp_ee_state_transitions_st qp_ee_state_transitions;/* QP/EE State Transitions Command Parameters */
  2426. /* -------------- */
  2427. pseudo_bit_t reserved1[0x7f000];
  2428. /* -------------- */
  2429. struct tavorprm_event_queue_entry_st event_queue_entry;/* Event Queue Entry */
  2430. /* -------------- */
  2431. pseudo_bit_t reserved2[0x7ff00];
  2432. /* -------------- */
  2433. struct tavorprm_completion_event_st completion_event;/* Event_data Field - Completion Event */
  2434. /* -------------- */
  2435. pseudo_bit_t reserved3[0x7ff40];
  2436. /* -------------- */
  2437. struct tavorprm_completion_queue_error_st completion_queue_error;/* Event_data Field - Completion Queue Error */
  2438. /* -------------- */
  2439. pseudo_bit_t reserved4[0x7ff40];
  2440. /* -------------- */
  2441. struct tavorprm_port_state_change_st port_state_change;/* Event_data Field - Port State Change */
  2442. /* -------------- */
  2443. pseudo_bit_t reserved5[0xfff40];
  2444. /* -------------- */
  2445. struct tavorprm_page_fault_event_data_st page_fault_event_data;/* Event_data Field - Page Faults */
  2446. /* -------------- */
  2447. pseudo_bit_t reserved6[0x7ff40];
  2448. /* -------------- */
  2449. struct tavorprm_performance_monitor_event_st performance_monitor_event;/* Event Data Field - Performance Monitor */
  2450. /* -------------- */
  2451. pseudo_bit_t reserved7[0x7ff20];
  2452. /* -------------- */
  2453. struct tavorprm_ntu_qpm_st ntu_qpm; /* NTU QP Map Table Entry */
  2454. /* -------------- */
  2455. pseudo_bit_t reserved8[0x7ff80];
  2456. /* -------------- */
  2457. struct tavorprm_mt23108_type0_st mt23108_type0;/* InfiniHost Type0 Configuration Header */
  2458. /* -------------- */
  2459. pseudo_bit_t reserved9[0x7f800];
  2460. /* -------------- */
  2461. struct tavorprm_qp_ee_event_st qp_ee_event;/* Event_data Field - QP/EE Events */
  2462. /* -------------- */
  2463. pseudo_bit_t reserved10[0x00040];
  2464. /* -------------- */
  2465. struct tavorprm_gpio_event_data_st gpio_event_data;
  2466. /* -------------- */
  2467. pseudo_bit_t reserved11[0x7fe40];
  2468. /* -------------- */
  2469. struct tavorprm_ud_address_vector_st ud_address_vector;/* UD Address Vector */
  2470. /* -------------- */
  2471. pseudo_bit_t reserved12[0x7ff00];
  2472. /* -------------- */
  2473. struct tavorprm_queue_pair_ee_context_entry_st queue_pair_ee_context_entry;/* QP and EE Context Entry */
  2474. /* -------------- */
  2475. pseudo_bit_t reserved13[0x7f800];
  2476. /* -------------- */
  2477. struct tavorprm_address_path_st address_path;/* Address Path */
  2478. /* -------------- */
  2479. pseudo_bit_t reserved14[0x7ff00];
  2480. /* -------------- */
  2481. struct tavorprm_completion_queue_context_st completion_queue_context;/* Completion Queue Context Table Entry */
  2482. /* -------------- */
  2483. pseudo_bit_t reserved15[0x7fe00];
  2484. /* -------------- */
  2485. struct tavorprm_mpt_st mpt; /* Memory Protection Table (MPT) Entry */
  2486. /* -------------- */
  2487. pseudo_bit_t reserved16[0x7fe00];
  2488. /* -------------- */
  2489. struct tavorprm_mtt_st mtt; /* Memory Translation Table (MTT) Entry */
  2490. /* -------------- */
  2491. pseudo_bit_t reserved17[0x7ffc0];
  2492. /* -------------- */
  2493. struct tavorprm_eqc_st eqc; /* Event Queue Context Table Entry */
  2494. /* -------------- */
  2495. pseudo_bit_t reserved18[0x7fe00];
  2496. /* -------------- */
  2497. struct tavorprm_performance_monitors_st performance_monitors;/* Performance Monitors */
  2498. /* -------------- */
  2499. pseudo_bit_t reserved19[0x7ff80];
  2500. /* -------------- */
  2501. struct tavorprm_hca_command_register_st hca_command_register;/* HCA Command Register (HCR) */
  2502. /* -------------- */
  2503. pseudo_bit_t reserved20[0xfff20];
  2504. /* -------------- */
  2505. struct tavorprm_init_hca_st init_hca;/* INIT_HCA & QUERY_HCA Parameters Block */
  2506. /* -------------- */
  2507. pseudo_bit_t reserved21[0x7f000];
  2508. /* -------------- */
  2509. struct tavorprm_qpcbaseaddr_st qpcbaseaddr;/* QPC/EEC/CQC/EQC/RDB Parameters */
  2510. /* -------------- */
  2511. pseudo_bit_t reserved22[0x7fc00];
  2512. /* -------------- */
  2513. struct tavorprm_udavtable_memory_parameters_st udavtable_memory_parameters;/* Memory Access Parameters for UD Address Vector Table */
  2514. /* -------------- */
  2515. pseudo_bit_t reserved23[0x7ffc0];
  2516. /* -------------- */
  2517. struct tavorprm_multicastparam_st multicastparam;/* Multicast Support Parameters */
  2518. /* -------------- */
  2519. pseudo_bit_t reserved24[0x7ff00];
  2520. /* -------------- */
  2521. struct tavorprm_tptparams_st tptparams;/* Translation and Protection Tables Parameters */
  2522. /* -------------- */
  2523. pseudo_bit_t reserved25[0x7ff00];
  2524. /* -------------- */
  2525. struct tavorprm_query_ddr_st query_ddr;/* QUERY_DDR Parameters Block */
  2526. /* -------------- */
  2527. struct tavorprm_access_ddr_st access_ddr;
  2528. /* -------------- */
  2529. pseudo_bit_t reserved26[0x7f700];
  2530. /* -------------- */
  2531. struct tavorprm_dimminfo_st dimminfo;/* Logical DIMM Information */
  2532. /* -------------- */
  2533. pseudo_bit_t reserved27[0x7ff00];
  2534. /* -------------- */
  2535. struct tavorprm_query_fw_st query_fw;/* QUERY_FW Parameters Block */
  2536. /* -------------- */
  2537. pseudo_bit_t reserved28[0x7f800];
  2538. /* -------------- */
  2539. struct tavorprm_query_adapter_st query_adapter;/* QUERY_ADAPTER Parameters Block */
  2540. /* -------------- */
  2541. pseudo_bit_t reserved29[0x7f800];
  2542. /* -------------- */
  2543. struct tavorprm_query_dev_lim_st query_dev_lim;/* Query Device Limitations */
  2544. /* -------------- */
  2545. pseudo_bit_t reserved30[0x7f800];
  2546. /* -------------- */
  2547. struct tavorprm_uar_params_st uar_params;/* UAR Parameters */
  2548. /* -------------- */
  2549. pseudo_bit_t reserved31[0x7ff00];
  2550. /* -------------- */
  2551. struct tavorprm_init_ib_st init_ib; /* INIT_IB Parameters */
  2552. /* -------------- */
  2553. pseudo_bit_t reserved32[0x7f800];
  2554. /* -------------- */
  2555. struct tavorprm_mgm_entry_st mgm_entry;/* Multicast Group Member */
  2556. /* -------------- */
  2557. pseudo_bit_t reserved33[0x7fe00];
  2558. /* -------------- */
  2559. struct tavorprm_set_ib_st set_ib; /* SET_IB Parameters */
  2560. /* -------------- */
  2561. pseudo_bit_t reserved34[0x7fe00];
  2562. /* -------------- */
  2563. struct tavorprm_rd_send_doorbell_st rd_send_doorbell;/* RD-send doorbell */
  2564. /* -------------- */
  2565. pseudo_bit_t reserved35[0x7ff80];
  2566. /* -------------- */
  2567. struct tavorprm_send_doorbell_st send_doorbell;/* Send doorbell */
  2568. /* -------------- */
  2569. pseudo_bit_t reserved36[0x7ffc0];
  2570. /* -------------- */
  2571. struct tavorprm_receive_doorbell_st receive_doorbell;/* Receive doorbell */
  2572. /* -------------- */
  2573. pseudo_bit_t reserved37[0x7ffc0];
  2574. /* -------------- */
  2575. struct tavorprm_cq_cmd_doorbell_st cq_cmd_doorbell;/* CQ Doorbell */
  2576. /* -------------- */
  2577. pseudo_bit_t reserved38[0x7ffc0];
  2578. /* -------------- */
  2579. struct tavorprm_eq_cmd_doorbell_st eq_cmd_doorbell;/* EQ Doorbell */
  2580. /* -------------- */
  2581. pseudo_bit_t reserved39[0x7ffc0];
  2582. /* -------------- */
  2583. struct tavorprm_uar_st uar; /* User Access Region */
  2584. /* -------------- */
  2585. pseudo_bit_t reserved40[0x7c000];
  2586. /* -------------- */
  2587. struct tavorprm_mgmqp_st mgmqp; /* Multicast Group Member QP */
  2588. /* -------------- */
  2589. pseudo_bit_t reserved41[0x7ffe0];
  2590. /* -------------- */
  2591. struct tavorprm_query_debug_msg_st query_debug_msg;/* Query Debug Message */
  2592. /* -------------- */
  2593. pseudo_bit_t reserved42[0x7f800];
  2594. /* -------------- */
  2595. struct tavorprm_sys_en_out_param_st sys_en_out_param;/* SYS_EN Output Parameter */
  2596. /* -------------- */
  2597. pseudo_bit_t reserved43[0x7ffc0];
  2598. /* -------------- */
  2599. struct tavorprm_resize_cq_st resize_cq;/* Resize CQ Input Mailbox */
  2600. /* -------------- */
  2601. pseudo_bit_t reserved44[0x7fe00];
  2602. /* -------------- */
  2603. struct tavorprm_completion_with_error_st completion_with_error;/* Completion with Error CQE */
  2604. /* -------------- */
  2605. pseudo_bit_t reserved45[0x7ff00];
  2606. /* -------------- */
  2607. struct tavorprm_hcr_completion_event_st hcr_completion_event;/* Event_data Field - HCR Completion Event */
  2608. /* -------------- */
  2609. pseudo_bit_t reserved46[0x7ff40];
  2610. /* -------------- */
  2611. struct tavorprm_transport_and_ci_error_counters_st transport_and_ci_error_counters;/* Transport and CI Error Counters */
  2612. /* -------------- */
  2613. pseudo_bit_t reserved47[0x7f000];
  2614. /* -------------- */
  2615. struct tavorprm_performance_counters_st performance_counters;/* Performance Counters */
  2616. /* -------------- */
  2617. pseudo_bit_t reserved48[0x7f800];
  2618. /* -------------- */
  2619. struct tavorprm_query_bar_st query_bar;/* Query BAR */
  2620. /* -------------- */
  2621. pseudo_bit_t reserved49[0x7ffc0];
  2622. /* -------------- */
  2623. struct tavorprm_cfg_schq_st cfg_schq;/* Schedule queues configuration */
  2624. /* -------------- */
  2625. pseudo_bit_t reserved50[0x7f800];
  2626. /* -------------- */
  2627. struct tavorprm_mt23108_configuration_registers_st mt23108_configuration_registers;/* InfiniHost Configuration Registers - Used in Mem-Free mode only */
  2628. /* -------------- */
  2629. pseudo_bit_t reserved51[0x80000];
  2630. /* -------------- */
  2631. pseudo_bit_t reserved52[0x00100];
  2632. /* -------------- */
  2633. pseudo_bit_t reserved53[0x7ff00];
  2634. /* -------------- */
  2635. pseudo_bit_t reserved54[0x00100];
  2636. /* -------------- */
  2637. pseudo_bit_t reserved55[0x7ff00];
  2638. /* -------------- */
  2639. struct tavorprm_srq_context_st srq_context;/* SRQ Context */
  2640. /* -------------- */
  2641. pseudo_bit_t reserved56[0x7ff00];
  2642. /* -------------- */
  2643. struct tavorprm_mod_stat_cfg_st mod_stat_cfg;/* MOD_STAT_CFG */
  2644. /* -------------- */
  2645. pseudo_bit_t reserved57[0x00080];
  2646. /* -------------- */
  2647. pseudo_bit_t reserved58[0x00040];
  2648. /* -------------- */
  2649. pseudo_bit_t reserved59[0x1bff740];
  2650. /* -------------- */
  2651. };
  2652. #include "MT23108_PRM_append.h"
  2653. #endif /* H_prefix_tavorprm_bits_fixnames_MT23108_PRM_csp_H */