1*5113495bSYour Name 2*5113495bSYour Name /* 3*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name #ifndef _RX_LOCATION_INFO_H_ 23*5113495bSYour Name #define _RX_LOCATION_INFO_H_ 24*5113495bSYour Name #if !defined(__ASSEMBLER__) 25*5113495bSYour Name #endif 26*5113495bSYour Name 27*5113495bSYour Name #define NUM_OF_DWORDS_RX_LOCATION_INFO 9 28*5113495bSYour Name 29*5113495bSYour Name struct rx_location_info { 30*5113495bSYour Name uint32_t rtt_fac_legacy : 16, 31*5113495bSYour Name rtt_fac_legacy_ext80 : 16; 32*5113495bSYour Name uint32_t rtt_fac_vht : 16, 33*5113495bSYour Name rtt_fac_vht_ext80 : 16; 34*5113495bSYour Name uint32_t rtt_fac_legacy_status : 1, 35*5113495bSYour Name rtt_fac_legacy_ext80_status : 1, 36*5113495bSYour Name rtt_fac_vht_status : 1, 37*5113495bSYour Name rtt_fac_vht_ext80_status : 1, 38*5113495bSYour Name rtt_fac_sifs : 12, 39*5113495bSYour Name rtt_fac_sifs_status : 2, 40*5113495bSYour Name rtt_cfr_status : 1, 41*5113495bSYour Name rtt_cir_status : 1, 42*5113495bSYour Name rtt_channel_dump_size : 11, 43*5113495bSYour Name rtt_hw_ifft_mode : 1; 44*5113495bSYour Name uint32_t rtt_btcf_status : 1, 45*5113495bSYour Name rtt_preamble_type : 5, 46*5113495bSYour Name rtt_pkt_bw_leg : 2, 47*5113495bSYour Name rtt_pkt_bw_vht : 2, 48*5113495bSYour Name rtt_gi_type : 2, 49*5113495bSYour Name rtt_mcs_rate : 5, 50*5113495bSYour Name rtt_strongest_chain : 3, 51*5113495bSYour Name rtt_strongest_chain_ext80 : 3, 52*5113495bSYour Name rtt_rx_chain_mask : 8, 53*5113495bSYour Name reserved_3 : 1; 54*5113495bSYour Name uint32_t rx_start_ts : 32; 55*5113495bSYour Name uint32_t rx_end_ts : 32; 56*5113495bSYour Name uint32_t sfo_phase_pkt_start : 12, 57*5113495bSYour Name sfo_phase_pkt_end : 12, 58*5113495bSYour Name rtt_che_buffer_pointer_high8 : 8; 59*5113495bSYour Name uint32_t rtt_che_buffer_pointer_low32 : 32; 60*5113495bSYour Name uint32_t rtt_cfo_measurement : 14, 61*5113495bSYour Name rtt_chan_spread : 8, 62*5113495bSYour Name rtt_timing_backoff_sel : 2, 63*5113495bSYour Name reserved_8 : 7, 64*5113495bSYour Name rx_location_info_valid : 1; 65*5113495bSYour Name }; 66*5113495bSYour Name 67*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_OFFSET 0x00000000 68*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_LSB 0 69*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_MASK 0x0000ffff 70*5113495bSYour Name 71*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_EXT80_OFFSET 0x00000000 72*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_EXT80_LSB 16 73*5113495bSYour Name #define RX_LOCATION_INFO_0_RTT_FAC_LEGACY_EXT80_MASK 0xffff0000 74*5113495bSYour Name 75*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_OFFSET 0x00000004 76*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_LSB 0 77*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_MASK 0x0000ffff 78*5113495bSYour Name 79*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_EXT80_OFFSET 0x00000004 80*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_EXT80_LSB 16 81*5113495bSYour Name #define RX_LOCATION_INFO_1_RTT_FAC_VHT_EXT80_MASK 0xffff0000 82*5113495bSYour Name 83*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_STATUS_OFFSET 0x00000008 84*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_STATUS_LSB 0 85*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_STATUS_MASK 0x00000001 86*5113495bSYour Name 87*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_EXT80_STATUS_OFFSET 0x00000008 88*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_EXT80_STATUS_LSB 1 89*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_LEGACY_EXT80_STATUS_MASK 0x00000002 90*5113495bSYour Name 91*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_STATUS_OFFSET 0x00000008 92*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_STATUS_LSB 2 93*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_STATUS_MASK 0x00000004 94*5113495bSYour Name 95*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_EXT80_STATUS_OFFSET 0x00000008 96*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_EXT80_STATUS_LSB 3 97*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_VHT_EXT80_STATUS_MASK 0x00000008 98*5113495bSYour Name 99*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_OFFSET 0x00000008 100*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_LSB 4 101*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_MASK 0x0000fff0 102*5113495bSYour Name 103*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_STATUS_OFFSET 0x00000008 104*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_STATUS_LSB 16 105*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_FAC_SIFS_STATUS_MASK 0x00030000 106*5113495bSYour Name 107*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CFR_STATUS_OFFSET 0x00000008 108*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CFR_STATUS_LSB 18 109*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CFR_STATUS_MASK 0x00040000 110*5113495bSYour Name 111*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CIR_STATUS_OFFSET 0x00000008 112*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CIR_STATUS_LSB 19 113*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CIR_STATUS_MASK 0x00080000 114*5113495bSYour Name 115*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CHANNEL_DUMP_SIZE_OFFSET 0x00000008 116*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CHANNEL_DUMP_SIZE_LSB 20 117*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_CHANNEL_DUMP_SIZE_MASK 0x7ff00000 118*5113495bSYour Name 119*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_HW_IFFT_MODE_OFFSET 0x00000008 120*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_HW_IFFT_MODE_LSB 31 121*5113495bSYour Name #define RX_LOCATION_INFO_2_RTT_HW_IFFT_MODE_MASK 0x80000000 122*5113495bSYour Name 123*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_BTCF_STATUS_OFFSET 0x0000000c 124*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_BTCF_STATUS_LSB 0 125*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_BTCF_STATUS_MASK 0x00000001 126*5113495bSYour Name 127*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PREAMBLE_TYPE_OFFSET 0x0000000c 128*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PREAMBLE_TYPE_LSB 1 129*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PREAMBLE_TYPE_MASK 0x0000003e 130*5113495bSYour Name 131*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_LEG_OFFSET 0x0000000c 132*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_LEG_LSB 6 133*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_LEG_MASK 0x000000c0 134*5113495bSYour Name 135*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_VHT_OFFSET 0x0000000c 136*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_VHT_LSB 8 137*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_PKT_BW_VHT_MASK 0x00000300 138*5113495bSYour Name 139*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_GI_TYPE_OFFSET 0x0000000c 140*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_GI_TYPE_LSB 10 141*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_GI_TYPE_MASK 0x00000c00 142*5113495bSYour Name 143*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_MCS_RATE_OFFSET 0x0000000c 144*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_MCS_RATE_LSB 12 145*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_MCS_RATE_MASK 0x0001f000 146*5113495bSYour Name 147*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_OFFSET 0x0000000c 148*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_LSB 17 149*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_MASK 0x000e0000 150*5113495bSYour Name 151*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_EXT80_OFFSET 0x0000000c 152*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_EXT80_LSB 20 153*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_STRONGEST_CHAIN_EXT80_MASK 0x00700000 154*5113495bSYour Name 155*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_RX_CHAIN_MASK_OFFSET 0x0000000c 156*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_RX_CHAIN_MASK_LSB 23 157*5113495bSYour Name #define RX_LOCATION_INFO_3_RTT_RX_CHAIN_MASK_MASK 0x7f800000 158*5113495bSYour Name 159*5113495bSYour Name #define RX_LOCATION_INFO_3_RESERVED_3_OFFSET 0x0000000c 160*5113495bSYour Name #define RX_LOCATION_INFO_3_RESERVED_3_LSB 31 161*5113495bSYour Name #define RX_LOCATION_INFO_3_RESERVED_3_MASK 0x80000000 162*5113495bSYour Name 163*5113495bSYour Name #define RX_LOCATION_INFO_4_RX_START_TS_OFFSET 0x00000010 164*5113495bSYour Name #define RX_LOCATION_INFO_4_RX_START_TS_LSB 0 165*5113495bSYour Name #define RX_LOCATION_INFO_4_RX_START_TS_MASK 0xffffffff 166*5113495bSYour Name 167*5113495bSYour Name #define RX_LOCATION_INFO_5_RX_END_TS_OFFSET 0x00000014 168*5113495bSYour Name #define RX_LOCATION_INFO_5_RX_END_TS_LSB 0 169*5113495bSYour Name #define RX_LOCATION_INFO_5_RX_END_TS_MASK 0xffffffff 170*5113495bSYour Name 171*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_START_OFFSET 0x00000018 172*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_START_LSB 0 173*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_START_MASK 0x00000fff 174*5113495bSYour Name 175*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_END_OFFSET 0x00000018 176*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_END_LSB 12 177*5113495bSYour Name #define RX_LOCATION_INFO_6_SFO_PHASE_PKT_END_MASK 0x00fff000 178*5113495bSYour Name 179*5113495bSYour Name #define RX_LOCATION_INFO_6_RTT_CHE_BUFFER_POINTER_HIGH8_OFFSET 0x00000018 180*5113495bSYour Name #define RX_LOCATION_INFO_6_RTT_CHE_BUFFER_POINTER_HIGH8_LSB 24 181*5113495bSYour Name #define RX_LOCATION_INFO_6_RTT_CHE_BUFFER_POINTER_HIGH8_MASK 0xff000000 182*5113495bSYour Name 183*5113495bSYour Name #define RX_LOCATION_INFO_7_RTT_CHE_BUFFER_POINTER_LOW32_OFFSET 0x0000001c 184*5113495bSYour Name #define RX_LOCATION_INFO_7_RTT_CHE_BUFFER_POINTER_LOW32_LSB 0 185*5113495bSYour Name #define RX_LOCATION_INFO_7_RTT_CHE_BUFFER_POINTER_LOW32_MASK 0xffffffff 186*5113495bSYour Name 187*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CFO_MEASUREMENT_OFFSET 0x00000020 188*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CFO_MEASUREMENT_LSB 0 189*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CFO_MEASUREMENT_MASK 0x00003fff 190*5113495bSYour Name 191*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CHAN_SPREAD_OFFSET 0x00000020 192*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CHAN_SPREAD_LSB 14 193*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_CHAN_SPREAD_MASK 0x003fc000 194*5113495bSYour Name 195*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_TIMING_BACKOFF_SEL_OFFSET 0x00000020 196*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_TIMING_BACKOFF_SEL_LSB 22 197*5113495bSYour Name #define RX_LOCATION_INFO_8_RTT_TIMING_BACKOFF_SEL_MASK 0x00c00000 198*5113495bSYour Name 199*5113495bSYour Name #define RX_LOCATION_INFO_8_RESERVED_8_OFFSET 0x00000020 200*5113495bSYour Name #define RX_LOCATION_INFO_8_RESERVED_8_LSB 24 201*5113495bSYour Name #define RX_LOCATION_INFO_8_RESERVED_8_MASK 0x7f000000 202*5113495bSYour Name 203*5113495bSYour Name #define RX_LOCATION_INFO_8_RX_LOCATION_INFO_VALID_OFFSET 0x00000020 204*5113495bSYour Name #define RX_LOCATION_INFO_8_RX_LOCATION_INFO_VALID_LSB 31 205*5113495bSYour Name #define RX_LOCATION_INFO_8_RX_LOCATION_INFO_VALID_MASK 0x80000000 206*5113495bSYour Name 207*5113495bSYour Name #endif 208