1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2020 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name // $ATH_LICENSE_HW_HDR_C$ 18*5113495bSYour Name // 19*5113495bSYour Name // DO NOT EDIT! This file is automatically generated 20*5113495bSYour Name // These definitions are tied to a particular hardware layout 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name #ifndef _TCL_DATA_CMD_H_ 24*5113495bSYour Name #define _TCL_DATA_CMD_H_ 25*5113495bSYour Name #if !defined(__ASSEMBLER__) 26*5113495bSYour Name #endif 27*5113495bSYour Name 28*5113495bSYour Name #include "buffer_addr_info.h" 29*5113495bSYour Name 30*5113495bSYour Name // ################ START SUMMARY ################# 31*5113495bSYour Name // 32*5113495bSYour Name // Dword Fields 33*5113495bSYour Name // 0-1 struct buffer_addr_info buf_addr_info; 34*5113495bSYour Name // 2 buf_or_ext_desc_type[0], epd[1], encap_type[3:2], encrypt_type[7:4], src_buffer_swap[8], link_meta_swap[9], reserved_2a[11:10], search_type[13:12], addrx_en[14], addry_en[15], tcl_cmd_number[31:16] 35*5113495bSYour Name // 3 data_length[15:0], ipv4_checksum_en[16], udp_over_ipv4_checksum_en[17], udp_over_ipv6_checksum_en[18], tcp_over_ipv4_checksum_en[19], tcp_over_ipv6_checksum_en[20], to_fw[21], reserved_3a[22], packet_offset[31:23] 36*5113495bSYour Name // 4 buffer_timestamp[18:0], buffer_timestamp_valid[19], mesh_enable[20], hlos_tid_overwrite[21], hlos_tid[25:22], lmac_id[27:26], reserved_4[31:28] 37*5113495bSYour Name // 5 dscp_tid_table_num[5:0], search_index[25:6], cache_set_num[29:26], reserved_5[31:30] 38*5113495bSYour Name // 6 reserved_6a[19:0], ring_id[27:20], looping_count[31:28] 39*5113495bSYour Name // 40*5113495bSYour Name // ################ END SUMMARY ################# 41*5113495bSYour Name 42*5113495bSYour Name #define NUM_OF_DWORDS_TCL_DATA_CMD 7 43*5113495bSYour Name 44*5113495bSYour Name struct tcl_data_cmd { 45*5113495bSYour Name struct buffer_addr_info buf_addr_info; 46*5113495bSYour Name uint32_t buf_or_ext_desc_type : 1, //[0] 47*5113495bSYour Name epd : 1, //[1] 48*5113495bSYour Name encap_type : 2, //[3:2] 49*5113495bSYour Name encrypt_type : 4, //[7:4] 50*5113495bSYour Name src_buffer_swap : 1, //[8] 51*5113495bSYour Name link_meta_swap : 1, //[9] 52*5113495bSYour Name reserved_2a : 2, //[11:10] 53*5113495bSYour Name search_type : 2, //[13:12] 54*5113495bSYour Name addrx_en : 1, //[14] 55*5113495bSYour Name addry_en : 1, //[15] 56*5113495bSYour Name tcl_cmd_number : 16; //[31:16] 57*5113495bSYour Name uint32_t data_length : 16, //[15:0] 58*5113495bSYour Name ipv4_checksum_en : 1, //[16] 59*5113495bSYour Name udp_over_ipv4_checksum_en : 1, //[17] 60*5113495bSYour Name udp_over_ipv6_checksum_en : 1, //[18] 61*5113495bSYour Name tcp_over_ipv4_checksum_en : 1, //[19] 62*5113495bSYour Name tcp_over_ipv6_checksum_en : 1, //[20] 63*5113495bSYour Name to_fw : 1, //[21] 64*5113495bSYour Name reserved_3a : 1, //[22] 65*5113495bSYour Name packet_offset : 9; //[31:23] 66*5113495bSYour Name uint32_t buffer_timestamp : 19, //[18:0] 67*5113495bSYour Name buffer_timestamp_valid : 1, //[19] 68*5113495bSYour Name mesh_enable : 1, //[20] 69*5113495bSYour Name hlos_tid_overwrite : 1, //[21] 70*5113495bSYour Name hlos_tid : 4, //[25:22] 71*5113495bSYour Name lmac_id : 2, //[27:26] 72*5113495bSYour Name reserved_4 : 4; //[31:28] 73*5113495bSYour Name uint32_t dscp_tid_table_num : 6, //[5:0] 74*5113495bSYour Name search_index : 20, //[25:6] 75*5113495bSYour Name cache_set_num : 4, //[29:26] 76*5113495bSYour Name reserved_5 : 2; //[31:30] 77*5113495bSYour Name uint32_t reserved_6a : 20, //[19:0] 78*5113495bSYour Name ring_id : 8, //[27:20] 79*5113495bSYour Name looping_count : 4; //[31:28] 80*5113495bSYour Name }; 81*5113495bSYour Name 82*5113495bSYour Name /* 83*5113495bSYour Name 84*5113495bSYour Name struct buffer_addr_info buf_addr_info 85*5113495bSYour Name 86*5113495bSYour Name Details of the physical address for a single buffer 87*5113495bSYour Name 88*5113495bSYour Name It also contains return ownership info as well as some 89*5113495bSYour Name meta data for SW related to this buffer. 90*5113495bSYour Name 91*5113495bSYour Name 92*5113495bSYour Name 93*5113495bSYour Name In case of Buf_or_ext_desc_type indicating 94*5113495bSYour Name 'MSDU_buffer', this address indicates the start of the meta 95*5113495bSYour Name data that is preceding the actual packet data. 96*5113495bSYour Name 97*5113495bSYour Name The start of the actual packet data is provided by 98*5113495bSYour Name field: Packet_offset 99*5113495bSYour Name 100*5113495bSYour Name buf_or_ext_desc_type 101*5113495bSYour Name 102*5113495bSYour Name <enum 0 MSDU_buffer> The address points to an MSDU 103*5113495bSYour Name buffer. 104*5113495bSYour Name 105*5113495bSYour Name <enum 1 extension_descriptor> The address points to an 106*5113495bSYour Name MSDU link extension descriptor 107*5113495bSYour Name 108*5113495bSYour Name < legal all> 109*5113495bSYour Name 110*5113495bSYour Name epd 111*5113495bSYour Name 112*5113495bSYour Name When this bit is set then input packet is an EPD type 113*5113495bSYour Name 114*5113495bSYour Name <legal all> 115*5113495bSYour Name 116*5113495bSYour Name encap_type 117*5113495bSYour Name 118*5113495bSYour Name Indicates the encapsulation that HW will perform: 119*5113495bSYour Name 120*5113495bSYour Name <enum 0 RAW> No encapsulation 121*5113495bSYour Name 122*5113495bSYour Name <enum 1 Native_WiFi> 123*5113495bSYour Name 124*5113495bSYour Name <enum 2 Ethernet> Ethernet 2 (DIX) or 802.3 (uses 125*5113495bSYour Name SNAP/LLC) 126*5113495bSYour Name 127*5113495bSYour Name <enum 3 802_3> DO NOT USE. Indicate Ethernet 128*5113495bSYour Name 129*5113495bSYour Name 130*5113495bSYour Name 131*5113495bSYour Name Used by the OLE during encapsulation. 132*5113495bSYour Name 133*5113495bSYour Name <legal all> 134*5113495bSYour Name 135*5113495bSYour Name encrypt_type 136*5113495bSYour Name 137*5113495bSYour Name Field only valid for encap_type: RAW 138*5113495bSYour Name 139*5113495bSYour Name 140*5113495bSYour Name 141*5113495bSYour Name Indicates type of decrypt cipher used (as defined in the 142*5113495bSYour Name peer entry) 143*5113495bSYour Name 144*5113495bSYour Name <enum 0 wep_40> WEP 40-bit 145*5113495bSYour Name 146*5113495bSYour Name <enum 1 wep_104> WEP 104-bit 147*5113495bSYour Name 148*5113495bSYour Name <enum 2 tkip_no_mic> TKIP without MIC 149*5113495bSYour Name 150*5113495bSYour Name <enum 3 wep_128> WEP 128-bit 151*5113495bSYour Name 152*5113495bSYour Name <enum 4 tkip_with_mic> TKIP with MIC 153*5113495bSYour Name 154*5113495bSYour Name <enum 5 wapi> WAPI 155*5113495bSYour Name 156*5113495bSYour Name <enum 6 aes_ccmp_128> AES CCMP 128 157*5113495bSYour Name 158*5113495bSYour Name <enum 7 no_cipher> No crypto 159*5113495bSYour Name 160*5113495bSYour Name <enum 8 aes_ccmp_256> AES CCMP 256 161*5113495bSYour Name 162*5113495bSYour Name <enum 9 aes_gcmp_128> AES CCMP 128 163*5113495bSYour Name 164*5113495bSYour Name <enum 10 aes_gcmp_256> AES CCMP 256 165*5113495bSYour Name 166*5113495bSYour Name <enum 11 wapi_gcm_sm4> WAPI GCM SM4 167*5113495bSYour Name 168*5113495bSYour Name 169*5113495bSYour Name 170*5113495bSYour Name <enum 12 wep_varied_width> DO not use... Only for higher 171*5113495bSYour Name layer modules.. 172*5113495bSYour Name 173*5113495bSYour Name <legal 0-12> 174*5113495bSYour Name 175*5113495bSYour Name src_buffer_swap 176*5113495bSYour Name 177*5113495bSYour Name Treats source memory (packet buffer) organization as 178*5113495bSYour Name big-endian. The packets are read and byte swapped. 179*5113495bSYour Name 180*5113495bSYour Name 1'b0: Source memory is little endian 181*5113495bSYour Name 182*5113495bSYour Name 1'b1: Source memory is big endian 183*5113495bSYour Name 184*5113495bSYour Name <legal all> 185*5113495bSYour Name 186*5113495bSYour Name link_meta_swap 187*5113495bSYour Name 188*5113495bSYour Name Treats link descriptor and Metadata as big-endian. The 189*5113495bSYour Name link descriptor/Metadata is read and byte swapped. 190*5113495bSYour Name 191*5113495bSYour Name 1'b0: Memory is little endian 192*5113495bSYour Name 193*5113495bSYour Name 1'b1: Memory is big endian 194*5113495bSYour Name 195*5113495bSYour Name <legal all> 196*5113495bSYour Name 197*5113495bSYour Name reserved_2a 198*5113495bSYour Name 199*5113495bSYour Name <legal 0> 200*5113495bSYour Name 201*5113495bSYour Name search_type 202*5113495bSYour Name 203*5113495bSYour Name Search type select 204*5113495bSYour Name 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name <enum 0 Normal_search> Address and flow search will use 208*5113495bSYour Name packet contents 209*5113495bSYour Name 210*5113495bSYour Name <enum 1 Index_based_address_search> Address search will 211*5113495bSYour Name 212*5113495bSYour Name <enum 2 Index_based_flow_search> Flow search will use 213*5113495bSYour Name 'search_index', and address search will use packet contents 214*5113495bSYour Name 215*5113495bSYour Name <legal 0-2> 216*5113495bSYour Name 217*5113495bSYour Name addrx_en 218*5113495bSYour Name 219*5113495bSYour Name Address X search enable in ASE 220*5113495bSYour Name 221*5113495bSYour Name 1'b0: Search disable 222*5113495bSYour Name 223*5113495bSYour Name 1'b1: Search Enable 224*5113495bSYour Name 225*5113495bSYour Name <legal all> 226*5113495bSYour Name 227*5113495bSYour Name addry_en 228*5113495bSYour Name 229*5113495bSYour Name Address Y search enable in ASE 230*5113495bSYour Name 231*5113495bSYour Name 1'b0: Search disable 232*5113495bSYour Name 233*5113495bSYour Name 1'b1: Search Enable 234*5113495bSYour Name 235*5113495bSYour Name <legal all> 236*5113495bSYour Name 237*5113495bSYour Name tcl_cmd_number 238*5113495bSYour Name 239*5113495bSYour Name This number can be used by SW to track, identify and 240*5113495bSYour Name link the created commands with the command statuses 241*5113495bSYour Name 242*5113495bSYour Name 243*5113495bSYour Name 244*5113495bSYour Name Is set to the value 'TCL_CMD_Number' of the related 245*5113495bSYour Name TCL_DATA command 246*5113495bSYour Name 247*5113495bSYour Name <legal all> 248*5113495bSYour Name 249*5113495bSYour Name data_length 250*5113495bSYour Name 251*5113495bSYour Name Valid Data length in bytes. 252*5113495bSYour Name 253*5113495bSYour Name 254*5113495bSYour Name 255*5113495bSYour Name MSDU length in case of direct descriptor. 256*5113495bSYour Name 257*5113495bSYour Name Length of link extension descriptor in case of Link 258*5113495bSYour Name extension descriptor. This is used to know the size of 259*5113495bSYour Name Metadata. 260*5113495bSYour Name 261*5113495bSYour Name <legal all> 262*5113495bSYour Name 263*5113495bSYour Name ipv4_checksum_en 264*5113495bSYour Name 265*5113495bSYour Name OLE related control 266*5113495bSYour Name 267*5113495bSYour Name Enable IPv4 checksum replacement 268*5113495bSYour Name 269*5113495bSYour Name udp_over_ipv4_checksum_en 270*5113495bSYour Name 271*5113495bSYour Name OLE related control 272*5113495bSYour Name 273*5113495bSYour Name Enable UDP over IPv4 checksum replacement. UDP checksum 274*5113495bSYour Name over IPv4 is optional for TCP/IP stacks. 275*5113495bSYour Name 276*5113495bSYour Name udp_over_ipv6_checksum_en 277*5113495bSYour Name 278*5113495bSYour Name OLE related control 279*5113495bSYour Name 280*5113495bSYour Name Enable UDP over IPv6 checksum replacement. UDP checksum 281*5113495bSYour Name over IPv6 is mandatory for TCP/IP stacks. 282*5113495bSYour Name 283*5113495bSYour Name tcp_over_ipv4_checksum_en 284*5113495bSYour Name 285*5113495bSYour Name OLE related control 286*5113495bSYour Name 287*5113495bSYour Name Enable TCP checksum over IPv4 replacement 288*5113495bSYour Name 289*5113495bSYour Name tcp_over_ipv6_checksum_en 290*5113495bSYour Name 291*5113495bSYour Name OLE related control 292*5113495bSYour Name 293*5113495bSYour Name Enable TCP checksum over IPv6 replacement 294*5113495bSYour Name 295*5113495bSYour Name to_fw 296*5113495bSYour Name 297*5113495bSYour Name Forward packet to FW along with classification result. 298*5113495bSYour Name The packet will not be forward to TQM when this bit is set 299*5113495bSYour Name 300*5113495bSYour Name 301*5113495bSYour Name 302*5113495bSYour Name 1'b0: Use classification result to forward the packet. 303*5113495bSYour Name 304*5113495bSYour Name 1'b1: Override classification result and forward packet 305*5113495bSYour Name only to FW. 306*5113495bSYour Name 307*5113495bSYour Name <legal all> 308*5113495bSYour Name 309*5113495bSYour Name reserved_3a 310*5113495bSYour Name 311*5113495bSYour Name <legal 0> 312*5113495bSYour Name 313*5113495bSYour Name packet_offset 314*5113495bSYour Name 315*5113495bSYour Name Packet offset from Metadata in case of direct buffer 316*5113495bSYour Name descriptor. This field is valid when Buf_or_ext_desc_type is 317*5113495bSYour Name reset(= 0). 318*5113495bSYour Name 319*5113495bSYour Name <legal all> 320*5113495bSYour Name 321*5113495bSYour Name buffer_timestamp 322*5113495bSYour Name 323*5113495bSYour Name Field only valid when 'Buffer_timestamp_valid ' is set. 324*5113495bSYour Name 325*5113495bSYour Name 326*5113495bSYour Name 327*5113495bSYour Name Frame system entrance timestamp. The timestamp is 328*5113495bSYour Name related to the global system timer 329*5113495bSYour Name 330*5113495bSYour Name 331*5113495bSYour Name 332*5113495bSYour Name Generally the first module (SW, TCL or TQM). that sees 333*5113495bSYour Name this frame and this timestamp field is not valid, shall fill 334*5113495bSYour Name in this field. 335*5113495bSYour Name 336*5113495bSYour Name 337*5113495bSYour Name 338*5113495bSYour Name Timestamp in units of 1024 us 339*5113495bSYour Name 340*5113495bSYour Name buffer_timestamp_valid 341*5113495bSYour Name 342*5113495bSYour Name When set, the Buffer_timestamp field contains valid 343*5113495bSYour Name info. 344*5113495bSYour Name 345*5113495bSYour Name mesh_enable 346*5113495bSYour Name 347*5113495bSYour Name If set to 1: 348*5113495bSYour Name 349*5113495bSYour Name * For raw WiFi frames, this indicates transmission to a 350*5113495bSYour Name mesh STA, enabling the interpretation of the 'Mesh Control 351*5113495bSYour Name Present' bit (bit 8) of QoS Control (otherwise this bit is 352*5113495bSYour Name ignored), 353*5113495bSYour Name 354*5113495bSYour Name * For native WiFi frames, this indicates that a 'Mesh 355*5113495bSYour Name Control' field is present between the header and the LLC. 356*5113495bSYour Name 357*5113495bSYour Name hlos_tid_overwrite 358*5113495bSYour Name 359*5113495bSYour Name When set, TCL shall ignore the IP DSCP and VLAN PCP 360*5113495bSYour Name fields and use HLOS_TID as the final TID. Otherwise TCL 361*5113495bSYour Name shall consider the DSCP and PCP fields as well as HLOS_TID 362*5113495bSYour Name and choose a final TID based on the configured priority 363*5113495bSYour Name 364*5113495bSYour Name <legal all> 365*5113495bSYour Name 366*5113495bSYour Name hlos_tid 367*5113495bSYour Name 368*5113495bSYour Name HLOS MSDU priority 369*5113495bSYour Name 370*5113495bSYour Name 371*5113495bSYour Name 372*5113495bSYour Name Field is used when HLOS_TID_overwrite is set. 373*5113495bSYour Name 374*5113495bSYour Name 375*5113495bSYour Name 376*5113495bSYour Name Field is also used when HLOS_TID_overwrite is not set 377*5113495bSYour Name and DSCP/PCP is not available in the packet 378*5113495bSYour Name 379*5113495bSYour Name <legal all> 380*5113495bSYour Name 381*5113495bSYour Name lmac_id 382*5113495bSYour Name 383*5113495bSYour Name TCL uses this LMAC_ID in address search, i.e, while 384*5113495bSYour Name finding matching entry for the packet in AST corresponding 385*5113495bSYour Name to given LMAC_ID 386*5113495bSYour Name 387*5113495bSYour Name If LMAC ID is all 1s (=> value 3), it indicates wildcard 388*5113495bSYour Name match for any MAC 389*5113495bSYour Name 390*5113495bSYour Name <legal 0-3> 391*5113495bSYour Name 392*5113495bSYour Name reserved_4 393*5113495bSYour Name 394*5113495bSYour Name <legal 0> 395*5113495bSYour Name 396*5113495bSYour Name dscp_tid_table_num 397*5113495bSYour Name 398*5113495bSYour Name DSCP to TID mapping table number that need to be used 399*5113495bSYour Name for the MSDU, should be specified using this field 400*5113495bSYour Name 401*5113495bSYour Name <legal all> 402*5113495bSYour Name 403*5113495bSYour Name search_index 404*5113495bSYour Name 405*5113495bSYour Name The index that will be used for index based address or 406*5113495bSYour Name flow search. The field is valid when 'search_type' is 1 or 407*5113495bSYour Name 2. 408*5113495bSYour Name 409*5113495bSYour Name <legal all> 410*5113495bSYour Name 411*5113495bSYour Name cache_set_num 412*5113495bSYour Name 413*5113495bSYour Name Cache set number that should be used to cache the index 414*5113495bSYour Name based search results, for address and flow search. This 415*5113495bSYour Name value should be equal to LSB four bits of the hash value of 416*5113495bSYour Name match data, in case of search index points to an entry which 417*5113495bSYour Name may be used in content based search also. The value can be 418*5113495bSYour Name anything when the entry pointed by search index will not be 419*5113495bSYour Name used for content based search. 420*5113495bSYour Name 421*5113495bSYour Name <legal all> 422*5113495bSYour Name 423*5113495bSYour Name reserved_5 424*5113495bSYour Name 425*5113495bSYour Name <legal 0> 426*5113495bSYour Name 427*5113495bSYour Name reserved_6a 428*5113495bSYour Name 429*5113495bSYour Name <legal 0> 430*5113495bSYour Name 431*5113495bSYour Name ring_id 432*5113495bSYour Name 433*5113495bSYour Name The buffer pointer ring ID. 434*5113495bSYour Name 435*5113495bSYour Name 0 refers to the IDLE ring 436*5113495bSYour Name 437*5113495bSYour Name 1 - N refers to other rings 438*5113495bSYour Name 439*5113495bSYour Name 440*5113495bSYour Name 441*5113495bSYour Name Helps with debugging when dumping ring contents. 442*5113495bSYour Name 443*5113495bSYour Name <legal all> 444*5113495bSYour Name 445*5113495bSYour Name looping_count 446*5113495bSYour Name 447*5113495bSYour Name A count value that indicates the number of times the 448*5113495bSYour Name producer of entries into the Ring has looped around the 449*5113495bSYour Name ring. 450*5113495bSYour Name 451*5113495bSYour Name At initialization time, this value is set to 0. On the 452*5113495bSYour Name first loop, this value is set to 1. After the max value is 453*5113495bSYour Name reached allowed by the number of bits for this field, the 454*5113495bSYour Name count value continues with 0 again. 455*5113495bSYour Name 456*5113495bSYour Name 457*5113495bSYour Name 458*5113495bSYour Name In case SW is the consumer of the ring entries, it can 459*5113495bSYour Name use this field to figure out up to where the producer of 460*5113495bSYour Name entries has created new entries. This eliminates the need to 461*5113495bSYour Name check where the head pointer' of the ring is located once 462*5113495bSYour Name the SW starts processing an interrupt indicating that new 463*5113495bSYour Name entries have been put into this ring... 464*5113495bSYour Name 465*5113495bSYour Name 466*5113495bSYour Name 467*5113495bSYour Name Also note that SW if it wants only needs to look at the 468*5113495bSYour Name LSB bit of this count value. 469*5113495bSYour Name 470*5113495bSYour Name <legal all> 471*5113495bSYour Name */ 472*5113495bSYour Name 473*5113495bSYour Name 474*5113495bSYour Name /* EXTERNAL REFERENCE : struct buffer_addr_info buf_addr_info */ 475*5113495bSYour Name 476*5113495bSYour Name 477*5113495bSYour Name /* Description TCL_DATA_CMD_0_BUF_ADDR_INFO_BUFFER_ADDR_31_0 478*5113495bSYour Name 479*5113495bSYour Name Address (lower 32 bits) of the MSDU buffer OR 480*5113495bSYour Name MSDU_EXTENSION descriptor OR Link Descriptor 481*5113495bSYour Name 482*5113495bSYour Name 483*5113495bSYour Name 484*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 485*5113495bSYour Name 486*5113495bSYour Name <legal all> 487*5113495bSYour Name */ 488*5113495bSYour Name #define TCL_DATA_CMD_0_BUF_ADDR_INFO_BUFFER_ADDR_31_0_OFFSET 0x00000000 489*5113495bSYour Name #define TCL_DATA_CMD_0_BUF_ADDR_INFO_BUFFER_ADDR_31_0_LSB 0 490*5113495bSYour Name #define TCL_DATA_CMD_0_BUF_ADDR_INFO_BUFFER_ADDR_31_0_MASK 0xffffffff 491*5113495bSYour Name 492*5113495bSYour Name /* Description TCL_DATA_CMD_1_BUF_ADDR_INFO_BUFFER_ADDR_39_32 493*5113495bSYour Name 494*5113495bSYour Name Address (upper 8 bits) of the MSDU buffer OR 495*5113495bSYour Name MSDU_EXTENSION descriptor OR Link Descriptor 496*5113495bSYour Name 497*5113495bSYour Name 498*5113495bSYour Name 499*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 500*5113495bSYour Name 501*5113495bSYour Name <legal all> 502*5113495bSYour Name */ 503*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_BUFFER_ADDR_39_32_OFFSET 0x00000004 504*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_BUFFER_ADDR_39_32_LSB 0 505*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_BUFFER_ADDR_39_32_MASK 0x000000ff 506*5113495bSYour Name 507*5113495bSYour Name /* Description TCL_DATA_CMD_1_BUF_ADDR_INFO_RETURN_BUFFER_MANAGER 508*5113495bSYour Name 509*5113495bSYour Name Consumer: WBM 510*5113495bSYour Name 511*5113495bSYour Name Producer: SW/FW 512*5113495bSYour Name 513*5113495bSYour Name 514*5113495bSYour Name 515*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 516*5113495bSYour Name 517*5113495bSYour Name 518*5113495bSYour Name 519*5113495bSYour Name Indicates to which buffer manager the buffer OR 520*5113495bSYour Name MSDU_EXTENSION descriptor OR link descriptor that is being 521*5113495bSYour Name pointed to shall be returned after the frame has been 522*5113495bSYour Name processed. It is used by WBM for routing purposes. 523*5113495bSYour Name 524*5113495bSYour Name 525*5113495bSYour Name 526*5113495bSYour Name <enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned 527*5113495bSYour Name to the WMB buffer idle list 528*5113495bSYour Name 529*5113495bSYour Name <enum 1 WBM_IDLE_DESC_LIST> This buffer shall be 530*5113495bSYour Name returned to the WMB idle link descriptor idle list 531*5113495bSYour Name 532*5113495bSYour Name <enum 2 FW_BM> This buffer shall be returned to the FW 533*5113495bSYour Name 534*5113495bSYour Name <enum 3 SW0_BM> This buffer shall be returned to the SW, 535*5113495bSYour Name ring 0 536*5113495bSYour Name 537*5113495bSYour Name <enum 4 SW1_BM> This buffer shall be returned to the SW, 538*5113495bSYour Name ring 1 539*5113495bSYour Name 540*5113495bSYour Name <enum 5 SW2_BM> This buffer shall be returned to the SW, 541*5113495bSYour Name ring 2 542*5113495bSYour Name 543*5113495bSYour Name <enum 6 SW3_BM> This buffer shall be returned to the SW, 544*5113495bSYour Name ring 3 545*5113495bSYour Name 546*5113495bSYour Name <enum 7 SW4_BM> This buffer shall be returned to the SW, 547*5113495bSYour Name ring 3 548*5113495bSYour Name 549*5113495bSYour Name 550*5113495bSYour Name 551*5113495bSYour Name <legal all> 552*5113495bSYour Name */ 553*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_RETURN_BUFFER_MANAGER_OFFSET 0x00000004 554*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_RETURN_BUFFER_MANAGER_LSB 8 555*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_RETURN_BUFFER_MANAGER_MASK 0x00000700 556*5113495bSYour Name 557*5113495bSYour Name /* Description TCL_DATA_CMD_1_BUF_ADDR_INFO_SW_BUFFER_COOKIE 558*5113495bSYour Name 559*5113495bSYour Name Cookie field exclusively used by SW. 560*5113495bSYour Name 561*5113495bSYour Name 562*5113495bSYour Name 563*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 564*5113495bSYour Name 565*5113495bSYour Name 566*5113495bSYour Name 567*5113495bSYour Name HW ignores the contents, accept that it passes the 568*5113495bSYour Name programmed value on to other descriptors together with the 569*5113495bSYour Name physical address 570*5113495bSYour Name 571*5113495bSYour Name 572*5113495bSYour Name 573*5113495bSYour Name Field can be used by SW to for example associate the 574*5113495bSYour Name buffers physical address with the virtual address 575*5113495bSYour Name 576*5113495bSYour Name The bit definitions as used by SW are within SW HLD 577*5113495bSYour Name specification 578*5113495bSYour Name 579*5113495bSYour Name 580*5113495bSYour Name 581*5113495bSYour Name NOTE: 582*5113495bSYour Name 583*5113495bSYour Name The three most significant bits can have a special 584*5113495bSYour Name meaning in case this struct is embedded in a TX_MPDU_DETAILS 585*5113495bSYour Name STRUCT, and field transmit_bw_restriction is set 586*5113495bSYour Name 587*5113495bSYour Name 588*5113495bSYour Name 589*5113495bSYour Name In case of NON punctured transmission: 590*5113495bSYour Name 591*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b00: 20 MHz TX only 592*5113495bSYour Name 593*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b01: 40 MHz TX only 594*5113495bSYour Name 595*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b10: 80 MHz TX only 596*5113495bSYour Name 597*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b11: 160 MHz TX only 598*5113495bSYour Name 599*5113495bSYour Name 600*5113495bSYour Name 601*5113495bSYour Name In case of punctured transmission: 602*5113495bSYour Name 603*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b000: pattern 0 only 604*5113495bSYour Name 605*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b001: pattern 1 only 606*5113495bSYour Name 607*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b010: pattern 2 only 608*5113495bSYour Name 609*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b011: pattern 3 only 610*5113495bSYour Name 611*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b100: pattern 4 only 612*5113495bSYour Name 613*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b101: pattern 5 only 614*5113495bSYour Name 615*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b110: pattern 6 only 616*5113495bSYour Name 617*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b111: pattern 7 only 618*5113495bSYour Name 619*5113495bSYour Name 620*5113495bSYour Name 621*5113495bSYour Name Note: a punctured transmission is indicated by the 622*5113495bSYour Name presence of TLV TX_PUNCTURE_SETUP embedded in the scheduler 623*5113495bSYour Name TLV 624*5113495bSYour Name 625*5113495bSYour Name 626*5113495bSYour Name 627*5113495bSYour Name <legal all> 628*5113495bSYour Name */ 629*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_SW_BUFFER_COOKIE_OFFSET 0x00000004 630*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_SW_BUFFER_COOKIE_LSB 11 631*5113495bSYour Name #define TCL_DATA_CMD_1_BUF_ADDR_INFO_SW_BUFFER_COOKIE_MASK 0xfffff800 632*5113495bSYour Name 633*5113495bSYour Name /* Description TCL_DATA_CMD_2_BUF_OR_EXT_DESC_TYPE 634*5113495bSYour Name 635*5113495bSYour Name <enum 0 MSDU_buffer> The address points to an MSDU 636*5113495bSYour Name buffer. 637*5113495bSYour Name 638*5113495bSYour Name <enum 1 extension_descriptor> The address points to an 639*5113495bSYour Name MSDU link extension descriptor 640*5113495bSYour Name 641*5113495bSYour Name < legal all> 642*5113495bSYour Name */ 643*5113495bSYour Name #define TCL_DATA_CMD_2_BUF_OR_EXT_DESC_TYPE_OFFSET 0x00000008 644*5113495bSYour Name #define TCL_DATA_CMD_2_BUF_OR_EXT_DESC_TYPE_LSB 0 645*5113495bSYour Name #define TCL_DATA_CMD_2_BUF_OR_EXT_DESC_TYPE_MASK 0x00000001 646*5113495bSYour Name 647*5113495bSYour Name /* Description TCL_DATA_CMD_2_EPD 648*5113495bSYour Name 649*5113495bSYour Name When this bit is set then input packet is an EPD type 650*5113495bSYour Name 651*5113495bSYour Name <legal all> 652*5113495bSYour Name */ 653*5113495bSYour Name #define TCL_DATA_CMD_2_EPD_OFFSET 0x00000008 654*5113495bSYour Name #define TCL_DATA_CMD_2_EPD_LSB 1 655*5113495bSYour Name #define TCL_DATA_CMD_2_EPD_MASK 0x00000002 656*5113495bSYour Name 657*5113495bSYour Name /* Description TCL_DATA_CMD_2_ENCAP_TYPE 658*5113495bSYour Name 659*5113495bSYour Name Indicates the encapsulation that HW will perform: 660*5113495bSYour Name 661*5113495bSYour Name <enum 0 RAW> No encapsulation 662*5113495bSYour Name 663*5113495bSYour Name <enum 1 Native_WiFi> 664*5113495bSYour Name 665*5113495bSYour Name <enum 2 Ethernet> Ethernet 2 (DIX) or 802.3 (uses 666*5113495bSYour Name SNAP/LLC) 667*5113495bSYour Name 668*5113495bSYour Name <enum 3 802_3> DO NOT USE. Indicate Ethernet 669*5113495bSYour Name 670*5113495bSYour Name 671*5113495bSYour Name 672*5113495bSYour Name Used by the OLE during encapsulation. 673*5113495bSYour Name 674*5113495bSYour Name <legal all> 675*5113495bSYour Name */ 676*5113495bSYour Name #define TCL_DATA_CMD_2_ENCAP_TYPE_OFFSET 0x00000008 677*5113495bSYour Name #define TCL_DATA_CMD_2_ENCAP_TYPE_LSB 2 678*5113495bSYour Name #define TCL_DATA_CMD_2_ENCAP_TYPE_MASK 0x0000000c 679*5113495bSYour Name 680*5113495bSYour Name /* Description TCL_DATA_CMD_2_ENCRYPT_TYPE 681*5113495bSYour Name 682*5113495bSYour Name Field only valid for encap_type: RAW 683*5113495bSYour Name 684*5113495bSYour Name 685*5113495bSYour Name 686*5113495bSYour Name Indicates type of decrypt cipher used (as defined in the 687*5113495bSYour Name peer entry) 688*5113495bSYour Name 689*5113495bSYour Name <enum 0 wep_40> WEP 40-bit 690*5113495bSYour Name 691*5113495bSYour Name <enum 1 wep_104> WEP 104-bit 692*5113495bSYour Name 693*5113495bSYour Name <enum 2 tkip_no_mic> TKIP without MIC 694*5113495bSYour Name 695*5113495bSYour Name <enum 3 wep_128> WEP 128-bit 696*5113495bSYour Name 697*5113495bSYour Name <enum 4 tkip_with_mic> TKIP with MIC 698*5113495bSYour Name 699*5113495bSYour Name <enum 5 wapi> WAPI 700*5113495bSYour Name 701*5113495bSYour Name <enum 6 aes_ccmp_128> AES CCMP 128 702*5113495bSYour Name 703*5113495bSYour Name <enum 7 no_cipher> No crypto 704*5113495bSYour Name 705*5113495bSYour Name <enum 8 aes_ccmp_256> AES CCMP 256 706*5113495bSYour Name 707*5113495bSYour Name <enum 9 aes_gcmp_128> AES CCMP 128 708*5113495bSYour Name 709*5113495bSYour Name <enum 10 aes_gcmp_256> AES CCMP 256 710*5113495bSYour Name 711*5113495bSYour Name <enum 11 wapi_gcm_sm4> WAPI GCM SM4 712*5113495bSYour Name 713*5113495bSYour Name 714*5113495bSYour Name 715*5113495bSYour Name <enum 12 wep_varied_width> DO not use... Only for higher 716*5113495bSYour Name layer modules.. 717*5113495bSYour Name 718*5113495bSYour Name <legal 0-12> 719*5113495bSYour Name */ 720*5113495bSYour Name #define TCL_DATA_CMD_2_ENCRYPT_TYPE_OFFSET 0x00000008 721*5113495bSYour Name #define TCL_DATA_CMD_2_ENCRYPT_TYPE_LSB 4 722*5113495bSYour Name #define TCL_DATA_CMD_2_ENCRYPT_TYPE_MASK 0x000000f0 723*5113495bSYour Name 724*5113495bSYour Name /* Description TCL_DATA_CMD_2_SRC_BUFFER_SWAP 725*5113495bSYour Name 726*5113495bSYour Name Treats source memory (packet buffer) organization as 727*5113495bSYour Name big-endian. The packets are read and byte swapped. 728*5113495bSYour Name 729*5113495bSYour Name 1'b0: Source memory is little endian 730*5113495bSYour Name 731*5113495bSYour Name 1'b1: Source memory is big endian 732*5113495bSYour Name 733*5113495bSYour Name <legal all> 734*5113495bSYour Name */ 735*5113495bSYour Name #define TCL_DATA_CMD_2_SRC_BUFFER_SWAP_OFFSET 0x00000008 736*5113495bSYour Name #define TCL_DATA_CMD_2_SRC_BUFFER_SWAP_LSB 8 737*5113495bSYour Name #define TCL_DATA_CMD_2_SRC_BUFFER_SWAP_MASK 0x00000100 738*5113495bSYour Name 739*5113495bSYour Name /* Description TCL_DATA_CMD_2_LINK_META_SWAP 740*5113495bSYour Name 741*5113495bSYour Name Treats link descriptor and Metadata as big-endian. The 742*5113495bSYour Name link descriptor/Metadata is read and byte swapped. 743*5113495bSYour Name 744*5113495bSYour Name 1'b0: Memory is little endian 745*5113495bSYour Name 746*5113495bSYour Name 1'b1: Memory is big endian 747*5113495bSYour Name 748*5113495bSYour Name <legal all> 749*5113495bSYour Name */ 750*5113495bSYour Name #define TCL_DATA_CMD_2_LINK_META_SWAP_OFFSET 0x00000008 751*5113495bSYour Name #define TCL_DATA_CMD_2_LINK_META_SWAP_LSB 9 752*5113495bSYour Name #define TCL_DATA_CMD_2_LINK_META_SWAP_MASK 0x00000200 753*5113495bSYour Name 754*5113495bSYour Name /* Description TCL_DATA_CMD_2_RESERVED_2A 755*5113495bSYour Name 756*5113495bSYour Name <legal 0> 757*5113495bSYour Name */ 758*5113495bSYour Name #define TCL_DATA_CMD_2_RESERVED_2A_OFFSET 0x00000008 759*5113495bSYour Name #define TCL_DATA_CMD_2_RESERVED_2A_LSB 10 760*5113495bSYour Name #define TCL_DATA_CMD_2_RESERVED_2A_MASK 0x00000c00 761*5113495bSYour Name 762*5113495bSYour Name /* Description TCL_DATA_CMD_2_SEARCH_TYPE 763*5113495bSYour Name 764*5113495bSYour Name Search type select 765*5113495bSYour Name 766*5113495bSYour Name 767*5113495bSYour Name 768*5113495bSYour Name <enum 0 Normal_search> Address and flow search will use 769*5113495bSYour Name packet contents 770*5113495bSYour Name 771*5113495bSYour Name <enum 1 Index_based_address_search> Address search will 772*5113495bSYour Name 773*5113495bSYour Name <enum 2 Index_based_flow_search> Flow search will use 774*5113495bSYour Name 'search_index', and address search will use packet contents 775*5113495bSYour Name 776*5113495bSYour Name <legal 0-2> 777*5113495bSYour Name */ 778*5113495bSYour Name #define TCL_DATA_CMD_2_SEARCH_TYPE_OFFSET 0x00000008 779*5113495bSYour Name #define TCL_DATA_CMD_2_SEARCH_TYPE_LSB 12 780*5113495bSYour Name #define TCL_DATA_CMD_2_SEARCH_TYPE_MASK 0x00003000 781*5113495bSYour Name 782*5113495bSYour Name /* Description TCL_DATA_CMD_2_ADDRX_EN 783*5113495bSYour Name 784*5113495bSYour Name Address X search enable in ASE 785*5113495bSYour Name 786*5113495bSYour Name 1'b0: Search disable 787*5113495bSYour Name 788*5113495bSYour Name 1'b1: Search Enable 789*5113495bSYour Name 790*5113495bSYour Name <legal all> 791*5113495bSYour Name */ 792*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRX_EN_OFFSET 0x00000008 793*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRX_EN_LSB 14 794*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRX_EN_MASK 0x00004000 795*5113495bSYour Name 796*5113495bSYour Name /* Description TCL_DATA_CMD_2_ADDRY_EN 797*5113495bSYour Name 798*5113495bSYour Name Address Y search enable in ASE 799*5113495bSYour Name 800*5113495bSYour Name 1'b0: Search disable 801*5113495bSYour Name 802*5113495bSYour Name 1'b1: Search Enable 803*5113495bSYour Name 804*5113495bSYour Name <legal all> 805*5113495bSYour Name */ 806*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRY_EN_OFFSET 0x00000008 807*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRY_EN_LSB 15 808*5113495bSYour Name #define TCL_DATA_CMD_2_ADDRY_EN_MASK 0x00008000 809*5113495bSYour Name 810*5113495bSYour Name /* Description TCL_DATA_CMD_2_TCL_CMD_NUMBER 811*5113495bSYour Name 812*5113495bSYour Name This number can be used by SW to track, identify and 813*5113495bSYour Name link the created commands with the command statuses 814*5113495bSYour Name 815*5113495bSYour Name 816*5113495bSYour Name 817*5113495bSYour Name Is set to the value 'TCL_CMD_Number' of the related 818*5113495bSYour Name TCL_DATA command 819*5113495bSYour Name 820*5113495bSYour Name <legal all> 821*5113495bSYour Name */ 822*5113495bSYour Name #define TCL_DATA_CMD_2_TCL_CMD_NUMBER_OFFSET 0x00000008 823*5113495bSYour Name #define TCL_DATA_CMD_2_TCL_CMD_NUMBER_LSB 16 824*5113495bSYour Name #define TCL_DATA_CMD_2_TCL_CMD_NUMBER_MASK 0xffff0000 825*5113495bSYour Name 826*5113495bSYour Name /* Description TCL_DATA_CMD_3_DATA_LENGTH 827*5113495bSYour Name 828*5113495bSYour Name Valid Data length in bytes. 829*5113495bSYour Name 830*5113495bSYour Name 831*5113495bSYour Name 832*5113495bSYour Name MSDU length in case of direct descriptor. 833*5113495bSYour Name 834*5113495bSYour Name Length of link extension descriptor in case of Link 835*5113495bSYour Name extension descriptor. This is used to know the size of 836*5113495bSYour Name Metadata. 837*5113495bSYour Name 838*5113495bSYour Name <legal all> 839*5113495bSYour Name */ 840*5113495bSYour Name #define TCL_DATA_CMD_3_DATA_LENGTH_OFFSET 0x0000000c 841*5113495bSYour Name #define TCL_DATA_CMD_3_DATA_LENGTH_LSB 0 842*5113495bSYour Name #define TCL_DATA_CMD_3_DATA_LENGTH_MASK 0x0000ffff 843*5113495bSYour Name 844*5113495bSYour Name /* Description TCL_DATA_CMD_3_IPV4_CHECKSUM_EN 845*5113495bSYour Name 846*5113495bSYour Name OLE related control 847*5113495bSYour Name 848*5113495bSYour Name Enable IPv4 checksum replacement 849*5113495bSYour Name */ 850*5113495bSYour Name #define TCL_DATA_CMD_3_IPV4_CHECKSUM_EN_OFFSET 0x0000000c 851*5113495bSYour Name #define TCL_DATA_CMD_3_IPV4_CHECKSUM_EN_LSB 16 852*5113495bSYour Name #define TCL_DATA_CMD_3_IPV4_CHECKSUM_EN_MASK 0x00010000 853*5113495bSYour Name 854*5113495bSYour Name /* Description TCL_DATA_CMD_3_UDP_OVER_IPV4_CHECKSUM_EN 855*5113495bSYour Name 856*5113495bSYour Name OLE related control 857*5113495bSYour Name 858*5113495bSYour Name Enable UDP over IPv4 checksum replacement. UDP checksum 859*5113495bSYour Name over IPv4 is optional for TCP/IP stacks. 860*5113495bSYour Name */ 861*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV4_CHECKSUM_EN_OFFSET 0x0000000c 862*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV4_CHECKSUM_EN_LSB 17 863*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV4_CHECKSUM_EN_MASK 0x00020000 864*5113495bSYour Name 865*5113495bSYour Name /* Description TCL_DATA_CMD_3_UDP_OVER_IPV6_CHECKSUM_EN 866*5113495bSYour Name 867*5113495bSYour Name OLE related control 868*5113495bSYour Name 869*5113495bSYour Name Enable UDP over IPv6 checksum replacement. UDP checksum 870*5113495bSYour Name over IPv6 is mandatory for TCP/IP stacks. 871*5113495bSYour Name */ 872*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV6_CHECKSUM_EN_OFFSET 0x0000000c 873*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV6_CHECKSUM_EN_LSB 18 874*5113495bSYour Name #define TCL_DATA_CMD_3_UDP_OVER_IPV6_CHECKSUM_EN_MASK 0x00040000 875*5113495bSYour Name 876*5113495bSYour Name /* Description TCL_DATA_CMD_3_TCP_OVER_IPV4_CHECKSUM_EN 877*5113495bSYour Name 878*5113495bSYour Name OLE related control 879*5113495bSYour Name 880*5113495bSYour Name Enable TCP checksum over IPv4 replacement 881*5113495bSYour Name */ 882*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV4_CHECKSUM_EN_OFFSET 0x0000000c 883*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV4_CHECKSUM_EN_LSB 19 884*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV4_CHECKSUM_EN_MASK 0x00080000 885*5113495bSYour Name 886*5113495bSYour Name /* Description TCL_DATA_CMD_3_TCP_OVER_IPV6_CHECKSUM_EN 887*5113495bSYour Name 888*5113495bSYour Name OLE related control 889*5113495bSYour Name 890*5113495bSYour Name Enable TCP checksum over IPv6 replacement 891*5113495bSYour Name */ 892*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV6_CHECKSUM_EN_OFFSET 0x0000000c 893*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV6_CHECKSUM_EN_LSB 20 894*5113495bSYour Name #define TCL_DATA_CMD_3_TCP_OVER_IPV6_CHECKSUM_EN_MASK 0x00100000 895*5113495bSYour Name 896*5113495bSYour Name /* Description TCL_DATA_CMD_3_TO_FW 897*5113495bSYour Name 898*5113495bSYour Name Forward packet to FW along with classification result. 899*5113495bSYour Name The packet will not be forward to TQM when this bit is set 900*5113495bSYour Name 901*5113495bSYour Name 902*5113495bSYour Name 903*5113495bSYour Name 1'b0: Use classification result to forward the packet. 904*5113495bSYour Name 905*5113495bSYour Name 1'b1: Override classification result and forward packet 906*5113495bSYour Name only to FW. 907*5113495bSYour Name 908*5113495bSYour Name <legal all> 909*5113495bSYour Name */ 910*5113495bSYour Name #define TCL_DATA_CMD_3_TO_FW_OFFSET 0x0000000c 911*5113495bSYour Name #define TCL_DATA_CMD_3_TO_FW_LSB 21 912*5113495bSYour Name #define TCL_DATA_CMD_3_TO_FW_MASK 0x00200000 913*5113495bSYour Name 914*5113495bSYour Name /* Description TCL_DATA_CMD_3_RESERVED_3A 915*5113495bSYour Name 916*5113495bSYour Name <legal 0> 917*5113495bSYour Name */ 918*5113495bSYour Name #define TCL_DATA_CMD_3_RESERVED_3A_OFFSET 0x0000000c 919*5113495bSYour Name #define TCL_DATA_CMD_3_RESERVED_3A_LSB 22 920*5113495bSYour Name #define TCL_DATA_CMD_3_RESERVED_3A_MASK 0x00400000 921*5113495bSYour Name 922*5113495bSYour Name /* Description TCL_DATA_CMD_3_PACKET_OFFSET 923*5113495bSYour Name 924*5113495bSYour Name Packet offset from Metadata in case of direct buffer 925*5113495bSYour Name descriptor. This field is valid when Buf_or_ext_desc_type is 926*5113495bSYour Name reset(= 0). 927*5113495bSYour Name 928*5113495bSYour Name <legal all> 929*5113495bSYour Name */ 930*5113495bSYour Name #define TCL_DATA_CMD_3_PACKET_OFFSET_OFFSET 0x0000000c 931*5113495bSYour Name #define TCL_DATA_CMD_3_PACKET_OFFSET_LSB 23 932*5113495bSYour Name #define TCL_DATA_CMD_3_PACKET_OFFSET_MASK 0xff800000 933*5113495bSYour Name 934*5113495bSYour Name /* Description TCL_DATA_CMD_4_BUFFER_TIMESTAMP 935*5113495bSYour Name 936*5113495bSYour Name Field only valid when 'Buffer_timestamp_valid ' is set. 937*5113495bSYour Name 938*5113495bSYour Name 939*5113495bSYour Name 940*5113495bSYour Name Frame system entrance timestamp. The timestamp is 941*5113495bSYour Name related to the global system timer 942*5113495bSYour Name 943*5113495bSYour Name 944*5113495bSYour Name 945*5113495bSYour Name Generally the first module (SW, TCL or TQM). that sees 946*5113495bSYour Name this frame and this timestamp field is not valid, shall fill 947*5113495bSYour Name in this field. 948*5113495bSYour Name 949*5113495bSYour Name 950*5113495bSYour Name 951*5113495bSYour Name Timestamp in units of 1024 us 952*5113495bSYour Name */ 953*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_OFFSET 0x00000010 954*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_LSB 0 955*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_MASK 0x0007ffff 956*5113495bSYour Name 957*5113495bSYour Name /* Description TCL_DATA_CMD_4_BUFFER_TIMESTAMP_VALID 958*5113495bSYour Name 959*5113495bSYour Name When set, the Buffer_timestamp field contains valid 960*5113495bSYour Name info. 961*5113495bSYour Name */ 962*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_VALID_OFFSET 0x00000010 963*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_VALID_LSB 19 964*5113495bSYour Name #define TCL_DATA_CMD_4_BUFFER_TIMESTAMP_VALID_MASK 0x00080000 965*5113495bSYour Name 966*5113495bSYour Name /* Description TCL_DATA_CMD_4_MESH_ENABLE 967*5113495bSYour Name 968*5113495bSYour Name If set to 1: 969*5113495bSYour Name 970*5113495bSYour Name * For raw WiFi frames, this indicates transmission to a 971*5113495bSYour Name mesh STA, enabling the interpretation of the 'Mesh Control 972*5113495bSYour Name Present' bit (bit 8) of QoS Control (otherwise this bit is 973*5113495bSYour Name ignored), 974*5113495bSYour Name 975*5113495bSYour Name * For native WiFi frames, this indicates that a 'Mesh 976*5113495bSYour Name Control' field is present between the header and the LLC. 977*5113495bSYour Name */ 978*5113495bSYour Name #define TCL_DATA_CMD_4_MESH_ENABLE_OFFSET 0x00000010 979*5113495bSYour Name #define TCL_DATA_CMD_4_MESH_ENABLE_LSB 20 980*5113495bSYour Name #define TCL_DATA_CMD_4_MESH_ENABLE_MASK 0x00100000 981*5113495bSYour Name 982*5113495bSYour Name /* Description TCL_DATA_CMD_4_HLOS_TID_OVERWRITE 983*5113495bSYour Name 984*5113495bSYour Name When set, TCL shall ignore the IP DSCP and VLAN PCP 985*5113495bSYour Name fields and use HLOS_TID as the final TID. Otherwise TCL 986*5113495bSYour Name shall consider the DSCP and PCP fields as well as HLOS_TID 987*5113495bSYour Name and choose a final TID based on the configured priority 988*5113495bSYour Name 989*5113495bSYour Name <legal all> 990*5113495bSYour Name */ 991*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_OVERWRITE_OFFSET 0x00000010 992*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_OVERWRITE_LSB 21 993*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_OVERWRITE_MASK 0x00200000 994*5113495bSYour Name 995*5113495bSYour Name /* Description TCL_DATA_CMD_4_HLOS_TID 996*5113495bSYour Name 997*5113495bSYour Name HLOS MSDU priority 998*5113495bSYour Name 999*5113495bSYour Name 1000*5113495bSYour Name 1001*5113495bSYour Name Field is used when HLOS_TID_overwrite is set. 1002*5113495bSYour Name 1003*5113495bSYour Name 1004*5113495bSYour Name 1005*5113495bSYour Name Field is also used when HLOS_TID_overwrite is not set 1006*5113495bSYour Name and DSCP/PCP is not available in the packet 1007*5113495bSYour Name 1008*5113495bSYour Name <legal all> 1009*5113495bSYour Name */ 1010*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_OFFSET 0x00000010 1011*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_LSB 22 1012*5113495bSYour Name #define TCL_DATA_CMD_4_HLOS_TID_MASK 0x03c00000 1013*5113495bSYour Name 1014*5113495bSYour Name /* Description TCL_DATA_CMD_4_LMAC_ID 1015*5113495bSYour Name 1016*5113495bSYour Name TCL uses this LMAC_ID in address search, i.e, while 1017*5113495bSYour Name finding matching entry for the packet in AST corresponding 1018*5113495bSYour Name to given LMAC_ID 1019*5113495bSYour Name 1020*5113495bSYour Name If LMAC ID is all 1s (=> value 3), it indicates wildcard 1021*5113495bSYour Name match for any MAC 1022*5113495bSYour Name 1023*5113495bSYour Name <legal 0-3> 1024*5113495bSYour Name */ 1025*5113495bSYour Name #define TCL_DATA_CMD_4_LMAC_ID_OFFSET 0x00000010 1026*5113495bSYour Name #define TCL_DATA_CMD_4_LMAC_ID_LSB 26 1027*5113495bSYour Name #define TCL_DATA_CMD_4_LMAC_ID_MASK 0x0c000000 1028*5113495bSYour Name 1029*5113495bSYour Name /* Description TCL_DATA_CMD_4_RESERVED_4 1030*5113495bSYour Name 1031*5113495bSYour Name <legal 0> 1032*5113495bSYour Name */ 1033*5113495bSYour Name #define TCL_DATA_CMD_4_RESERVED_4_OFFSET 0x00000010 1034*5113495bSYour Name #define TCL_DATA_CMD_4_RESERVED_4_LSB 28 1035*5113495bSYour Name #define TCL_DATA_CMD_4_RESERVED_4_MASK 0xf0000000 1036*5113495bSYour Name 1037*5113495bSYour Name /* Description TCL_DATA_CMD_5_DSCP_TID_TABLE_NUM 1038*5113495bSYour Name 1039*5113495bSYour Name DSCP to TID mapping table number that need to be used 1040*5113495bSYour Name for the MSDU, should be specified using this field 1041*5113495bSYour Name 1042*5113495bSYour Name <legal all> 1043*5113495bSYour Name */ 1044*5113495bSYour Name #define TCL_DATA_CMD_5_DSCP_TID_TABLE_NUM_OFFSET 0x00000014 1045*5113495bSYour Name #define TCL_DATA_CMD_5_DSCP_TID_TABLE_NUM_LSB 0 1046*5113495bSYour Name #define TCL_DATA_CMD_5_DSCP_TID_TABLE_NUM_MASK 0x0000003f 1047*5113495bSYour Name 1048*5113495bSYour Name /* Description TCL_DATA_CMD_5_SEARCH_INDEX 1049*5113495bSYour Name 1050*5113495bSYour Name The index that will be used for index based address or 1051*5113495bSYour Name flow search. The field is valid when 'search_type' is 1 or 1052*5113495bSYour Name 2. 1053*5113495bSYour Name 1054*5113495bSYour Name <legal all> 1055*5113495bSYour Name */ 1056*5113495bSYour Name #define TCL_DATA_CMD_5_SEARCH_INDEX_OFFSET 0x00000014 1057*5113495bSYour Name #define TCL_DATA_CMD_5_SEARCH_INDEX_LSB 6 1058*5113495bSYour Name #define TCL_DATA_CMD_5_SEARCH_INDEX_MASK 0x03ffffc0 1059*5113495bSYour Name 1060*5113495bSYour Name /* Description TCL_DATA_CMD_5_CACHE_SET_NUM 1061*5113495bSYour Name 1062*5113495bSYour Name Cache set number that should be used to cache the index 1063*5113495bSYour Name based search results, for address and flow search. This 1064*5113495bSYour Name value should be equal to LSB four bits of the hash value of 1065*5113495bSYour Name match data, in case of search index points to an entry which 1066*5113495bSYour Name may be used in content based search also. The value can be 1067*5113495bSYour Name anything when the entry pointed by search index will not be 1068*5113495bSYour Name used for content based search. 1069*5113495bSYour Name 1070*5113495bSYour Name <legal all> 1071*5113495bSYour Name */ 1072*5113495bSYour Name #define TCL_DATA_CMD_5_CACHE_SET_NUM_OFFSET 0x00000014 1073*5113495bSYour Name #define TCL_DATA_CMD_5_CACHE_SET_NUM_LSB 26 1074*5113495bSYour Name #define TCL_DATA_CMD_5_CACHE_SET_NUM_MASK 0x3c000000 1075*5113495bSYour Name 1076*5113495bSYour Name /* Description TCL_DATA_CMD_5_RESERVED_5 1077*5113495bSYour Name 1078*5113495bSYour Name <legal 0> 1079*5113495bSYour Name */ 1080*5113495bSYour Name #define TCL_DATA_CMD_5_RESERVED_5_OFFSET 0x00000014 1081*5113495bSYour Name #define TCL_DATA_CMD_5_RESERVED_5_LSB 30 1082*5113495bSYour Name #define TCL_DATA_CMD_5_RESERVED_5_MASK 0xc0000000 1083*5113495bSYour Name 1084*5113495bSYour Name /* Description TCL_DATA_CMD_6_RESERVED_6A 1085*5113495bSYour Name 1086*5113495bSYour Name <legal 0> 1087*5113495bSYour Name */ 1088*5113495bSYour Name #define TCL_DATA_CMD_6_RESERVED_6A_OFFSET 0x00000018 1089*5113495bSYour Name #define TCL_DATA_CMD_6_RESERVED_6A_LSB 0 1090*5113495bSYour Name #define TCL_DATA_CMD_6_RESERVED_6A_MASK 0x000fffff 1091*5113495bSYour Name 1092*5113495bSYour Name /* Description TCL_DATA_CMD_6_RING_ID 1093*5113495bSYour Name 1094*5113495bSYour Name The buffer pointer ring ID. 1095*5113495bSYour Name 1096*5113495bSYour Name 0 refers to the IDLE ring 1097*5113495bSYour Name 1098*5113495bSYour Name 1 - N refers to other rings 1099*5113495bSYour Name 1100*5113495bSYour Name 1101*5113495bSYour Name 1102*5113495bSYour Name Helps with debugging when dumping ring contents. 1103*5113495bSYour Name 1104*5113495bSYour Name <legal all> 1105*5113495bSYour Name */ 1106*5113495bSYour Name #define TCL_DATA_CMD_6_RING_ID_OFFSET 0x00000018 1107*5113495bSYour Name #define TCL_DATA_CMD_6_RING_ID_LSB 20 1108*5113495bSYour Name #define TCL_DATA_CMD_6_RING_ID_MASK 0x0ff00000 1109*5113495bSYour Name 1110*5113495bSYour Name /* Description TCL_DATA_CMD_6_LOOPING_COUNT 1111*5113495bSYour Name 1112*5113495bSYour Name A count value that indicates the number of times the 1113*5113495bSYour Name producer of entries into the Ring has looped around the 1114*5113495bSYour Name ring. 1115*5113495bSYour Name 1116*5113495bSYour Name At initialization time, this value is set to 0. On the 1117*5113495bSYour Name first loop, this value is set to 1. After the max value is 1118*5113495bSYour Name reached allowed by the number of bits for this field, the 1119*5113495bSYour Name count value continues with 0 again. 1120*5113495bSYour Name 1121*5113495bSYour Name 1122*5113495bSYour Name 1123*5113495bSYour Name In case SW is the consumer of the ring entries, it can 1124*5113495bSYour Name use this field to figure out up to where the producer of 1125*5113495bSYour Name entries has created new entries. This eliminates the need to 1126*5113495bSYour Name check where the head pointer' of the ring is located once 1127*5113495bSYour Name the SW starts processing an interrupt indicating that new 1128*5113495bSYour Name entries have been put into this ring... 1129*5113495bSYour Name 1130*5113495bSYour Name 1131*5113495bSYour Name 1132*5113495bSYour Name Also note that SW if it wants only needs to look at the 1133*5113495bSYour Name LSB bit of this count value. 1134*5113495bSYour Name 1135*5113495bSYour Name <legal all> 1136*5113495bSYour Name */ 1137*5113495bSYour Name #define TCL_DATA_CMD_6_LOOPING_COUNT_OFFSET 0x00000018 1138*5113495bSYour Name #define TCL_DATA_CMD_6_LOOPING_COUNT_LSB 28 1139*5113495bSYour Name #define TCL_DATA_CMD_6_LOOPING_COUNT_MASK 0xf0000000 1140*5113495bSYour Name 1141*5113495bSYour Name 1142*5113495bSYour Name #endif // _TCL_DATA_CMD_H_ 1143