1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2019 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 6*5113495bSYour Name * above copyright notice and this permission notice appear in all 7*5113495bSYour Name * copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 17*5113495bSYour Name */ 18*5113495bSYour Name 19*5113495bSYour Name // 20*5113495bSYour Name // DO NOT EDIT! This file is automatically generated 21*5113495bSYour Name // These definitions are tied to a particular hardware layout 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name #ifndef _TX_MSDU_EXTENSION_H_ 25*5113495bSYour Name #define _TX_MSDU_EXTENSION_H_ 26*5113495bSYour Name #if !defined(__ASSEMBLER__) 27*5113495bSYour Name #endif 28*5113495bSYour Name 29*5113495bSYour Name 30*5113495bSYour Name // ################ START SUMMARY ################# 31*5113495bSYour Name // 32*5113495bSYour Name // Dword Fields 33*5113495bSYour Name // 0 tso_enable[0], reserved_0a[6:1], tcp_flag[15:7], tcp_flag_mask[24:16], reserved_0b[31:25] 34*5113495bSYour Name // 1 l2_length[15:0], ip_length[31:16] 35*5113495bSYour Name // 2 tcp_seq_number[31:0] 36*5113495bSYour Name // 3 ip_identification[15:0], udp_length[31:16] 37*5113495bSYour Name // 4 checksum_offset[13:0], partial_checksum_en[14], reserved_4a[15], payload_start_offset[29:16], reserved_4b[31:30] 38*5113495bSYour Name // 5 payload_end_offset[13:0], reserved_5a[15:14], wds[16], reserved_5b[31:17] 39*5113495bSYour Name // 6 buf0_ptr_31_0[31:0] 40*5113495bSYour Name // 7 buf0_ptr_39_32[7:0], reserved_7a[15:8], buf0_len[31:16] 41*5113495bSYour Name // 8 buf1_ptr_31_0[31:0] 42*5113495bSYour Name // 9 buf1_ptr_39_32[7:0], reserved_9a[15:8], buf1_len[31:16] 43*5113495bSYour Name // 10 buf2_ptr_31_0[31:0] 44*5113495bSYour Name // 11 buf2_ptr_39_32[7:0], reserved_11a[15:8], buf2_len[31:16] 45*5113495bSYour Name // 12 buf3_ptr_31_0[31:0] 46*5113495bSYour Name // 13 buf3_ptr_39_32[7:0], reserved_13a[15:8], buf3_len[31:16] 47*5113495bSYour Name // 14 buf4_ptr_31_0[31:0] 48*5113495bSYour Name // 15 buf4_ptr_39_32[7:0], reserved_15a[15:8], buf4_len[31:16] 49*5113495bSYour Name // 16 buf5_ptr_31_0[31:0] 50*5113495bSYour Name // 17 buf5_ptr_39_32[7:0], reserved_17a[15:8], buf5_len[31:16] 51*5113495bSYour Name // 52*5113495bSYour Name // ################ END SUMMARY ################# 53*5113495bSYour Name 54*5113495bSYour Name #define NUM_OF_DWORDS_TX_MSDU_EXTENSION 18 55*5113495bSYour Name 56*5113495bSYour Name struct tx_msdu_extension { 57*5113495bSYour Name uint32_t tso_enable : 1, //[0] 58*5113495bSYour Name reserved_0a : 6, //[6:1] 59*5113495bSYour Name tcp_flag : 9, //[15:7] 60*5113495bSYour Name tcp_flag_mask : 9, //[24:16] 61*5113495bSYour Name reserved_0b : 7; //[31:25] 62*5113495bSYour Name uint32_t l2_length : 16, //[15:0] 63*5113495bSYour Name ip_length : 16; //[31:16] 64*5113495bSYour Name uint32_t tcp_seq_number : 32; //[31:0] 65*5113495bSYour Name uint32_t ip_identification : 16, //[15:0] 66*5113495bSYour Name udp_length : 16; //[31:16] 67*5113495bSYour Name uint32_t checksum_offset : 14, //[13:0] 68*5113495bSYour Name partial_checksum_en : 1, //[14] 69*5113495bSYour Name reserved_4a : 1, //[15] 70*5113495bSYour Name payload_start_offset : 14, //[29:16] 71*5113495bSYour Name reserved_4b : 2; //[31:30] 72*5113495bSYour Name uint32_t payload_end_offset : 14, //[13:0] 73*5113495bSYour Name reserved_5a : 2, //[15:14] 74*5113495bSYour Name wds : 1, //[16] 75*5113495bSYour Name reserved_5b : 15; //[31:17] 76*5113495bSYour Name uint32_t buf0_ptr_31_0 : 32; //[31:0] 77*5113495bSYour Name uint32_t buf0_ptr_39_32 : 8, //[7:0] 78*5113495bSYour Name reserved_7a : 8, //[15:8] 79*5113495bSYour Name buf0_len : 16; //[31:16] 80*5113495bSYour Name uint32_t buf1_ptr_31_0 : 32; //[31:0] 81*5113495bSYour Name uint32_t buf1_ptr_39_32 : 8, //[7:0] 82*5113495bSYour Name reserved_9a : 8, //[15:8] 83*5113495bSYour Name buf1_len : 16; //[31:16] 84*5113495bSYour Name uint32_t buf2_ptr_31_0 : 32; //[31:0] 85*5113495bSYour Name uint32_t buf2_ptr_39_32 : 8, //[7:0] 86*5113495bSYour Name reserved_11a : 8, //[15:8] 87*5113495bSYour Name buf2_len : 16; //[31:16] 88*5113495bSYour Name uint32_t buf3_ptr_31_0 : 32; //[31:0] 89*5113495bSYour Name uint32_t buf3_ptr_39_32 : 8, //[7:0] 90*5113495bSYour Name reserved_13a : 8, //[15:8] 91*5113495bSYour Name buf3_len : 16; //[31:16] 92*5113495bSYour Name uint32_t buf4_ptr_31_0 : 32; //[31:0] 93*5113495bSYour Name uint32_t buf4_ptr_39_32 : 8, //[7:0] 94*5113495bSYour Name reserved_15a : 8, //[15:8] 95*5113495bSYour Name buf4_len : 16; //[31:16] 96*5113495bSYour Name uint32_t buf5_ptr_31_0 : 32; //[31:0] 97*5113495bSYour Name uint32_t buf5_ptr_39_32 : 8, //[7:0] 98*5113495bSYour Name reserved_17a : 8, //[15:8] 99*5113495bSYour Name buf5_len : 16; //[31:16] 100*5113495bSYour Name }; 101*5113495bSYour Name 102*5113495bSYour Name /* 103*5113495bSYour Name 104*5113495bSYour Name tso_enable 105*5113495bSYour Name 106*5113495bSYour Name Enable transmit segmentation offload <legal all> 107*5113495bSYour Name 108*5113495bSYour Name reserved_0a 109*5113495bSYour Name 110*5113495bSYour Name FW will set to 0, MAC will ignore. <legal 0> 111*5113495bSYour Name 112*5113495bSYour Name tcp_flag 113*5113495bSYour Name 114*5113495bSYour Name TCP flags 115*5113495bSYour Name 116*5113495bSYour Name {NS,CWR,ECE,URG,ACK,PSH, RST ,SYN,FIN}<legal all> 117*5113495bSYour Name 118*5113495bSYour Name tcp_flag_mask 119*5113495bSYour Name 120*5113495bSYour Name TCP flag mask. Tcp_flag is inserted into the header 121*5113495bSYour Name based on the mask, if tso is enabled 122*5113495bSYour Name 123*5113495bSYour Name reserved_0b 124*5113495bSYour Name 125*5113495bSYour Name FW will set to 0, MAC will ignore. <legal 0> 126*5113495bSYour Name 127*5113495bSYour Name l2_length 128*5113495bSYour Name 129*5113495bSYour Name L2 length for the msdu, if tso is enabled <legal all> 130*5113495bSYour Name 131*5113495bSYour Name ip_length 132*5113495bSYour Name 133*5113495bSYour Name Ip length for the msdu, if tso is enabled <legal all> 134*5113495bSYour Name 135*5113495bSYour Name tcp_seq_number 136*5113495bSYour Name 137*5113495bSYour Name Tcp_seq_number for the msdu, if tso is enabled <legal 138*5113495bSYour Name all> 139*5113495bSYour Name 140*5113495bSYour Name ip_identification 141*5113495bSYour Name 142*5113495bSYour Name Ip_identification for the msdu, if tso is enabled <legal 143*5113495bSYour Name all> 144*5113495bSYour Name 145*5113495bSYour Name udp_length 146*5113495bSYour Name 147*5113495bSYour Name TXDMA is copies this field into MSDU START TLV 148*5113495bSYour Name 149*5113495bSYour Name checksum_offset 150*5113495bSYour Name 151*5113495bSYour Name The calculated checksum from start offset to end offset 152*5113495bSYour Name will be added to the checksum at the offset given by this 153*5113495bSYour Name field<legal all> 154*5113495bSYour Name 155*5113495bSYour Name partial_checksum_en 156*5113495bSYour Name 157*5113495bSYour Name Partial Checksum Enable Bit. 158*5113495bSYour Name 159*5113495bSYour Name <legal 0-1> 160*5113495bSYour Name 161*5113495bSYour Name reserved_4a 162*5113495bSYour Name 163*5113495bSYour Name <Legal 0> 164*5113495bSYour Name 165*5113495bSYour Name payload_start_offset 166*5113495bSYour Name 167*5113495bSYour Name L4 checksum calculations will start fromt this offset 168*5113495bSYour Name 169*5113495bSYour Name <Legal all> 170*5113495bSYour Name 171*5113495bSYour Name reserved_4b 172*5113495bSYour Name 173*5113495bSYour Name <Legal 0> 174*5113495bSYour Name 175*5113495bSYour Name payload_end_offset 176*5113495bSYour Name 177*5113495bSYour Name L4 checksum calculations will end at this offset. 178*5113495bSYour Name 179*5113495bSYour Name <Legal all> 180*5113495bSYour Name 181*5113495bSYour Name reserved_5a 182*5113495bSYour Name 183*5113495bSYour Name <Legal 0> 184*5113495bSYour Name 185*5113495bSYour Name wds 186*5113495bSYour Name 187*5113495bSYour Name If set the current packet is 4-address frame. Required 188*5113495bSYour Name because an aggregate can include some frames with 3 address 189*5113495bSYour Name format and other frames with 4 address format. Used by the 190*5113495bSYour Name OLE during encapsulation. 191*5113495bSYour Name 192*5113495bSYour Name Note: there is also global wds tx control in the 193*5113495bSYour Name TX_PEER_ENTRY 194*5113495bSYour Name 195*5113495bSYour Name <legal all> 196*5113495bSYour Name 197*5113495bSYour Name reserved_5b 198*5113495bSYour Name 199*5113495bSYour Name <Legal 0> 200*5113495bSYour Name 201*5113495bSYour Name buf0_ptr_31_0 202*5113495bSYour Name 203*5113495bSYour Name Lower 32 bits of the first buffer pointer 204*5113495bSYour Name 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 208*5113495bSYour Name buffer together with the 'cookie' info for this 209*5113495bSYour Name MSDU_EXTENSION descriptor 210*5113495bSYour Name 211*5113495bSYour Name <legal all> 212*5113495bSYour Name 213*5113495bSYour Name buf0_ptr_39_32 214*5113495bSYour Name 215*5113495bSYour Name Upper 8 bits of the first buffer pointer <legal all> 216*5113495bSYour Name 217*5113495bSYour Name reserved_7a 218*5113495bSYour Name 219*5113495bSYour Name <Legal 0> 220*5113495bSYour Name 221*5113495bSYour Name buf0_len 222*5113495bSYour Name 223*5113495bSYour Name Length of the first buffer <legal all> 224*5113495bSYour Name 225*5113495bSYour Name buf1_ptr_31_0 226*5113495bSYour Name 227*5113495bSYour Name Lower 32 bits of the second buffer pointer 228*5113495bSYour Name 229*5113495bSYour Name 230*5113495bSYour Name 231*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 232*5113495bSYour Name buffer together with the 'cookie' info for this 233*5113495bSYour Name MSDU_EXTENSION descriptor 234*5113495bSYour Name 235*5113495bSYour Name <legal all> 236*5113495bSYour Name 237*5113495bSYour Name buf1_ptr_39_32 238*5113495bSYour Name 239*5113495bSYour Name Upper 8 bits of the second buffer pointer <legal all> 240*5113495bSYour Name 241*5113495bSYour Name reserved_9a 242*5113495bSYour Name 243*5113495bSYour Name <Legal 0> 244*5113495bSYour Name 245*5113495bSYour Name buf1_len 246*5113495bSYour Name 247*5113495bSYour Name Length of the second buffer <legal all> 248*5113495bSYour Name 249*5113495bSYour Name buf2_ptr_31_0 250*5113495bSYour Name 251*5113495bSYour Name Lower 32 bits of the third buffer pointer 252*5113495bSYour Name 253*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 254*5113495bSYour Name buffer together with the 'cookie' info for this 255*5113495bSYour Name MSDU_EXTENSION descriptor 256*5113495bSYour Name 257*5113495bSYour Name <legal all> 258*5113495bSYour Name 259*5113495bSYour Name buf2_ptr_39_32 260*5113495bSYour Name 261*5113495bSYour Name Upper 8 bits of the third buffer pointer <legal all> 262*5113495bSYour Name 263*5113495bSYour Name reserved_11a 264*5113495bSYour Name 265*5113495bSYour Name <Legal 0> 266*5113495bSYour Name 267*5113495bSYour Name buf2_len 268*5113495bSYour Name 269*5113495bSYour Name Length of the third buffer <legal all> 270*5113495bSYour Name 271*5113495bSYour Name buf3_ptr_31_0 272*5113495bSYour Name 273*5113495bSYour Name Lower 32 bits of the fourth buffer pointer 274*5113495bSYour Name 275*5113495bSYour Name 276*5113495bSYour Name 277*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 278*5113495bSYour Name buffer together with the 'cookie' info for this 279*5113495bSYour Name MSDU_EXTENSION descriptor 280*5113495bSYour Name 281*5113495bSYour Name <legal all> 282*5113495bSYour Name 283*5113495bSYour Name buf3_ptr_39_32 284*5113495bSYour Name 285*5113495bSYour Name Upper 8 bits of the fourth buffer pointer <legal all> 286*5113495bSYour Name 287*5113495bSYour Name reserved_13a 288*5113495bSYour Name 289*5113495bSYour Name <Legal 0> 290*5113495bSYour Name 291*5113495bSYour Name buf3_len 292*5113495bSYour Name 293*5113495bSYour Name Length of the fourth buffer <legal all> 294*5113495bSYour Name 295*5113495bSYour Name buf4_ptr_31_0 296*5113495bSYour Name 297*5113495bSYour Name Lower 32 bits of the fifth buffer pointer 298*5113495bSYour Name 299*5113495bSYour Name 300*5113495bSYour Name 301*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 302*5113495bSYour Name buffer together with the 'cookie' info for this 303*5113495bSYour Name MSDU_EXTENSION descriptor 304*5113495bSYour Name 305*5113495bSYour Name <legal all> 306*5113495bSYour Name 307*5113495bSYour Name buf4_ptr_39_32 308*5113495bSYour Name 309*5113495bSYour Name Upper 8 bits of the fifth buffer pointer <legal all> 310*5113495bSYour Name 311*5113495bSYour Name reserved_15a 312*5113495bSYour Name 313*5113495bSYour Name <Legal 0> 314*5113495bSYour Name 315*5113495bSYour Name buf4_len 316*5113495bSYour Name 317*5113495bSYour Name Length of the fifth buffer <legal all> 318*5113495bSYour Name 319*5113495bSYour Name buf5_ptr_31_0 320*5113495bSYour Name 321*5113495bSYour Name Lower 32 bits of the sixth buffer pointer 322*5113495bSYour Name 323*5113495bSYour Name 324*5113495bSYour Name 325*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 326*5113495bSYour Name buffer together with the 'cookie' info for this 327*5113495bSYour Name MSDU_EXTENSION descriptor 328*5113495bSYour Name 329*5113495bSYour Name <legal all> 330*5113495bSYour Name 331*5113495bSYour Name buf5_ptr_39_32 332*5113495bSYour Name 333*5113495bSYour Name Upper 8 bits of the sixth buffer pointer <legal all> 334*5113495bSYour Name 335*5113495bSYour Name reserved_17a 336*5113495bSYour Name 337*5113495bSYour Name <Legal 0> 338*5113495bSYour Name 339*5113495bSYour Name buf5_len 340*5113495bSYour Name 341*5113495bSYour Name Length of the sixth buffer <legal all> 342*5113495bSYour Name */ 343*5113495bSYour Name 344*5113495bSYour Name 345*5113495bSYour Name /* Description TX_MSDU_EXTENSION_0_TSO_ENABLE 346*5113495bSYour Name 347*5113495bSYour Name Enable transmit segmentation offload <legal all> 348*5113495bSYour Name */ 349*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TSO_ENABLE_OFFSET 0x00000000 350*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TSO_ENABLE_LSB 0 351*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TSO_ENABLE_MASK 0x00000001 352*5113495bSYour Name 353*5113495bSYour Name /* Description TX_MSDU_EXTENSION_0_RESERVED_0A 354*5113495bSYour Name 355*5113495bSYour Name FW will set to 0, MAC will ignore. <legal 0> 356*5113495bSYour Name */ 357*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0A_OFFSET 0x00000000 358*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0A_LSB 1 359*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0A_MASK 0x0000007e 360*5113495bSYour Name 361*5113495bSYour Name /* Description TX_MSDU_EXTENSION_0_TCP_FLAG 362*5113495bSYour Name 363*5113495bSYour Name TCP flags 364*5113495bSYour Name 365*5113495bSYour Name {NS,CWR,ECE,URG,ACK,PSH, RST ,SYN,FIN}<legal all> 366*5113495bSYour Name */ 367*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_OFFSET 0x00000000 368*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_LSB 7 369*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_MASK 0x0000ff80 370*5113495bSYour Name 371*5113495bSYour Name /* Description TX_MSDU_EXTENSION_0_TCP_FLAG_MASK 372*5113495bSYour Name 373*5113495bSYour Name TCP flag mask. Tcp_flag is inserted into the header 374*5113495bSYour Name based on the mask, if tso is enabled 375*5113495bSYour Name */ 376*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_MASK_OFFSET 0x00000000 377*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_MASK_LSB 16 378*5113495bSYour Name #define TX_MSDU_EXTENSION_0_TCP_FLAG_MASK_MASK 0x01ff0000 379*5113495bSYour Name 380*5113495bSYour Name /* Description TX_MSDU_EXTENSION_0_RESERVED_0B 381*5113495bSYour Name 382*5113495bSYour Name FW will set to 0, MAC will ignore. <legal 0> 383*5113495bSYour Name */ 384*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0B_OFFSET 0x00000000 385*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0B_LSB 25 386*5113495bSYour Name #define TX_MSDU_EXTENSION_0_RESERVED_0B_MASK 0xfe000000 387*5113495bSYour Name 388*5113495bSYour Name /* Description TX_MSDU_EXTENSION_1_L2_LENGTH 389*5113495bSYour Name 390*5113495bSYour Name L2 length for the msdu, if tso is enabled <legal all> 391*5113495bSYour Name */ 392*5113495bSYour Name #define TX_MSDU_EXTENSION_1_L2_LENGTH_OFFSET 0x00000004 393*5113495bSYour Name #define TX_MSDU_EXTENSION_1_L2_LENGTH_LSB 0 394*5113495bSYour Name #define TX_MSDU_EXTENSION_1_L2_LENGTH_MASK 0x0000ffff 395*5113495bSYour Name 396*5113495bSYour Name /* Description TX_MSDU_EXTENSION_1_IP_LENGTH 397*5113495bSYour Name 398*5113495bSYour Name Ip length for the msdu, if tso is enabled <legal all> 399*5113495bSYour Name */ 400*5113495bSYour Name #define TX_MSDU_EXTENSION_1_IP_LENGTH_OFFSET 0x00000004 401*5113495bSYour Name #define TX_MSDU_EXTENSION_1_IP_LENGTH_LSB 16 402*5113495bSYour Name #define TX_MSDU_EXTENSION_1_IP_LENGTH_MASK 0xffff0000 403*5113495bSYour Name 404*5113495bSYour Name /* Description TX_MSDU_EXTENSION_2_TCP_SEQ_NUMBER 405*5113495bSYour Name 406*5113495bSYour Name Tcp_seq_number for the msdu, if tso is enabled <legal 407*5113495bSYour Name all> 408*5113495bSYour Name */ 409*5113495bSYour Name #define TX_MSDU_EXTENSION_2_TCP_SEQ_NUMBER_OFFSET 0x00000008 410*5113495bSYour Name #define TX_MSDU_EXTENSION_2_TCP_SEQ_NUMBER_LSB 0 411*5113495bSYour Name #define TX_MSDU_EXTENSION_2_TCP_SEQ_NUMBER_MASK 0xffffffff 412*5113495bSYour Name 413*5113495bSYour Name /* Description TX_MSDU_EXTENSION_3_IP_IDENTIFICATION 414*5113495bSYour Name 415*5113495bSYour Name Ip_identification for the msdu, if tso is enabled <legal 416*5113495bSYour Name all> 417*5113495bSYour Name */ 418*5113495bSYour Name #define TX_MSDU_EXTENSION_3_IP_IDENTIFICATION_OFFSET 0x0000000c 419*5113495bSYour Name #define TX_MSDU_EXTENSION_3_IP_IDENTIFICATION_LSB 0 420*5113495bSYour Name #define TX_MSDU_EXTENSION_3_IP_IDENTIFICATION_MASK 0x0000ffff 421*5113495bSYour Name 422*5113495bSYour Name /* Description TX_MSDU_EXTENSION_3_UDP_LENGTH 423*5113495bSYour Name 424*5113495bSYour Name TXDMA is copies this field into MSDU START TLV 425*5113495bSYour Name */ 426*5113495bSYour Name #define TX_MSDU_EXTENSION_3_UDP_LENGTH_OFFSET 0x0000000c 427*5113495bSYour Name #define TX_MSDU_EXTENSION_3_UDP_LENGTH_LSB 16 428*5113495bSYour Name #define TX_MSDU_EXTENSION_3_UDP_LENGTH_MASK 0xffff0000 429*5113495bSYour Name 430*5113495bSYour Name /* Description TX_MSDU_EXTENSION_4_CHECKSUM_OFFSET 431*5113495bSYour Name 432*5113495bSYour Name The calculated checksum from start offset to end offset 433*5113495bSYour Name will be added to the checksum at the offset given by this 434*5113495bSYour Name field<legal all> 435*5113495bSYour Name */ 436*5113495bSYour Name #define TX_MSDU_EXTENSION_4_CHECKSUM_OFFSET_OFFSET 0x00000010 437*5113495bSYour Name #define TX_MSDU_EXTENSION_4_CHECKSUM_OFFSET_LSB 0 438*5113495bSYour Name #define TX_MSDU_EXTENSION_4_CHECKSUM_OFFSET_MASK 0x00003fff 439*5113495bSYour Name 440*5113495bSYour Name /* Description TX_MSDU_EXTENSION_4_PARTIAL_CHECKSUM_EN 441*5113495bSYour Name 442*5113495bSYour Name Partial Checksum Enable Bit. 443*5113495bSYour Name 444*5113495bSYour Name <legal 0-1> 445*5113495bSYour Name */ 446*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PARTIAL_CHECKSUM_EN_OFFSET 0x00000010 447*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PARTIAL_CHECKSUM_EN_LSB 14 448*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PARTIAL_CHECKSUM_EN_MASK 0x00004000 449*5113495bSYour Name 450*5113495bSYour Name /* Description TX_MSDU_EXTENSION_4_RESERVED_4A 451*5113495bSYour Name 452*5113495bSYour Name <Legal 0> 453*5113495bSYour Name */ 454*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4A_OFFSET 0x00000010 455*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4A_LSB 15 456*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4A_MASK 0x00008000 457*5113495bSYour Name 458*5113495bSYour Name /* Description TX_MSDU_EXTENSION_4_PAYLOAD_START_OFFSET 459*5113495bSYour Name 460*5113495bSYour Name L4 checksum calculations will start fromt this offset 461*5113495bSYour Name 462*5113495bSYour Name <Legal all> 463*5113495bSYour Name */ 464*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PAYLOAD_START_OFFSET_OFFSET 0x00000010 465*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PAYLOAD_START_OFFSET_LSB 16 466*5113495bSYour Name #define TX_MSDU_EXTENSION_4_PAYLOAD_START_OFFSET_MASK 0x3fff0000 467*5113495bSYour Name 468*5113495bSYour Name /* Description TX_MSDU_EXTENSION_4_RESERVED_4B 469*5113495bSYour Name 470*5113495bSYour Name <Legal 0> 471*5113495bSYour Name */ 472*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4B_OFFSET 0x00000010 473*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4B_LSB 30 474*5113495bSYour Name #define TX_MSDU_EXTENSION_4_RESERVED_4B_MASK 0xc0000000 475*5113495bSYour Name 476*5113495bSYour Name /* Description TX_MSDU_EXTENSION_5_PAYLOAD_END_OFFSET 477*5113495bSYour Name 478*5113495bSYour Name L4 checksum calculations will end at this offset. 479*5113495bSYour Name 480*5113495bSYour Name <Legal all> 481*5113495bSYour Name */ 482*5113495bSYour Name #define TX_MSDU_EXTENSION_5_PAYLOAD_END_OFFSET_OFFSET 0x00000014 483*5113495bSYour Name #define TX_MSDU_EXTENSION_5_PAYLOAD_END_OFFSET_LSB 0 484*5113495bSYour Name #define TX_MSDU_EXTENSION_5_PAYLOAD_END_OFFSET_MASK 0x00003fff 485*5113495bSYour Name 486*5113495bSYour Name /* Description TX_MSDU_EXTENSION_5_RESERVED_5A 487*5113495bSYour Name 488*5113495bSYour Name <Legal 0> 489*5113495bSYour Name */ 490*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5A_OFFSET 0x00000014 491*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5A_LSB 14 492*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5A_MASK 0x0000c000 493*5113495bSYour Name 494*5113495bSYour Name /* Description TX_MSDU_EXTENSION_5_WDS 495*5113495bSYour Name 496*5113495bSYour Name If set the current packet is 4-address frame. Required 497*5113495bSYour Name because an aggregate can include some frames with 3 address 498*5113495bSYour Name format and other frames with 4 address format. Used by the 499*5113495bSYour Name OLE during encapsulation. 500*5113495bSYour Name 501*5113495bSYour Name Note: there is also global wds tx control in the 502*5113495bSYour Name TX_PEER_ENTRY 503*5113495bSYour Name 504*5113495bSYour Name <legal all> 505*5113495bSYour Name */ 506*5113495bSYour Name #define TX_MSDU_EXTENSION_5_WDS_OFFSET 0x00000014 507*5113495bSYour Name #define TX_MSDU_EXTENSION_5_WDS_LSB 16 508*5113495bSYour Name #define TX_MSDU_EXTENSION_5_WDS_MASK 0x00010000 509*5113495bSYour Name 510*5113495bSYour Name /* Description TX_MSDU_EXTENSION_5_RESERVED_5B 511*5113495bSYour Name 512*5113495bSYour Name <Legal 0> 513*5113495bSYour Name */ 514*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5B_OFFSET 0x00000014 515*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5B_LSB 17 516*5113495bSYour Name #define TX_MSDU_EXTENSION_5_RESERVED_5B_MASK 0xfffe0000 517*5113495bSYour Name 518*5113495bSYour Name /* Description TX_MSDU_EXTENSION_6_BUF0_PTR_31_0 519*5113495bSYour Name 520*5113495bSYour Name Lower 32 bits of the first buffer pointer 521*5113495bSYour Name 522*5113495bSYour Name 523*5113495bSYour Name 524*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 525*5113495bSYour Name buffer together with the 'cookie' info for this 526*5113495bSYour Name MSDU_EXTENSION descriptor 527*5113495bSYour Name 528*5113495bSYour Name <legal all> 529*5113495bSYour Name */ 530*5113495bSYour Name #define TX_MSDU_EXTENSION_6_BUF0_PTR_31_0_OFFSET 0x00000018 531*5113495bSYour Name #define TX_MSDU_EXTENSION_6_BUF0_PTR_31_0_LSB 0 532*5113495bSYour Name #define TX_MSDU_EXTENSION_6_BUF0_PTR_31_0_MASK 0xffffffff 533*5113495bSYour Name 534*5113495bSYour Name /* Description TX_MSDU_EXTENSION_7_BUF0_PTR_39_32 535*5113495bSYour Name 536*5113495bSYour Name Upper 8 bits of the first buffer pointer <legal all> 537*5113495bSYour Name */ 538*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_PTR_39_32_OFFSET 0x0000001c 539*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_PTR_39_32_LSB 0 540*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_PTR_39_32_MASK 0x000000ff 541*5113495bSYour Name 542*5113495bSYour Name /* Description TX_MSDU_EXTENSION_7_RESERVED_7A 543*5113495bSYour Name 544*5113495bSYour Name <Legal 0> 545*5113495bSYour Name */ 546*5113495bSYour Name #define TX_MSDU_EXTENSION_7_RESERVED_7A_OFFSET 0x0000001c 547*5113495bSYour Name #define TX_MSDU_EXTENSION_7_RESERVED_7A_LSB 8 548*5113495bSYour Name #define TX_MSDU_EXTENSION_7_RESERVED_7A_MASK 0x0000ff00 549*5113495bSYour Name 550*5113495bSYour Name /* Description TX_MSDU_EXTENSION_7_BUF0_LEN 551*5113495bSYour Name 552*5113495bSYour Name Length of the first buffer <legal all> 553*5113495bSYour Name */ 554*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_LEN_OFFSET 0x0000001c 555*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_LEN_LSB 16 556*5113495bSYour Name #define TX_MSDU_EXTENSION_7_BUF0_LEN_MASK 0xffff0000 557*5113495bSYour Name 558*5113495bSYour Name /* Description TX_MSDU_EXTENSION_8_BUF1_PTR_31_0 559*5113495bSYour Name 560*5113495bSYour Name Lower 32 bits of the second buffer pointer 561*5113495bSYour Name 562*5113495bSYour Name 563*5113495bSYour Name 564*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 565*5113495bSYour Name buffer together with the 'cookie' info for this 566*5113495bSYour Name MSDU_EXTENSION descriptor 567*5113495bSYour Name 568*5113495bSYour Name <legal all> 569*5113495bSYour Name */ 570*5113495bSYour Name #define TX_MSDU_EXTENSION_8_BUF1_PTR_31_0_OFFSET 0x00000020 571*5113495bSYour Name #define TX_MSDU_EXTENSION_8_BUF1_PTR_31_0_LSB 0 572*5113495bSYour Name #define TX_MSDU_EXTENSION_8_BUF1_PTR_31_0_MASK 0xffffffff 573*5113495bSYour Name 574*5113495bSYour Name /* Description TX_MSDU_EXTENSION_9_BUF1_PTR_39_32 575*5113495bSYour Name 576*5113495bSYour Name Upper 8 bits of the second buffer pointer <legal all> 577*5113495bSYour Name */ 578*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_PTR_39_32_OFFSET 0x00000024 579*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_PTR_39_32_LSB 0 580*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_PTR_39_32_MASK 0x000000ff 581*5113495bSYour Name 582*5113495bSYour Name /* Description TX_MSDU_EXTENSION_9_RESERVED_9A 583*5113495bSYour Name 584*5113495bSYour Name <Legal 0> 585*5113495bSYour Name */ 586*5113495bSYour Name #define TX_MSDU_EXTENSION_9_RESERVED_9A_OFFSET 0x00000024 587*5113495bSYour Name #define TX_MSDU_EXTENSION_9_RESERVED_9A_LSB 8 588*5113495bSYour Name #define TX_MSDU_EXTENSION_9_RESERVED_9A_MASK 0x0000ff00 589*5113495bSYour Name 590*5113495bSYour Name /* Description TX_MSDU_EXTENSION_9_BUF1_LEN 591*5113495bSYour Name 592*5113495bSYour Name Length of the second buffer <legal all> 593*5113495bSYour Name */ 594*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_LEN_OFFSET 0x00000024 595*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_LEN_LSB 16 596*5113495bSYour Name #define TX_MSDU_EXTENSION_9_BUF1_LEN_MASK 0xffff0000 597*5113495bSYour Name 598*5113495bSYour Name /* Description TX_MSDU_EXTENSION_10_BUF2_PTR_31_0 599*5113495bSYour Name 600*5113495bSYour Name Lower 32 bits of the third buffer pointer 601*5113495bSYour Name 602*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 603*5113495bSYour Name buffer together with the 'cookie' info for this 604*5113495bSYour Name MSDU_EXTENSION descriptor 605*5113495bSYour Name 606*5113495bSYour Name <legal all> 607*5113495bSYour Name */ 608*5113495bSYour Name #define TX_MSDU_EXTENSION_10_BUF2_PTR_31_0_OFFSET 0x00000028 609*5113495bSYour Name #define TX_MSDU_EXTENSION_10_BUF2_PTR_31_0_LSB 0 610*5113495bSYour Name #define TX_MSDU_EXTENSION_10_BUF2_PTR_31_0_MASK 0xffffffff 611*5113495bSYour Name 612*5113495bSYour Name /* Description TX_MSDU_EXTENSION_11_BUF2_PTR_39_32 613*5113495bSYour Name 614*5113495bSYour Name Upper 8 bits of the third buffer pointer <legal all> 615*5113495bSYour Name */ 616*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_PTR_39_32_OFFSET 0x0000002c 617*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_PTR_39_32_LSB 0 618*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_PTR_39_32_MASK 0x000000ff 619*5113495bSYour Name 620*5113495bSYour Name /* Description TX_MSDU_EXTENSION_11_RESERVED_11A 621*5113495bSYour Name 622*5113495bSYour Name <Legal 0> 623*5113495bSYour Name */ 624*5113495bSYour Name #define TX_MSDU_EXTENSION_11_RESERVED_11A_OFFSET 0x0000002c 625*5113495bSYour Name #define TX_MSDU_EXTENSION_11_RESERVED_11A_LSB 8 626*5113495bSYour Name #define TX_MSDU_EXTENSION_11_RESERVED_11A_MASK 0x0000ff00 627*5113495bSYour Name 628*5113495bSYour Name /* Description TX_MSDU_EXTENSION_11_BUF2_LEN 629*5113495bSYour Name 630*5113495bSYour Name Length of the third buffer <legal all> 631*5113495bSYour Name */ 632*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_LEN_OFFSET 0x0000002c 633*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_LEN_LSB 16 634*5113495bSYour Name #define TX_MSDU_EXTENSION_11_BUF2_LEN_MASK 0xffff0000 635*5113495bSYour Name 636*5113495bSYour Name /* Description TX_MSDU_EXTENSION_12_BUF3_PTR_31_0 637*5113495bSYour Name 638*5113495bSYour Name Lower 32 bits of the fourth buffer pointer 639*5113495bSYour Name 640*5113495bSYour Name 641*5113495bSYour Name 642*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 643*5113495bSYour Name buffer together with the 'cookie' info for this 644*5113495bSYour Name MSDU_EXTENSION descriptor 645*5113495bSYour Name 646*5113495bSYour Name <legal all> 647*5113495bSYour Name */ 648*5113495bSYour Name #define TX_MSDU_EXTENSION_12_BUF3_PTR_31_0_OFFSET 0x00000030 649*5113495bSYour Name #define TX_MSDU_EXTENSION_12_BUF3_PTR_31_0_LSB 0 650*5113495bSYour Name #define TX_MSDU_EXTENSION_12_BUF3_PTR_31_0_MASK 0xffffffff 651*5113495bSYour Name 652*5113495bSYour Name /* Description TX_MSDU_EXTENSION_13_BUF3_PTR_39_32 653*5113495bSYour Name 654*5113495bSYour Name Upper 8 bits of the fourth buffer pointer <legal all> 655*5113495bSYour Name */ 656*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_PTR_39_32_OFFSET 0x00000034 657*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_PTR_39_32_LSB 0 658*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_PTR_39_32_MASK 0x000000ff 659*5113495bSYour Name 660*5113495bSYour Name /* Description TX_MSDU_EXTENSION_13_RESERVED_13A 661*5113495bSYour Name 662*5113495bSYour Name <Legal 0> 663*5113495bSYour Name */ 664*5113495bSYour Name #define TX_MSDU_EXTENSION_13_RESERVED_13A_OFFSET 0x00000034 665*5113495bSYour Name #define TX_MSDU_EXTENSION_13_RESERVED_13A_LSB 8 666*5113495bSYour Name #define TX_MSDU_EXTENSION_13_RESERVED_13A_MASK 0x0000ff00 667*5113495bSYour Name 668*5113495bSYour Name /* Description TX_MSDU_EXTENSION_13_BUF3_LEN 669*5113495bSYour Name 670*5113495bSYour Name Length of the fourth buffer <legal all> 671*5113495bSYour Name */ 672*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_LEN_OFFSET 0x00000034 673*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_LEN_LSB 16 674*5113495bSYour Name #define TX_MSDU_EXTENSION_13_BUF3_LEN_MASK 0xffff0000 675*5113495bSYour Name 676*5113495bSYour Name /* Description TX_MSDU_EXTENSION_14_BUF4_PTR_31_0 677*5113495bSYour Name 678*5113495bSYour Name Lower 32 bits of the fifth buffer pointer 679*5113495bSYour Name 680*5113495bSYour Name 681*5113495bSYour Name 682*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 683*5113495bSYour Name buffer together with the 'cookie' info for this 684*5113495bSYour Name MSDU_EXTENSION descriptor 685*5113495bSYour Name 686*5113495bSYour Name <legal all> 687*5113495bSYour Name */ 688*5113495bSYour Name #define TX_MSDU_EXTENSION_14_BUF4_PTR_31_0_OFFSET 0x00000038 689*5113495bSYour Name #define TX_MSDU_EXTENSION_14_BUF4_PTR_31_0_LSB 0 690*5113495bSYour Name #define TX_MSDU_EXTENSION_14_BUF4_PTR_31_0_MASK 0xffffffff 691*5113495bSYour Name 692*5113495bSYour Name /* Description TX_MSDU_EXTENSION_15_BUF4_PTR_39_32 693*5113495bSYour Name 694*5113495bSYour Name Upper 8 bits of the fifth buffer pointer <legal all> 695*5113495bSYour Name */ 696*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_PTR_39_32_OFFSET 0x0000003c 697*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_PTR_39_32_LSB 0 698*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_PTR_39_32_MASK 0x000000ff 699*5113495bSYour Name 700*5113495bSYour Name /* Description TX_MSDU_EXTENSION_15_RESERVED_15A 701*5113495bSYour Name 702*5113495bSYour Name <Legal 0> 703*5113495bSYour Name */ 704*5113495bSYour Name #define TX_MSDU_EXTENSION_15_RESERVED_15A_OFFSET 0x0000003c 705*5113495bSYour Name #define TX_MSDU_EXTENSION_15_RESERVED_15A_LSB 8 706*5113495bSYour Name #define TX_MSDU_EXTENSION_15_RESERVED_15A_MASK 0x0000ff00 707*5113495bSYour Name 708*5113495bSYour Name /* Description TX_MSDU_EXTENSION_15_BUF4_LEN 709*5113495bSYour Name 710*5113495bSYour Name Length of the fifth buffer <legal all> 711*5113495bSYour Name */ 712*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_LEN_OFFSET 0x0000003c 713*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_LEN_LSB 16 714*5113495bSYour Name #define TX_MSDU_EXTENSION_15_BUF4_LEN_MASK 0xffff0000 715*5113495bSYour Name 716*5113495bSYour Name /* Description TX_MSDU_EXTENSION_16_BUF5_PTR_31_0 717*5113495bSYour Name 718*5113495bSYour Name Lower 32 bits of the sixth buffer pointer 719*5113495bSYour Name 720*5113495bSYour Name 721*5113495bSYour Name 722*5113495bSYour Name NOTE: SW/FW manages the 'cookie' info related to this 723*5113495bSYour Name buffer together with the 'cookie' info for this 724*5113495bSYour Name MSDU_EXTENSION descriptor 725*5113495bSYour Name 726*5113495bSYour Name <legal all> 727*5113495bSYour Name */ 728*5113495bSYour Name #define TX_MSDU_EXTENSION_16_BUF5_PTR_31_0_OFFSET 0x00000040 729*5113495bSYour Name #define TX_MSDU_EXTENSION_16_BUF5_PTR_31_0_LSB 0 730*5113495bSYour Name #define TX_MSDU_EXTENSION_16_BUF5_PTR_31_0_MASK 0xffffffff 731*5113495bSYour Name 732*5113495bSYour Name /* Description TX_MSDU_EXTENSION_17_BUF5_PTR_39_32 733*5113495bSYour Name 734*5113495bSYour Name Upper 8 bits of the sixth buffer pointer <legal all> 735*5113495bSYour Name */ 736*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_PTR_39_32_OFFSET 0x00000044 737*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_PTR_39_32_LSB 0 738*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_PTR_39_32_MASK 0x000000ff 739*5113495bSYour Name 740*5113495bSYour Name /* Description TX_MSDU_EXTENSION_17_RESERVED_17A 741*5113495bSYour Name 742*5113495bSYour Name <Legal 0> 743*5113495bSYour Name */ 744*5113495bSYour Name #define TX_MSDU_EXTENSION_17_RESERVED_17A_OFFSET 0x00000044 745*5113495bSYour Name #define TX_MSDU_EXTENSION_17_RESERVED_17A_LSB 8 746*5113495bSYour Name #define TX_MSDU_EXTENSION_17_RESERVED_17A_MASK 0x0000ff00 747*5113495bSYour Name 748*5113495bSYour Name /* Description TX_MSDU_EXTENSION_17_BUF5_LEN 749*5113495bSYour Name 750*5113495bSYour Name Length of the sixth buffer <legal all> 751*5113495bSYour Name */ 752*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_LEN_OFFSET 0x00000044 753*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_LEN_LSB 16 754*5113495bSYour Name #define TX_MSDU_EXTENSION_17_BUF5_LEN_MASK 0xffff0000 755*5113495bSYour Name 756*5113495bSYour Name 757*5113495bSYour Name #endif // _TX_MSDU_EXTENSION_H_ 758