1 2 /* 3 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 21 22 23 24 25 26 27 28 29 30 #ifndef _TX_RATE_STATS_INFO_H_ 31 #define _TX_RATE_STATS_INFO_H_ 32 #if !defined(__ASSEMBLER__) 33 #endif 34 35 #define NUM_OF_DWORDS_TX_RATE_STATS_INFO 2 36 37 38 struct tx_rate_stats_info { 39 uint32_t tx_rate_stats_info_valid : 1, 40 transmit_bw : 3, 41 transmit_pkt_type : 4, 42 transmit_stbc : 1, 43 transmit_ldpc : 1, 44 transmit_sgi : 2, 45 transmit_mcs : 4, 46 ofdma_transmission : 1, 47 tones_in_ru : 12, 48 reserved_0a : 3; 49 uint32_t ppdu_transmission_tsf : 32; 50 }; 51 52 53 54 55 #define TX_RATE_STATS_INFO_TX_RATE_STATS_INFO_VALID_OFFSET 0x00000000 56 #define TX_RATE_STATS_INFO_TX_RATE_STATS_INFO_VALID_LSB 0 57 #define TX_RATE_STATS_INFO_TX_RATE_STATS_INFO_VALID_MSB 0 58 #define TX_RATE_STATS_INFO_TX_RATE_STATS_INFO_VALID_MASK 0x00000001 59 60 61 62 63 #define TX_RATE_STATS_INFO_TRANSMIT_BW_OFFSET 0x00000000 64 #define TX_RATE_STATS_INFO_TRANSMIT_BW_LSB 1 65 #define TX_RATE_STATS_INFO_TRANSMIT_BW_MSB 3 66 #define TX_RATE_STATS_INFO_TRANSMIT_BW_MASK 0x0000000e 67 68 69 70 71 #define TX_RATE_STATS_INFO_TRANSMIT_PKT_TYPE_OFFSET 0x00000000 72 #define TX_RATE_STATS_INFO_TRANSMIT_PKT_TYPE_LSB 4 73 #define TX_RATE_STATS_INFO_TRANSMIT_PKT_TYPE_MSB 7 74 #define TX_RATE_STATS_INFO_TRANSMIT_PKT_TYPE_MASK 0x000000f0 75 76 77 78 79 #define TX_RATE_STATS_INFO_TRANSMIT_STBC_OFFSET 0x00000000 80 #define TX_RATE_STATS_INFO_TRANSMIT_STBC_LSB 8 81 #define TX_RATE_STATS_INFO_TRANSMIT_STBC_MSB 8 82 #define TX_RATE_STATS_INFO_TRANSMIT_STBC_MASK 0x00000100 83 84 85 86 87 #define TX_RATE_STATS_INFO_TRANSMIT_LDPC_OFFSET 0x00000000 88 #define TX_RATE_STATS_INFO_TRANSMIT_LDPC_LSB 9 89 #define TX_RATE_STATS_INFO_TRANSMIT_LDPC_MSB 9 90 #define TX_RATE_STATS_INFO_TRANSMIT_LDPC_MASK 0x00000200 91 92 93 94 95 #define TX_RATE_STATS_INFO_TRANSMIT_SGI_OFFSET 0x00000000 96 #define TX_RATE_STATS_INFO_TRANSMIT_SGI_LSB 10 97 #define TX_RATE_STATS_INFO_TRANSMIT_SGI_MSB 11 98 #define TX_RATE_STATS_INFO_TRANSMIT_SGI_MASK 0x00000c00 99 100 101 102 103 #define TX_RATE_STATS_INFO_TRANSMIT_MCS_OFFSET 0x00000000 104 #define TX_RATE_STATS_INFO_TRANSMIT_MCS_LSB 12 105 #define TX_RATE_STATS_INFO_TRANSMIT_MCS_MSB 15 106 #define TX_RATE_STATS_INFO_TRANSMIT_MCS_MASK 0x0000f000 107 108 109 110 111 #define TX_RATE_STATS_INFO_OFDMA_TRANSMISSION_OFFSET 0x00000000 112 #define TX_RATE_STATS_INFO_OFDMA_TRANSMISSION_LSB 16 113 #define TX_RATE_STATS_INFO_OFDMA_TRANSMISSION_MSB 16 114 #define TX_RATE_STATS_INFO_OFDMA_TRANSMISSION_MASK 0x00010000 115 116 117 118 119 #define TX_RATE_STATS_INFO_TONES_IN_RU_OFFSET 0x00000000 120 #define TX_RATE_STATS_INFO_TONES_IN_RU_LSB 17 121 #define TX_RATE_STATS_INFO_TONES_IN_RU_MSB 28 122 #define TX_RATE_STATS_INFO_TONES_IN_RU_MASK 0x1ffe0000 123 124 125 126 127 #define TX_RATE_STATS_INFO_RESERVED_0A_OFFSET 0x00000000 128 #define TX_RATE_STATS_INFO_RESERVED_0A_LSB 29 129 #define TX_RATE_STATS_INFO_RESERVED_0A_MSB 31 130 #define TX_RATE_STATS_INFO_RESERVED_0A_MASK 0xe0000000 131 132 133 134 135 #define TX_RATE_STATS_INFO_PPDU_TRANSMISSION_TSF_OFFSET 0x00000004 136 #define TX_RATE_STATS_INFO_PPDU_TRANSMISSION_TSF_LSB 0 137 #define TX_RATE_STATS_INFO_PPDU_TRANSMISSION_TSF_MSB 31 138 #define TX_RATE_STATS_INFO_PPDU_TRANSMISSION_TSF_MASK 0xffffffff 139 140 141 142 #endif 143