1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. 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 18*5113495bSYour Name #ifndef _PDG_TX_REQ_H_ 19*5113495bSYour Name #define _PDG_TX_REQ_H_ 20*5113495bSYour Name 21*5113495bSYour Name #define NUM_OF_DWORDS_PDG_TX_REQ 2 22*5113495bSYour Name 23*5113495bSYour Name struct pdg_tx_req { 24*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 25*5113495bSYour Name uint32_t tx_reason : 2, 26*5113495bSYour Name use_puncture_pattern : 2, 27*5113495bSYour Name req_bw : 3, 28*5113495bSYour Name puncture_pattern_number : 6, 29*5113495bSYour Name reserved_0b : 1, 30*5113495bSYour Name req_paprd : 1, 31*5113495bSYour Name duration_field_boundary_valid : 1, 32*5113495bSYour Name duration_field_boundary : 16; 33*5113495bSYour Name uint32_t puncture_subband_mask : 16, 34*5113495bSYour Name reserved_0c : 16; 35*5113495bSYour Name #else 36*5113495bSYour Name uint32_t duration_field_boundary : 16, 37*5113495bSYour Name duration_field_boundary_valid : 1, 38*5113495bSYour Name req_paprd : 1, 39*5113495bSYour Name reserved_0b : 1, 40*5113495bSYour Name puncture_pattern_number : 6, 41*5113495bSYour Name req_bw : 3, 42*5113495bSYour Name use_puncture_pattern : 2, 43*5113495bSYour Name tx_reason : 2; 44*5113495bSYour Name uint32_t reserved_0c : 16, 45*5113495bSYour Name puncture_subband_mask : 16; 46*5113495bSYour Name #endif 47*5113495bSYour Name }; 48*5113495bSYour Name 49*5113495bSYour Name #define PDG_TX_REQ_TX_REASON_OFFSET 0x00000000 50*5113495bSYour Name #define PDG_TX_REQ_TX_REASON_LSB 0 51*5113495bSYour Name #define PDG_TX_REQ_TX_REASON_MSB 1 52*5113495bSYour Name #define PDG_TX_REQ_TX_REASON_MASK 0x00000003 53*5113495bSYour Name 54*5113495bSYour Name #define PDG_TX_REQ_USE_PUNCTURE_PATTERN_OFFSET 0x00000000 55*5113495bSYour Name #define PDG_TX_REQ_USE_PUNCTURE_PATTERN_LSB 2 56*5113495bSYour Name #define PDG_TX_REQ_USE_PUNCTURE_PATTERN_MSB 3 57*5113495bSYour Name #define PDG_TX_REQ_USE_PUNCTURE_PATTERN_MASK 0x0000000c 58*5113495bSYour Name 59*5113495bSYour Name #define PDG_TX_REQ_REQ_BW_OFFSET 0x00000000 60*5113495bSYour Name #define PDG_TX_REQ_REQ_BW_LSB 4 61*5113495bSYour Name #define PDG_TX_REQ_REQ_BW_MSB 6 62*5113495bSYour Name #define PDG_TX_REQ_REQ_BW_MASK 0x00000070 63*5113495bSYour Name 64*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_PATTERN_NUMBER_OFFSET 0x00000000 65*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_PATTERN_NUMBER_LSB 7 66*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_PATTERN_NUMBER_MSB 12 67*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_PATTERN_NUMBER_MASK 0x00001f80 68*5113495bSYour Name 69*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0B_OFFSET 0x00000000 70*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0B_LSB 13 71*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0B_MSB 13 72*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0B_MASK 0x00002000 73*5113495bSYour Name 74*5113495bSYour Name #define PDG_TX_REQ_REQ_PAPRD_OFFSET 0x00000000 75*5113495bSYour Name #define PDG_TX_REQ_REQ_PAPRD_LSB 14 76*5113495bSYour Name #define PDG_TX_REQ_REQ_PAPRD_MSB 14 77*5113495bSYour Name #define PDG_TX_REQ_REQ_PAPRD_MASK 0x00004000 78*5113495bSYour Name 79*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_VALID_OFFSET 0x00000000 80*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_VALID_LSB 15 81*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_VALID_MSB 15 82*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_VALID_MASK 0x00008000 83*5113495bSYour Name 84*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_OFFSET 0x00000000 85*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_LSB 16 86*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_MSB 31 87*5113495bSYour Name #define PDG_TX_REQ_DURATION_FIELD_BOUNDARY_MASK 0xffff0000 88*5113495bSYour Name 89*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_SUBBAND_MASK_OFFSET 0x00000004 90*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_SUBBAND_MASK_LSB 0 91*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_SUBBAND_MASK_MSB 15 92*5113495bSYour Name #define PDG_TX_REQ_PUNCTURE_SUBBAND_MASK_MASK 0x0000ffff 93*5113495bSYour Name 94*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0C_OFFSET 0x00000004 95*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0C_LSB 16 96*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0C_MSB 31 97*5113495bSYour Name #define PDG_TX_REQ_RESERVED_0C_MASK 0xffff0000 98*5113495bSYour Name 99*5113495bSYour Name #endif 100