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