1*5113495bSYour Name 2*5113495bSYour Name /* Copyright (c) 2022, 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 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name 26*5113495bSYour Name #ifndef _PHYRX_ABORT_REQUEST_INFO_H_ 27*5113495bSYour Name #define _PHYRX_ABORT_REQUEST_INFO_H_ 28*5113495bSYour Name #if !defined(__ASSEMBLER__) 29*5113495bSYour Name #endif 30*5113495bSYour Name 31*5113495bSYour Name #define NUM_OF_DWORDS_PHYRX_ABORT_REQUEST_INFO 1 32*5113495bSYour Name 33*5113495bSYour Name 34*5113495bSYour Name struct phyrx_abort_request_info { 35*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36*5113495bSYour Name uint32_t phyrx_abort_reason : 8, // [7:0] 37*5113495bSYour Name phy_enters_nap_state : 1, // [8:8] 38*5113495bSYour Name phy_enters_defer_state : 1, // [9:9] 39*5113495bSYour Name reserved_0 : 6, // [15:10] 40*5113495bSYour Name receive_duration : 16; // [31:16] 41*5113495bSYour Name #else 42*5113495bSYour Name uint32_t receive_duration : 16, // [31:16] 43*5113495bSYour Name reserved_0 : 6, // [15:10] 44*5113495bSYour Name phy_enters_defer_state : 1, // [9:9] 45*5113495bSYour Name phy_enters_nap_state : 1, // [8:8] 46*5113495bSYour Name phyrx_abort_reason : 8; // [7:0] 47*5113495bSYour Name #endif 48*5113495bSYour Name }; 49*5113495bSYour Name 50*5113495bSYour Name 51*5113495bSYour Name /* Description PHYRX_ABORT_REASON 52*5113495bSYour Name 53*5113495bSYour Name <enum 0 phyrx_err_phy_off> Reception aborted due to receiving 54*5113495bSYour Name a PHY_OFF TLV 55*5113495bSYour Name <enum 1 phyrx_err_synth_off> 56*5113495bSYour Name <enum 2 phyrx_err_ofdma_timing> 57*5113495bSYour Name <enum 3 phyrx_err_ofdma_signal_parity> 58*5113495bSYour Name <enum 4 phyrx_err_ofdma_rate_illegal> 59*5113495bSYour Name <enum 5 phyrx_err_ofdma_length_illegal> 60*5113495bSYour Name <enum 6 phyrx_err_ofdma_restart> 61*5113495bSYour Name <enum 7 phyrx_err_ofdma_service> 62*5113495bSYour Name <enum 8 phyrx_err_ppdu_ofdma_power_drop> 63*5113495bSYour Name 64*5113495bSYour Name <enum 9 phyrx_err_cck_blokker> 65*5113495bSYour Name <enum 10 phyrx_err_cck_timing> 66*5113495bSYour Name <enum 11 phyrx_err_cck_header_crc> 67*5113495bSYour Name <enum 12 phyrx_err_cck_rate_illegal> 68*5113495bSYour Name <enum 13 phyrx_err_cck_length_illegal> 69*5113495bSYour Name <enum 14 phyrx_err_cck_restart> 70*5113495bSYour Name <enum 15 phyrx_err_cck_service> 71*5113495bSYour Name <enum 16 phyrx_err_cck_power_drop> 72*5113495bSYour Name 73*5113495bSYour Name <enum 17 phyrx_err_ht_crc_err> 74*5113495bSYour Name <enum 18 phyrx_err_ht_length_illegal> 75*5113495bSYour Name <enum 19 phyrx_err_ht_rate_illegal> 76*5113495bSYour Name <enum 20 phyrx_err_ht_zlf> 77*5113495bSYour Name <enum 21 phyrx_err_false_radar_ext> 78*5113495bSYour Name <enum 22 phyrx_err_green_field> 79*5113495bSYour Name <enum 60 phyrx_err_ht_nsym_lt_zero> 80*5113495bSYour Name 81*5113495bSYour Name <enum 23 phyrx_err_bw_gt_dyn_bw> 82*5113495bSYour Name <enum 24 phyrx_err_leg_ht_mismatch> 83*5113495bSYour Name <enum 25 phyrx_err_vht_crc_error> 84*5113495bSYour Name <enum 26 phyrx_err_vht_siga_unsupported> 85*5113495bSYour Name <enum 27 phyrx_err_vht_lsig_len_invalid> 86*5113495bSYour Name <enum 28 phyrx_err_vht_ndp_or_zlf> 87*5113495bSYour Name <enum 29 phyrx_err_vht_nsym_lt_zero> 88*5113495bSYour Name <enum 30 phyrx_err_vht_rx_extra_symbol_mismatch> 89*5113495bSYour Name <enum 31 phyrx_err_vht_rx_skip_group_id0> 90*5113495bSYour Name <enum 32 phyrx_err_vht_rx_skip_group_id1to62> 91*5113495bSYour Name <enum 33 phyrx_err_vht_rx_skip_group_id63> 92*5113495bSYour Name <enum 34 phyrx_err_ofdm_ldpc_decoder_disabled> 93*5113495bSYour Name <enum 35 phyrx_err_defer_nap> 94*5113495bSYour Name 95*5113495bSYour Name <enum 61 phyrx_err_vht_lsig_rate_mismatch> 96*5113495bSYour Name <enum 62 phyrx_err_vht_paid_gid_mismatch> 97*5113495bSYour Name <enum 63 phyrx_err_vht_unsupported_bw> 98*5113495bSYour Name <enum 64 phyrx_err_vht_gi_disam_mismatch> 99*5113495bSYour Name 100*5113495bSYour Name <enum 36 phyrx_err_fdomain_timeout> 101*5113495bSYour Name <enum 37 phyrx_err_lsig_rel_check> 102*5113495bSYour Name <enum 38 phyrx_err_bt_collision> 103*5113495bSYour Name <enum 39 phyrx_err_unsupported_mu_feedback> 104*5113495bSYour Name <enum 40 phyrx_err_ppdu_tx_interrupt_rx> 105*5113495bSYour Name <enum 41 phyrx_err_unsupported_cbf> 106*5113495bSYour Name 107*5113495bSYour Name <enum 42 phyrx_err_other> Should not really be used. If 108*5113495bSYour Name needed, ask for documentation update 109*5113495bSYour Name 110*5113495bSYour Name <enum 43 phyrx_err_he_siga_unsupported > <enum 44 phyrx_err_he_crc_error 111*5113495bSYour Name > <enum 45 phyrx_err_he_sigb_unsupported > <enum 46 phyrx_err_he_mu_mode_unsupported 112*5113495bSYour Name > <enum 47 phyrx_err_he_ndp_or_zlf > <enum 48 phyrx_err_he_nsym_lt_zero 113*5113495bSYour Name > <enum 49 phyrx_err_he_ru_params_unsupported > <enum 50 114*5113495bSYour Name phyrx_err_he_num_users_unsupported ><enum 51 phyrx_err_he_sounding_params_unsupported 115*5113495bSYour Name > 116*5113495bSYour Name <enum 54 phyrx_err_he_sigb_crc_error> 117*5113495bSYour Name <enum 55 phyrx_err_he_ext_su_unsupported> 118*5113495bSYour Name <enum 56 phyrx_err_he_trig_unsupported> 119*5113495bSYour Name <enum 57 phyrx_err_he_lsig_len_invalid> 120*5113495bSYour Name <enum 58 phyrx_err_he_lsig_rate_mismatch> 121*5113495bSYour Name <enum 59 phyrx_err_ofdma_signal_reliability> 122*5113495bSYour Name 123*5113495bSYour Name <enum 77 phyrx_err_wur_detection> 124*5113495bSYour Name 125*5113495bSYour Name <enum 72 phyrx_err_u_sig_crc_error> 126*5113495bSYour Name <enum 73 phyrx_err_u_sig_unsupported_mode> 127*5113495bSYour Name <enum 74 phyrx_err_u_sig_rsvd_err> 128*5113495bSYour Name <enum 75 phyrx_err_u_sig_mcs_error> 129*5113495bSYour Name <enum 76 phyrx_err_u_sig_bw_error> 130*5113495bSYour Name <enum 79 phyrx_err_u_sig_320_channel_mismatch> 131*5113495bSYour Name <enum 71 phyrx_err_eht_sig_crc_error> 132*5113495bSYour Name <enum 78 phyrx_err_eht_sig_unsupported_mode> 133*5113495bSYour Name 134*5113495bSYour Name <enum 80 phyrx_err_ehtplus_er_detection> 135*5113495bSYour Name 136*5113495bSYour Name <enum 52 phyrx_err_MU_UL_no_power_detected> 137*5113495bSYour Name <enum 53 phyrx_err_MU_UL_not_for_me> 138*5113495bSYour Name 139*5113495bSYour Name <enum 65 phyrx_err_rx_wdg_timeout> 140*5113495bSYour Name <enum 66 phyrx_err_sizing_evt_unexpected> 141*5113495bSYour Name <enum 67 phyrx_err_spectralscan> 142*5113495bSYour Name <enum 68 phyrx_err_radar_misdetected_as_ofdm> 143*5113495bSYour Name <enum 69 phyrx_err_rx_stuck> 144*5113495bSYour Name <enum 70 phyrx_err_invalid_11b_state> 145*5113495bSYour Name 146*5113495bSYour Name <legal 0 - 80> 147*5113495bSYour Name */ 148*5113495bSYour Name 149*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_OFFSET 0x00000000 150*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_LSB 0 151*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_MSB 7 152*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_MASK 0x000000ff 153*5113495bSYour Name 154*5113495bSYour Name 155*5113495bSYour Name /* Description PHY_ENTERS_NAP_STATE 156*5113495bSYour Name 157*5113495bSYour Name When set, PHY enters PHY NAP state after sending this abort 158*5113495bSYour Name 159*5113495bSYour Name 160*5113495bSYour Name Note that nap and defer state are mutually exclusive. 161*5113495bSYour Name 162*5113495bSYour Name Field put pro-actively in place....usage still to be agreed 163*5113495bSYour Name upon. 164*5113495bSYour Name <legal all> 165*5113495bSYour Name */ 166*5113495bSYour Name 167*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_OFFSET 0x00000000 168*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_LSB 8 169*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_MSB 8 170*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_MASK 0x00000100 171*5113495bSYour Name 172*5113495bSYour Name 173*5113495bSYour Name /* Description PHY_ENTERS_DEFER_STATE 174*5113495bSYour Name 175*5113495bSYour Name When set, PHY enters PHY defer state after sending this 176*5113495bSYour Name abort 177*5113495bSYour Name 178*5113495bSYour Name Note that nap and defer state are mutually exclusive. 179*5113495bSYour Name 180*5113495bSYour Name Field put pro-actively in place....usage still to be agreed 181*5113495bSYour Name upon. 182*5113495bSYour Name <legal all> 183*5113495bSYour Name */ 184*5113495bSYour Name 185*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_OFFSET 0x00000000 186*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_LSB 9 187*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_MSB 9 188*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_MASK 0x00000200 189*5113495bSYour Name 190*5113495bSYour Name 191*5113495bSYour Name /* Description RESERVED_0 192*5113495bSYour Name 193*5113495bSYour Name <legal 0> 194*5113495bSYour Name */ 195*5113495bSYour Name 196*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_OFFSET 0x00000000 197*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_LSB 10 198*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_MSB 15 199*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_MASK 0x0000fc00 200*5113495bSYour Name 201*5113495bSYour Name 202*5113495bSYour Name /* Description RECEIVE_DURATION 203*5113495bSYour Name 204*5113495bSYour Name The remaining receive duration of this PPDU in the medium 205*5113495bSYour Name (in us). When PHY does not know this duration when this 206*5113495bSYour Name TLV is generated, the field will be set to 0. 207*5113495bSYour Name The timing reference point is the reception by the MAC of 208*5113495bSYour Name this TLV. The value shall be accurate to within 2us. 209*5113495bSYour Name 210*5113495bSYour Name In case Phy_enters_nap_state and/or Phy_enters_defer_state 211*5113495bSYour Name is set, there is a possibility that MAC PMM can also decide 212*5113495bSYour Name to go into a low(er) power state. 213*5113495bSYour Name <legal all> 214*5113495bSYour Name */ 215*5113495bSYour Name 216*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_OFFSET 0x00000000 217*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_LSB 16 218*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_MSB 31 219*5113495bSYour Name #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_MASK 0xffff0000 220*5113495bSYour Name 221*5113495bSYour Name 222*5113495bSYour Name 223*5113495bSYour Name #endif // PHYRX_ABORT_REQUEST_INFO 224