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