rx_msdu_end.h 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. /*
  2. * Copyright (c) 2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. //
  19. // DO NOT EDIT! This file is automatically generated
  20. // These definitions are tied to a particular hardware layout
  21. #ifndef _RX_MSDU_END_H_
  22. #define _RX_MSDU_END_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. // ################ START SUMMARY #################
  26. //
  27. // Dword Fields
  28. // 0 rxpcu_mpdu_filter_in_category[1:0], sw_frame_group_id[8:2], reserved_0[15:9], phy_ppdu_id[31:16]
  29. // 1 ip_hdr_chksum[15:0], reported_mpdu_length[29:16], reserved_1a[31:30]
  30. // 2 key_id_octet[7:0], cce_super_rule[13:8], cce_classify_not_done_truncate[14], cce_classify_not_done_cce_dis[15], ext_wapi_pn_63_48[31:16]
  31. // 3 ext_wapi_pn_95_64[31:0]
  32. // 4 ext_wapi_pn_127_96[31:0]
  33. // 5 da_offset[5:0], sa_offset[11:6], da_offset_valid[12], sa_offset_valid[13], reserved_10a[15:14], l3_type[31:16]
  34. // 6 ipv6_options_crc[31:0]
  35. // 7 tcp_seq_number[31:0]
  36. // 8 tcp_ack_number[31:0]
  37. // 9 tcp_flag[8:0], lro_eligible[9], reserved_9a[15:10], window_size[31:16]
  38. // 10 tcp_udp_chksum[15:0], sa_idx_timeout[16], da_idx_timeout[17], msdu_limit_error[18], flow_idx_timeout[19], flow_idx_invalid[20], wifi_parser_error[21], amsdu_parser_error[22], sa_is_valid[23], da_is_valid[24], da_is_mcbc[25], l3_header_padding[27:26], first_msdu[28], last_msdu[29], reserved_5a[31:30]
  39. // 11 sa_idx[15:0], da_idx_or_sw_peer_id[31:16]
  40. // 12 msdu_drop[0], reo_destination_indication[5:1], flow_idx[25:6], reserved_14[31:26]
  41. // 13 fse_metadata[31:0]
  42. // 14 cce_metadata[15:0], sa_sw_peer_id[31:16]
  43. // 15 rule_indication_31_0[31:0]
  44. // 16 rule_indication_63_32[31:0]
  45. // 17 aggregation_count[7:0], flow_aggregation_continuation[8], fisa_timeout[9], reserve_17a[31:10]
  46. // 18 cumulative_l4_checksum[15:0], cumulative_ip_length[31:16]
  47. //
  48. // ################ END SUMMARY #################
  49. #define NUM_OF_DWORDS_RX_MSDU_END 19
  50. struct rx_msdu_end {
  51. uint32_t rxpcu_mpdu_filter_in_category : 2, //[1:0]
  52. sw_frame_group_id : 7, //[8:2]
  53. reserved_0 : 7, //[15:9]
  54. phy_ppdu_id : 16; //[31:16]
  55. uint32_t ip_hdr_chksum : 16, //[15:0]
  56. reported_mpdu_length : 14, //[29:16]
  57. reserved_1a : 2; //[31:30]
  58. uint32_t key_id_octet : 8, //[7:0]
  59. cce_super_rule : 6, //[13:8]
  60. cce_classify_not_done_truncate : 1, //[14]
  61. cce_classify_not_done_cce_dis : 1, //[15]
  62. ext_wapi_pn_63_48 : 16; //[31:16]
  63. uint32_t ext_wapi_pn_95_64 : 32; //[31:0]
  64. uint32_t ext_wapi_pn_127_96 : 32; //[31:0]
  65. uint32_t da_offset : 6, //[5:0]
  66. sa_offset : 6, //[11:6]
  67. da_offset_valid : 1, //[12]
  68. sa_offset_valid : 1, //[13]
  69. reserved_10a : 2, //[15:14]
  70. l3_type : 16; //[31:16]
  71. uint32_t ipv6_options_crc : 32; //[31:0]
  72. uint32_t tcp_seq_number : 32; //[31:0]
  73. uint32_t tcp_ack_number : 32; //[31:0]
  74. uint32_t tcp_flag : 9, //[8:0]
  75. lro_eligible : 1, //[9]
  76. reserved_9a : 6, //[15:10]
  77. window_size : 16; //[31:16]
  78. uint32_t tcp_udp_chksum : 16, //[15:0]
  79. sa_idx_timeout : 1, //[16]
  80. da_idx_timeout : 1, //[17]
  81. msdu_limit_error : 1, //[18]
  82. flow_idx_timeout : 1, //[19]
  83. flow_idx_invalid : 1, //[20]
  84. wifi_parser_error : 1, //[21]
  85. amsdu_parser_error : 1, //[22]
  86. sa_is_valid : 1, //[23]
  87. da_is_valid : 1, //[24]
  88. da_is_mcbc : 1, //[25]
  89. l3_header_padding : 2, //[27:26]
  90. first_msdu : 1, //[28]
  91. last_msdu : 1, //[29]
  92. reserved_5a : 2; //[31:30]
  93. uint32_t sa_idx : 16, //[15:0]
  94. da_idx_or_sw_peer_id : 16; //[31:16]
  95. uint32_t msdu_drop : 1, //[0]
  96. reo_destination_indication : 5, //[5:1]
  97. flow_idx : 20, //[25:6]
  98. reserved_14 : 6; //[31:26]
  99. uint32_t fse_metadata : 32; //[31:0]
  100. uint32_t cce_metadata : 16, //[15:0]
  101. sa_sw_peer_id : 16; //[31:16]
  102. uint32_t rule_indication_31_0 : 32; //[31:0]
  103. uint32_t rule_indication_63_32 : 32; //[31:0]
  104. uint32_t aggregation_count : 8, //[7:0]
  105. flow_aggregation_continuation : 1, //[8]
  106. fisa_timeout : 1, //[9]
  107. reserve_17a : 22; //[31:10]
  108. uint32_t cumulative_l4_checksum : 16, //[15:0]
  109. cumulative_ip_length : 16; //[31:16]
  110. };
  111. /*
  112. rxpcu_mpdu_filter_in_category
  113. Field indicates what the reason was that this MPDU frame
  114. was allowed to come into the receive path by RXPCU
  115. <enum 0 rxpcu_filter_pass> This MPDU passed the normal
  116. frame filter programming of rxpcu
  117. <enum 1 rxpcu_monitor_client> This MPDU did NOT pass the
  118. regular frame filter and would have been dropped, were it
  119. not for the frame fitting into the 'monitor_client'
  120. category.
  121. <enum 2 rxpcu_monitor_other> This MPDU did NOT pass the
  122. regular frame filter and also did not pass the
  123. rxpcu_monitor_client filter. It would have been dropped
  124. accept that it did pass the 'monitor_other' category.
  125. <legal 0-2>
  126. sw_frame_group_id
  127. SW processes frames based on certain classifications.
  128. This field indicates to what sw classification this MPDU is
  129. mapped.
  130. The classification is given in priority order
  131. <enum 0 sw_frame_group_NDP_frame>
  132. <enum 1 sw_frame_group_Multicast_data>
  133. <enum 2 sw_frame_group_Unicast_data>
  134. <enum 3 sw_frame_group_Null_data > This includes mpdus
  135. of type Data Null as well as QoS Data Null
  136. <enum 4 sw_frame_group_mgmt_0000 >
  137. <enum 5 sw_frame_group_mgmt_0001 >
  138. <enum 6 sw_frame_group_mgmt_0010 >
  139. <enum 7 sw_frame_group_mgmt_0011 >
  140. <enum 8 sw_frame_group_mgmt_0100 >
  141. <enum 9 sw_frame_group_mgmt_0101 >
  142. <enum 10 sw_frame_group_mgmt_0110 >
  143. <enum 11 sw_frame_group_mgmt_0111 >
  144. <enum 12 sw_frame_group_mgmt_1000 >
  145. <enum 13 sw_frame_group_mgmt_1001 >
  146. <enum 14 sw_frame_group_mgmt_1010 >
  147. <enum 15 sw_frame_group_mgmt_1011 >
  148. <enum 16 sw_frame_group_mgmt_1100 >
  149. <enum 17 sw_frame_group_mgmt_1101 >
  150. <enum 18 sw_frame_group_mgmt_1110 >
  151. <enum 19 sw_frame_group_mgmt_1111 >
  152. <enum 20 sw_frame_group_ctrl_0000 >
  153. <enum 21 sw_frame_group_ctrl_0001 >
  154. <enum 22 sw_frame_group_ctrl_0010 >
  155. <enum 23 sw_frame_group_ctrl_0011 >
  156. <enum 24 sw_frame_group_ctrl_0100 >
  157. <enum 25 sw_frame_group_ctrl_0101 >
  158. <enum 26 sw_frame_group_ctrl_0110 >
  159. <enum 27 sw_frame_group_ctrl_0111 >
  160. <enum 28 sw_frame_group_ctrl_1000 >
  161. <enum 29 sw_frame_group_ctrl_1001 >
  162. <enum 30 sw_frame_group_ctrl_1010 >
  163. <enum 31 sw_frame_group_ctrl_1011 >
  164. <enum 32 sw_frame_group_ctrl_1100 >
  165. <enum 33 sw_frame_group_ctrl_1101 >
  166. <enum 34 sw_frame_group_ctrl_1110 >
  167. <enum 35 sw_frame_group_ctrl_1111 >
  168. <enum 36 sw_frame_group_unsupported> This covers type 3
  169. and protocol version != 0
  170. <legal 0-37>
  171. reserved_0
  172. <legal 0>
  173. phy_ppdu_id
  174. A ppdu counter value that PHY increments for every PPDU
  175. received. The counter value wraps around
  176. <legal all>
  177. ip_hdr_chksum
  178. This can include the IP header checksum or the pseudo
  179. header checksum used by TCP/UDP checksum.
  180. (with the first byte in the MSB and the second byte in
  181. the LSB, i.e. requiring a byte-swap for little-endian FW/SW
  182. w.r.t. the byte order in a packet)
  183. reported_mpdu_length
  184. MPDU length before decapsulation. Only valid when
  185. first_msdu is set. This field is taken directly from the
  186. length field of the A-MPDU delimiter or the preamble length
  187. field for non-A-MPDU frames.
  188. reserved_1a
  189. <legal 0>
  190. key_id_octet
  191. The key ID octet from the IV. Only valid when
  192. first_msdu is set.
  193. cce_super_rule
  194. Indicates the super filter rule
  195. cce_classify_not_done_truncate
  196. Classification failed due to truncated frame
  197. cce_classify_not_done_cce_dis
  198. Classification failed due to CCE global disable
  199. ext_wapi_pn_63_48
  200. Extension PN (packet number) which is only used by WAPI.
  201. This corresponds to WAPI PN bits [63:48] (pn6 and pn7).
  202. The WAPI PN bits [63:0] are in the pn field of the
  203. rx_mpdu_start descriptor.
  204. ext_wapi_pn_95_64
  205. Extension PN (packet number) which is only used by WAPI.
  206. This corresponds to WAPI PN bits [95:64] (pn8, pn9, pn10
  207. and pn11).
  208. ext_wapi_pn_127_96
  209. Extension PN (packet number) which is only used by WAPI.
  210. This corresponds to WAPI PN bits [127:96] (pn12, pn13,
  211. pn14, pn15).
  212. da_offset
  213. Offset into MSDU buffer for DA
  214. sa_offset
  215. Offset into MSDU buffer for SA
  216. da_offset_valid
  217. da_offset field is valid. This will be set to 0 in case
  218. of a dynamic A-MSDU when DA is compressed
  219. sa_offset_valid
  220. sa_offset field is valid. This will be set to 0 in case
  221. of a dynamic A-MSDU when SA is compressed
  222. reserved_10a
  223. <legal 0>
  224. l3_type
  225. The 16-bit type value indicating the type of L3 later
  226. extracted from LLC/SNAP, set to zero if SNAP is not
  227. available
  228. ipv6_options_crc
  229. 32 bit CRC computed out of IP v6 extension headers
  230. tcp_seq_number
  231. TCP sequence number (as a number assembled from a TCP
  232. packet in big-endian order, i.e. requiring a byte-swap for
  233. little-endian FW/SW w.r.t. the byte order in a packet)
  234. tcp_ack_number
  235. TCP acknowledge number (as a number assembled from a TCP
  236. packet in big-endian order, i.e. requiring a byte-swap for
  237. little-endian FW/SW w.r.t. the byte order in a packet)
  238. tcp_flag
  239. TCP flags
  240. {NS,CWR,ECE,URG,ACK,PSH, RST ,SYN,FIN}(with the NS bit
  241. in bit 8 and the FIN bit in bit 0, i.e. in big-endian order,
  242. i.e. requiring a byte-swap for little-endian FW/SW w.r.t.
  243. the byte order in a packet)
  244. lro_eligible
  245. Computed out of TCP and IP fields to indicate that this
  246. MSDU is eligible for LRO
  247. reserved_9a
  248. NOTE: DO not assign a field... Internally used in
  249. RXOLE..
  250. <legal 0>
  251. window_size
  252. TCP receive window size (as a number assembled from a
  253. TCP packet in big-endian order, i.e. requiring a byte-swap
  254. for little-endian FW/SW w.r.t. the byte order in a packet)
  255. tcp_udp_chksum
  256. The value of the computed TCP/UDP checksum. A mode bit
  257. selects whether this checksum is the full checksum or the
  258. partial checksum which does not include the pseudo header.
  259. (with the first byte in the MSB and the second byte in the
  260. LSB, i.e. requiring a byte-swap for little-endian FW/SW
  261. w.r.t. the byte order in a packet)
  262. sa_idx_timeout
  263. Indicates an unsuccessful MAC source address search due
  264. to the expiring of the search timer.
  265. da_idx_timeout
  266. Indicates an unsuccessful MAC destination address search
  267. due to the expiring of the search timer.
  268. msdu_limit_error
  269. Indicates that the MSDU threshold was exceeded and thus
  270. all the rest of the MSDUs will not be scattered and will not
  271. be decapsulated but will be DMA'ed in RAW format as a single
  272. MSDU buffer
  273. flow_idx_timeout
  274. Indicates an unsuccessful flow search due to the
  275. expiring of the search timer.
  276. <legal all>
  277. flow_idx_invalid
  278. flow id is not valid
  279. <legal all>
  280. wifi_parser_error
  281. Indicates that the WiFi frame has one of the following
  282. errors
  283. o has less than minimum allowed bytes as per standard
  284. o has incomplete VLAN LLC/SNAP (only for non A-MSDUs)
  285. <legal all>
  286. amsdu_parser_error
  287. A-MSDU could not be properly de-agregated.
  288. <legal all>
  289. sa_is_valid
  290. Indicates that OLE found a valid SA entry
  291. da_is_valid
  292. Indicates that OLE found a valid DA entry
  293. da_is_mcbc
  294. Field Only valid if da_is_valid is set
  295. Indicates the DA address was a Multicast of Broadcast
  296. address.
  297. l3_header_padding
  298. Number of bytes padded to make sure that the L3 header
  299. will always start of a Dword boundary
  300. first_msdu
  301. Indicates the first MSDU of A-MSDU. If both first_msdu
  302. and last_msdu are set in the MSDU then this is a
  303. non-aggregated MSDU frame: normal MPDU. Interior MSDU in an
  304. A-MSDU shall have both first_mpdu and last_mpdu bits set to
  305. 0.
  306. last_msdu
  307. Indicates the last MSDU of the A-MSDU. MPDU end status
  308. is only valid when last_msdu is set.
  309. reserved_5a
  310. <legal 0>
  311. sa_idx
  312. The offset in the address table which matches the MAC
  313. source address.
  314. da_idx_or_sw_peer_id
  315. Based on a register configuration in RXOLE, this field
  316. will contain:
  317. The offset in the address table which matches the MAC
  318. destination address
  319. OR:
  320. sw_peer_id from the address search entry corresponding
  321. to the destination address of the MSDU
  322. msdu_drop
  323. When set, REO shall drop this MSDU and not forward it to
  324. any other ring...
  325. <legal all>
  326. reo_destination_indication
  327. The ID of the REO exit ring where the MSDU frame shall
  328. push after (MPDU level) reordering has finished.
  329. <enum 0 reo_destination_tcl> Reo will push the frame
  330. into the REO2TCL ring
  331. <enum 1 reo_destination_sw1> Reo will push the frame
  332. into the REO2SW1 ring
  333. <enum 2 reo_destination_sw2> Reo will push the frame
  334. into the REO2SW2 ring
  335. <enum 3 reo_destination_sw3> Reo will push the frame
  336. into the REO2SW3 ring
  337. <enum 4 reo_destination_sw4> Reo will push the frame
  338. into the REO2SW4 ring
  339. <enum 5 reo_destination_release> Reo will push the frame
  340. into the REO_release ring
  341. <enum 6 reo_destination_fw> Reo will push the frame into
  342. the REO2FW ring
  343. <enum 7 reo_destination_sw5> Reo will push the frame
  344. into the REO2SW5 ring
  345. <enum 8 reo_destination_sw6> Reo will push the frame
  346. into the REO2SW6 ring
  347. <enum 9 reo_destination_9> REO remaps this <enum 10
  348. reo_destination_10> REO remaps this
  349. <enum 11 reo_destination_11> REO remaps this
  350. <enum 12 reo_destination_12> REO remaps this <enum 13
  351. reo_destination_13> REO remaps this
  352. <enum 14 reo_destination_14> REO remaps this
  353. <enum 15 reo_destination_15> REO remaps this
  354. <enum 16 reo_destination_16> REO remaps this
  355. <enum 17 reo_destination_17> REO remaps this
  356. <enum 18 reo_destination_18> REO remaps this
  357. <enum 19 reo_destination_19> REO remaps this
  358. <enum 20 reo_destination_20> REO remaps this
  359. <enum 21 reo_destination_21> REO remaps this
  360. <enum 22 reo_destination_22> REO remaps this
  361. <enum 23 reo_destination_23> REO remaps this
  362. <enum 24 reo_destination_24> REO remaps this
  363. <enum 25 reo_destination_25> REO remaps this
  364. <enum 26 reo_destination_26> REO remaps this
  365. <enum 27 reo_destination_27> REO remaps this
  366. <enum 28 reo_destination_28> REO remaps this
  367. <enum 29 reo_destination_29> REO remaps this
  368. <enum 30 reo_destination_30> REO remaps this
  369. <enum 31 reo_destination_31> REO remaps this
  370. <legal all>
  371. flow_idx
  372. Flow table index
  373. <legal all>
  374. reserved_14
  375. <legal 0>
  376. fse_metadata
  377. FSE related meta data:
  378. <legal all>
  379. cce_metadata
  380. CCE related meta data:
  381. <legal all>
  382. sa_sw_peer_id
  383. sw_peer_id from the address search entry corresponding
  384. to the source address of the MSDU
  385. <legal all>
  386. rule_indication_31_0
  387. Bitmap indicating which of rules 31-0 have matched
  388. rule_indication_63_32
  389. Bitmap indicating which of rules 63-32 have matched
  390. aggregation_count
  391. FISA: Number of MSDU's aggregated so far
  392. Set to zero in chips not supporting FISA, e.g. Pine
  393. <legal all>
  394. flow_aggregation_continuation
  395. FISA: To indicate that this MSDU can be aggregated with
  396. the previous packet with the same flow id
  397. Set to zero in chips not supporting FISA, e.g. Pine
  398. <legal all>
  399. fisa_timeout
  400. FISA: To indicate that the aggregation has restarted for
  401. this flow due to timeout
  402. Set to zero in chips not supporting FISA, e.g. Pine
  403. <legal all>
  404. reserve_17a
  405. <legal 0>
  406. cumulative_l4_checksum
  407. FISA: checksum for MSDU's that is part of this flow
  408. aggregated so far
  409. Set to zero in chips not supporting FISA, e.g. Pine
  410. <legal all>
  411. cumulative_ip_length
  412. FISA: Total MSDU length that is part of this flow
  413. aggregated so far
  414. Set to zero in chips not supporting FISA, e.g. Pine
  415. <legal all>
  416. */
  417. /* Description RX_MSDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY
  418. Field indicates what the reason was that this MPDU frame
  419. was allowed to come into the receive path by RXPCU
  420. <enum 0 rxpcu_filter_pass> This MPDU passed the normal
  421. frame filter programming of rxpcu
  422. <enum 1 rxpcu_monitor_client> This MPDU did NOT pass the
  423. regular frame filter and would have been dropped, were it
  424. not for the frame fitting into the 'monitor_client'
  425. category.
  426. <enum 2 rxpcu_monitor_other> This MPDU did NOT pass the
  427. regular frame filter and also did not pass the
  428. rxpcu_monitor_client filter. It would have been dropped
  429. accept that it did pass the 'monitor_other' category.
  430. <legal 0-2>
  431. */
  432. #define RX_MSDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_OFFSET 0x00000000
  433. #define RX_MSDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_LSB 0
  434. #define RX_MSDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_MASK 0x00000003
  435. /* Description RX_MSDU_END_0_SW_FRAME_GROUP_ID
  436. SW processes frames based on certain classifications.
  437. This field indicates to what sw classification this MPDU is
  438. mapped.
  439. The classification is given in priority order
  440. <enum 0 sw_frame_group_NDP_frame>
  441. <enum 1 sw_frame_group_Multicast_data>
  442. <enum 2 sw_frame_group_Unicast_data>
  443. <enum 3 sw_frame_group_Null_data > This includes mpdus
  444. of type Data Null as well as QoS Data Null
  445. <enum 4 sw_frame_group_mgmt_0000 >
  446. <enum 5 sw_frame_group_mgmt_0001 >
  447. <enum 6 sw_frame_group_mgmt_0010 >
  448. <enum 7 sw_frame_group_mgmt_0011 >
  449. <enum 8 sw_frame_group_mgmt_0100 >
  450. <enum 9 sw_frame_group_mgmt_0101 >
  451. <enum 10 sw_frame_group_mgmt_0110 >
  452. <enum 11 sw_frame_group_mgmt_0111 >
  453. <enum 12 sw_frame_group_mgmt_1000 >
  454. <enum 13 sw_frame_group_mgmt_1001 >
  455. <enum 14 sw_frame_group_mgmt_1010 >
  456. <enum 15 sw_frame_group_mgmt_1011 >
  457. <enum 16 sw_frame_group_mgmt_1100 >
  458. <enum 17 sw_frame_group_mgmt_1101 >
  459. <enum 18 sw_frame_group_mgmt_1110 >
  460. <enum 19 sw_frame_group_mgmt_1111 >
  461. <enum 20 sw_frame_group_ctrl_0000 >
  462. <enum 21 sw_frame_group_ctrl_0001 >
  463. <enum 22 sw_frame_group_ctrl_0010 >
  464. <enum 23 sw_frame_group_ctrl_0011 >
  465. <enum 24 sw_frame_group_ctrl_0100 >
  466. <enum 25 sw_frame_group_ctrl_0101 >
  467. <enum 26 sw_frame_group_ctrl_0110 >
  468. <enum 27 sw_frame_group_ctrl_0111 >
  469. <enum 28 sw_frame_group_ctrl_1000 >
  470. <enum 29 sw_frame_group_ctrl_1001 >
  471. <enum 30 sw_frame_group_ctrl_1010 >
  472. <enum 31 sw_frame_group_ctrl_1011 >
  473. <enum 32 sw_frame_group_ctrl_1100 >
  474. <enum 33 sw_frame_group_ctrl_1101 >
  475. <enum 34 sw_frame_group_ctrl_1110 >
  476. <enum 35 sw_frame_group_ctrl_1111 >
  477. <enum 36 sw_frame_group_unsupported> This covers type 3
  478. and protocol version != 0
  479. <legal 0-37>
  480. */
  481. #define RX_MSDU_END_0_SW_FRAME_GROUP_ID_OFFSET 0x00000000
  482. #define RX_MSDU_END_0_SW_FRAME_GROUP_ID_LSB 2
  483. #define RX_MSDU_END_0_SW_FRAME_GROUP_ID_MASK 0x000001fc
  484. /* Description RX_MSDU_END_0_RESERVED_0
  485. <legal 0>
  486. */
  487. #define RX_MSDU_END_0_RESERVED_0_OFFSET 0x00000000
  488. #define RX_MSDU_END_0_RESERVED_0_LSB 9
  489. #define RX_MSDU_END_0_RESERVED_0_MASK 0x0000fe00
  490. /* Description RX_MSDU_END_0_PHY_PPDU_ID
  491. A ppdu counter value that PHY increments for every PPDU
  492. received. The counter value wraps around
  493. <legal all>
  494. */
  495. #define RX_MSDU_END_0_PHY_PPDU_ID_OFFSET 0x00000000
  496. #define RX_MSDU_END_0_PHY_PPDU_ID_LSB 16
  497. #define RX_MSDU_END_0_PHY_PPDU_ID_MASK 0xffff0000
  498. /* Description RX_MSDU_END_1_IP_HDR_CHKSUM
  499. This can include the IP header checksum or the pseudo
  500. header checksum used by TCP/UDP checksum.
  501. (with the first byte in the MSB and the second byte in
  502. the LSB, i.e. requiring a byte-swap for little-endian FW/SW
  503. w.r.t. the byte order in a packet)
  504. */
  505. #define RX_MSDU_END_1_IP_HDR_CHKSUM_OFFSET 0x00000004
  506. #define RX_MSDU_END_1_IP_HDR_CHKSUM_LSB 0
  507. #define RX_MSDU_END_1_IP_HDR_CHKSUM_MASK 0x0000ffff
  508. /* Description RX_MSDU_END_1_REPORTED_MPDU_LENGTH
  509. MPDU length before decapsulation. Only valid when
  510. first_msdu is set. This field is taken directly from the
  511. length field of the A-MPDU delimiter or the preamble length
  512. field for non-A-MPDU frames.
  513. */
  514. #define RX_MSDU_END_1_REPORTED_MPDU_LENGTH_OFFSET 0x00000004
  515. #define RX_MSDU_END_1_REPORTED_MPDU_LENGTH_LSB 16
  516. #define RX_MSDU_END_1_REPORTED_MPDU_LENGTH_MASK 0x3fff0000
  517. /* Description RX_MSDU_END_1_RESERVED_1A
  518. <legal 0>
  519. */
  520. #define RX_MSDU_END_1_RESERVED_1A_OFFSET 0x00000004
  521. #define RX_MSDU_END_1_RESERVED_1A_LSB 30
  522. #define RX_MSDU_END_1_RESERVED_1A_MASK 0xc0000000
  523. /* Description RX_MSDU_END_2_KEY_ID_OCTET
  524. The key ID octet from the IV. Only valid when
  525. first_msdu is set.
  526. */
  527. #define RX_MSDU_END_2_KEY_ID_OCTET_OFFSET 0x00000008
  528. #define RX_MSDU_END_2_KEY_ID_OCTET_LSB 0
  529. #define RX_MSDU_END_2_KEY_ID_OCTET_MASK 0x000000ff
  530. /* Description RX_MSDU_END_2_CCE_SUPER_RULE
  531. Indicates the super filter rule
  532. */
  533. #define RX_MSDU_END_2_CCE_SUPER_RULE_OFFSET 0x00000008
  534. #define RX_MSDU_END_2_CCE_SUPER_RULE_LSB 8
  535. #define RX_MSDU_END_2_CCE_SUPER_RULE_MASK 0x00003f00
  536. /* Description RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_TRUNCATE
  537. Classification failed due to truncated frame
  538. */
  539. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_TRUNCATE_OFFSET 0x00000008
  540. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_TRUNCATE_LSB 14
  541. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_TRUNCATE_MASK 0x00004000
  542. /* Description RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_CCE_DIS
  543. Classification failed due to CCE global disable
  544. */
  545. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_CCE_DIS_OFFSET 0x00000008
  546. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_CCE_DIS_LSB 15
  547. #define RX_MSDU_END_2_CCE_CLASSIFY_NOT_DONE_CCE_DIS_MASK 0x00008000
  548. /* Description RX_MSDU_END_2_EXT_WAPI_PN_63_48
  549. Extension PN (packet number) which is only used by WAPI.
  550. This corresponds to WAPI PN bits [63:48] (pn6 and pn7).
  551. The WAPI PN bits [63:0] are in the pn field of the
  552. rx_mpdu_start descriptor.
  553. */
  554. #define RX_MSDU_END_2_EXT_WAPI_PN_63_48_OFFSET 0x00000008
  555. #define RX_MSDU_END_2_EXT_WAPI_PN_63_48_LSB 16
  556. #define RX_MSDU_END_2_EXT_WAPI_PN_63_48_MASK 0xffff0000
  557. /* Description RX_MSDU_END_3_EXT_WAPI_PN_95_64
  558. Extension PN (packet number) which is only used by WAPI.
  559. This corresponds to WAPI PN bits [95:64] (pn8, pn9, pn10
  560. and pn11).
  561. */
  562. #define RX_MSDU_END_3_EXT_WAPI_PN_95_64_OFFSET 0x0000000c
  563. #define RX_MSDU_END_3_EXT_WAPI_PN_95_64_LSB 0
  564. #define RX_MSDU_END_3_EXT_WAPI_PN_95_64_MASK 0xffffffff
  565. /* Description RX_MSDU_END_4_EXT_WAPI_PN_127_96
  566. Extension PN (packet number) which is only used by WAPI.
  567. This corresponds to WAPI PN bits [127:96] (pn12, pn13,
  568. pn14, pn15).
  569. */
  570. #define RX_MSDU_END_4_EXT_WAPI_PN_127_96_OFFSET 0x00000010
  571. #define RX_MSDU_END_4_EXT_WAPI_PN_127_96_LSB 0
  572. #define RX_MSDU_END_4_EXT_WAPI_PN_127_96_MASK 0xffffffff
  573. /* Description RX_MSDU_END_5_DA_OFFSET
  574. Offset into MSDU buffer for DA
  575. */
  576. #define RX_MSDU_END_5_DA_OFFSET_OFFSET 0x00000014
  577. #define RX_MSDU_END_5_DA_OFFSET_LSB 0
  578. #define RX_MSDU_END_5_DA_OFFSET_MASK 0x0000003f
  579. /* Description RX_MSDU_END_5_SA_OFFSET
  580. Offset into MSDU buffer for SA
  581. */
  582. #define RX_MSDU_END_5_SA_OFFSET_OFFSET 0x00000014
  583. #define RX_MSDU_END_5_SA_OFFSET_LSB 6
  584. #define RX_MSDU_END_5_SA_OFFSET_MASK 0x00000fc0
  585. /* Description RX_MSDU_END_5_DA_OFFSET_VALID
  586. da_offset field is valid. This will be set to 0 in case
  587. of a dynamic A-MSDU when DA is compressed
  588. */
  589. #define RX_MSDU_END_5_DA_OFFSET_VALID_OFFSET 0x00000014
  590. #define RX_MSDU_END_5_DA_OFFSET_VALID_LSB 12
  591. #define RX_MSDU_END_5_DA_OFFSET_VALID_MASK 0x00001000
  592. /* Description RX_MSDU_END_5_SA_OFFSET_VALID
  593. sa_offset field is valid. This will be set to 0 in case
  594. of a dynamic A-MSDU when SA is compressed
  595. */
  596. #define RX_MSDU_END_5_SA_OFFSET_VALID_OFFSET 0x00000014
  597. #define RX_MSDU_END_5_SA_OFFSET_VALID_LSB 13
  598. #define RX_MSDU_END_5_SA_OFFSET_VALID_MASK 0x00002000
  599. /* Description RX_MSDU_END_5_RESERVED_10A
  600. <legal 0>
  601. */
  602. #define RX_MSDU_END_5_RESERVED_10A_OFFSET 0x00000014
  603. #define RX_MSDU_END_5_RESERVED_10A_LSB 14
  604. #define RX_MSDU_END_5_RESERVED_10A_MASK 0x0000c000
  605. /* Description RX_MSDU_END_5_L3_TYPE
  606. The 16-bit type value indicating the type of L3 later
  607. extracted from LLC/SNAP, set to zero if SNAP is not
  608. available
  609. */
  610. #define RX_MSDU_END_5_L3_TYPE_OFFSET 0x00000014
  611. #define RX_MSDU_END_5_L3_TYPE_LSB 16
  612. #define RX_MSDU_END_5_L3_TYPE_MASK 0xffff0000
  613. /* Description RX_MSDU_END_6_IPV6_OPTIONS_CRC
  614. 32 bit CRC computed out of IP v6 extension headers
  615. */
  616. #define RX_MSDU_END_6_IPV6_OPTIONS_CRC_OFFSET 0x00000018
  617. #define RX_MSDU_END_6_IPV6_OPTIONS_CRC_LSB 0
  618. #define RX_MSDU_END_6_IPV6_OPTIONS_CRC_MASK 0xffffffff
  619. /* Description RX_MSDU_END_7_TCP_SEQ_NUMBER
  620. TCP sequence number (as a number assembled from a TCP
  621. packet in big-endian order, i.e. requiring a byte-swap for
  622. little-endian FW/SW w.r.t. the byte order in a packet)
  623. */
  624. #define RX_MSDU_END_7_TCP_SEQ_NUMBER_OFFSET 0x0000001c
  625. #define RX_MSDU_END_7_TCP_SEQ_NUMBER_LSB 0
  626. #define RX_MSDU_END_7_TCP_SEQ_NUMBER_MASK 0xffffffff
  627. /* Description RX_MSDU_END_8_TCP_ACK_NUMBER
  628. TCP acknowledge number (as a number assembled from a TCP
  629. packet in big-endian order, i.e. requiring a byte-swap for
  630. little-endian FW/SW w.r.t. the byte order in a packet)
  631. */
  632. #define RX_MSDU_END_8_TCP_ACK_NUMBER_OFFSET 0x00000020
  633. #define RX_MSDU_END_8_TCP_ACK_NUMBER_LSB 0
  634. #define RX_MSDU_END_8_TCP_ACK_NUMBER_MASK 0xffffffff
  635. /* Description RX_MSDU_END_9_TCP_FLAG
  636. TCP flags
  637. {NS,CWR,ECE,URG,ACK,PSH, RST ,SYN,FIN}(with the NS bit
  638. in bit 8 and the FIN bit in bit 0, i.e. in big-endian order,
  639. i.e. requiring a byte-swap for little-endian FW/SW w.r.t.
  640. the byte order in a packet)
  641. */
  642. #define RX_MSDU_END_9_TCP_FLAG_OFFSET 0x00000024
  643. #define RX_MSDU_END_9_TCP_FLAG_LSB 0
  644. #define RX_MSDU_END_9_TCP_FLAG_MASK 0x000001ff
  645. /* Description RX_MSDU_END_9_LRO_ELIGIBLE
  646. Computed out of TCP and IP fields to indicate that this
  647. MSDU is eligible for LRO
  648. */
  649. #define RX_MSDU_END_9_LRO_ELIGIBLE_OFFSET 0x00000024
  650. #define RX_MSDU_END_9_LRO_ELIGIBLE_LSB 9
  651. #define RX_MSDU_END_9_LRO_ELIGIBLE_MASK 0x00000200
  652. /* Description RX_MSDU_END_9_RESERVED_9A
  653. NOTE: DO not assign a field... Internally used in
  654. RXOLE..
  655. <legal 0>
  656. */
  657. #define RX_MSDU_END_9_RESERVED_9A_OFFSET 0x00000024
  658. #define RX_MSDU_END_9_RESERVED_9A_LSB 10
  659. #define RX_MSDU_END_9_RESERVED_9A_MASK 0x0000fc00
  660. /* Description RX_MSDU_END_9_WINDOW_SIZE
  661. TCP receive window size (as a number assembled from a
  662. TCP packet in big-endian order, i.e. requiring a byte-swap
  663. for little-endian FW/SW w.r.t. the byte order in a packet)
  664. */
  665. #define RX_MSDU_END_9_WINDOW_SIZE_OFFSET 0x00000024
  666. #define RX_MSDU_END_9_WINDOW_SIZE_LSB 16
  667. #define RX_MSDU_END_9_WINDOW_SIZE_MASK 0xffff0000
  668. /* Description RX_MSDU_END_10_TCP_UDP_CHKSUM
  669. The value of the computed TCP/UDP checksum. A mode bit
  670. selects whether this checksum is the full checksum or the
  671. partial checksum which does not include the pseudo header.
  672. (with the first byte in the MSB and the second byte in the
  673. LSB, i.e. requiring a byte-swap for little-endian FW/SW
  674. w.r.t. the byte order in a packet)
  675. */
  676. #define RX_MSDU_END_10_TCP_UDP_CHKSUM_OFFSET 0x00000028
  677. #define RX_MSDU_END_10_TCP_UDP_CHKSUM_LSB 0
  678. #define RX_MSDU_END_10_TCP_UDP_CHKSUM_MASK 0x0000ffff
  679. /* Description RX_MSDU_END_10_SA_IDX_TIMEOUT
  680. Indicates an unsuccessful MAC source address search due
  681. to the expiring of the search timer.
  682. */
  683. #define RX_MSDU_END_10_SA_IDX_TIMEOUT_OFFSET 0x00000028
  684. #define RX_MSDU_END_10_SA_IDX_TIMEOUT_LSB 16
  685. #define RX_MSDU_END_10_SA_IDX_TIMEOUT_MASK 0x00010000
  686. /* Description RX_MSDU_END_10_DA_IDX_TIMEOUT
  687. Indicates an unsuccessful MAC destination address search
  688. due to the expiring of the search timer.
  689. */
  690. #define RX_MSDU_END_10_DA_IDX_TIMEOUT_OFFSET 0x00000028
  691. #define RX_MSDU_END_10_DA_IDX_TIMEOUT_LSB 17
  692. #define RX_MSDU_END_10_DA_IDX_TIMEOUT_MASK 0x00020000
  693. /* Description RX_MSDU_END_10_MSDU_LIMIT_ERROR
  694. Indicates that the MSDU threshold was exceeded and thus
  695. all the rest of the MSDUs will not be scattered and will not
  696. be decapsulated but will be DMA'ed in RAW format as a single
  697. MSDU buffer
  698. */
  699. #define RX_MSDU_END_10_MSDU_LIMIT_ERROR_OFFSET 0x00000028
  700. #define RX_MSDU_END_10_MSDU_LIMIT_ERROR_LSB 18
  701. #define RX_MSDU_END_10_MSDU_LIMIT_ERROR_MASK 0x00040000
  702. /* Description RX_MSDU_END_10_FLOW_IDX_TIMEOUT
  703. Indicates an unsuccessful flow search due to the
  704. expiring of the search timer.
  705. <legal all>
  706. */
  707. #define RX_MSDU_END_10_FLOW_IDX_TIMEOUT_OFFSET 0x00000028
  708. #define RX_MSDU_END_10_FLOW_IDX_TIMEOUT_LSB 19
  709. #define RX_MSDU_END_10_FLOW_IDX_TIMEOUT_MASK 0x00080000
  710. /* Description RX_MSDU_END_10_FLOW_IDX_INVALID
  711. flow id is not valid
  712. <legal all>
  713. */
  714. #define RX_MSDU_END_10_FLOW_IDX_INVALID_OFFSET 0x00000028
  715. #define RX_MSDU_END_10_FLOW_IDX_INVALID_LSB 20
  716. #define RX_MSDU_END_10_FLOW_IDX_INVALID_MASK 0x00100000
  717. /* Description RX_MSDU_END_10_WIFI_PARSER_ERROR
  718. Indicates that the WiFi frame has one of the following
  719. errors
  720. o has less than minimum allowed bytes as per standard
  721. o has incomplete VLAN LLC/SNAP (only for non A-MSDUs)
  722. <legal all>
  723. */
  724. #define RX_MSDU_END_10_WIFI_PARSER_ERROR_OFFSET 0x00000028
  725. #define RX_MSDU_END_10_WIFI_PARSER_ERROR_LSB 21
  726. #define RX_MSDU_END_10_WIFI_PARSER_ERROR_MASK 0x00200000
  727. /* Description RX_MSDU_END_10_AMSDU_PARSER_ERROR
  728. A-MSDU could not be properly de-agregated.
  729. <legal all>
  730. */
  731. #define RX_MSDU_END_10_AMSDU_PARSER_ERROR_OFFSET 0x00000028
  732. #define RX_MSDU_END_10_AMSDU_PARSER_ERROR_LSB 22
  733. #define RX_MSDU_END_10_AMSDU_PARSER_ERROR_MASK 0x00400000
  734. /* Description RX_MSDU_END_10_SA_IS_VALID
  735. Indicates that OLE found a valid SA entry
  736. */
  737. #define RX_MSDU_END_10_SA_IS_VALID_OFFSET 0x00000028
  738. #define RX_MSDU_END_10_SA_IS_VALID_LSB 23
  739. #define RX_MSDU_END_10_SA_IS_VALID_MASK 0x00800000
  740. /* Description RX_MSDU_END_10_DA_IS_VALID
  741. Indicates that OLE found a valid DA entry
  742. */
  743. #define RX_MSDU_END_10_DA_IS_VALID_OFFSET 0x00000028
  744. #define RX_MSDU_END_10_DA_IS_VALID_LSB 24
  745. #define RX_MSDU_END_10_DA_IS_VALID_MASK 0x01000000
  746. /* Description RX_MSDU_END_10_DA_IS_MCBC
  747. Field Only valid if da_is_valid is set
  748. Indicates the DA address was a Multicast of Broadcast
  749. address.
  750. */
  751. #define RX_MSDU_END_10_DA_IS_MCBC_OFFSET 0x00000028
  752. #define RX_MSDU_END_10_DA_IS_MCBC_LSB 25
  753. #define RX_MSDU_END_10_DA_IS_MCBC_MASK 0x02000000
  754. /* Description RX_MSDU_END_10_L3_HEADER_PADDING
  755. Number of bytes padded to make sure that the L3 header
  756. will always start of a Dword boundary
  757. */
  758. #define RX_MSDU_END_10_L3_HEADER_PADDING_OFFSET 0x00000028
  759. #define RX_MSDU_END_10_L3_HEADER_PADDING_LSB 26
  760. #define RX_MSDU_END_10_L3_HEADER_PADDING_MASK 0x0c000000
  761. /* Description RX_MSDU_END_10_FIRST_MSDU
  762. Indicates the first MSDU of A-MSDU. If both first_msdu
  763. and last_msdu are set in the MSDU then this is a
  764. non-aggregated MSDU frame: normal MPDU. Interior MSDU in an
  765. A-MSDU shall have both first_mpdu and last_mpdu bits set to
  766. 0.
  767. */
  768. #define RX_MSDU_END_10_FIRST_MSDU_OFFSET 0x00000028
  769. #define RX_MSDU_END_10_FIRST_MSDU_LSB 28
  770. #define RX_MSDU_END_10_FIRST_MSDU_MASK 0x10000000
  771. /* Description RX_MSDU_END_10_LAST_MSDU
  772. Indicates the last MSDU of the A-MSDU. MPDU end status
  773. is only valid when last_msdu is set.
  774. */
  775. #define RX_MSDU_END_10_LAST_MSDU_OFFSET 0x00000028
  776. #define RX_MSDU_END_10_LAST_MSDU_LSB 29
  777. #define RX_MSDU_END_10_LAST_MSDU_MASK 0x20000000
  778. /* Description RX_MSDU_END_10_RESERVED_5A
  779. <legal 0>
  780. */
  781. #define RX_MSDU_END_10_RESERVED_5A_OFFSET 0x00000028
  782. #define RX_MSDU_END_10_RESERVED_5A_LSB 30
  783. #define RX_MSDU_END_10_RESERVED_5A_MASK 0xc0000000
  784. /* Description RX_MSDU_END_11_SA_IDX
  785. The offset in the address table which matches the MAC
  786. source address.
  787. */
  788. #define RX_MSDU_END_11_SA_IDX_OFFSET 0x0000002c
  789. #define RX_MSDU_END_11_SA_IDX_LSB 0
  790. #define RX_MSDU_END_11_SA_IDX_MASK 0x0000ffff
  791. /* Description RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID
  792. Based on a register configuration in RXOLE, this field
  793. will contain:
  794. The offset in the address table which matches the MAC
  795. destination address
  796. OR:
  797. sw_peer_id from the address search entry corresponding
  798. to the destination address of the MSDU
  799. */
  800. #define RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_OFFSET 0x0000002c
  801. #define RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_LSB 16
  802. #define RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_MASK 0xffff0000
  803. /* Description RX_MSDU_END_12_MSDU_DROP
  804. When set, REO shall drop this MSDU and not forward it to
  805. any other ring...
  806. <legal all>
  807. */
  808. #define RX_MSDU_END_12_MSDU_DROP_OFFSET 0x00000030
  809. #define RX_MSDU_END_12_MSDU_DROP_LSB 0
  810. #define RX_MSDU_END_12_MSDU_DROP_MASK 0x00000001
  811. /* Description RX_MSDU_END_12_REO_DESTINATION_INDICATION
  812. The ID of the REO exit ring where the MSDU frame shall
  813. push after (MPDU level) reordering has finished.
  814. <enum 0 reo_destination_tcl> Reo will push the frame
  815. into the REO2TCL ring
  816. <enum 1 reo_destination_sw1> Reo will push the frame
  817. into the REO2SW1 ring
  818. <enum 2 reo_destination_sw2> Reo will push the frame
  819. into the REO2SW2 ring
  820. <enum 3 reo_destination_sw3> Reo will push the frame
  821. into the REO2SW3 ring
  822. <enum 4 reo_destination_sw4> Reo will push the frame
  823. into the REO2SW4 ring
  824. <enum 5 reo_destination_release> Reo will push the frame
  825. into the REO_release ring
  826. <enum 6 reo_destination_fw> Reo will push the frame into
  827. the REO2FW ring
  828. <enum 7 reo_destination_sw5> Reo will push the frame
  829. into the REO2SW5 ring
  830. <enum 8 reo_destination_sw6> Reo will push the frame
  831. into the REO2SW6 ring
  832. <enum 9 reo_destination_9> REO remaps this <enum 10
  833. reo_destination_10> REO remaps this
  834. <enum 11 reo_destination_11> REO remaps this
  835. <enum 12 reo_destination_12> REO remaps this <enum 13
  836. reo_destination_13> REO remaps this
  837. <enum 14 reo_destination_14> REO remaps this
  838. <enum 15 reo_destination_15> REO remaps this
  839. <enum 16 reo_destination_16> REO remaps this
  840. <enum 17 reo_destination_17> REO remaps this
  841. <enum 18 reo_destination_18> REO remaps this
  842. <enum 19 reo_destination_19> REO remaps this
  843. <enum 20 reo_destination_20> REO remaps this
  844. <enum 21 reo_destination_21> REO remaps this
  845. <enum 22 reo_destination_22> REO remaps this
  846. <enum 23 reo_destination_23> REO remaps this
  847. <enum 24 reo_destination_24> REO remaps this
  848. <enum 25 reo_destination_25> REO remaps this
  849. <enum 26 reo_destination_26> REO remaps this
  850. <enum 27 reo_destination_27> REO remaps this
  851. <enum 28 reo_destination_28> REO remaps this
  852. <enum 29 reo_destination_29> REO remaps this
  853. <enum 30 reo_destination_30> REO remaps this
  854. <enum 31 reo_destination_31> REO remaps this
  855. <legal all>
  856. */
  857. #define RX_MSDU_END_12_REO_DESTINATION_INDICATION_OFFSET 0x00000030
  858. #define RX_MSDU_END_12_REO_DESTINATION_INDICATION_LSB 1
  859. #define RX_MSDU_END_12_REO_DESTINATION_INDICATION_MASK 0x0000003e
  860. /* Description RX_MSDU_END_12_FLOW_IDX
  861. Flow table index
  862. <legal all>
  863. */
  864. #define RX_MSDU_END_12_FLOW_IDX_OFFSET 0x00000030
  865. #define RX_MSDU_END_12_FLOW_IDX_LSB 6
  866. #define RX_MSDU_END_12_FLOW_IDX_MASK 0x03ffffc0
  867. /* Description RX_MSDU_END_12_RESERVED_14
  868. <legal 0>
  869. */
  870. #define RX_MSDU_END_12_RESERVED_14_OFFSET 0x00000030
  871. #define RX_MSDU_END_12_RESERVED_14_LSB 26
  872. #define RX_MSDU_END_12_RESERVED_14_MASK 0xfc000000
  873. /* Description RX_MSDU_END_13_FSE_METADATA
  874. FSE related meta data:
  875. <legal all>
  876. */
  877. #define RX_MSDU_END_13_FSE_METADATA_OFFSET 0x00000034
  878. #define RX_MSDU_END_13_FSE_METADATA_LSB 0
  879. #define RX_MSDU_END_13_FSE_METADATA_MASK 0xffffffff
  880. /* Description RX_MSDU_END_14_CCE_METADATA
  881. CCE related meta data:
  882. <legal all>
  883. */
  884. #define RX_MSDU_END_14_CCE_METADATA_OFFSET 0x00000038
  885. #define RX_MSDU_END_14_CCE_METADATA_LSB 0
  886. #define RX_MSDU_END_14_CCE_METADATA_MASK 0x0000ffff
  887. /* Description RX_MSDU_END_14_SA_SW_PEER_ID
  888. sw_peer_id from the address search entry corresponding
  889. to the source address of the MSDU
  890. <legal all>
  891. */
  892. #define RX_MSDU_END_14_SA_SW_PEER_ID_OFFSET 0x00000038
  893. #define RX_MSDU_END_14_SA_SW_PEER_ID_LSB 16
  894. #define RX_MSDU_END_14_SA_SW_PEER_ID_MASK 0xffff0000
  895. /* Description RX_MSDU_END_15_RULE_INDICATION_31_0
  896. Bitmap indicating which of rules 31-0 have matched
  897. */
  898. #define RX_MSDU_END_15_RULE_INDICATION_31_0_OFFSET 0x0000003c
  899. #define RX_MSDU_END_15_RULE_INDICATION_31_0_LSB 0
  900. #define RX_MSDU_END_15_RULE_INDICATION_31_0_MASK 0xffffffff
  901. /* Description RX_MSDU_END_16_RULE_INDICATION_63_32
  902. Bitmap indicating which of rules 63-32 have matched
  903. */
  904. #define RX_MSDU_END_16_RULE_INDICATION_63_32_OFFSET 0x00000040
  905. #define RX_MSDU_END_16_RULE_INDICATION_63_32_LSB 0
  906. #define RX_MSDU_END_16_RULE_INDICATION_63_32_MASK 0xffffffff
  907. /* Description RX_MSDU_END_17_AGGREGATION_COUNT
  908. FISA: Number of MSDU's aggregated so far
  909. Set to zero in chips not supporting FISA, e.g. Pine
  910. <legal all>
  911. */
  912. #define RX_MSDU_END_17_AGGREGATION_COUNT_OFFSET 0x00000044
  913. #define RX_MSDU_END_17_AGGREGATION_COUNT_LSB 0
  914. #define RX_MSDU_END_17_AGGREGATION_COUNT_MASK 0x000000ff
  915. /* Description RX_MSDU_END_17_FLOW_AGGREGATION_CONTINUATION
  916. FISA: To indicate that this MSDU can be aggregated with
  917. the previous packet with the same flow id
  918. Set to zero in chips not supporting FISA, e.g. Pine
  919. <legal all>
  920. */
  921. #define RX_MSDU_END_17_FLOW_AGGREGATION_CONTINUATION_OFFSET 0x00000044
  922. #define RX_MSDU_END_17_FLOW_AGGREGATION_CONTINUATION_LSB 8
  923. #define RX_MSDU_END_17_FLOW_AGGREGATION_CONTINUATION_MASK 0x00000100
  924. /* Description RX_MSDU_END_17_FISA_TIMEOUT
  925. FISA: To indicate that the aggregation has restarted for
  926. this flow due to timeout
  927. Set to zero in chips not supporting FISA, e.g. Pine
  928. <legal all>
  929. */
  930. #define RX_MSDU_END_17_FISA_TIMEOUT_OFFSET 0x00000044
  931. #define RX_MSDU_END_17_FISA_TIMEOUT_LSB 9
  932. #define RX_MSDU_END_17_FISA_TIMEOUT_MASK 0x00000200
  933. /* Description RX_MSDU_END_17_RESERVE_17A
  934. <legal 0>
  935. */
  936. #define RX_MSDU_END_17_RESERVE_17A_OFFSET 0x00000044
  937. #define RX_MSDU_END_17_RESERVE_17A_LSB 10
  938. #define RX_MSDU_END_17_RESERVE_17A_MASK 0xfffffc00
  939. /* Description RX_MSDU_END_18_CUMULATIVE_L4_CHECKSUM
  940. FISA: checksum for MSDU's that is part of this flow
  941. aggregated so far
  942. Set to zero in chips not supporting FISA, e.g. Pine
  943. <legal all>
  944. */
  945. #define RX_MSDU_END_18_CUMULATIVE_L4_CHECKSUM_OFFSET 0x00000048
  946. #define RX_MSDU_END_18_CUMULATIVE_L4_CHECKSUM_LSB 0
  947. #define RX_MSDU_END_18_CUMULATIVE_L4_CHECKSUM_MASK 0x0000ffff
  948. /* Description RX_MSDU_END_18_CUMULATIVE_IP_LENGTH
  949. FISA: Total MSDU length that is part of this flow
  950. aggregated so far
  951. Set to zero in chips not supporting FISA, e.g. Pine
  952. <legal all>
  953. */
  954. #define RX_MSDU_END_18_CUMULATIVE_IP_LENGTH_OFFSET 0x00000048
  955. #define RX_MSDU_END_18_CUMULATIVE_IP_LENGTH_LSB 16
  956. #define RX_MSDU_END_18_CUMULATIVE_IP_LENGTH_MASK 0xffff0000
  957. #endif // _RX_MSDU_END_H_