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