1 2 /* 3 * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 19 20 21 22 23 24 25 26 27 #ifndef _NO_ACK_REPORT_H_ 28 #define _NO_ACK_REPORT_H_ 29 #if !defined(__ASSEMBLER__) 30 #endif 31 32 #define NUM_OF_DWORDS_NO_ACK_REPORT 4 33 34 35 struct no_ack_report { 36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 37 uint32_t no_ack_transmit_reason : 4, // [3:0] 38 macrx_abort_reason : 4, // [7:4] 39 phyrx_abort_reason : 8, // [15:8] 40 frame_control : 16; // [31:16] 41 uint32_t rx_ppdu_duration : 24, // [23:0] 42 sr_ppdu_during_obss : 1, // [24:24] 43 selfgen_response_reason_to_sr_ppdu : 4, // [28:25] 44 reserved_1 : 3; // [31:29] 45 uint32_t pre_bt_broadcast_status_details : 12, // [11:0] 46 first_bt_broadcast_status_details : 12, // [23:12] 47 reserved_2 : 8; // [31:24] 48 uint32_t second_bt_broadcast_status_details : 12, // [11:0] 49 reserved_3 : 20; // [31:12] 50 #else 51 uint32_t frame_control : 16, // [31:16] 52 phyrx_abort_reason : 8, // [15:8] 53 macrx_abort_reason : 4, // [7:4] 54 no_ack_transmit_reason : 4; // [3:0] 55 uint32_t reserved_1 : 3, // [31:29] 56 selfgen_response_reason_to_sr_ppdu : 4, // [28:25] 57 sr_ppdu_during_obss : 1, // [24:24] 58 rx_ppdu_duration : 24; // [23:0] 59 uint32_t reserved_2 : 8, // [31:24] 60 first_bt_broadcast_status_details : 12, // [23:12] 61 pre_bt_broadcast_status_details : 12; // [11:0] 62 uint32_t reserved_3 : 20, // [31:12] 63 second_bt_broadcast_status_details : 12; // [11:0] 64 #endif 65 }; 66 67 68 69 70 #define NO_ACK_REPORT_NO_ACK_TRANSMIT_REASON_OFFSET 0x00000000 71 #define NO_ACK_REPORT_NO_ACK_TRANSMIT_REASON_LSB 0 72 #define NO_ACK_REPORT_NO_ACK_TRANSMIT_REASON_MSB 3 73 #define NO_ACK_REPORT_NO_ACK_TRANSMIT_REASON_MASK 0x0000000f 74 75 76 77 78 #define NO_ACK_REPORT_MACRX_ABORT_REASON_OFFSET 0x00000000 79 #define NO_ACK_REPORT_MACRX_ABORT_REASON_LSB 4 80 #define NO_ACK_REPORT_MACRX_ABORT_REASON_MSB 7 81 #define NO_ACK_REPORT_MACRX_ABORT_REASON_MASK 0x000000f0 82 83 84 85 86 #define NO_ACK_REPORT_PHYRX_ABORT_REASON_OFFSET 0x00000000 87 #define NO_ACK_REPORT_PHYRX_ABORT_REASON_LSB 8 88 #define NO_ACK_REPORT_PHYRX_ABORT_REASON_MSB 15 89 #define NO_ACK_REPORT_PHYRX_ABORT_REASON_MASK 0x0000ff00 90 91 92 93 94 #define NO_ACK_REPORT_FRAME_CONTROL_OFFSET 0x00000000 95 #define NO_ACK_REPORT_FRAME_CONTROL_LSB 16 96 #define NO_ACK_REPORT_FRAME_CONTROL_MSB 31 97 #define NO_ACK_REPORT_FRAME_CONTROL_MASK 0xffff0000 98 99 100 101 102 #define NO_ACK_REPORT_RX_PPDU_DURATION_OFFSET 0x00000004 103 #define NO_ACK_REPORT_RX_PPDU_DURATION_LSB 0 104 #define NO_ACK_REPORT_RX_PPDU_DURATION_MSB 23 105 #define NO_ACK_REPORT_RX_PPDU_DURATION_MASK 0x00ffffff 106 107 108 109 110 #define NO_ACK_REPORT_SR_PPDU_DURING_OBSS_OFFSET 0x00000004 111 #define NO_ACK_REPORT_SR_PPDU_DURING_OBSS_LSB 24 112 #define NO_ACK_REPORT_SR_PPDU_DURING_OBSS_MSB 24 113 #define NO_ACK_REPORT_SR_PPDU_DURING_OBSS_MASK 0x01000000 114 115 116 117 118 #define NO_ACK_REPORT_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_OFFSET 0x00000004 119 #define NO_ACK_REPORT_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_LSB 25 120 #define NO_ACK_REPORT_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_MSB 28 121 #define NO_ACK_REPORT_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_MASK 0x1e000000 122 123 124 125 126 #define NO_ACK_REPORT_RESERVED_1_OFFSET 0x00000004 127 #define NO_ACK_REPORT_RESERVED_1_LSB 29 128 #define NO_ACK_REPORT_RESERVED_1_MSB 31 129 #define NO_ACK_REPORT_RESERVED_1_MASK 0xe0000000 130 131 132 133 134 #define NO_ACK_REPORT_PRE_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x00000008 135 #define NO_ACK_REPORT_PRE_BT_BROADCAST_STATUS_DETAILS_LSB 0 136 #define NO_ACK_REPORT_PRE_BT_BROADCAST_STATUS_DETAILS_MSB 11 137 #define NO_ACK_REPORT_PRE_BT_BROADCAST_STATUS_DETAILS_MASK 0x00000fff 138 139 140 141 142 #define NO_ACK_REPORT_FIRST_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x00000008 143 #define NO_ACK_REPORT_FIRST_BT_BROADCAST_STATUS_DETAILS_LSB 12 144 #define NO_ACK_REPORT_FIRST_BT_BROADCAST_STATUS_DETAILS_MSB 23 145 #define NO_ACK_REPORT_FIRST_BT_BROADCAST_STATUS_DETAILS_MASK 0x00fff000 146 147 148 149 150 #define NO_ACK_REPORT_RESERVED_2_OFFSET 0x00000008 151 #define NO_ACK_REPORT_RESERVED_2_LSB 24 152 #define NO_ACK_REPORT_RESERVED_2_MSB 31 153 #define NO_ACK_REPORT_RESERVED_2_MASK 0xff000000 154 155 156 157 158 #define NO_ACK_REPORT_SECOND_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x0000000c 159 #define NO_ACK_REPORT_SECOND_BT_BROADCAST_STATUS_DETAILS_LSB 0 160 #define NO_ACK_REPORT_SECOND_BT_BROADCAST_STATUS_DETAILS_MSB 11 161 #define NO_ACK_REPORT_SECOND_BT_BROADCAST_STATUS_DETAILS_MASK 0x00000fff 162 163 164 165 166 #define NO_ACK_REPORT_RESERVED_3_OFFSET 0x0000000c 167 #define NO_ACK_REPORT_RESERVED_3_LSB 12 168 #define NO_ACK_REPORT_RESERVED_3_MSB 31 169 #define NO_ACK_REPORT_RESERVED_3_MASK 0xfffff000 170 171 172 173 174 #endif 175