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 _COEX_TX_REQ_H_ 19*5113495bSYour Name #define _COEX_TX_REQ_H_ 20*5113495bSYour Name 21*5113495bSYour Name #define NUM_OF_DWORDS_COEX_TX_REQ 4 22*5113495bSYour Name 23*5113495bSYour Name struct coex_tx_req { 24*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 25*5113495bSYour Name uint32_t tx_pwr : 8, 26*5113495bSYour Name min_tx_pwr : 8, 27*5113495bSYour Name nss : 3, 28*5113495bSYour Name tx_chain_mask : 8, 29*5113495bSYour Name bw : 3, 30*5113495bSYour Name reserved_0 : 2; 31*5113495bSYour Name uint32_t alt_tx_pwr : 8, 32*5113495bSYour Name alt_min_tx_pwr : 8, 33*5113495bSYour Name alt_nss : 3, 34*5113495bSYour Name alt_tx_chain_mask : 8, 35*5113495bSYour Name alt_bw : 3, 36*5113495bSYour Name reserved_1 : 2; 37*5113495bSYour Name uint32_t tx_pwr_1 : 8, 38*5113495bSYour Name alt_tx_pwr_1 : 8, 39*5113495bSYour Name wlan_request_duration : 16; 40*5113495bSYour Name uint32_t wlan_pkt_type : 4, 41*5113495bSYour Name coex_tx_reason : 2, 42*5113495bSYour Name response_frame_type : 5, 43*5113495bSYour Name wlan_low_priority_slicing_allowed : 1, 44*5113495bSYour Name wlan_high_priority_slicing_allowed : 1, 45*5113495bSYour Name sch_tx_burst_ongoing : 1, 46*5113495bSYour Name coex_tx_priority : 4, 47*5113495bSYour Name reserved_3a : 14; 48*5113495bSYour Name #else 49*5113495bSYour Name uint32_t reserved_0 : 2, 50*5113495bSYour Name bw : 3, 51*5113495bSYour Name tx_chain_mask : 8, 52*5113495bSYour Name nss : 3, 53*5113495bSYour Name min_tx_pwr : 8, 54*5113495bSYour Name tx_pwr : 8; 55*5113495bSYour Name uint32_t reserved_1 : 2, 56*5113495bSYour Name alt_bw : 3, 57*5113495bSYour Name alt_tx_chain_mask : 8, 58*5113495bSYour Name alt_nss : 3, 59*5113495bSYour Name alt_min_tx_pwr : 8, 60*5113495bSYour Name alt_tx_pwr : 8; 61*5113495bSYour Name uint32_t wlan_request_duration : 16, 62*5113495bSYour Name alt_tx_pwr_1 : 8, 63*5113495bSYour Name tx_pwr_1 : 8; 64*5113495bSYour Name uint32_t reserved_3a : 14, 65*5113495bSYour Name coex_tx_priority : 4, 66*5113495bSYour Name sch_tx_burst_ongoing : 1, 67*5113495bSYour Name wlan_high_priority_slicing_allowed : 1, 68*5113495bSYour Name wlan_low_priority_slicing_allowed : 1, 69*5113495bSYour Name response_frame_type : 5, 70*5113495bSYour Name coex_tx_reason : 2, 71*5113495bSYour Name wlan_pkt_type : 4; 72*5113495bSYour Name #endif 73*5113495bSYour Name }; 74*5113495bSYour Name 75*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_OFFSET 0x00000000 76*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_LSB 0 77*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_MSB 7 78*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_MASK 0x000000ff 79*5113495bSYour Name 80*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_OFFSET 0x00000000 81*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_LSB 8 82*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_MSB 15 83*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_MASK 0x0000ff00 84*5113495bSYour Name 85*5113495bSYour Name #define COEX_TX_REQ_NSS_OFFSET 0x00000000 86*5113495bSYour Name #define COEX_TX_REQ_NSS_LSB 16 87*5113495bSYour Name #define COEX_TX_REQ_NSS_MSB 18 88*5113495bSYour Name #define COEX_TX_REQ_NSS_MASK 0x00070000 89*5113495bSYour Name 90*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_OFFSET 0x00000000 91*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_LSB 19 92*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_MSB 26 93*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_MASK 0x07f80000 94*5113495bSYour Name 95*5113495bSYour Name #define COEX_TX_REQ_BW_OFFSET 0x00000000 96*5113495bSYour Name #define COEX_TX_REQ_BW_LSB 27 97*5113495bSYour Name #define COEX_TX_REQ_BW_MSB 29 98*5113495bSYour Name #define COEX_TX_REQ_BW_MASK 0x38000000 99*5113495bSYour Name 100*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_OFFSET 0x00000000 101*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_LSB 30 102*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_MSB 31 103*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_MASK 0xc0000000 104*5113495bSYour Name 105*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_OFFSET 0x00000004 106*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_LSB 0 107*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_MSB 7 108*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_MASK 0x000000ff 109*5113495bSYour Name 110*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_OFFSET 0x00000004 111*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_LSB 8 112*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_MSB 15 113*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_MASK 0x0000ff00 114*5113495bSYour Name 115*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_OFFSET 0x00000004 116*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_LSB 16 117*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_MSB 18 118*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_MASK 0x00070000 119*5113495bSYour Name 120*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_OFFSET 0x00000004 121*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_LSB 19 122*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_MSB 26 123*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_MASK 0x07f80000 124*5113495bSYour Name 125*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_OFFSET 0x00000004 126*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_LSB 27 127*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_MSB 29 128*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_MASK 0x38000000 129*5113495bSYour Name 130*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_OFFSET 0x00000004 131*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_LSB 30 132*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_MSB 31 133*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_MASK 0xc0000000 134*5113495bSYour Name 135*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_OFFSET 0x00000008 136*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_LSB 0 137*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_MSB 7 138*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_MASK 0x000000ff 139*5113495bSYour Name 140*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_OFFSET 0x00000008 141*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_LSB 8 142*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_MSB 15 143*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_MASK 0x0000ff00 144*5113495bSYour Name 145*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_OFFSET 0x00000008 146*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_LSB 16 147*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_MSB 31 148*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_MASK 0xffff0000 149*5113495bSYour Name 150*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_OFFSET 0x0000000c 151*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_LSB 0 152*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_MSB 3 153*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_MASK 0x0000000f 154*5113495bSYour Name 155*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_OFFSET 0x0000000c 156*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_LSB 4 157*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_MSB 5 158*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_MASK 0x00000030 159*5113495bSYour Name 160*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_OFFSET 0x0000000c 161*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_LSB 6 162*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_MSB 10 163*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_MASK 0x000007c0 164*5113495bSYour Name 165*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_OFFSET 0x0000000c 166*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_LSB 11 167*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_MSB 11 168*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_MASK 0x00000800 169*5113495bSYour Name 170*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_OFFSET 0x0000000c 171*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_LSB 12 172*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_MSB 12 173*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_MASK 0x00001000 174*5113495bSYour Name 175*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_OFFSET 0x0000000c 176*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_LSB 13 177*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_MSB 13 178*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_MASK 0x00002000 179*5113495bSYour Name 180*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_OFFSET 0x0000000c 181*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_LSB 14 182*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_MSB 17 183*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_MASK 0x0003c000 184*5113495bSYour Name 185*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_OFFSET 0x0000000c 186*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_LSB 18 187*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_MSB 31 188*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_MASK 0xfffc0000 189*5113495bSYour Name 190*5113495bSYour Name #endif 191