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