1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 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 _PHYTX_PKT_END_H_ 19*5113495bSYour Name #define _PHYTX_PKT_END_H_ 20*5113495bSYour Name 21*5113495bSYour Name #define NUM_OF_WORDS_PHYTX_PKT_END 26 22*5113495bSYour Name 23*5113495bSYour Name #define NUM_OF_DWORDS_PHYTX_PKT_END 13 24*5113495bSYour Name 25*5113495bSYour Name struct phytx_pkt_end { 26*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 27*5113495bSYour Name uint16_t start_of_frame_timestamp_15_0 : 16; 28*5113495bSYour Name uint16_t start_of_frame_timestamp_31_16 : 16; 29*5113495bSYour Name uint16_t end_of_frame_timestamp_15_0 : 16; 30*5113495bSYour Name uint16_t end_of_frame_timestamp_31_16 : 16; 31*5113495bSYour Name uint16_t tx_group_delay : 12, 32*5113495bSYour Name timing_status : 2, 33*5113495bSYour Name phyrx_entered_nap_state : 1, 34*5113495bSYour Name dpdtrain_done : 1; 35*5113495bSYour Name uint16_t transmit_delay : 16; 36*5113495bSYour Name uint16_t tpc_dbg_info_cmn_15_0 : 16; 37*5113495bSYour Name uint16_t tpc_dbg_info_cmn_31_16 : 16; 38*5113495bSYour Name uint16_t tpc_dbg_info_cmn_47_32 : 16; 39*5113495bSYour Name uint16_t tpc_dbg_info_chn1_15_0 : 16; 40*5113495bSYour Name uint16_t tpc_dbg_info_chn1_31_16 : 16; 41*5113495bSYour Name uint16_t tpc_dbg_info_chn1_47_32 : 16; 42*5113495bSYour Name uint16_t tpc_dbg_info_chn1_63_48 : 16; 43*5113495bSYour Name uint16_t tpc_dbg_info_chn1_79_64 : 16; 44*5113495bSYour Name uint16_t tpc_dbg_info_chn2_15_0 : 16; 45*5113495bSYour Name uint16_t tpc_dbg_info_chn2_31_16 : 16; 46*5113495bSYour Name uint16_t tpc_dbg_info_chn2_47_32 : 16; 47*5113495bSYour Name uint16_t tpc_dbg_info_chn2_63_48 : 16; 48*5113495bSYour Name uint16_t tpc_dbg_info_chn2_79_64 : 16; 49*5113495bSYour Name uint16_t phytx_tx_end_sw_info_15_0 : 16; 50*5113495bSYour Name uint16_t phytx_tx_end_sw_info_31_16 : 16; 51*5113495bSYour Name uint16_t phytx_tx_end_sw_info_47_32 : 16; 52*5113495bSYour Name uint16_t phytx_tx_end_sw_info_63_48 : 16; 53*5113495bSYour Name uint16_t beamform_masked_user_bitmap_15_0 : 16; 54*5113495bSYour Name uint16_t beamform_masked_user_bitmap_31_16 : 16; 55*5113495bSYour Name uint16_t beamform_masked_user_bitmap_36_32 : 5, 56*5113495bSYour Name reserved_23 : 11; 57*5113495bSYour Name #else 58*5113495bSYour Name uint16_t start_of_frame_timestamp_15_0 : 16; 59*5113495bSYour Name uint16_t start_of_frame_timestamp_31_16 : 16; 60*5113495bSYour Name uint16_t end_of_frame_timestamp_15_0 : 16; 61*5113495bSYour Name uint16_t end_of_frame_timestamp_31_16 : 16; 62*5113495bSYour Name uint16_t dpdtrain_done : 1, 63*5113495bSYour Name phyrx_entered_nap_state : 1, 64*5113495bSYour Name timing_status : 2, 65*5113495bSYour Name tx_group_delay : 12; 66*5113495bSYour Name uint16_t transmit_delay : 16; 67*5113495bSYour Name uint16_t tpc_dbg_info_cmn_15_0 : 16; 68*5113495bSYour Name uint16_t tpc_dbg_info_cmn_31_16 : 16; 69*5113495bSYour Name uint16_t tpc_dbg_info_cmn_47_32 : 16; 70*5113495bSYour Name uint16_t tpc_dbg_info_chn1_15_0 : 16; 71*5113495bSYour Name uint16_t tpc_dbg_info_chn1_31_16 : 16; 72*5113495bSYour Name uint16_t tpc_dbg_info_chn1_47_32 : 16; 73*5113495bSYour Name uint16_t tpc_dbg_info_chn1_63_48 : 16; 74*5113495bSYour Name uint16_t tpc_dbg_info_chn1_79_64 : 16; 75*5113495bSYour Name uint16_t tpc_dbg_info_chn2_15_0 : 16; 76*5113495bSYour Name uint16_t tpc_dbg_info_chn2_31_16 : 16; 77*5113495bSYour Name uint16_t tpc_dbg_info_chn2_47_32 : 16; 78*5113495bSYour Name uint16_t tpc_dbg_info_chn2_63_48 : 16; 79*5113495bSYour Name uint16_t tpc_dbg_info_chn2_79_64 : 16; 80*5113495bSYour Name uint16_t phytx_tx_end_sw_info_15_0 : 16; 81*5113495bSYour Name uint16_t phytx_tx_end_sw_info_31_16 : 16; 82*5113495bSYour Name uint16_t phytx_tx_end_sw_info_47_32 : 16; 83*5113495bSYour Name uint16_t phytx_tx_end_sw_info_63_48 : 16; 84*5113495bSYour Name uint16_t beamform_masked_user_bitmap_15_0 : 16; 85*5113495bSYour Name uint16_t beamform_masked_user_bitmap_31_16 : 16; 86*5113495bSYour Name uint16_t reserved_23 : 11, 87*5113495bSYour Name beamform_masked_user_bitmap_36_32 : 5; 88*5113495bSYour Name #endif 89*5113495bSYour Name }; 90*5113495bSYour Name 91*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_15_0_OFFSET 0x00000000 92*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_15_0_LSB 0 93*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_15_0_MSB 15 94*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_15_0_MASK 0x0000ffff 95*5113495bSYour Name 96*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_31_16_OFFSET 0x00000002 97*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_31_16_LSB 0 98*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_31_16_MSB 15 99*5113495bSYour Name #define PHYTX_PKT_END_START_OF_FRAME_TIMESTAMP_31_16_MASK 0x0000ffff 100*5113495bSYour Name 101*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_15_0_OFFSET 0x00000004 102*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_15_0_LSB 0 103*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_15_0_MSB 15 104*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_15_0_MASK 0x0000ffff 105*5113495bSYour Name 106*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_31_16_OFFSET 0x00000006 107*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_31_16_LSB 0 108*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_31_16_MSB 15 109*5113495bSYour Name #define PHYTX_PKT_END_END_OF_FRAME_TIMESTAMP_31_16_MASK 0x0000ffff 110*5113495bSYour Name 111*5113495bSYour Name #define PHYTX_PKT_END_TX_GROUP_DELAY_OFFSET 0x00000008 112*5113495bSYour Name #define PHYTX_PKT_END_TX_GROUP_DELAY_LSB 0 113*5113495bSYour Name #define PHYTX_PKT_END_TX_GROUP_DELAY_MSB 11 114*5113495bSYour Name #define PHYTX_PKT_END_TX_GROUP_DELAY_MASK 0x00000fff 115*5113495bSYour Name 116*5113495bSYour Name #define PHYTX_PKT_END_TIMING_STATUS_OFFSET 0x00000008 117*5113495bSYour Name #define PHYTX_PKT_END_TIMING_STATUS_LSB 12 118*5113495bSYour Name #define PHYTX_PKT_END_TIMING_STATUS_MSB 13 119*5113495bSYour Name #define PHYTX_PKT_END_TIMING_STATUS_MASK 0x00003000 120*5113495bSYour Name 121*5113495bSYour Name #define PHYTX_PKT_END_PHYRX_ENTERED_NAP_STATE_OFFSET 0x00000008 122*5113495bSYour Name #define PHYTX_PKT_END_PHYRX_ENTERED_NAP_STATE_LSB 14 123*5113495bSYour Name #define PHYTX_PKT_END_PHYRX_ENTERED_NAP_STATE_MSB 14 124*5113495bSYour Name #define PHYTX_PKT_END_PHYRX_ENTERED_NAP_STATE_MASK 0x00004000 125*5113495bSYour Name 126*5113495bSYour Name #define PHYTX_PKT_END_DPDTRAIN_DONE_OFFSET 0x00000008 127*5113495bSYour Name #define PHYTX_PKT_END_DPDTRAIN_DONE_LSB 15 128*5113495bSYour Name #define PHYTX_PKT_END_DPDTRAIN_DONE_MSB 15 129*5113495bSYour Name #define PHYTX_PKT_END_DPDTRAIN_DONE_MASK 0x00008000 130*5113495bSYour Name 131*5113495bSYour Name #define PHYTX_PKT_END_TRANSMIT_DELAY_OFFSET 0x0000000a 132*5113495bSYour Name #define PHYTX_PKT_END_TRANSMIT_DELAY_LSB 0 133*5113495bSYour Name #define PHYTX_PKT_END_TRANSMIT_DELAY_MSB 15 134*5113495bSYour Name #define PHYTX_PKT_END_TRANSMIT_DELAY_MASK 0x0000ffff 135*5113495bSYour Name 136*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_15_0_OFFSET 0x0000000c 137*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_15_0_LSB 0 138*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_15_0_MSB 15 139*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_15_0_MASK 0x0000ffff 140*5113495bSYour Name 141*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_31_16_OFFSET 0x0000000e 142*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_31_16_LSB 0 143*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_31_16_MSB 15 144*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_31_16_MASK 0x0000ffff 145*5113495bSYour Name 146*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_47_32_OFFSET 0x00000010 147*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_47_32_LSB 0 148*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_47_32_MSB 15 149*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CMN_47_32_MASK 0x0000ffff 150*5113495bSYour Name 151*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_15_0_OFFSET 0x00000012 152*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_15_0_LSB 0 153*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_15_0_MSB 15 154*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_15_0_MASK 0x0000ffff 155*5113495bSYour Name 156*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_31_16_OFFSET 0x00000014 157*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_31_16_LSB 0 158*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_31_16_MSB 15 159*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_31_16_MASK 0x0000ffff 160*5113495bSYour Name 161*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_47_32_OFFSET 0x00000016 162*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_47_32_LSB 0 163*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_47_32_MSB 15 164*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_47_32_MASK 0x0000ffff 165*5113495bSYour Name 166*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_63_48_OFFSET 0x00000018 167*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_63_48_LSB 0 168*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_63_48_MSB 15 169*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_63_48_MASK 0x0000ffff 170*5113495bSYour Name 171*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_79_64_OFFSET 0x0000001a 172*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_79_64_LSB 0 173*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_79_64_MSB 15 174*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN1_79_64_MASK 0x0000ffff 175*5113495bSYour Name 176*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_15_0_OFFSET 0x0000001c 177*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_15_0_LSB 0 178*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_15_0_MSB 15 179*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_15_0_MASK 0x0000ffff 180*5113495bSYour Name 181*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_31_16_OFFSET 0x0000001e 182*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_31_16_LSB 0 183*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_31_16_MSB 15 184*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_31_16_MASK 0x0000ffff 185*5113495bSYour Name 186*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_47_32_OFFSET 0x00000020 187*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_47_32_LSB 0 188*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_47_32_MSB 15 189*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_47_32_MASK 0x0000ffff 190*5113495bSYour Name 191*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_63_48_OFFSET 0x00000022 192*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_63_48_LSB 0 193*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_63_48_MSB 15 194*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_63_48_MASK 0x0000ffff 195*5113495bSYour Name 196*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_79_64_OFFSET 0x00000024 197*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_79_64_LSB 0 198*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_79_64_MSB 15 199*5113495bSYour Name #define PHYTX_PKT_END_TPC_DBG_INFO_CHN2_79_64_MASK 0x0000ffff 200*5113495bSYour Name 201*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_15_0_OFFSET 0x00000026 202*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_15_0_LSB 0 203*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_15_0_MSB 15 204*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_15_0_MASK 0x0000ffff 205*5113495bSYour Name 206*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_31_16_OFFSET 0x00000028 207*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_31_16_LSB 0 208*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_31_16_MSB 15 209*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_31_16_MASK 0x0000ffff 210*5113495bSYour Name 211*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_47_32_OFFSET 0x0000002a 212*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_47_32_LSB 0 213*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_47_32_MSB 15 214*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_47_32_MASK 0x0000ffff 215*5113495bSYour Name 216*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_63_48_OFFSET 0x0000002c 217*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_63_48_LSB 0 218*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_63_48_MSB 15 219*5113495bSYour Name #define PHYTX_PKT_END_PHYTX_TX_END_SW_INFO_63_48_MASK 0x0000ffff 220*5113495bSYour Name 221*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_15_0_OFFSET 0x0000002e 222*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_15_0_LSB 0 223*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_15_0_MSB 15 224*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_15_0_MASK 0x0000ffff 225*5113495bSYour Name 226*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_31_16_OFFSET 0x00000030 227*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_31_16_LSB 0 228*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_31_16_MSB 15 229*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_31_16_MASK 0x0000ffff 230*5113495bSYour Name 231*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_36_32_OFFSET 0x00000032 232*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_36_32_LSB 0 233*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_36_32_MSB 4 234*5113495bSYour Name #define PHYTX_PKT_END_BEAMFORM_MASKED_USER_BITMAP_36_32_MASK 0x0000001f 235*5113495bSYour Name 236*5113495bSYour Name #define PHYTX_PKT_END_RESERVED_23_OFFSET 0x00000032 237*5113495bSYour Name #define PHYTX_PKT_END_RESERVED_23_LSB 5 238*5113495bSYour Name #define PHYTX_PKT_END_RESERVED_23_MSB 15 239*5113495bSYour Name #define PHYTX_PKT_END_RESERVED_23_MASK 0x0000ffe0 240*5113495bSYour Name 241*5113495bSYour Name #endif 242