187a230ecSPavankumar Nandeshwar /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 287a230ecSPavankumar Nandeshwar /* 387a230ecSPavankumar Nandeshwar * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 487a230ecSPavankumar Nandeshwar * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 587a230ecSPavankumar Nandeshwar */ 687a230ecSPavankumar Nandeshwar #include "../core.h" 787a230ecSPavankumar Nandeshwar 887a230ecSPavankumar Nandeshwar #ifndef ATH12K_HAL_DESC_H 987a230ecSPavankumar Nandeshwar #define ATH12K_HAL_DESC_H 1087a230ecSPavankumar Nandeshwar 1187a230ecSPavankumar Nandeshwar enum hal_tlv_tag { 1287a230ecSPavankumar Nandeshwar HAL_MACTX_CBF_START = 0 /* 0x0 */, 1387a230ecSPavankumar Nandeshwar HAL_PHYRX_DATA = 1 /* 0x1 */, 1487a230ecSPavankumar Nandeshwar HAL_PHYRX_CBF_DATA_RESP = 2 /* 0x2 */, 1587a230ecSPavankumar Nandeshwar HAL_PHYRX_ABORT_REQUEST = 3 /* 0x3 */, 1687a230ecSPavankumar Nandeshwar HAL_PHYRX_USER_ABORT_NOTIFICATION = 4 /* 0x4 */, 1787a230ecSPavankumar Nandeshwar HAL_MACTX_DATA_RESP = 5 /* 0x5 */, 1887a230ecSPavankumar Nandeshwar HAL_MACTX_CBF_DATA = 6 /* 0x6 */, 1987a230ecSPavankumar Nandeshwar HAL_MACTX_CBF_DONE = 7 /* 0x7 */, 2087a230ecSPavankumar Nandeshwar HAL_PHYRX_LMR_DATA_RESP = 8 /* 0x8 */, 2187a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_START = 9 /* 0x9 */, 2287a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_DELIMITER_FOR_FULL_MPDU = 10 /* 0xa */, 2387a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_FULL_MPDU_DATA = 11 /* 0xb */, 2487a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_FCS_STATUS = 12 /* 0xc */, 2587a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_MPDU_DELIMITER = 13 /* 0xd */, 2687a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_DELIMITER_FOR_MPDU_HEADER = 14 /* 0xe */, 2787a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_MPDU_HEADER_DATA = 15 /* 0xf */, 2887a230ecSPavankumar Nandeshwar HAL_RXPCU_TO_UCODE_END = 16 /* 0x10 */, 2987a230ecSPavankumar Nandeshwar HAL_MACRX_CBF_READ_REQUEST = 32 /* 0x20 */, 3087a230ecSPavankumar Nandeshwar HAL_MACRX_CBF_DATA_REQUEST = 33 /* 0x21 */, 3187a230ecSPavankumar Nandeshwar HAL_MACRXXPECT_NDP_RECEPTION = 34 /* 0x22 */, 3287a230ecSPavankumar Nandeshwar HAL_MACRX_FREEZE_CAPTURE_CHANNEL = 35 /* 0x23 */, 3387a230ecSPavankumar Nandeshwar HAL_MACRX_NDP_TIMEOUT = 36 /* 0x24 */, 3487a230ecSPavankumar Nandeshwar HAL_MACRX_ABORT_ACK = 37 /* 0x25 */, 3587a230ecSPavankumar Nandeshwar HAL_MACRX_REQ_IMPLICIT_FB = 38 /* 0x26 */, 3687a230ecSPavankumar Nandeshwar HAL_MACRX_CHAIN_MASK = 39 /* 0x27 */, 3787a230ecSPavankumar Nandeshwar HAL_MACRX_NAP_USER = 40 /* 0x28 */, 3887a230ecSPavankumar Nandeshwar HAL_MACRX_ABORT_REQUEST = 41 /* 0x29 */, 3987a230ecSPavankumar Nandeshwar HAL_PHYTX_OTHER_TRANSMIT_INFO16 = 42 /* 0x2a */, 4087a230ecSPavankumar Nandeshwar HAL_PHYTX_ABORT_ACK = 43 /* 0x2b */, 4187a230ecSPavankumar Nandeshwar HAL_PHYTX_ABORT_REQUEST = 44 /* 0x2c */, 4287a230ecSPavankumar Nandeshwar HAL_PHYTX_PKT_END = 45 /* 0x2d */, 4387a230ecSPavankumar Nandeshwar HAL_PHYTX_PPDU_HEADER_INFO_REQUEST = 46 /* 0x2e */, 4487a230ecSPavankumar Nandeshwar HAL_PHYTX_REQUEST_CTRL_INFO = 47 /* 0x2f */, 4587a230ecSPavankumar Nandeshwar HAL_PHYTX_DATA_REQUEST = 48 /* 0x30 */, 4687a230ecSPavankumar Nandeshwar HAL_PHYTX_BF_CV_LOADING_DONE = 49 /* 0x31 */, 4787a230ecSPavankumar Nandeshwar HAL_PHYTX_NAP_ACK = 50 /* 0x32 */, 4887a230ecSPavankumar Nandeshwar HAL_PHYTX_NAP_DONE = 51 /* 0x33 */, 4987a230ecSPavankumar Nandeshwar HAL_PHYTX_OFF_ACK = 52 /* 0x34 */, 5087a230ecSPavankumar Nandeshwar HAL_PHYTX_ON_ACK = 53 /* 0x35 */, 5187a230ecSPavankumar Nandeshwar HAL_PHYTX_SYNTH_OFF_ACK = 54 /* 0x36 */, 5287a230ecSPavankumar Nandeshwar HAL_PHYTX_DEBUG16 = 55 /* 0x37 */, 5387a230ecSPavankumar Nandeshwar HAL_MACTX_ABORT_REQUEST = 56 /* 0x38 */, 5487a230ecSPavankumar Nandeshwar HAL_MACTX_ABORT_ACK = 57 /* 0x39 */, 5587a230ecSPavankumar Nandeshwar HAL_MACTX_PKT_END = 58 /* 0x3a */, 5687a230ecSPavankumar Nandeshwar HAL_MACTX_PRE_PHY_DESC = 59 /* 0x3b */, 5787a230ecSPavankumar Nandeshwar HAL_MACTX_BF_PARAMS_COMMON = 60 /* 0x3c */, 5887a230ecSPavankumar Nandeshwar HAL_MACTX_BF_PARAMS_PER_USER = 61 /* 0x3d */, 5987a230ecSPavankumar Nandeshwar HAL_MACTX_PREFETCH_CV = 62 /* 0x3e */, 6087a230ecSPavankumar Nandeshwar HAL_MACTX_USER_DESC_COMMON = 63 /* 0x3f */, 6187a230ecSPavankumar Nandeshwar HAL_MACTX_USER_DESC_PER_USER = 64 /* 0x40 */, 6287a230ecSPavankumar Nandeshwar HAL_XAMPLE_USER_TLV_16 = 65 /* 0x41 */, 6387a230ecSPavankumar Nandeshwar HAL_XAMPLE_TLV_16 = 66 /* 0x42 */, 6487a230ecSPavankumar Nandeshwar HAL_MACTX_PHY_OFF = 67 /* 0x43 */, 6587a230ecSPavankumar Nandeshwar HAL_MACTX_PHY_ON = 68 /* 0x44 */, 6687a230ecSPavankumar Nandeshwar HAL_MACTX_SYNTH_OFF = 69 /* 0x45 */, 6787a230ecSPavankumar Nandeshwar HAL_MACTXXPECT_CBF_COMMON = 70 /* 0x46 */, 6887a230ecSPavankumar Nandeshwar HAL_MACTXXPECT_CBF_PER_USER = 71 /* 0x47 */, 6987a230ecSPavankumar Nandeshwar HAL_MACTX_PHY_DESC = 72 /* 0x48 */, 7087a230ecSPavankumar Nandeshwar HAL_MACTX_L_SIG_A = 73 /* 0x49 */, 7187a230ecSPavankumar Nandeshwar HAL_MACTX_L_SIG_B = 74 /* 0x4a */, 7287a230ecSPavankumar Nandeshwar HAL_MACTX_HT_SIG = 75 /* 0x4b */, 7387a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_A = 76 /* 0x4c */, 7487a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_SU20 = 77 /* 0x4d */, 7587a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_SU40 = 78 /* 0x4e */, 7687a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_SU80 = 79 /* 0x4f */, 7787a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_SU160 = 80 /* 0x50 */, 7887a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_MU20 = 81 /* 0x51 */, 7987a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_MU40 = 82 /* 0x52 */, 8087a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_MU80 = 83 /* 0x53 */, 8187a230ecSPavankumar Nandeshwar HAL_MACTX_VHT_SIG_B_MU160 = 84 /* 0x54 */, 8287a230ecSPavankumar Nandeshwar HAL_MACTX_SERVICE = 85 /* 0x55 */, 8387a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_A_SU = 86 /* 0x56 */, 8487a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_A_MU_DL = 87 /* 0x57 */, 8587a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_A_MU_UL = 88 /* 0x58 */, 8687a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_B1_MU = 89 /* 0x59 */, 8787a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_B2_MU = 90 /* 0x5a */, 8887a230ecSPavankumar Nandeshwar HAL_MACTX_HE_SIG_B2_OFDMA = 91 /* 0x5b */, 8987a230ecSPavankumar Nandeshwar HAL_MACTX_DELETE_CV = 92 /* 0x5c */, 9087a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_COMMON = 93 /* 0x5d */, 9187a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_USER_SETUP = 94 /* 0x5e */, 9287a230ecSPavankumar Nandeshwar HAL_MACTX_OTHER_TRANSMIT_INFO = 95 /* 0x5f */, 9387a230ecSPavankumar Nandeshwar HAL_MACTX_PHY_NAP = 96 /* 0x60 */, 9487a230ecSPavankumar Nandeshwar HAL_MACTX_DEBUG = 97 /* 0x61 */, 9587a230ecSPavankumar Nandeshwar HAL_PHYRX_ABORT_ACK = 98 /* 0x62 */, 9687a230ecSPavankumar Nandeshwar HAL_PHYRX_GENERATED_CBF_DETAILS = 99 /* 0x63 */, 9787a230ecSPavankumar Nandeshwar HAL_PHYRX_RSSI_LEGACY = 100 /* 0x64 */, 9887a230ecSPavankumar Nandeshwar HAL_PHYRX_RSSI_HT = 101 /* 0x65 */, 9987a230ecSPavankumar Nandeshwar HAL_PHYRX_USER_INFO = 102 /* 0x66 */, 10087a230ecSPavankumar Nandeshwar HAL_PHYRX_PKT_END = 103 /* 0x67 */, 10187a230ecSPavankumar Nandeshwar HAL_PHYRX_DEBUG = 104 /* 0x68 */, 10287a230ecSPavankumar Nandeshwar HAL_PHYRX_CBF_TRANSFER_DONE = 105 /* 0x69 */, 10387a230ecSPavankumar Nandeshwar HAL_PHYRX_CBF_TRANSFER_ABORT = 106 /* 0x6a */, 10487a230ecSPavankumar Nandeshwar HAL_PHYRX_L_SIG_A = 107 /* 0x6b */, 10587a230ecSPavankumar Nandeshwar HAL_PHYRX_L_SIG_B = 108 /* 0x6c */, 10687a230ecSPavankumar Nandeshwar HAL_PHYRX_HT_SIG = 109 /* 0x6d */, 10787a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_A = 110 /* 0x6e */, 10887a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_SU20 = 111 /* 0x6f */, 10987a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_SU40 = 112 /* 0x70 */, 11087a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_SU80 = 113 /* 0x71 */, 11187a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_SU160 = 114 /* 0x72 */, 11287a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_MU20 = 115 /* 0x73 */, 11387a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_MU40 = 116 /* 0x74 */, 11487a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_MU80 = 117 /* 0x75 */, 11587a230ecSPavankumar Nandeshwar HAL_PHYRX_VHT_SIG_B_MU160 = 118 /* 0x76 */, 11687a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_A_SU = 119 /* 0x77 */, 11787a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_A_MU_DL = 120 /* 0x78 */, 11887a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_A_MU_UL = 121 /* 0x79 */, 11987a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_B1_MU = 122 /* 0x7a */, 12087a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_B2_MU = 123 /* 0x7b */, 12187a230ecSPavankumar Nandeshwar HAL_PHYRX_HE_SIG_B2_OFDMA = 124 /* 0x7c */, 12287a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO = 125 /* 0x7d */, 12387a230ecSPavankumar Nandeshwar HAL_PHYRX_COMMON_USER_INFO = 126 /* 0x7e */, 12487a230ecSPavankumar Nandeshwar HAL_PHYRX_DATA_DONE = 127 /* 0x7f */, 12587a230ecSPavankumar Nandeshwar HAL_COEX_TX_REQ = 128 /* 0x80 */, 12687a230ecSPavankumar Nandeshwar HAL_DUMMY = 129 /* 0x81 */, 12787a230ecSPavankumar Nandeshwar HALXAMPLE_TLV_32_NAME = 130 /* 0x82 */, 12887a230ecSPavankumar Nandeshwar HAL_MPDU_LIMIT = 131 /* 0x83 */, 12987a230ecSPavankumar Nandeshwar HAL_NA_LENGTH_END = 132 /* 0x84 */, 13087a230ecSPavankumar Nandeshwar HAL_OLE_BUF_STATUS = 133 /* 0x85 */, 13187a230ecSPavankumar Nandeshwar HAL_PCU_PPDU_SETUP_DONE = 134 /* 0x86 */, 13287a230ecSPavankumar Nandeshwar HAL_PCU_PPDU_SETUP_END = 135 /* 0x87 */, 13387a230ecSPavankumar Nandeshwar HAL_PCU_PPDU_SETUP_INIT = 136 /* 0x88 */, 13487a230ecSPavankumar Nandeshwar HAL_PCU_PPDU_SETUP_START = 137 /* 0x89 */, 13587a230ecSPavankumar Nandeshwar HAL_PDG_FES_SETUP = 138 /* 0x8a */, 13687a230ecSPavankumar Nandeshwar HAL_PDG_RESPONSE = 139 /* 0x8b */, 13787a230ecSPavankumar Nandeshwar HAL_PDG_TX_REQ = 140 /* 0x8c */, 13887a230ecSPavankumar Nandeshwar HAL_SCH_WAIT_INSTR = 141 /* 0x8d */, 13987a230ecSPavankumar Nandeshwar HAL_TQM_FLOWMPTY_STATUS = 143 /* 0x8f */, 14087a230ecSPavankumar Nandeshwar HAL_TQM_FLOW_NOTMPTY_STATUS = 144 /* 0x90 */, 14187a230ecSPavankumar Nandeshwar HAL_TQM_GEN_MPDU_LENGTH_LIST = 145 /* 0x91 */, 14287a230ecSPavankumar Nandeshwar HAL_TQM_GEN_MPDU_LENGTH_LIST_STATUS = 146 /* 0x92 */, 14387a230ecSPavankumar Nandeshwar HAL_TQM_GEN_MPDUS = 147 /* 0x93 */, 14487a230ecSPavankumar Nandeshwar HAL_TQM_GEN_MPDUS_STATUS = 148 /* 0x94 */, 14587a230ecSPavankumar Nandeshwar HAL_TQM_REMOVE_MPDU = 149 /* 0x95 */, 14687a230ecSPavankumar Nandeshwar HAL_TQM_REMOVE_MPDU_STATUS = 150 /* 0x96 */, 14787a230ecSPavankumar Nandeshwar HAL_TQM_REMOVE_MSDU = 151 /* 0x97 */, 14887a230ecSPavankumar Nandeshwar HAL_TQM_REMOVE_MSDU_STATUS = 152 /* 0x98 */, 14987a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MPDU_COUNT = 153 /* 0x99 */, 15087a230ecSPavankumar Nandeshwar HAL_TQM_WRITE_CMD = 154 /* 0x9a */, 15187a230ecSPavankumar Nandeshwar HAL_OFDMA_TRIGGER_DETAILS = 155 /* 0x9b */, 15287a230ecSPavankumar Nandeshwar HAL_TX_DATA = 156 /* 0x9c */, 15387a230ecSPavankumar Nandeshwar HAL_TX_FES_SETUP = 157 /* 0x9d */, 15487a230ecSPavankumar Nandeshwar HAL_RX_PACKET = 158 /* 0x9e */, 15587a230ecSPavankumar Nandeshwar HALXPECTED_RESPONSE = 159 /* 0x9f */, 15687a230ecSPavankumar Nandeshwar HAL_TX_MPDU_END = 160 /* 0xa0 */, 15787a230ecSPavankumar Nandeshwar HAL_TX_MPDU_START = 161 /* 0xa1 */, 15887a230ecSPavankumar Nandeshwar HAL_TX_MSDU_END = 162 /* 0xa2 */, 15987a230ecSPavankumar Nandeshwar HAL_TX_MSDU_START = 163 /* 0xa3 */, 16087a230ecSPavankumar Nandeshwar HAL_TX_SW_MODE_SETUP = 164 /* 0xa4 */, 16187a230ecSPavankumar Nandeshwar HAL_TXPCU_BUFFER_STATUS = 165 /* 0xa5 */, 16287a230ecSPavankumar Nandeshwar HAL_TXPCU_USER_BUFFER_STATUS = 166 /* 0xa6 */, 16387a230ecSPavankumar Nandeshwar HAL_DATA_TO_TIME_CONFIG = 167 /* 0xa7 */, 16487a230ecSPavankumar Nandeshwar HALXAMPLE_USER_TLV_32 = 168 /* 0xa8 */, 16587a230ecSPavankumar Nandeshwar HAL_MPDU_INFO = 169 /* 0xa9 */, 16687a230ecSPavankumar Nandeshwar HAL_PDG_USER_SETUP = 170 /* 0xaa */, 16787a230ecSPavankumar Nandeshwar HAL_TX_11AH_SETUP = 171 /* 0xab */, 16887a230ecSPavankumar Nandeshwar HAL_REO_UPDATE_RX_REO_QUEUE_STATUS = 172 /* 0xac */, 16987a230ecSPavankumar Nandeshwar HAL_TX_PEER_ENTRY = 173 /* 0xad */, 17087a230ecSPavankumar Nandeshwar HAL_TX_RAW_OR_NATIVE_FRAME_SETUP = 174 /* 0xae */, 17187a230ecSPavankumar Nandeshwar HALXAMPLE_USER_TLV_44 = 175 /* 0xaf */, 17287a230ecSPavankumar Nandeshwar HAL_TX_FLUSH = 176 /* 0xb0 */, 17387a230ecSPavankumar Nandeshwar HAL_TX_FLUSH_REQ = 177 /* 0xb1 */, 17487a230ecSPavankumar Nandeshwar HAL_TQM_WRITE_CMD_STATUS = 178 /* 0xb2 */, 17587a230ecSPavankumar Nandeshwar HAL_TQM_GET_MPDU_QUEUE_STATS = 179 /* 0xb3 */, 17687a230ecSPavankumar Nandeshwar HAL_TQM_GET_MSDU_FLOW_STATS = 180 /* 0xb4 */, 17787a230ecSPavankumar Nandeshwar HALXAMPLE_USER_CTLV_44 = 181 /* 0xb5 */, 17887a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_START = 182 /* 0xb6 */, 17987a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_USER_PPDU = 183 /* 0xb7 */, 18087a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_USER_RESPONSE = 184 /* 0xb8 */, 18187a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_END = 185 /* 0xb9 */, 18287a230ecSPavankumar Nandeshwar HAL_RX_TRIG_INFO = 186 /* 0xba */, 18387a230ecSPavankumar Nandeshwar HAL_RXPCU_TX_SETUP_CLEAR = 187 /* 0xbb */, 18487a230ecSPavankumar Nandeshwar HAL_RX_FRAME_BITMAP_REQ = 188 /* 0xbc */, 18587a230ecSPavankumar Nandeshwar HAL_RX_FRAME_BITMAP_ACK = 189 /* 0xbd */, 18687a230ecSPavankumar Nandeshwar HAL_COEX_RX_STATUS = 190 /* 0xbe */, 18787a230ecSPavankumar Nandeshwar HAL_RX_START_PARAM = 191 /* 0xbf */, 18887a230ecSPavankumar Nandeshwar HAL_RX_PPDU_START = 192 /* 0xc0 */, 18987a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END = 193 /* 0xc1 */, 19087a230ecSPavankumar Nandeshwar HAL_RX_MPDU_START = 194 /* 0xc2 */, 19187a230ecSPavankumar Nandeshwar HAL_RX_MPDU_END = 195 /* 0xc3 */, 19287a230ecSPavankumar Nandeshwar HAL_RX_MSDU_START = 196 /* 0xc4 */, 19387a230ecSPavankumar Nandeshwar HAL_RX_MSDU_END = 197 /* 0xc5 */, 19487a230ecSPavankumar Nandeshwar HAL_RX_ATTENTION = 198 /* 0xc6 */, 19587a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_INFO = 199 /* 0xc7 */, 19687a230ecSPavankumar Nandeshwar HAL_RX_PHY_SLEEP = 200 /* 0xc8 */, 19787a230ecSPavankumar Nandeshwar HAL_RX_HEADER = 201 /* 0xc9 */, 19887a230ecSPavankumar Nandeshwar HAL_RX_PEER_ENTRY = 202 /* 0xca */, 19987a230ecSPavankumar Nandeshwar HAL_RX_FLUSH = 203 /* 0xcb */, 20087a230ecSPavankumar Nandeshwar HAL_RX_RESPONSE_REQUIRED_INFO = 204 /* 0xcc */, 20187a230ecSPavankumar Nandeshwar HAL_RX_FRAMELESS_BAR_DETAILS = 205 /* 0xcd */, 20287a230ecSPavankumar Nandeshwar HAL_TQM_GET_MPDU_QUEUE_STATS_STATUS = 206 /* 0xce */, 20387a230ecSPavankumar Nandeshwar HAL_TQM_GET_MSDU_FLOW_STATS_STATUS = 207 /* 0xcf */, 20487a230ecSPavankumar Nandeshwar HAL_TX_CBF_INFO = 208 /* 0xd0 */, 20587a230ecSPavankumar Nandeshwar HAL_PCU_PPDU_SETUP_USER = 209 /* 0xd1 */, 20687a230ecSPavankumar Nandeshwar HAL_RX_MPDU_PCU_START = 210 /* 0xd2 */, 20787a230ecSPavankumar Nandeshwar HAL_RX_PM_INFO = 211 /* 0xd3 */, 20887a230ecSPavankumar Nandeshwar HAL_RX_USER_PPDU_END = 212 /* 0xd4 */, 20987a230ecSPavankumar Nandeshwar HAL_RX_PRE_PPDU_START = 213 /* 0xd5 */, 21087a230ecSPavankumar Nandeshwar HAL_RX_PREAMBLE = 214 /* 0xd6 */, 21187a230ecSPavankumar Nandeshwar HAL_TX_FES_SETUP_COMPLETE = 215 /* 0xd7 */, 21287a230ecSPavankumar Nandeshwar HAL_TX_LAST_MPDU_FETCHED = 216 /* 0xd8 */, 21387a230ecSPavankumar Nandeshwar HAL_TXDMA_STOP_REQUEST = 217 /* 0xd9 */, 21487a230ecSPavankumar Nandeshwar HAL_RXPCU_SETUP = 218 /* 0xda */, 21587a230ecSPavankumar Nandeshwar HAL_RXPCU_USER_SETUP = 219 /* 0xdb */, 21687a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_ACK_OR_BA = 220 /* 0xdc */, 21787a230ecSPavankumar Nandeshwar HAL_TQM_ACKED_MPDU = 221 /* 0xdd */, 21887a230ecSPavankumar Nandeshwar HAL_COEX_TX_RESP = 222 /* 0xde */, 21987a230ecSPavankumar Nandeshwar HAL_COEX_TX_STATUS = 223 /* 0xdf */, 22087a230ecSPavankumar Nandeshwar HAL_MACTX_COEX_PHY_CTRL = 224 /* 0xe0 */, 22187a230ecSPavankumar Nandeshwar HAL_COEX_STATUS_BROADCAST = 225 /* 0xe1 */, 22287a230ecSPavankumar Nandeshwar HAL_RESPONSE_START_STATUS = 226 /* 0xe2 */, 22387a230ecSPavankumar Nandeshwar HAL_RESPONSEND_STATUS = 227 /* 0xe3 */, 22487a230ecSPavankumar Nandeshwar HAL_CRYPTO_STATUS = 228 /* 0xe4 */, 22587a230ecSPavankumar Nandeshwar HAL_RECEIVED_TRIGGER_INFO = 229 /* 0xe5 */, 22687a230ecSPavankumar Nandeshwar HAL_COEX_TX_STOP_CTRL = 230 /* 0xe6 */, 22787a230ecSPavankumar Nandeshwar HAL_RX_PPDU_ACK_REPORT = 231 /* 0xe7 */, 22887a230ecSPavankumar Nandeshwar HAL_RX_PPDU_NO_ACK_REPORT = 232 /* 0xe8 */, 22987a230ecSPavankumar Nandeshwar HAL_SCH_COEX_STATUS = 233 /* 0xe9 */, 23087a230ecSPavankumar Nandeshwar HAL_SCHEDULER_COMMAND_STATUS = 234 /* 0xea */, 23187a230ecSPavankumar Nandeshwar HAL_SCHEDULER_RX_PPDU_NO_RESPONSE_STATUS = 235 /* 0xeb */, 23287a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_PROT = 236 /* 0xec */, 23387a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_START_PPDU = 237 /* 0xed */, 23487a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_START_PROT = 238 /* 0xee */, 23587a230ecSPavankumar Nandeshwar HAL_TXPCU_PHYTX_DEBUG32 = 239 /* 0xef */, 23687a230ecSPavankumar Nandeshwar HAL_TXPCU_PHYTX_OTHER_TRANSMIT_INFO32 = 240 /* 0xf0 */, 23787a230ecSPavankumar Nandeshwar HAL_TX_MPDU_COUNT_TRANSFERND = 241 /* 0xf1 */, 23887a230ecSPavankumar Nandeshwar HAL_WHO_ANCHOR_OFFSET = 242 /* 0xf2 */, 23987a230ecSPavankumar Nandeshwar HAL_WHO_ANCHOR_VALUE = 243 /* 0xf3 */, 24087a230ecSPavankumar Nandeshwar HAL_WHO_CCE_INFO = 244 /* 0xf4 */, 24187a230ecSPavankumar Nandeshwar HAL_WHO_COMMIT = 245 /* 0xf5 */, 24287a230ecSPavankumar Nandeshwar HAL_WHO_COMMIT_DONE = 246 /* 0xf6 */, 24387a230ecSPavankumar Nandeshwar HAL_WHO_FLUSH = 247 /* 0xf7 */, 24487a230ecSPavankumar Nandeshwar HAL_WHO_L2_LLC = 248 /* 0xf8 */, 24587a230ecSPavankumar Nandeshwar HAL_WHO_L2_PAYLOAD = 249 /* 0xf9 */, 24687a230ecSPavankumar Nandeshwar HAL_WHO_L3_CHECKSUM = 250 /* 0xfa */, 24787a230ecSPavankumar Nandeshwar HAL_WHO_L3_INFO = 251 /* 0xfb */, 24887a230ecSPavankumar Nandeshwar HAL_WHO_L4_CHECKSUM = 252 /* 0xfc */, 24987a230ecSPavankumar Nandeshwar HAL_WHO_L4_INFO = 253 /* 0xfd */, 25087a230ecSPavankumar Nandeshwar HAL_WHO_MSDU = 254 /* 0xfe */, 25187a230ecSPavankumar Nandeshwar HAL_WHO_MSDU_MISC = 255 /* 0xff */, 25287a230ecSPavankumar Nandeshwar HAL_WHO_PACKET_DATA = 256 /* 0x100 */, 25387a230ecSPavankumar Nandeshwar HAL_WHO_PACKET_HDR = 257 /* 0x101 */, 25487a230ecSPavankumar Nandeshwar HAL_WHO_PPDU_END = 258 /* 0x102 */, 25587a230ecSPavankumar Nandeshwar HAL_WHO_PPDU_START = 259 /* 0x103 */, 25687a230ecSPavankumar Nandeshwar HAL_WHO_TSO = 260 /* 0x104 */, 25787a230ecSPavankumar Nandeshwar HAL_WHO_WMAC_HEADER_PV0 = 261 /* 0x105 */, 25887a230ecSPavankumar Nandeshwar HAL_WHO_WMAC_HEADER_PV1 = 262 /* 0x106 */, 25987a230ecSPavankumar Nandeshwar HAL_WHO_WMAC_IV = 263 /* 0x107 */, 26087a230ecSPavankumar Nandeshwar HAL_MPDU_INFO_END = 264 /* 0x108 */, 26187a230ecSPavankumar Nandeshwar HAL_MPDU_INFO_BITMAP = 265 /* 0x109 */, 26287a230ecSPavankumar Nandeshwar HAL_TX_QUEUE_EXTENSION = 266 /* 0x10a */, 26387a230ecSPavankumar Nandeshwar HAL_SCHEDULER_SELFGEN_RESPONSE_STATUS = 267 /* 0x10b */, 26487a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MPDU_COUNT_STATUS = 268 /* 0x10c */, 26587a230ecSPavankumar Nandeshwar HAL_TQM_ACKED_MPDU_STATUS = 269 /* 0x10d */, 26687a230ecSPavankumar Nandeshwar HAL_TQM_ADD_MSDU_STATUS = 270 /* 0x10e */, 26787a230ecSPavankumar Nandeshwar HAL_TQM_LIST_GEN_DONE = 271 /* 0x10f */, 26887a230ecSPavankumar Nandeshwar HAL_WHO_TERMINATE = 272 /* 0x110 */, 26987a230ecSPavankumar Nandeshwar HAL_TX_LAST_MPDU_END = 273 /* 0x111 */, 27087a230ecSPavankumar Nandeshwar HAL_TX_CV_DATA = 274 /* 0x112 */, 27187a230ecSPavankumar Nandeshwar HAL_PPDU_TX_END = 275 /* 0x113 */, 27287a230ecSPavankumar Nandeshwar HAL_PROT_TX_END = 276 /* 0x114 */, 27387a230ecSPavankumar Nandeshwar HAL_MPDU_INFO_GLOBAL_END = 277 /* 0x115 */, 27487a230ecSPavankumar Nandeshwar HAL_TQM_SCH_INSTR_GLOBAL_END = 278 /* 0x116 */, 27587a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_USER_STATS = 279 /* 0x117 */, 27687a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_USER_STATS_EXT = 280 /* 0x118 */, 27787a230ecSPavankumar Nandeshwar HAL_REO_GET_QUEUE_STATS = 281 /* 0x119 */, 27887a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_QUEUE = 282 /* 0x11a */, 27987a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_CACHE = 283 /* 0x11b */, 28087a230ecSPavankumar Nandeshwar HAL_REO_UNBLOCK_CACHE = 284 /* 0x11c */, 28187a230ecSPavankumar Nandeshwar HAL_REO_GET_QUEUE_STATS_STATUS = 285 /* 0x11d */, 28287a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_QUEUE_STATUS = 286 /* 0x11e */, 28387a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_CACHE_STATUS = 287 /* 0x11f */, 28487a230ecSPavankumar Nandeshwar HAL_REO_UNBLOCK_CACHE_STATUS = 288 /* 0x120 */, 28587a230ecSPavankumar Nandeshwar HAL_TQM_FLUSH_CACHE = 289 /* 0x121 */, 28687a230ecSPavankumar Nandeshwar HAL_TQM_UNBLOCK_CACHE = 290 /* 0x122 */, 28787a230ecSPavankumar Nandeshwar HAL_TQM_FLUSH_CACHE_STATUS = 291 /* 0x123 */, 28887a230ecSPavankumar Nandeshwar HAL_TQM_UNBLOCK_CACHE_STATUS = 292 /* 0x124 */, 28987a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_STATUS_DONE = 293 /* 0x125 */, 29087a230ecSPavankumar Nandeshwar HAL_RX_STATUS_BUFFER_DONE = 294 /* 0x126 */, 29187a230ecSPavankumar Nandeshwar HAL_TX_DATA_SYNC = 297 /* 0x129 */, 29287a230ecSPavankumar Nandeshwar HAL_PHYRX_CBF_READ_REQUEST_ACK = 298 /* 0x12a */, 29387a230ecSPavankumar Nandeshwar HAL_TQM_GET_MPDU_HEAD_INFO = 299 /* 0x12b */, 29487a230ecSPavankumar Nandeshwar HAL_TQM_SYNC_CMD = 300 /* 0x12c */, 29587a230ecSPavankumar Nandeshwar HAL_TQM_GET_MPDU_HEAD_INFO_STATUS = 301 /* 0x12d */, 29687a230ecSPavankumar Nandeshwar HAL_TQM_SYNC_CMD_STATUS = 302 /* 0x12e */, 29787a230ecSPavankumar Nandeshwar HAL_TQM_THRESHOLD_DROP_NOTIFICATION_STATUS = 303 /* 0x12f */, 29887a230ecSPavankumar Nandeshwar HAL_TQM_DESCRIPTOR_THRESHOLD_REACHED_STATUS = 304 /* 0x130 */, 29987a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_TIMEOUT_LIST = 305 /* 0x131 */, 30087a230ecSPavankumar Nandeshwar HAL_REO_FLUSH_TIMEOUT_LIST_STATUS = 306 /* 0x132 */, 30187a230ecSPavankumar Nandeshwar HAL_REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS = 307 /* 0x133 */, 30287a230ecSPavankumar Nandeshwar HAL_SCHEDULER_RX_SIFS_RESPONSE_TRIGGER_STATUS = 308 /* 0x134 */, 30387a230ecSPavankumar Nandeshwar HALXAMPLE_USER_TLV_32_NAME = 309 /* 0x135 */, 30487a230ecSPavankumar Nandeshwar HAL_RX_PPDU_START_USER_INFO = 310 /* 0x136 */, 30587a230ecSPavankumar Nandeshwar HAL_RX_RING_MASK = 311 /* 0x137 */, 30687a230ecSPavankumar Nandeshwar HAL_COEX_MAC_NAP = 312 /* 0x138 */, 30787a230ecSPavankumar Nandeshwar HAL_RXPCU_PPDU_END_INFO = 313 /* 0x139 */, 30887a230ecSPavankumar Nandeshwar HAL_WHO_MESH_CONTROL = 314 /* 0x13a */, 30987a230ecSPavankumar Nandeshwar HAL_PDG_SW_MODE_BW_START = 315 /* 0x13b */, 31087a230ecSPavankumar Nandeshwar HAL_PDG_SW_MODE_BW_END = 316 /* 0x13c */, 31187a230ecSPavankumar Nandeshwar HAL_PDG_WAIT_FOR_MAC_REQUEST = 317 /* 0x13d */, 31287a230ecSPavankumar Nandeshwar HAL_PDG_WAIT_FOR_PHY_REQUEST = 318 /* 0x13e */, 31387a230ecSPavankumar Nandeshwar HAL_SCHEDULER_END = 319 /* 0x13f */, 31487a230ecSPavankumar Nandeshwar HAL_RX_PPDU_START_DROPPED = 320 /* 0x140 */, 31587a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_DROPPED = 321 /* 0x141 */, 31687a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_STATUS_DONE_DROPPED = 322 /* 0x142 */, 31787a230ecSPavankumar Nandeshwar HAL_RX_MPDU_START_DROPPED = 323 /* 0x143 */, 31887a230ecSPavankumar Nandeshwar HAL_RX_MSDU_START_DROPPED = 324 /* 0x144 */, 31987a230ecSPavankumar Nandeshwar HAL_RX_MSDU_END_DROPPED = 325 /* 0x145 */, 32087a230ecSPavankumar Nandeshwar HAL_RX_MPDU_END_DROPPED = 326 /* 0x146 */, 32187a230ecSPavankumar Nandeshwar HAL_RX_ATTENTION_DROPPED = 327 /* 0x147 */, 32287a230ecSPavankumar Nandeshwar HAL_TXPCU_USER_SETUP = 328 /* 0x148 */, 32387a230ecSPavankumar Nandeshwar HAL_RXPCU_USER_SETUP_EXT = 329 /* 0x149 */, 32487a230ecSPavankumar Nandeshwar HAL_CMD_PART_0_END = 330 /* 0x14a */, 32587a230ecSPavankumar Nandeshwar HAL_MACTX_SYNTH_ON = 331 /* 0x14b */, 32687a230ecSPavankumar Nandeshwar HAL_SCH_CRITICAL_TLV_REFERENCE = 332 /* 0x14c */, 32787a230ecSPavankumar Nandeshwar HAL_TQM_MPDU_GLOBAL_START = 333 /* 0x14d */, 32887a230ecSPavankumar Nandeshwar HALXAMPLE_TLV_32 = 334 /* 0x14e */, 32987a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MSDU_FLOW = 335 /* 0x14f */, 33087a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MPDU_QUEUE_HEAD = 336 /* 0x150 */, 33187a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MSDU_FLOW_STATUS = 337 /* 0x151 */, 33287a230ecSPavankumar Nandeshwar HAL_TQM_UPDATE_TX_MPDU_QUEUE_HEAD_STATUS = 338 /* 0x152 */, 33387a230ecSPavankumar Nandeshwar HAL_REO_UPDATE_RX_REO_QUEUE = 339 /* 0x153 */, 33487a230ecSPavankumar Nandeshwar HAL_TQM_MPDU_QUEUEMPTY_STATUS = 340 /* 0x154 */, 33587a230ecSPavankumar Nandeshwar HAL_TQM_2_SCH_MPDU_AVAILABLE = 341 /* 0x155 */, 33687a230ecSPavankumar Nandeshwar HAL_PDG_TRIG_RESPONSE = 342 /* 0x156 */, 33787a230ecSPavankumar Nandeshwar HAL_TRIGGER_RESPONSE_TX_DONE = 343 /* 0x157 */, 33887a230ecSPavankumar Nandeshwar HAL_ABORT_FROM_PHYRX_DETAILS = 344 /* 0x158 */, 33987a230ecSPavankumar Nandeshwar HAL_SCH_TQM_CMD_WRAPPER = 345 /* 0x159 */, 34087a230ecSPavankumar Nandeshwar HAL_MPDUS_AVAILABLE = 346 /* 0x15a */, 34187a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_INFO_PART2 = 347 /* 0x15b */, 34287a230ecSPavankumar Nandeshwar HAL_PHYRX_TX_START_TIMING = 348 /* 0x15c */, 34387a230ecSPavankumar Nandeshwar HAL_TXPCU_PREAMBLE_DONE = 349 /* 0x15d */, 34487a230ecSPavankumar Nandeshwar HAL_NDP_PREAMBLE_DONE = 350 /* 0x15e */, 34587a230ecSPavankumar Nandeshwar HAL_SCH_TQM_CMD_WRAPPER_RBO_DROP = 351 /* 0x15f */, 34687a230ecSPavankumar Nandeshwar HAL_SCH_TQM_CMD_WRAPPER_CONT_DROP = 352 /* 0x160 */, 34787a230ecSPavankumar Nandeshwar HAL_MACTX_CLEAR_PREV_TX_INFO = 353 /* 0x161 */, 34887a230ecSPavankumar Nandeshwar HAL_TX_PUNCTURE_SETUP = 354 /* 0x162 */, 34987a230ecSPavankumar Nandeshwar HAL_R2R_STATUS_END = 355 /* 0x163 */, 35087a230ecSPavankumar Nandeshwar HAL_MACTX_PREFETCH_CV_COMMON = 356 /* 0x164 */, 35187a230ecSPavankumar Nandeshwar HAL_END_OF_FLUSH_MARKER = 357 /* 0x165 */, 35287a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_COMMON_PUNC = 358 /* 0x166 */, 35387a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_USER_SETUP_PUNC = 359 /* 0x167 */, 35487a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_USER_7_0 = 360 /* 0x168 */, 35587a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_USER_15_8 = 361 /* 0x169 */, 35687a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_USER_23_16 = 362 /* 0x16a */, 35787a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_USER_31_24 = 363 /* 0x16b */, 35887a230ecSPavankumar Nandeshwar HAL_RECEIVED_RESPONSE_USER_36_32 = 364 /* 0x16c */, 35987a230ecSPavankumar Nandeshwar HAL_TX_LOOPBACK_SETUP = 365 /* 0x16d */, 36087a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS = 366 /* 0x16e */, 36187a230ecSPavankumar Nandeshwar HAL_SCH_WAIT_INSTR_TX_PATH = 367 /* 0x16f */, 36287a230ecSPavankumar Nandeshwar HAL_MACTX_OTHER_TRANSMIT_INFO_TX2TX = 368 /* 0x170 */, 36387a230ecSPavankumar Nandeshwar HAL_MACTX_OTHER_TRANSMIT_INFOMUPHY_SETUP = 369 /* 0x171 */, 36487a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFOVM_DETAILS = 370 /* 0x172 */, 36587a230ecSPavankumar Nandeshwar HAL_TX_WUR_DATA = 371 /* 0x173 */, 36687a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_START = 372 /* 0x174 */, 36787a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_MIDDLE = 373 /* 0x175 */, 36887a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_LAST = 374 /* 0x176 */, 36987a230ecSPavankumar Nandeshwar HAL_MACTX_BACKOFF_BASED_TRANSMISSION = 375 /* 0x177 */, 37087a230ecSPavankumar Nandeshwar HAL_MACTX_OTHER_TRANSMIT_INFO_DL_OFDMA_TX = 376 /* 0x178 */, 37187a230ecSPavankumar Nandeshwar HAL_SRP_INFO = 377 /* 0x179 */, 37287a230ecSPavankumar Nandeshwar HAL_OBSS_SR_INFO = 378 /* 0x17a */, 37387a230ecSPavankumar Nandeshwar HAL_SCHEDULER_SW_MSG_STATUS = 379 /* 0x17b */, 37487a230ecSPavankumar Nandeshwar HAL_HWSCH_RXPCU_MAC_INFO_ANNOUNCEMENT = 380 /* 0x17c */, 37587a230ecSPavankumar Nandeshwar HAL_RXPCU_SETUP_COMPLETE = 381 /* 0x17d */, 37687a230ecSPavankumar Nandeshwar HAL_SNOOP_PPDU_START = 382 /* 0x17e */, 37787a230ecSPavankumar Nandeshwar HAL_SNOOP_MPDU_USR_DBG_INFO = 383 /* 0x17f */, 37887a230ecSPavankumar Nandeshwar HAL_SNOOP_MSDU_USR_DBG_INFO = 384 /* 0x180 */, 37987a230ecSPavankumar Nandeshwar HAL_SNOOP_MSDU_USR_DATA = 385 /* 0x181 */, 38087a230ecSPavankumar Nandeshwar HAL_SNOOP_MPDU_USR_STAT_INFO = 386 /* 0x182 */, 38187a230ecSPavankumar Nandeshwar HAL_SNOOP_PPDU_END = 387 /* 0x183 */, 38287a230ecSPavankumar Nandeshwar HAL_SNOOP_SPARE = 388 /* 0x184 */, 38387a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO_MU_RSSI_COMMON = 390 /* 0x186 */, 38487a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO_MU_RSSI_USER = 391 /* 0x187 */, 38587a230ecSPavankumar Nandeshwar HAL_MACTX_OTHER_TRANSMIT_INFO_SCH_DETAILS = 392 /* 0x188 */, 38687a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO_108PVM_DETAILS = 393 /* 0x189 */, 38787a230ecSPavankumar Nandeshwar HAL_SCH_TLV_WRAPPER = 394 /* 0x18a */, 38887a230ecSPavankumar Nandeshwar HAL_SCHEDULER_STATUS_WRAPPER = 395 /* 0x18b */, 38987a230ecSPavankumar Nandeshwar HAL_MPDU_INFO_6X = 396 /* 0x18c */, 39087a230ecSPavankumar Nandeshwar HAL_MACTX_11AZ_USER_DESC_PER_USER = 397 /* 0x18d */, 39187a230ecSPavankumar Nandeshwar HAL_MACTX_U_SIGHT_SU_MU = 398 /* 0x18e */, 39287a230ecSPavankumar Nandeshwar HAL_MACTX_U_SIGHT_TB = 399 /* 0x18f */, 39387a230ecSPavankumar Nandeshwar HAL_PHYRX_U_SIGHT_SU_MU = 403 /* 0x193 */, 39487a230ecSPavankumar Nandeshwar HAL_PHYRX_U_SIGHT_TB = 404 /* 0x194 */, 39587a230ecSPavankumar Nandeshwar HAL_MACRX_LMR_READ_REQUEST = 408 /* 0x198 */, 39687a230ecSPavankumar Nandeshwar HAL_MACRX_LMR_DATA_REQUEST = 409 /* 0x199 */, 39787a230ecSPavankumar Nandeshwar HAL_PHYRX_LMR_TRANSFER_DONE = 410 /* 0x19a */, 39887a230ecSPavankumar Nandeshwar HAL_PHYRX_LMR_TRANSFER_ABORT = 411 /* 0x19b */, 39987a230ecSPavankumar Nandeshwar HAL_PHYRX_LMR_READ_REQUEST_ACK = 412 /* 0x19c */, 40087a230ecSPavankumar Nandeshwar HAL_MACRX_SECURE_LTF_SEQ_PTR = 413 /* 0x19d */, 40187a230ecSPavankumar Nandeshwar HAL_PHYRX_USER_INFO_MU_UL = 414 /* 0x19e */, 40287a230ecSPavankumar Nandeshwar HAL_MPDU_QUEUE_OVERVIEW = 415 /* 0x19f */, 40387a230ecSPavankumar Nandeshwar HAL_SCHEDULER_NAV_INFO = 416 /* 0x1a0 */, 40487a230ecSPavankumar Nandeshwar HAL_LMR_PEER_ENTRY = 418 /* 0x1a2 */, 40587a230ecSPavankumar Nandeshwar HAL_LMR_MPDU_START = 419 /* 0x1a3 */, 40687a230ecSPavankumar Nandeshwar HAL_LMR_DATA = 420 /* 0x1a4 */, 40787a230ecSPavankumar Nandeshwar HAL_LMR_MPDU_END = 421 /* 0x1a5 */, 40887a230ecSPavankumar Nandeshwar HAL_REO_GET_QUEUE_1K_STATS_STATUS = 422 /* 0x1a6 */, 40987a230ecSPavankumar Nandeshwar HAL_RX_FRAME_1K_BITMAP_ACK = 423 /* 0x1a7 */, 41087a230ecSPavankumar Nandeshwar HAL_TX_FES_STATUS_1K_BA = 424 /* 0x1a8 */, 41187a230ecSPavankumar Nandeshwar HAL_TQM_ACKED_1K_MPDU = 425 /* 0x1a9 */, 41287a230ecSPavankumar Nandeshwar HAL_MACRX_INBSS_OBSS_IND = 426 /* 0x1aa */, 41387a230ecSPavankumar Nandeshwar HAL_PHYRX_LOCATION = 427 /* 0x1ab */, 41487a230ecSPavankumar Nandeshwar HAL_MLO_TX_NOTIFICATION_SU = 428 /* 0x1ac */, 41587a230ecSPavankumar Nandeshwar HAL_MLO_TX_NOTIFICATION_MU = 429 /* 0x1ad */, 41687a230ecSPavankumar Nandeshwar HAL_MLO_TX_REQ_SU = 430 /* 0x1ae */, 41787a230ecSPavankumar Nandeshwar HAL_MLO_TX_REQ_MU = 431 /* 0x1af */, 41887a230ecSPavankumar Nandeshwar HAL_MLO_TX_RESP = 432 /* 0x1b0 */, 41987a230ecSPavankumar Nandeshwar HAL_MLO_RX_NOTIFICATION = 433 /* 0x1b1 */, 42087a230ecSPavankumar Nandeshwar HAL_MLO_BKOFF_TRUNC_REQ = 434 /* 0x1b2 */, 42187a230ecSPavankumar Nandeshwar HAL_MLO_TBTT_NOTIFICATION = 435 /* 0x1b3 */, 42287a230ecSPavankumar Nandeshwar HAL_MLO_MESSAGE = 436 /* 0x1b4 */, 42387a230ecSPavankumar Nandeshwar HAL_MLO_TS_SYNC_MSG = 437 /* 0x1b5 */, 42487a230ecSPavankumar Nandeshwar HAL_MLO_FES_SETUP = 438 /* 0x1b6 */, 42587a230ecSPavankumar Nandeshwar HAL_MLO_PDG_FES_SETUP_SU = 439 /* 0x1b7 */, 42687a230ecSPavankumar Nandeshwar HAL_MLO_PDG_FES_SETUP_MU = 440 /* 0x1b8 */, 42787a230ecSPavankumar Nandeshwar HAL_MPDU_INFO_1K_BITMAP = 441 /* 0x1b9 */, 42887a230ecSPavankumar Nandeshwar HAL_MON_BUF_ADDR = 442 /* 0x1ba */, 42987a230ecSPavankumar Nandeshwar HAL_TX_FRAG_STATE = 443 /* 0x1bb */, 43087a230ecSPavankumar Nandeshwar HAL_MACTXHT_SIG_USR_OFDMA = 446 /* 0x1be */, 43187a230ecSPavankumar Nandeshwar HAL_PHYRXHT_SIG_CMN_PUNC = 448 /* 0x1c0 */, 43287a230ecSPavankumar Nandeshwar HAL_PHYRXHT_SIG_CMN_OFDMA = 450 /* 0x1c2 */, 43387a230ecSPavankumar Nandeshwar HAL_PHYRXHT_SIG_USR_OFDMA = 454 /* 0x1c6 */, 43487a230ecSPavankumar Nandeshwar HAL_PHYRX_PKT_END_PART1 = 456 /* 0x1c8 */, 43587a230ecSPavankumar Nandeshwar HAL_MACTXXPECT_NDP_RECEPTION = 457 /* 0x1c9 */, 43687a230ecSPavankumar Nandeshwar HAL_MACTX_SECURE_LTF_SEQ_PTR = 458 /* 0x1ca */, 43787a230ecSPavankumar Nandeshwar HAL_MLO_PDG_BKOFF_TRUNC_NOTIFY = 460 /* 0x1cc */, 43887a230ecSPavankumar Nandeshwar HAL_PHYRX_11AZ_INTEGRITY_DATA = 461 /* 0x1cd */, 43987a230ecSPavankumar Nandeshwar HAL_PHYTX_LOCATION = 462 /* 0x1ce */, 44087a230ecSPavankumar Nandeshwar HAL_PHYTX_11AZ_INTEGRITY_DATA = 463 /* 0x1cf */, 44187a230ecSPavankumar Nandeshwar HAL_MACTXHT_SIG_USR_SU = 466 /* 0x1d2 */, 44287a230ecSPavankumar Nandeshwar HAL_MACTXHT_SIG_USR_MU_MIMO = 467 /* 0x1d3 */, 44387a230ecSPavankumar Nandeshwar HAL_PHYRXHT_SIG_USR_SU = 468 /* 0x1d4 */, 44487a230ecSPavankumar Nandeshwar HAL_PHYRXHT_SIG_USR_MU_MIMO = 469 /* 0x1d5 */, 44587a230ecSPavankumar Nandeshwar HAL_PHYRX_GENERIC_U_SIG = 470 /* 0x1d6 */, 44687a230ecSPavankumar Nandeshwar HAL_PHYRX_GENERIC_EHT_SIG = 471 /* 0x1d7 */, 44787a230ecSPavankumar Nandeshwar HAL_OVERWRITE_RESP_START = 472 /* 0x1d8 */, 44887a230ecSPavankumar Nandeshwar HAL_OVERWRITE_RESP_PREAMBLE_INFO = 473 /* 0x1d9 */, 44987a230ecSPavankumar Nandeshwar HAL_OVERWRITE_RESP_FRAME_INFO = 474 /* 0x1da */, 45087a230ecSPavankumar Nandeshwar HAL_OVERWRITE_RESP_END = 475 /* 0x1db */, 45187a230ecSPavankumar Nandeshwar HAL_RXPCUARLY_RX_INDICATION = 476 /* 0x1dc */, 45287a230ecSPavankumar Nandeshwar HAL_MON_DROP = 477 /* 0x1dd */, 45387a230ecSPavankumar Nandeshwar HAL_MACRX_MU_UPLINK_COMMON_SNIFF = 478 /* 0x1de */, 45487a230ecSPavankumar Nandeshwar HAL_MACRX_MU_UPLINK_USER_SETUP_SNIFF = 479 /* 0x1df */, 45587a230ecSPavankumar Nandeshwar HAL_MACRX_MU_UPLINK_USER_SEL_SNIFF = 480 /* 0x1e0 */, 45687a230ecSPavankumar Nandeshwar HAL_MACRX_MU_UPLINK_FCS_STATUS_SNIFF = 481 /* 0x1e1 */, 45787a230ecSPavankumar Nandeshwar HAL_MACTX_PREFETCH_CV_DMA = 482 /* 0x1e2 */, 45887a230ecSPavankumar Nandeshwar HAL_MACTX_PREFETCH_CV_PER_USER = 483 /* 0x1e3 */, 45987a230ecSPavankumar Nandeshwar HAL_PHYRX_OTHER_RECEIVE_INFO_ALL_SIGB_DETAILS = 484 /* 0x1e4 */, 46087a230ecSPavankumar Nandeshwar HAL_MACTX_BF_PARAMS_UPDATE_COMMON = 485 /* 0x1e5 */, 46187a230ecSPavankumar Nandeshwar HAL_MACTX_BF_PARAMS_UPDATE_PER_USER = 486 /* 0x1e6 */, 46287a230ecSPavankumar Nandeshwar HAL_RANGING_USER_DETAILS = 487 /* 0x1e7 */, 46387a230ecSPavankumar Nandeshwar HAL_PHYTX_CV_CORR_STATUS = 488 /* 0x1e8 */, 46487a230ecSPavankumar Nandeshwar HAL_PHYTX_CV_CORR_COMMON = 489 /* 0x1e9 */, 46587a230ecSPavankumar Nandeshwar HAL_PHYTX_CV_CORR_USER = 490 /* 0x1ea */, 46687a230ecSPavankumar Nandeshwar HAL_MACTX_CV_CORR_COMMON = 491 /* 0x1eb */, 46787a230ecSPavankumar Nandeshwar HAL_MACTX_CV_CORR_MAC_INFO_GROUP = 492 /* 0x1ec */, 46887a230ecSPavankumar Nandeshwar HAL_BW_PUNCTUREVAL_WRAPPER = 493 /* 0x1ed */, 46987a230ecSPavankumar Nandeshwar HAL_MACTX_RX_NOTIFICATION_FOR_PHY = 494 /* 0x1ee */, 47087a230ecSPavankumar Nandeshwar HAL_MACTX_TX_NOTIFICATION_FOR_PHY = 495 /* 0x1ef */, 47187a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_COMMON_PER_BW = 496 /* 0x1f0 */, 47287a230ecSPavankumar Nandeshwar HAL_MACTX_MU_UPLINK_USER_SETUP_PER_BW = 497 /* 0x1f1 */, 47387a230ecSPavankumar Nandeshwar HAL_RX_PPDU_END_USER_STATS_EXT2 = 498 /* 0x1f2 */, 47487a230ecSPavankumar Nandeshwar HAL_FW2SW_MON = 499 /* 0x1f3 */, 47587a230ecSPavankumar Nandeshwar HAL_WSI_DIRECT_MESSAGE = 500 /* 0x1f4 */, 47687a230ecSPavankumar Nandeshwar HAL_MACTXMLSR_PRE_SWITCH = 501 /* 0x1f5 */, 47787a230ecSPavankumar Nandeshwar HAL_MACTXMLSR_SWITCH = 502 /* 0x1f6 */, 47887a230ecSPavankumar Nandeshwar HAL_MACTXMLSR_SWITCH_BACK = 503 /* 0x1f7 */, 47987a230ecSPavankumar Nandeshwar HAL_PHYTXMLSR_SWITCH_ACK = 504 /* 0x1f8 */, 48087a230ecSPavankumar Nandeshwar HAL_PHYTXMLSR_SWITCH_BACK_ACK = 505 /* 0x1f9 */, 48187a230ecSPavankumar Nandeshwar HAL_SPARE_REUSE_TAG_0 = 506 /* 0x1fa */, 48287a230ecSPavankumar Nandeshwar HAL_SPARE_REUSE_TAG_1 = 507 /* 0x1fb */, 48387a230ecSPavankumar Nandeshwar HAL_SPARE_REUSE_TAG_2 = 508 /* 0x1fc */, 48487a230ecSPavankumar Nandeshwar HAL_SPARE_REUSE_TAG_3 = 509 /* 0x1fd */, 48587a230ecSPavankumar Nandeshwar /* FIXME: Assign correct value for HAL_TCL_DATA_CMD */ 48687a230ecSPavankumar Nandeshwar HAL_TCL_DATA_CMD = 510, 48787a230ecSPavankumar Nandeshwar HAL_TLV_BASE = 511 /* 0x1ff */, 48887a230ecSPavankumar Nandeshwar }; 48987a230ecSPavankumar Nandeshwar 49087a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_MSDU_COUNT GENMASK(7, 0) 49187a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_FRAG_FLAG BIT(8) 49287a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_MPDU_RETRY BIT(9) 49387a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_AMPDU_FLAG BIT(10) 49487a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_BAR_FRAME BIT(11) 49587a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_VALID_PN BIT(12) 49687a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_RAW_MPDU BIT(13) 49787a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_MORE_FRAG_FLAG BIT(14) 49887a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_SRC_INFO GENMASK(26, 15) 49987a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_MPDU_QOS_CTRL_VALID BIT(27) 50087a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_INFO0_TID GENMASK(31, 28) 50187a230ecSPavankumar Nandeshwar 50287a230ecSPavankumar Nandeshwar /* Peer Metadata classification */ 50387a230ecSPavankumar Nandeshwar 50487a230ecSPavankumar Nandeshwar /* Version 0 */ 50587a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V0_PEER_ID GENMASK(15, 0) 50687a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V0_VDEV_ID GENMASK(23, 16) 50787a230ecSPavankumar Nandeshwar 50887a230ecSPavankumar Nandeshwar /* Version 1 */ 50987a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1_PEER_ID GENMASK(13, 0) 51087a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1_LOGICAL_LINK_ID GENMASK(15, 14) 51187a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1_VDEV_ID GENMASK(23, 16) 51287a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1_LMAC_ID GENMASK(25, 24) 51387a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1_DEVICE_ID GENMASK(28, 26) 51487a230ecSPavankumar Nandeshwar 51587a230ecSPavankumar Nandeshwar /* Version 1A */ 51687a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1A_PEER_ID GENMASK(13, 0) 51787a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1A_VDEV_ID GENMASK(21, 14) 51887a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1A_LOGICAL_LINK_ID GENMASK(25, 22) 51987a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1A_DEVICE_ID GENMASK(28, 26) 52087a230ecSPavankumar Nandeshwar 52187a230ecSPavankumar Nandeshwar /* Version 1B */ 52287a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1B_PEER_ID GENMASK(13, 0) 52387a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1B_VDEV_ID GENMASK(21, 14) 52487a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1B_HW_LINK_ID GENMASK(25, 22) 52587a230ecSPavankumar Nandeshwar #define RX_MPDU_DESC_META_DATA_V1B_DEVICE_ID GENMASK(28, 26) 52687a230ecSPavankumar Nandeshwar 52787a230ecSPavankumar Nandeshwar struct rx_mpdu_desc { 52887a230ecSPavankumar Nandeshwar __le32 info0; /* %RX_MPDU_DESC_INFO */ 52987a230ecSPavankumar Nandeshwar __le32 peer_meta_data; 53087a230ecSPavankumar Nandeshwar } __packed; 53187a230ecSPavankumar Nandeshwar 53287a230ecSPavankumar Nandeshwar /* rx_mpdu_desc 53387a230ecSPavankumar Nandeshwar * Producer: RXDMA 53487a230ecSPavankumar Nandeshwar * Consumer: REO/SW/FW 53587a230ecSPavankumar Nandeshwar * 53687a230ecSPavankumar Nandeshwar * msdu_count 53787a230ecSPavankumar Nandeshwar * The number of MSDUs within the MPDU 53887a230ecSPavankumar Nandeshwar * 53987a230ecSPavankumar Nandeshwar * fragment_flag 54087a230ecSPavankumar Nandeshwar * When set, this MPDU is a fragment and REO should forward this 54187a230ecSPavankumar Nandeshwar * fragment MPDU to the REO destination ring without any reorder 54287a230ecSPavankumar Nandeshwar * checks, pn checks or bitmap update. This implies that REO is 54387a230ecSPavankumar Nandeshwar * forwarding the pointer to the MSDU link descriptor. 54487a230ecSPavankumar Nandeshwar * 54587a230ecSPavankumar Nandeshwar * mpdu_retry_bit 54687a230ecSPavankumar Nandeshwar * The retry bit setting from the MPDU header of the received frame 54787a230ecSPavankumar Nandeshwar * 54887a230ecSPavankumar Nandeshwar * ampdu_flag 54987a230ecSPavankumar Nandeshwar * Indicates the MPDU was received as part of an A-MPDU. 55087a230ecSPavankumar Nandeshwar * 55187a230ecSPavankumar Nandeshwar * bar_frame 55287a230ecSPavankumar Nandeshwar * Indicates the received frame is a BAR frame. After processing, 55387a230ecSPavankumar Nandeshwar * this frame shall be pushed to SW or deleted. 55487a230ecSPavankumar Nandeshwar * 55587a230ecSPavankumar Nandeshwar * valid_pn 55687a230ecSPavankumar Nandeshwar * When not set, REO will not perform a PN sequence number check. 55787a230ecSPavankumar Nandeshwar * 55887a230ecSPavankumar Nandeshwar * raw_mpdu 55987a230ecSPavankumar Nandeshwar * Field only valid when first_msdu_in_mpdu_flag is set. Indicates 56087a230ecSPavankumar Nandeshwar * the contents in the MSDU buffer contains a 'RAW' MPDU. This 56187a230ecSPavankumar Nandeshwar * 'RAW' MPDU might be spread out over multiple MSDU buffers. 56287a230ecSPavankumar Nandeshwar * 56387a230ecSPavankumar Nandeshwar * more_fragment_flag 56487a230ecSPavankumar Nandeshwar * The More Fragment bit setting from the MPDU header of the 56587a230ecSPavankumar Nandeshwar * received frame 56687a230ecSPavankumar Nandeshwar * 56787a230ecSPavankumar Nandeshwar * src_info 56887a230ecSPavankumar Nandeshwar * Source (Virtual) device/interface info associated with this peer. 56987a230ecSPavankumar Nandeshwar * This field gets passed on by REO to PPE in the EDMA descriptor. 57087a230ecSPavankumar Nandeshwar * 57187a230ecSPavankumar Nandeshwar * mpdu_qos_control_valid 57287a230ecSPavankumar Nandeshwar * When set, the MPDU has a QoS control field 57387a230ecSPavankumar Nandeshwar * 57487a230ecSPavankumar Nandeshwar * tid 57587a230ecSPavankumar Nandeshwar * Field only valid when mpdu_qos_control_valid is set 57687a230ecSPavankumar Nandeshwar */ 57787a230ecSPavankumar Nandeshwar 57887a230ecSPavankumar Nandeshwar enum hal_rx_msdu_desc_reo_dest_ind { 57987a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_TCL, 58087a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW1, 58187a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW2, 58287a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW3, 58387a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW4, 58487a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_RELEASE, 58587a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_FW, 58687a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW5, 58787a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW6, 58887a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW7, 58987a230ecSPavankumar Nandeshwar HAL_RX_MSDU_DESC_REO_DEST_IND_SW8, 59087a230ecSPavankumar Nandeshwar }; 59187a230ecSPavankumar Nandeshwar 59287a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_FIRST_MSDU_IN_MPDU BIT(0) 59387a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_LAST_MSDU_IN_MPDU BIT(1) 59487a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_MSDU_CONTINUATION BIT(2) 59587a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_MSDU_LENGTH GENMASK(16, 3) 59687a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_MSDU_DROP BIT(17) 59787a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_VALID_SA BIT(18) 59887a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_VALID_DA BIT(19) 59987a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_DA_MCBC BIT(20) 60087a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_L3_HDR_PAD_MSB BIT(21) 60187a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_TCP_UDP_CHKSUM_FAIL BIT(22) 60287a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_IP_CHKSUM_FAIL BIT(23) 60387a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_FROM_DS BIT(24) 60487a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_TO_DS BIT(25) 60587a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_INTRA_BSS BIT(26) 60687a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_DST_CHIP_ID GENMASK(28, 27) 60787a230ecSPavankumar Nandeshwar #define RX_MSDU_DESC_INFO0_DECAP_FORMAT GENMASK(30, 29) 60887a230ecSPavankumar Nandeshwar 60987a230ecSPavankumar Nandeshwar #define HAL_RX_MSDU_PKT_LENGTH_GET(val) \ 61087a230ecSPavankumar Nandeshwar (le32_get_bits((val), RX_MSDU_DESC_INFO0_MSDU_LENGTH)) 61187a230ecSPavankumar Nandeshwar 61287a230ecSPavankumar Nandeshwar struct rx_msdu_desc { 61387a230ecSPavankumar Nandeshwar __le32 info0; 61487a230ecSPavankumar Nandeshwar } __packed; 61587a230ecSPavankumar Nandeshwar 61687a230ecSPavankumar Nandeshwar /* rx_msdu_desc 61787a230ecSPavankumar Nandeshwar * 61887a230ecSPavankumar Nandeshwar * first_msdu_in_mpdu 61987a230ecSPavankumar Nandeshwar * Indicates first msdu in mpdu. 62087a230ecSPavankumar Nandeshwar * 62187a230ecSPavankumar Nandeshwar * last_msdu_in_mpdu 62287a230ecSPavankumar Nandeshwar * Indicates last msdu in mpdu. This flag can be true only when 62387a230ecSPavankumar Nandeshwar * 'Msdu_continuation' set to 0. This implies that when an msdu 62487a230ecSPavankumar Nandeshwar * is spread out over multiple buffers and thus msdu_continuation 62587a230ecSPavankumar Nandeshwar * is set, only for the very last buffer of the msdu, can the 62687a230ecSPavankumar Nandeshwar * 'last_msdu_in_mpdu' be set. 62787a230ecSPavankumar Nandeshwar * 62887a230ecSPavankumar Nandeshwar * When both first_msdu_in_mpdu and last_msdu_in_mpdu are set, 62987a230ecSPavankumar Nandeshwar * the MPDU that this MSDU belongs to only contains a single MSDU. 63087a230ecSPavankumar Nandeshwar * 63187a230ecSPavankumar Nandeshwar * msdu_continuation 63287a230ecSPavankumar Nandeshwar * When set, this MSDU buffer was not able to hold the entire MSDU. 63387a230ecSPavankumar Nandeshwar * The next buffer will therefore contain additional information 63487a230ecSPavankumar Nandeshwar * related to this MSDU. 63587a230ecSPavankumar Nandeshwar * 63687a230ecSPavankumar Nandeshwar * msdu_length 63787a230ecSPavankumar Nandeshwar * Field is only valid in combination with the 'first_msdu_in_mpdu' 63887a230ecSPavankumar Nandeshwar * being set. Full MSDU length in bytes after decapsulation. This 63987a230ecSPavankumar Nandeshwar * field is still valid for MPDU frames without A-MSDU. It still 64087a230ecSPavankumar Nandeshwar * represents MSDU length after decapsulation Or in case of RAW 64187a230ecSPavankumar Nandeshwar * MPDUs, it indicates the length of the entire MPDU (without FCS 64287a230ecSPavankumar Nandeshwar * field). 64387a230ecSPavankumar Nandeshwar * 64487a230ecSPavankumar Nandeshwar * msdu_drop 64587a230ecSPavankumar Nandeshwar * Indicates that REO shall drop this MSDU and not forward it to 64687a230ecSPavankumar Nandeshwar * any other ring. 64787a230ecSPavankumar Nandeshwar * 64887a230ecSPavankumar Nandeshwar * valid_sa 64987a230ecSPavankumar Nandeshwar * Indicates OLE found a valid SA entry for this MSDU. 65087a230ecSPavankumar Nandeshwar * 65187a230ecSPavankumar Nandeshwar * valid_da 65287a230ecSPavankumar Nandeshwar * When set, OLE found a valid DA entry for this MSDU. 65387a230ecSPavankumar Nandeshwar * 65487a230ecSPavankumar Nandeshwar * da_mcbc 65587a230ecSPavankumar Nandeshwar * Field Only valid if valid_da is set. Indicates the DA address 65687a230ecSPavankumar Nandeshwar * is a Multicast or Broadcast address for this MSDU. 65787a230ecSPavankumar Nandeshwar * 65887a230ecSPavankumar Nandeshwar * l3_header_padding_msb 65987a230ecSPavankumar Nandeshwar * Passed on from 'RX_MSDU_END' TLV (only the MSB is reported as 66087a230ecSPavankumar Nandeshwar * the LSB is always zero). Number of bytes padded to make sure 66187a230ecSPavankumar Nandeshwar * that the L3 header will always start of a Dword boundary 66287a230ecSPavankumar Nandeshwar * 66387a230ecSPavankumar Nandeshwar * tcp_udp_checksum_fail 66487a230ecSPavankumar Nandeshwar * Passed on from 'RX_ATTENTION' TLV 66587a230ecSPavankumar Nandeshwar * Indicates that the computed checksum did not match the checksum 66687a230ecSPavankumar Nandeshwar * in the TCP/UDP header. 66787a230ecSPavankumar Nandeshwar * 66887a230ecSPavankumar Nandeshwar * ip_checksum_fail 66987a230ecSPavankumar Nandeshwar * Passed on from 'RX_ATTENTION' TLV 67087a230ecSPavankumar Nandeshwar * Indicates that the computed checksum did not match the checksum 67187a230ecSPavankumar Nandeshwar * in the IP header. 67287a230ecSPavankumar Nandeshwar * 67387a230ecSPavankumar Nandeshwar * from_DS 67487a230ecSPavankumar Nandeshwar * Set if the 'from DS' bit is set in the frame control. 67587a230ecSPavankumar Nandeshwar * 67687a230ecSPavankumar Nandeshwar * to_DS 67787a230ecSPavankumar Nandeshwar * Set if the 'to DS' bit is set in the frame control. 67887a230ecSPavankumar Nandeshwar * 67987a230ecSPavankumar Nandeshwar * intra_bss 68087a230ecSPavankumar Nandeshwar * This packet needs intra-BSS routing by SW as the 'vdev_id' 68187a230ecSPavankumar Nandeshwar * for the destination is the same as the 'vdev_id' that this 68287a230ecSPavankumar Nandeshwar * MSDU was got in. 68387a230ecSPavankumar Nandeshwar * 68487a230ecSPavankumar Nandeshwar * dest_chip_id 68587a230ecSPavankumar Nandeshwar * If intra_bss is set, copied by RXOLE/RXDMA from 'ADDR_SEARCH_ENTRY' 68687a230ecSPavankumar Nandeshwar * to support intra-BSS routing with multi-chip multi-link operation. 68787a230ecSPavankumar Nandeshwar * This indicates into which chip's TCL the packet should be queued. 68887a230ecSPavankumar Nandeshwar * 68987a230ecSPavankumar Nandeshwar * decap_format 69087a230ecSPavankumar Nandeshwar * Indicates the format after decapsulation: 69187a230ecSPavankumar Nandeshwar */ 69287a230ecSPavankumar Nandeshwar 69387a230ecSPavankumar Nandeshwar #define RX_MSDU_EXT_DESC_INFO0_REO_DEST_IND GENMASK(4, 0) 69487a230ecSPavankumar Nandeshwar #define RX_MSDU_EXT_DESC_INFO0_SERVICE_CODE GENMASK(13, 5) 69587a230ecSPavankumar Nandeshwar #define RX_MSDU_EXT_DESC_INFO0_PRIORITY_VALID BIT(14) 69687a230ecSPavankumar Nandeshwar #define RX_MSDU_EXT_DESC_INFO0_DATA_OFFSET GENMASK(26, 15) 69787a230ecSPavankumar Nandeshwar #define RX_MSDU_EXT_DESC_INFO0_SRC_LINK_ID GENMASK(29, 27) 69887a230ecSPavankumar Nandeshwar 69987a230ecSPavankumar Nandeshwar struct rx_msdu_ext_desc { 70087a230ecSPavankumar Nandeshwar __le32 info0; 70187a230ecSPavankumar Nandeshwar } __packed; 70287a230ecSPavankumar Nandeshwar 70387a230ecSPavankumar Nandeshwar /* rx_msdu_ext_desc 70487a230ecSPavankumar Nandeshwar * 70587a230ecSPavankumar Nandeshwar * reo_destination_indication 70687a230ecSPavankumar Nandeshwar * The ID of the REO exit ring where the MSDU frame shall push 70787a230ecSPavankumar Nandeshwar * after (MPDU level) reordering has finished. 70887a230ecSPavankumar Nandeshwar * 70987a230ecSPavankumar Nandeshwar * service_code 71087a230ecSPavankumar Nandeshwar * Opaque service code between PPE and Wi-Fi 71187a230ecSPavankumar Nandeshwar * 71287a230ecSPavankumar Nandeshwar * priority_valid 71387a230ecSPavankumar Nandeshwar * 71487a230ecSPavankumar Nandeshwar * data_offset 71587a230ecSPavankumar Nandeshwar * The offset to Rx packet data within the buffer (including 71687a230ecSPavankumar Nandeshwar * Rx DMA offset programming and L3 header padding inserted 71787a230ecSPavankumar Nandeshwar * by Rx OLE). 71887a230ecSPavankumar Nandeshwar * 71987a230ecSPavankumar Nandeshwar * src_link_id 72087a230ecSPavankumar Nandeshwar * Set to the link ID of the PMAC that received the frame 72187a230ecSPavankumar Nandeshwar */ 72287a230ecSPavankumar Nandeshwar 72387a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_BUFFER_TYPE BIT(0) 72487a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_PUSH_REASON GENMASK(2, 1) 72587a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_ERROR_CODE GENMASK(7, 3) 72687a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_MSDU_DATA_SIZE GENMASK(11, 8) 72787a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_SW_EXCEPTION BIT(12) 72887a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_SRC_LINK_ID GENMASK(15, 13) 72987a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_SIGNATURE GENMASK(19, 16) 73087a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_RING_ID GENMASK(27, 20) 73187a230ecSPavankumar Nandeshwar #define HAL_REO_DEST_RING_INFO0_LOOPING_COUNT GENMASK(31, 28) 73287a230ecSPavankumar Nandeshwar 73387a230ecSPavankumar Nandeshwar struct hal_reo_dest_ring { 73487a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 73587a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 73687a230ecSPavankumar Nandeshwar struct rx_msdu_desc rx_msdu_info; 73787a230ecSPavankumar Nandeshwar __le32 buf_va_lo; 73887a230ecSPavankumar Nandeshwar __le32 buf_va_hi; 73987a230ecSPavankumar Nandeshwar __le32 info0; /* %HAL_REO_DEST_RING_INFO0_ */ 74087a230ecSPavankumar Nandeshwar } __packed; 74187a230ecSPavankumar Nandeshwar 74287a230ecSPavankumar Nandeshwar /* hal_reo_dest_ring 74387a230ecSPavankumar Nandeshwar * 74487a230ecSPavankumar Nandeshwar * Producer: RXDMA 74587a230ecSPavankumar Nandeshwar * Consumer: REO/SW/FW 74687a230ecSPavankumar Nandeshwar * 74787a230ecSPavankumar Nandeshwar * buf_addr_info 74887a230ecSPavankumar Nandeshwar * Details of the physical address of a buffer or MSDU 74987a230ecSPavankumar Nandeshwar * link descriptor. 75087a230ecSPavankumar Nandeshwar * 75187a230ecSPavankumar Nandeshwar * rx_mpdu_info 75287a230ecSPavankumar Nandeshwar * General information related to the MPDU that is passed 75387a230ecSPavankumar Nandeshwar * on from REO entrance ring to the REO destination ring. 75487a230ecSPavankumar Nandeshwar * 75587a230ecSPavankumar Nandeshwar * rx_msdu_info 75687a230ecSPavankumar Nandeshwar * General information related to the MSDU that is passed 75787a230ecSPavankumar Nandeshwar * on from RXDMA all the way to the REO destination ring. 75887a230ecSPavankumar Nandeshwar * 75987a230ecSPavankumar Nandeshwar * buf_va_lo 76087a230ecSPavankumar Nandeshwar * Field only valid if Reo_dest_buffer_type is set to MSDU_buf_address 76187a230ecSPavankumar Nandeshwar * Lower 32 bits of the 64-bit virtual address corresponding 76287a230ecSPavankumar Nandeshwar * to Buf_or_link_desc_addr_info 76387a230ecSPavankumar Nandeshwar * 76487a230ecSPavankumar Nandeshwar * buf_va_hi 76587a230ecSPavankumar Nandeshwar * Address (upper 32 bits) of the REO queue descriptor. 76687a230ecSPavankumar Nandeshwar * Upper 32 bits of the 64-bit virtual address corresponding 76787a230ecSPavankumar Nandeshwar * to Buf_or_link_desc_addr_info 76887a230ecSPavankumar Nandeshwar * 76987a230ecSPavankumar Nandeshwar * buffer_type 77087a230ecSPavankumar Nandeshwar * Indicates the type of address provided in the buf_addr_info. 77187a230ecSPavankumar Nandeshwar * Values are defined in enum %HAL_REO_DEST_RING_BUFFER_TYPE_. 77287a230ecSPavankumar Nandeshwar * 77387a230ecSPavankumar Nandeshwar * push_reason 77487a230ecSPavankumar Nandeshwar * Reason for pushing this frame to this exit ring. Values are 77587a230ecSPavankumar Nandeshwar * defined in enum %HAL_REO_DEST_RING_PUSH_REASON_. 77687a230ecSPavankumar Nandeshwar * 77787a230ecSPavankumar Nandeshwar * error_code 77887a230ecSPavankumar Nandeshwar * Valid only when 'push_reason' is set. All error codes are 77987a230ecSPavankumar Nandeshwar * defined in enum %HAL_REO_DEST_RING_ERROR_CODE_. 78087a230ecSPavankumar Nandeshwar * 78187a230ecSPavankumar Nandeshwar * captured_msdu_data_size 78287a230ecSPavankumar Nandeshwar * The number of following REO_DESTINATION STRUCTs that have 78387a230ecSPavankumar Nandeshwar * been replaced with msdu_data extracted from the msdu_buffer 78487a230ecSPavankumar Nandeshwar * and copied into the ring for easy FW/SW access. 78587a230ecSPavankumar Nandeshwar * 78687a230ecSPavankumar Nandeshwar * sw_exception 78787a230ecSPavankumar Nandeshwar * This field has the same setting as the SW_exception field 78887a230ecSPavankumar Nandeshwar * in the corresponding REO_entrance_ring descriptor. 78987a230ecSPavankumar Nandeshwar * When set, the REO entrance descriptor is generated by FW, 79087a230ecSPavankumar Nandeshwar * and the MPDU was processed in the following way: 79187a230ecSPavankumar Nandeshwar * - NO re-order function is needed. 79287a230ecSPavankumar Nandeshwar * - MPDU delinking is determined by the setting of Entrance 79387a230ecSPavankumar Nandeshwar * ring field: SW_excection_mpdu_delink 79487a230ecSPavankumar Nandeshwar * - Destination ring selection is based on the setting of 79587a230ecSPavankumar Nandeshwar * the Entrance ring field SW_exception_destination _ring_valid 79687a230ecSPavankumar Nandeshwar * 79787a230ecSPavankumar Nandeshwar * src_link_id 79887a230ecSPavankumar Nandeshwar * Set to the link ID of the PMAC that received the frame 79987a230ecSPavankumar Nandeshwar * 80087a230ecSPavankumar Nandeshwar * signature 80187a230ecSPavankumar Nandeshwar * Set to value 0x8 when msdu capture mode is enabled for this ring 80287a230ecSPavankumar Nandeshwar * 80387a230ecSPavankumar Nandeshwar * ring_id 80487a230ecSPavankumar Nandeshwar * The buffer pointer ring id. 80587a230ecSPavankumar Nandeshwar * 0 - Idle ring 80687a230ecSPavankumar Nandeshwar * 1 - N refers to other rings. 80787a230ecSPavankumar Nandeshwar * 80887a230ecSPavankumar Nandeshwar * looping_count 80987a230ecSPavankumar Nandeshwar * Indicates the number of times the producer of entries into 81087a230ecSPavankumar Nandeshwar * this ring has looped around the ring. 81187a230ecSPavankumar Nandeshwar */ 81287a230ecSPavankumar Nandeshwar 81387a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_DATA_LENGTH GENMASK(15, 0) 81487a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_DATA_OFFSET GENMASK(23, 16) 81587a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_POOL_ID GENMASK(28, 24) 81687a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_PREHEADER BIT(29) 81787a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_TSO_EN BIT(30) 81887a230ecSPavankumar Nandeshwar #define HAL_REO_TO_PPE_RING_INFO0_MORE BIT(31) 81987a230ecSPavankumar Nandeshwar 82087a230ecSPavankumar Nandeshwar struct hal_reo_to_ppe_ring { 82187a230ecSPavankumar Nandeshwar __le32 buffer_addr; 82287a230ecSPavankumar Nandeshwar __le32 info0; /* %HAL_REO_TO_PPE_RING_INFO0_ */ 82387a230ecSPavankumar Nandeshwar } __packed; 82487a230ecSPavankumar Nandeshwar 82587a230ecSPavankumar Nandeshwar /* hal_reo_to_ppe_ring 82687a230ecSPavankumar Nandeshwar * 82787a230ecSPavankumar Nandeshwar * Producer: REO 82887a230ecSPavankumar Nandeshwar * Consumer: PPE 82987a230ecSPavankumar Nandeshwar * 83087a230ecSPavankumar Nandeshwar * buf_addr_info 83187a230ecSPavankumar Nandeshwar * Details of the physical address of a buffer or MSDU 83287a230ecSPavankumar Nandeshwar * link descriptor. 83387a230ecSPavankumar Nandeshwar * 83487a230ecSPavankumar Nandeshwar * data_length 83587a230ecSPavankumar Nandeshwar * Length of valid data in bytes 83687a230ecSPavankumar Nandeshwar * 83787a230ecSPavankumar Nandeshwar * data_offset 83887a230ecSPavankumar Nandeshwar * Offset to the data from buffer pointer. Can be used to 83987a230ecSPavankumar Nandeshwar * strip header in the data for tunnel termination etc. 84087a230ecSPavankumar Nandeshwar * 84187a230ecSPavankumar Nandeshwar * pool_id 84287a230ecSPavankumar Nandeshwar * REO has global configuration register for this field. 84387a230ecSPavankumar Nandeshwar * It may have several free buffer pools, each 84487a230ecSPavankumar Nandeshwar * RX-Descriptor ring can fetch free buffer from specific 84587a230ecSPavankumar Nandeshwar * buffer pool; pool id will indicate which pool the buffer 84687a230ecSPavankumar Nandeshwar * will be released to; POOL_ID Zero returned to SW 84787a230ecSPavankumar Nandeshwar * 84887a230ecSPavankumar Nandeshwar * preheader 84987a230ecSPavankumar Nandeshwar * Disabled: 0 (Default) 85087a230ecSPavankumar Nandeshwar * Enabled: 1 85187a230ecSPavankumar Nandeshwar * 85287a230ecSPavankumar Nandeshwar * tso_en 85387a230ecSPavankumar Nandeshwar * Disabled: 0 (Default) 85487a230ecSPavankumar Nandeshwar * Enabled: 1 85587a230ecSPavankumar Nandeshwar * 85687a230ecSPavankumar Nandeshwar * more 85787a230ecSPavankumar Nandeshwar * More Segments followed 85887a230ecSPavankumar Nandeshwar */ 85987a230ecSPavankumar Nandeshwar 86087a230ecSPavankumar Nandeshwar enum hal_rx_reo_dest_ring { 86187a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_TCL, 86287a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW1, 86387a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW2, 86487a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW3, 86587a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW4, 86687a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_RELEASE, 86787a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_FW, 86887a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW5, 86987a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW6, 87087a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW7, 87187a230ecSPavankumar Nandeshwar HAL_RX_REO_DEST_RING_SW8, 87287a230ecSPavankumar Nandeshwar }; 87387a230ecSPavankumar Nandeshwar 87487a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO0_QUEUE_ADDR_HI GENMASK(7, 0) 87587a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO0_MPDU_BYTE_COUNT GENMASK(21, 8) 87687a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO0_DEST_IND GENMASK(26, 22) 87787a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO0_FRAMELESS_BAR BIT(27) 87887a230ecSPavankumar Nandeshwar 87987a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_RXDMA_PUSH_REASON GENMASK(1, 0) 88087a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_RXDMA_ERROR_CODE GENMASK(6, 2) 88187a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_MPDU_FRAG_NUM GENMASK(10, 7) 88287a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_SW_EXCEPTION BIT(11) 88387a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_SW_EXCEPT_MPDU_DELINK BIT(12) 88487a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_SW_EXCEPTION_RING_VLD BIT(13) 88587a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_SW_EXCEPTION_RING GENMASK(18, 14) 88687a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO1_MPDU_SEQ_NUM GENMASK(30, 19) 88787a230ecSPavankumar Nandeshwar 88887a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO2_PHY_PPDU_ID GENMASK(15, 0) 88987a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO2_SRC_LINK_ID GENMASK(18, 16) 89087a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO2_RING_ID GENMASK(27, 20) 89187a230ecSPavankumar Nandeshwar #define HAL_REO_ENTR_RING_INFO2_LOOPING_COUNT GENMASK(31, 28) 89287a230ecSPavankumar Nandeshwar 89387a230ecSPavankumar Nandeshwar struct hal_reo_entrance_ring { 89487a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 89587a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 89687a230ecSPavankumar Nandeshwar __le32 queue_addr_lo; 89787a230ecSPavankumar Nandeshwar __le32 info0; /* %HAL_REO_ENTR_RING_INFO0_ */ 89887a230ecSPavankumar Nandeshwar __le32 info1; /* %HAL_REO_ENTR_RING_INFO1_ */ 89987a230ecSPavankumar Nandeshwar __le32 info2; /* %HAL_REO_DEST_RING_INFO2_ */ 90087a230ecSPavankumar Nandeshwar 90187a230ecSPavankumar Nandeshwar } __packed; 90287a230ecSPavankumar Nandeshwar 90387a230ecSPavankumar Nandeshwar /* hal_reo_entrance_ring 90487a230ecSPavankumar Nandeshwar * 90587a230ecSPavankumar Nandeshwar * Producer: RXDMA 90687a230ecSPavankumar Nandeshwar * Consumer: REO 90787a230ecSPavankumar Nandeshwar * 90887a230ecSPavankumar Nandeshwar * buf_addr_info 90987a230ecSPavankumar Nandeshwar * Details of the physical address of a buffer or MSDU 91087a230ecSPavankumar Nandeshwar * link descriptor. 91187a230ecSPavankumar Nandeshwar * 91287a230ecSPavankumar Nandeshwar * rx_mpdu_info 91387a230ecSPavankumar Nandeshwar * General information related to the MPDU that is passed 91487a230ecSPavankumar Nandeshwar * on from REO entrance ring to the REO destination ring. 91587a230ecSPavankumar Nandeshwar * 91687a230ecSPavankumar Nandeshwar * queue_addr_lo 91787a230ecSPavankumar Nandeshwar * Address (lower 32 bits) of the REO queue descriptor. 91887a230ecSPavankumar Nandeshwar * 91987a230ecSPavankumar Nandeshwar * queue_addr_hi 92087a230ecSPavankumar Nandeshwar * Address (upper 8 bits) of the REO queue descriptor. 92187a230ecSPavankumar Nandeshwar * 92287a230ecSPavankumar Nandeshwar * mpdu_byte_count 92387a230ecSPavankumar Nandeshwar * An approximation of the number of bytes received in this MPDU. 92487a230ecSPavankumar Nandeshwar * Used to keeps stats on the amount of data flowing 92587a230ecSPavankumar Nandeshwar * through a queue. 92687a230ecSPavankumar Nandeshwar * 92787a230ecSPavankumar Nandeshwar * reo_destination_indication 92887a230ecSPavankumar Nandeshwar * The id of the reo exit ring where the msdu frame shall push 92987a230ecSPavankumar Nandeshwar * after (MPDU level) reordering has finished. Values are defined 93087a230ecSPavankumar Nandeshwar * in enum %HAL_RX_MSDU_DESC_REO_DEST_IND_. 93187a230ecSPavankumar Nandeshwar * 93287a230ecSPavankumar Nandeshwar * frameless_bar 93387a230ecSPavankumar Nandeshwar * Indicates that this REO entrance ring struct contains BAR info 93487a230ecSPavankumar Nandeshwar * from a multi TID BAR frame. The original multi TID BAR frame 93587a230ecSPavankumar Nandeshwar * itself contained all the REO info for the first TID, but all 93687a230ecSPavankumar Nandeshwar * the subsequent TID info and their linkage to the REO descriptors 93787a230ecSPavankumar Nandeshwar * is passed down as 'frameless' BAR info. 93887a230ecSPavankumar Nandeshwar * 93987a230ecSPavankumar Nandeshwar * The only fields valid in this descriptor when this bit is set 94087a230ecSPavankumar Nandeshwar * are queue_addr_lo, queue_addr_hi, mpdu_sequence_number, 94187a230ecSPavankumar Nandeshwar * bar_frame and peer_meta_data. 94287a230ecSPavankumar Nandeshwar * 94387a230ecSPavankumar Nandeshwar * rxdma_push_reason 94487a230ecSPavankumar Nandeshwar * Reason for pushing this frame to this exit ring. Values are 94587a230ecSPavankumar Nandeshwar * defined in enum %HAL_REO_ENTR_RING_RXDMA_PUSH_REASON_. 94687a230ecSPavankumar Nandeshwar * 94787a230ecSPavankumar Nandeshwar * rxdma_error_code 94887a230ecSPavankumar Nandeshwar * Valid only when 'push_reason' is set. All error codes are 94987a230ecSPavankumar Nandeshwar * defined in enum %HAL_REO_ENTR_RING_RXDMA_ECODE_. 95087a230ecSPavankumar Nandeshwar * 95187a230ecSPavankumar Nandeshwar * mpdu_fragment_number 95287a230ecSPavankumar Nandeshwar * Field only valid when Reo_level_mpdu_frame_info. 95387a230ecSPavankumar Nandeshwar * Rx_mpdu_desc_info_details.Fragment_flag is set. 95487a230ecSPavankumar Nandeshwar * 95587a230ecSPavankumar Nandeshwar * sw_exception 95687a230ecSPavankumar Nandeshwar * When not set, REO is performing all its default MPDU processing 95787a230ecSPavankumar Nandeshwar * operations, 95887a230ecSPavankumar Nandeshwar * When set, this REO entrance descriptor is generated by FW, and 95987a230ecSPavankumar Nandeshwar * should be processed as an exception. This implies: 96087a230ecSPavankumar Nandeshwar * NO re-order function is needed. 96187a230ecSPavankumar Nandeshwar * MPDU delinking is determined by the setting of field 96287a230ecSPavankumar Nandeshwar * SW_excection_mpdu_delink 96387a230ecSPavankumar Nandeshwar * 96487a230ecSPavankumar Nandeshwar * sw_exception_mpdu_delink 96587a230ecSPavankumar Nandeshwar * Field only valid when SW_exception is set. 96687a230ecSPavankumar Nandeshwar * 1'b0: REO should NOT delink the MPDU, and thus pass this 96787a230ecSPavankumar Nandeshwar * MPDU on to the destination ring as is. This implies that 96887a230ecSPavankumar Nandeshwar * in the REO_DESTINATION_RING struct field 96987a230ecSPavankumar Nandeshwar * Buf_or_link_desc_addr_info should point to an MSDU link 97087a230ecSPavankumar Nandeshwar * descriptor 97187a230ecSPavankumar Nandeshwar * 1'b1: REO should perform the normal MPDU delink into MSDU operations. 97287a230ecSPavankumar Nandeshwar * 97387a230ecSPavankumar Nandeshwar * sw_exception_dest_ring 97487a230ecSPavankumar Nandeshwar * Field only valid when fields SW_exception and SW 97587a230ecSPavankumar Nandeshwar * exception_destination_ring_valid are set. values are defined 97687a230ecSPavankumar Nandeshwar * in %HAL_RX_REO_DEST_RING_. 97787a230ecSPavankumar Nandeshwar * 97887a230ecSPavankumar Nandeshwar * mpdu_seq_number 97987a230ecSPavankumar Nandeshwar * The field can have two different meanings based on the setting 98087a230ecSPavankumar Nandeshwar * of sub-field Reo level mpdu frame info. 98187a230ecSPavankumar Nandeshwar * Rx_mpdu_desc_info_details. BAR_frame 98287a230ecSPavankumar Nandeshwar * 'BAR_frame' is NOT set: 98387a230ecSPavankumar Nandeshwar * The MPDU sequence number of the received frame. 98487a230ecSPavankumar Nandeshwar * 'BAR_frame' is set. 98587a230ecSPavankumar Nandeshwar * The MPDU Start sequence number from the BAR frame 98687a230ecSPavankumar Nandeshwar * 98787a230ecSPavankumar Nandeshwar * phy_ppdu_id 98887a230ecSPavankumar Nandeshwar * A PPDU counter value that PHY increments for every PPDU received 98987a230ecSPavankumar Nandeshwar * 99087a230ecSPavankumar Nandeshwar * src_link_id 99187a230ecSPavankumar Nandeshwar * Set to the link ID of the PMAC that received the frame 99287a230ecSPavankumar Nandeshwar * 99387a230ecSPavankumar Nandeshwar * ring_id 99487a230ecSPavankumar Nandeshwar * The buffer pointer ring id. 99587a230ecSPavankumar Nandeshwar * 0 - Idle ring 99687a230ecSPavankumar Nandeshwar * 1 - N refers to other rings. 99787a230ecSPavankumar Nandeshwar * 99887a230ecSPavankumar Nandeshwar * looping_count 99987a230ecSPavankumar Nandeshwar * Indicates the number of times the producer of entries into 100087a230ecSPavankumar Nandeshwar * this ring has looped around the ring. 100187a230ecSPavankumar Nandeshwar */ 100287a230ecSPavankumar Nandeshwar 100387a230ecSPavankumar Nandeshwar #define HAL_REO_CMD_HDR_INFO0_CMD_NUMBER GENMASK(15, 0) 100487a230ecSPavankumar Nandeshwar #define HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED BIT(16) 100587a230ecSPavankumar Nandeshwar 100687a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr { 100787a230ecSPavankumar Nandeshwar __le32 info0; 100887a230ecSPavankumar Nandeshwar } __packed; 100987a230ecSPavankumar Nandeshwar 101087a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_INFO0_QUEUE_ADDR_HI GENMASK(7, 0) 101187a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_INFO0_CLEAR_STATS BIT(8) 101287a230ecSPavankumar Nandeshwar 101387a230ecSPavankumar Nandeshwar struct hal_reo_get_queue_stats { 101487a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr cmd; 101587a230ecSPavankumar Nandeshwar __le32 queue_addr_lo; 101687a230ecSPavankumar Nandeshwar __le32 info0; 101787a230ecSPavankumar Nandeshwar __le32 rsvd0[6]; 101887a230ecSPavankumar Nandeshwar __le32 tlv64_pad; 101987a230ecSPavankumar Nandeshwar } __packed; 102087a230ecSPavankumar Nandeshwar 102187a230ecSPavankumar Nandeshwar /* hal_reo_get_queue_stats 102287a230ecSPavankumar Nandeshwar * Producer: SW 102387a230ecSPavankumar Nandeshwar * Consumer: REO 102487a230ecSPavankumar Nandeshwar * 102587a230ecSPavankumar Nandeshwar * cmd 102687a230ecSPavankumar Nandeshwar * Details for command execution tracking purposes. 102787a230ecSPavankumar Nandeshwar * 102887a230ecSPavankumar Nandeshwar * queue_addr_lo 102987a230ecSPavankumar Nandeshwar * Address (lower 32 bits) of the REO queue descriptor. 103087a230ecSPavankumar Nandeshwar * 103187a230ecSPavankumar Nandeshwar * queue_addr_hi 103287a230ecSPavankumar Nandeshwar * Address (upper 8 bits) of the REO queue descriptor. 103387a230ecSPavankumar Nandeshwar * 103487a230ecSPavankumar Nandeshwar * clear_stats 103587a230ecSPavankumar Nandeshwar * Clear stats settings. When set, Clear the stats after 103687a230ecSPavankumar Nandeshwar * generating the status. 103787a230ecSPavankumar Nandeshwar * 103887a230ecSPavankumar Nandeshwar * Following stats will be cleared. 103987a230ecSPavankumar Nandeshwar * Timeout_count 104087a230ecSPavankumar Nandeshwar * Forward_due_to_bar_count 104187a230ecSPavankumar Nandeshwar * Duplicate_count 104287a230ecSPavankumar Nandeshwar * Frames_in_order_count 104387a230ecSPavankumar Nandeshwar * BAR_received_count 104487a230ecSPavankumar Nandeshwar * MPDU_Frames_processed_count 104587a230ecSPavankumar Nandeshwar * MSDU_Frames_processed_count 104687a230ecSPavankumar Nandeshwar * Total_processed_byte_count 104787a230ecSPavankumar Nandeshwar * Late_receive_MPDU_count 104887a230ecSPavankumar Nandeshwar * window_jump_2k 104987a230ecSPavankumar Nandeshwar * Hole_count 105087a230ecSPavankumar Nandeshwar */ 105187a230ecSPavankumar Nandeshwar 1052b7ffeb0fSBaochen Qiang struct hal_reo_get_queue_stats_qcc2072 { 1053b7ffeb0fSBaochen Qiang struct hal_reo_cmd_hdr cmd; 1054b7ffeb0fSBaochen Qiang __le32 queue_addr_lo; 1055b7ffeb0fSBaochen Qiang __le32 info0; 1056b7ffeb0fSBaochen Qiang __le32 rsvd0[6]; 1057b7ffeb0fSBaochen Qiang } __packed; 1058b7ffeb0fSBaochen Qiang 105987a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO0_DESC_ADDR_HI GENMASK(7, 0) 106087a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO0_BLOCK_DESC_ADDR BIT(8) 106187a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO0_BLOCK_RESRC_IDX GENMASK(10, 9) 106287a230ecSPavankumar Nandeshwar 106387a230ecSPavankumar Nandeshwar struct hal_reo_flush_queue { 106487a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr cmd; 106587a230ecSPavankumar Nandeshwar __le32 desc_addr_lo; 106687a230ecSPavankumar Nandeshwar __le32 info0; 106787a230ecSPavankumar Nandeshwar __le32 rsvd0[6]; 106887a230ecSPavankumar Nandeshwar } __packed; 106987a230ecSPavankumar Nandeshwar 107087a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_CACHE_ADDR_HI GENMASK(7, 0) 107187a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_FWD_ALL_MPDUS BIT(8) 107287a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_RELEASE_BLOCK_IDX BIT(9) 107387a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_BLOCK_RESRC_IDX GENMASK(11, 10) 107487a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_FLUSH_WO_INVALIDATE BIT(12) 107587a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_BLOCK_CACHE_USAGE BIT(13) 107687a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_INFO0_FLUSH_ALL BIT(14) 1077631ee338SJeff Johnson #define HAL_REO_FLUSH_CACHE_INFO0_FLUSH_QUEUE_1K_DESC BIT(15) 107887a230ecSPavankumar Nandeshwar 107987a230ecSPavankumar Nandeshwar struct hal_reo_flush_cache { 108087a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr cmd; 108187a230ecSPavankumar Nandeshwar __le32 cache_addr_lo; 108287a230ecSPavankumar Nandeshwar __le32 info0; 108387a230ecSPavankumar Nandeshwar __le32 rsvd0[6]; 108487a230ecSPavankumar Nandeshwar } __packed; 108587a230ecSPavankumar Nandeshwar 108687a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_CMD_TYPE BIT(0) 108787a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_DESC_TYPE BIT(1) 108887a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_BANK_ID GENMASK(7, 2) 108987a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_TX_NOTIFY_FRAME GENMASK(10, 8) 109087a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_HDR_LEN_READ_SEL BIT(11) 109187a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_BUF_TIMESTAMP GENMASK(30, 12) 109287a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO0_BUF_TIMESTAMP_VLD BIT(31) 109387a230ecSPavankumar Nandeshwar 109487a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO1_CMD_NUM GENMASK(31, 16) 109587a230ecSPavankumar Nandeshwar 109687a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_DATA_LEN GENMASK(15, 0) 109787a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_IP4_CKSUM_EN BIT(16) 109887a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_UDP4_CKSUM_EN BIT(17) 109987a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_UDP6_CKSUM_EN BIT(18) 110087a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_TCP4_CKSUM_EN BIT(19) 110187a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_TCP6_CKSUM_EN BIT(20) 110287a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_TO_FW BIT(21) 110387a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO2_PKT_OFFSET GENMASK(31, 23) 110487a230ecSPavankumar Nandeshwar 110587a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_TID_OVERWRITE BIT(0) 110687a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_FLOW_OVERRIDE_EN BIT(1) 110787a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_CLASSIFY_INFO_SEL GENMASK(3, 2) 110887a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_TID GENMASK(7, 4) 110987a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_FLOW_OVERRIDE BIT(8) 111087a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_PMAC_ID GENMASK(10, 9) 111187a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_MSDU_COLOR GENMASK(12, 11) 111287a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO3_VDEV_ID GENMASK(31, 24) 111387a230ecSPavankumar Nandeshwar 111487a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO4_SEARCH_INDEX GENMASK(19, 0) 111587a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO4_CACHE_SET_NUM GENMASK(23, 20) 111687a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO4_IDX_LOOKUP_OVERRIDE BIT(24) 111787a230ecSPavankumar Nandeshwar 111887a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO5_RING_ID GENMASK(27, 20) 111987a230ecSPavankumar Nandeshwar #define HAL_TCL_DATA_CMD_INFO5_LOOPING_COUNT GENMASK(31, 28) 112087a230ecSPavankumar Nandeshwar 112187a230ecSPavankumar Nandeshwar struct hal_tcl_data_cmd { 112287a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 112387a230ecSPavankumar Nandeshwar __le32 info0; 112487a230ecSPavankumar Nandeshwar __le32 info1; 112587a230ecSPavankumar Nandeshwar __le32 info2; 112687a230ecSPavankumar Nandeshwar __le32 info3; 112787a230ecSPavankumar Nandeshwar __le32 info4; 112887a230ecSPavankumar Nandeshwar __le32 info5; 112987a230ecSPavankumar Nandeshwar } __packed; 113087a230ecSPavankumar Nandeshwar 113187a230ecSPavankumar Nandeshwar /* hal_tcl_data_cmd 113287a230ecSPavankumar Nandeshwar * 113387a230ecSPavankumar Nandeshwar * buf_addr_info 113487a230ecSPavankumar Nandeshwar * Details of the physical address of a buffer or MSDU 113587a230ecSPavankumar Nandeshwar * link descriptor. 113687a230ecSPavankumar Nandeshwar * 113787a230ecSPavankumar Nandeshwar * tcl_cmd_type 113887a230ecSPavankumar Nandeshwar * used to select the type of TCL Command descriptor 113987a230ecSPavankumar Nandeshwar * 114087a230ecSPavankumar Nandeshwar * desc_type 114187a230ecSPavankumar Nandeshwar * Indicates the type of address provided in the buf_addr_info. 114287a230ecSPavankumar Nandeshwar * Values are defined in enum %HAL_REO_DEST_RING_BUFFER_TYPE_. 114387a230ecSPavankumar Nandeshwar * 114487a230ecSPavankumar Nandeshwar * bank_id 114587a230ecSPavankumar Nandeshwar * used to select one of the TCL register banks for fields removed 114687a230ecSPavankumar Nandeshwar * from 'TCL_DATA_CMD' that do not change often within one virtual 114787a230ecSPavankumar Nandeshwar * device or a set of virtual devices: 114887a230ecSPavankumar Nandeshwar * 114987a230ecSPavankumar Nandeshwar * tx_notify_frame 115087a230ecSPavankumar Nandeshwar * TCL copies this value to 'TQM_ENTRANCE_RING' field FW_tx_notify_frame. 115187a230ecSPavankumar Nandeshwar * 115287a230ecSPavankumar Nandeshwar * hdr_length_read_sel 115387a230ecSPavankumar Nandeshwar * used to select the per 'encap_type' register set for MSDU header 115487a230ecSPavankumar Nandeshwar * read length 115587a230ecSPavankumar Nandeshwar * 115687a230ecSPavankumar Nandeshwar * buffer_timestamp 115787a230ecSPavankumar Nandeshwar * buffer_timestamp_valid 115887a230ecSPavankumar Nandeshwar * Frame system entrance timestamp. It shall be filled by first 115987a230ecSPavankumar Nandeshwar * module (SW, TCL or TQM) that sees the frames first. 116087a230ecSPavankumar Nandeshwar * 116187a230ecSPavankumar Nandeshwar * cmd_num 116287a230ecSPavankumar Nandeshwar * This number can be used to match against status. 116387a230ecSPavankumar Nandeshwar * 116487a230ecSPavankumar Nandeshwar * data_length 116587a230ecSPavankumar Nandeshwar * MSDU length in case of direct descriptor. Length of link 116687a230ecSPavankumar Nandeshwar * extension descriptor in case of Link extension descriptor. 116787a230ecSPavankumar Nandeshwar * 116887a230ecSPavankumar Nandeshwar * *_checksum_en 116987a230ecSPavankumar Nandeshwar * Enable checksum replacement for ipv4, udp_over_ipv4, ipv6, 117087a230ecSPavankumar Nandeshwar * udp_over_ipv6, tcp_over_ipv4 and tcp_over_ipv6. 117187a230ecSPavankumar Nandeshwar * 117287a230ecSPavankumar Nandeshwar * to_fw 117387a230ecSPavankumar Nandeshwar * Forward packet to FW along with classification result. The 117487a230ecSPavankumar Nandeshwar * packet will not be forward to TQM when this bit is set. 117587a230ecSPavankumar Nandeshwar * 1'b0: Use classification result to forward the packet. 117687a230ecSPavankumar Nandeshwar * 1'b1: Override classification result & forward packet only to fw 117787a230ecSPavankumar Nandeshwar * 117887a230ecSPavankumar Nandeshwar * packet_offset 117987a230ecSPavankumar Nandeshwar * Packet offset from Metadata in case of direct buffer descriptor. 118087a230ecSPavankumar Nandeshwar * 118187a230ecSPavankumar Nandeshwar * hlos_tid_overwrite 118287a230ecSPavankumar Nandeshwar * 118387a230ecSPavankumar Nandeshwar * When set, TCL shall ignore the IP DSCP and VLAN PCP 118487a230ecSPavankumar Nandeshwar * fields and use HLOS_TID as the final TID. Otherwise TCL 118587a230ecSPavankumar Nandeshwar * shall consider the DSCP and PCP fields as well as HLOS_TID 118687a230ecSPavankumar Nandeshwar * and choose a final TID based on the configured priority 118787a230ecSPavankumar Nandeshwar * 118887a230ecSPavankumar Nandeshwar * flow_override_enable 118987a230ecSPavankumar Nandeshwar * TCL uses this to select the flow pointer from the peer table, 119087a230ecSPavankumar Nandeshwar * which can be overridden by SW for pre-encrypted raw WiFi packets 119187a230ecSPavankumar Nandeshwar * that cannot be parsed for UDP or for other MLO 119287a230ecSPavankumar Nandeshwar * 0 - FP_PARSE_IP: Use the flow-pointer based on parsing the IPv4 119387a230ecSPavankumar Nandeshwar * or IPv6 header. 119487a230ecSPavankumar Nandeshwar * 1 - FP_USE_OVERRIDE: Use the who_classify_info_sel and 119587a230ecSPavankumar Nandeshwar * flow_override fields to select the flow-pointer 119687a230ecSPavankumar Nandeshwar * 119787a230ecSPavankumar Nandeshwar * who_classify_info_sel 119887a230ecSPavankumar Nandeshwar * Field only valid when flow_override_enable is set to FP_USE_OVERRIDE. 119987a230ecSPavankumar Nandeshwar * This field is used to select one of the 'WHO_CLASSIFY_INFO's in the 120087a230ecSPavankumar Nandeshwar * peer table in case more than 2 flows are mapped to a single TID. 120187a230ecSPavankumar Nandeshwar * 0: To choose Flow 0 and 1 of any TID use this value. 120287a230ecSPavankumar Nandeshwar * 1: To choose Flow 2 and 3 of any TID use this value. 120387a230ecSPavankumar Nandeshwar * 2: To choose Flow 4 and 5 of any TID use this value. 120487a230ecSPavankumar Nandeshwar * 3: To choose Flow 6 and 7 of any TID use this value. 120587a230ecSPavankumar Nandeshwar * 120687a230ecSPavankumar Nandeshwar * If who_classify_info sel is not in sync with the num_tx_classify_info 120787a230ecSPavankumar Nandeshwar * field from address search, then TCL will set 'who_classify_info_sel' 120887a230ecSPavankumar Nandeshwar * to 0 use flows 0 and 1. 120987a230ecSPavankumar Nandeshwar * 121087a230ecSPavankumar Nandeshwar * hlos_tid 121187a230ecSPavankumar Nandeshwar * HLOS MSDU priority 121287a230ecSPavankumar Nandeshwar * Field is used when HLOS_TID_overwrite is set. 121387a230ecSPavankumar Nandeshwar * 121487a230ecSPavankumar Nandeshwar * flow_override 121587a230ecSPavankumar Nandeshwar * Field only valid when flow_override_enable is set to FP_USE_OVERRIDE 121687a230ecSPavankumar Nandeshwar * TCL uses this to select the flow pointer from the peer table, 121787a230ecSPavankumar Nandeshwar * which can be overridden by SW for pre-encrypted raw WiFi packets 121887a230ecSPavankumar Nandeshwar * that cannot be parsed for UDP or for other MLO 121987a230ecSPavankumar Nandeshwar * 0 - FP_USE_NON_UDP: Use the non-UDP flow pointer (flow 0) 122087a230ecSPavankumar Nandeshwar * 1 - FP_USE_UDP: Use the UDP flow pointer (flow 1) 122187a230ecSPavankumar Nandeshwar * 122287a230ecSPavankumar Nandeshwar * pmac_id 122387a230ecSPavankumar Nandeshwar * TCL uses this PMAC_ID in address search, i.e, while 122487a230ecSPavankumar Nandeshwar * finding matching entry for the packet in AST corresponding 122587a230ecSPavankumar Nandeshwar * to given PMAC_ID 122687a230ecSPavankumar Nandeshwar * 122787a230ecSPavankumar Nandeshwar * If PMAC ID is all 1s (=> value 3), it indicates wildcard 122887a230ecSPavankumar Nandeshwar * match for any PMAC 122987a230ecSPavankumar Nandeshwar * 123087a230ecSPavankumar Nandeshwar * vdev_id 123187a230ecSPavankumar Nandeshwar * Virtual device ID to check against the address search entry to 123287a230ecSPavankumar Nandeshwar * avoid security issues from transmitting packets from an incorrect 123387a230ecSPavankumar Nandeshwar * virtual device 123487a230ecSPavankumar Nandeshwar * 123587a230ecSPavankumar Nandeshwar * search_index 123687a230ecSPavankumar Nandeshwar * The index that will be used for index based address or 123787a230ecSPavankumar Nandeshwar * flow search. The field is valid when 'search_type' is 1 or 2. 123887a230ecSPavankumar Nandeshwar * 123987a230ecSPavankumar Nandeshwar * cache_set_num 124087a230ecSPavankumar Nandeshwar * 124187a230ecSPavankumar Nandeshwar * Cache set number that should be used to cache the index 124287a230ecSPavankumar Nandeshwar * based search results, for address and flow search. This 124387a230ecSPavankumar Nandeshwar * value should be equal to LSB four bits of the hash value of 124487a230ecSPavankumar Nandeshwar * match data, in case of search index points to an entry which 124587a230ecSPavankumar Nandeshwar * may be used in content based search also. The value can be 124687a230ecSPavankumar Nandeshwar * anything when the entry pointed by search index will not be 124787a230ecSPavankumar Nandeshwar * used for content based search. 124887a230ecSPavankumar Nandeshwar * 124987a230ecSPavankumar Nandeshwar * index_loop_override 125087a230ecSPavankumar Nandeshwar * When set, address search and packet routing is forced to use 125187a230ecSPavankumar Nandeshwar * 'search_index' instead of following the register configuration 125287a230ecSPavankumar Nandeshwar * selected by Bank_id. 125387a230ecSPavankumar Nandeshwar * 125487a230ecSPavankumar Nandeshwar * ring_id 125587a230ecSPavankumar Nandeshwar * The buffer pointer ring ID. 125687a230ecSPavankumar Nandeshwar * 0 refers to the IDLE ring 125787a230ecSPavankumar Nandeshwar * 1 - N refers to other rings 125887a230ecSPavankumar Nandeshwar * 125987a230ecSPavankumar Nandeshwar * looping_count 126087a230ecSPavankumar Nandeshwar * 126187a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 126287a230ecSPavankumar Nandeshwar * producer of entries into the Ring has looped around the 126387a230ecSPavankumar Nandeshwar * ring. 126487a230ecSPavankumar Nandeshwar * 126587a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 126687a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 126787a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 126887a230ecSPavankumar Nandeshwar * count value continues with 0 again. 126987a230ecSPavankumar Nandeshwar * 127087a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 127187a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 127287a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 127387a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 127487a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 127587a230ecSPavankumar Nandeshwar * entries have been put into this ring... 127687a230ecSPavankumar Nandeshwar * 127787a230ecSPavankumar Nandeshwar * Also note that SW if it wants only needs to look at the 127887a230ecSPavankumar Nandeshwar * LSB bit of this count value. 127987a230ecSPavankumar Nandeshwar */ 128087a230ecSPavankumar Nandeshwar 128187a230ecSPavankumar Nandeshwar #define HAL_TCL_DESC_LEN sizeof(struct hal_tcl_data_cmd) 128287a230ecSPavankumar Nandeshwar 128387a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO0_BUF_PTR_LO GENMASK(31, 0) 128487a230ecSPavankumar Nandeshwar 128587a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO1_BUF_PTR_HI GENMASK(7, 0) 128687a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO1_EXTN_OVERRIDE BIT(8) 128787a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO1_ENCAP_TYPE GENMASK(10, 9) 128887a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO1_ENCRYPT_TYPE GENMASK(14, 11) 128987a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_EXT_INFO1_BUF_LEN GENMASK(31, 16) 129087a230ecSPavankumar Nandeshwar 129187a230ecSPavankumar Nandeshwar struct hal_tx_msdu_ext_desc { 129287a230ecSPavankumar Nandeshwar __le32 rsvd0[6]; 129387a230ecSPavankumar Nandeshwar __le32 info0; 129487a230ecSPavankumar Nandeshwar __le32 info1; 129587a230ecSPavankumar Nandeshwar __le32 rsvd1[10]; 129687a230ecSPavankumar Nandeshwar }; 129787a230ecSPavankumar Nandeshwar 129887a230ecSPavankumar Nandeshwar struct hal_tcl_gse_cmd { 129987a230ecSPavankumar Nandeshwar __le32 ctrl_buf_addr_lo; 130087a230ecSPavankumar Nandeshwar __le32 info0; 130187a230ecSPavankumar Nandeshwar __le32 meta_data[2]; 130287a230ecSPavankumar Nandeshwar __le32 rsvd0[2]; 130387a230ecSPavankumar Nandeshwar __le32 info1; 130487a230ecSPavankumar Nandeshwar } __packed; 130587a230ecSPavankumar Nandeshwar 130687a230ecSPavankumar Nandeshwar /* hal_tcl_gse_cmd 130787a230ecSPavankumar Nandeshwar * 130887a230ecSPavankumar Nandeshwar * ctrl_buf_addr_lo, ctrl_buf_addr_hi 130987a230ecSPavankumar Nandeshwar * Address of a control buffer containing additional info needed 131087a230ecSPavankumar Nandeshwar * for this command execution. 131187a230ecSPavankumar Nandeshwar * 131287a230ecSPavankumar Nandeshwar * meta_data 131387a230ecSPavankumar Nandeshwar * Meta data to be returned in the status descriptor 131487a230ecSPavankumar Nandeshwar */ 131587a230ecSPavankumar Nandeshwar 131687a230ecSPavankumar Nandeshwar enum hal_tcl_cache_op_res { 131787a230ecSPavankumar Nandeshwar HAL_TCL_CACHE_OP_RES_DONE, 131887a230ecSPavankumar Nandeshwar HAL_TCL_CACHE_OP_RES_NOT_FOUND, 131987a230ecSPavankumar Nandeshwar HAL_TCL_CACHE_OP_RES_TIMEOUT, 132087a230ecSPavankumar Nandeshwar }; 132187a230ecSPavankumar Nandeshwar 132287a230ecSPavankumar Nandeshwar struct hal_tcl_status_ring { 132387a230ecSPavankumar Nandeshwar __le32 info0; 132487a230ecSPavankumar Nandeshwar __le32 msdu_byte_count; 132587a230ecSPavankumar Nandeshwar __le32 msdu_timestamp; 132687a230ecSPavankumar Nandeshwar __le32 meta_data[2]; 132787a230ecSPavankumar Nandeshwar __le32 info1; 132887a230ecSPavankumar Nandeshwar __le32 rsvd0; 132987a230ecSPavankumar Nandeshwar __le32 info2; 133087a230ecSPavankumar Nandeshwar } __packed; 133187a230ecSPavankumar Nandeshwar 133287a230ecSPavankumar Nandeshwar /* hal_tcl_status_ring 133387a230ecSPavankumar Nandeshwar * 133487a230ecSPavankumar Nandeshwar * msdu_cnt 133587a230ecSPavankumar Nandeshwar * msdu_byte_count 133687a230ecSPavankumar Nandeshwar * MSDU count of Entry and MSDU byte count for entry 1. 133787a230ecSPavankumar Nandeshwar * 133887a230ecSPavankumar Nandeshwar */ 133987a230ecSPavankumar Nandeshwar 134087a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_ADDR_HI GENMASK(7, 0) 134187a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_HASH_EN BIT(8) 134287a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_BYTE_SWAP BIT(9) 134387a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_DEST_SWAP BIT(10) 134487a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_GATHER BIT(11) 134587a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_ADDR_INFO_LEN GENMASK(31, 16) 134687a230ecSPavankumar Nandeshwar 134787a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_META_INFO_DATA GENMASK(15, 0) 134887a230ecSPavankumar Nandeshwar 134987a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_FLAGS_RING_ID GENMASK(27, 20) 135087a230ecSPavankumar Nandeshwar #define HAL_CE_SRC_DESC_FLAGS_LOOP_CNT HAL_SRNG_DESC_LOOP_CNT 135187a230ecSPavankumar Nandeshwar 135287a230ecSPavankumar Nandeshwar struct hal_ce_srng_src_desc { 135387a230ecSPavankumar Nandeshwar __le32 buffer_addr_low; 135487a230ecSPavankumar Nandeshwar __le32 buffer_addr_info; /* %HAL_CE_SRC_DESC_ADDR_INFO_ */ 135587a230ecSPavankumar Nandeshwar __le32 meta_info; /* %HAL_CE_SRC_DESC_META_INFO_ */ 135687a230ecSPavankumar Nandeshwar __le32 flags; /* %HAL_CE_SRC_DESC_FLAGS_ */ 135787a230ecSPavankumar Nandeshwar } __packed; 135887a230ecSPavankumar Nandeshwar 135987a230ecSPavankumar Nandeshwar /* hal_ce_srng_src_desc 136087a230ecSPavankumar Nandeshwar * 136187a230ecSPavankumar Nandeshwar * buffer_addr_lo 136287a230ecSPavankumar Nandeshwar * LSB 32 bits of the 40 Bit Pointer to the source buffer 136387a230ecSPavankumar Nandeshwar * 136487a230ecSPavankumar Nandeshwar * buffer_addr_hi 136587a230ecSPavankumar Nandeshwar * MSB 8 bits of the 40 Bit Pointer to the source buffer 136687a230ecSPavankumar Nandeshwar * 136787a230ecSPavankumar Nandeshwar * toeplitz_en 136887a230ecSPavankumar Nandeshwar * Enable generation of 32-bit Toeplitz-LFSR hash for 136987a230ecSPavankumar Nandeshwar * data transfer. In case of gather field in first source 137087a230ecSPavankumar Nandeshwar * ring entry of the gather copy cycle in taken into account. 137187a230ecSPavankumar Nandeshwar * 137287a230ecSPavankumar Nandeshwar * src_swap 137387a230ecSPavankumar Nandeshwar * Treats source memory organization as big-endian. For 137487a230ecSPavankumar Nandeshwar * each dword read (4 bytes), the byte 0 is swapped with byte 3 137587a230ecSPavankumar Nandeshwar * and byte 1 is swapped with byte 2. 137687a230ecSPavankumar Nandeshwar * In case of gather field in first source ring entry of 137787a230ecSPavankumar Nandeshwar * the gather copy cycle in taken into account. 137887a230ecSPavankumar Nandeshwar * 137987a230ecSPavankumar Nandeshwar * dest_swap 138087a230ecSPavankumar Nandeshwar * Treats destination memory organization as big-endian. 138187a230ecSPavankumar Nandeshwar * For each dword write (4 bytes), the byte 0 is swapped with 138287a230ecSPavankumar Nandeshwar * byte 3 and byte 1 is swapped with byte 2. 138387a230ecSPavankumar Nandeshwar * In case of gather field in first source ring entry of 138487a230ecSPavankumar Nandeshwar * the gather copy cycle in taken into account. 138587a230ecSPavankumar Nandeshwar * 138687a230ecSPavankumar Nandeshwar * gather 138787a230ecSPavankumar Nandeshwar * Enables gather of multiple copy engine source 138887a230ecSPavankumar Nandeshwar * descriptors to one destination. 138987a230ecSPavankumar Nandeshwar * 139087a230ecSPavankumar Nandeshwar * ce_res_0 139187a230ecSPavankumar Nandeshwar * Reserved 139287a230ecSPavankumar Nandeshwar * 139387a230ecSPavankumar Nandeshwar * 139487a230ecSPavankumar Nandeshwar * length 139587a230ecSPavankumar Nandeshwar * Length of the buffer in units of octets of the current 139687a230ecSPavankumar Nandeshwar * descriptor 139787a230ecSPavankumar Nandeshwar * 139887a230ecSPavankumar Nandeshwar * fw_metadata 139987a230ecSPavankumar Nandeshwar * Meta data used by FW. 140087a230ecSPavankumar Nandeshwar * In case of gather field in first source ring entry of 140187a230ecSPavankumar Nandeshwar * the gather copy cycle in taken into account. 140287a230ecSPavankumar Nandeshwar * 140387a230ecSPavankumar Nandeshwar * ce_res_1 140487a230ecSPavankumar Nandeshwar * Reserved 140587a230ecSPavankumar Nandeshwar * 140687a230ecSPavankumar Nandeshwar * ce_res_2 140787a230ecSPavankumar Nandeshwar * Reserved 140887a230ecSPavankumar Nandeshwar * 140987a230ecSPavankumar Nandeshwar * ring_id 141087a230ecSPavankumar Nandeshwar * The buffer pointer ring ID. 141187a230ecSPavankumar Nandeshwar * 0 refers to the IDLE ring 141287a230ecSPavankumar Nandeshwar * 1 - N refers to other rings 141387a230ecSPavankumar Nandeshwar * Helps with debugging when dumping ring contents. 141487a230ecSPavankumar Nandeshwar * 141587a230ecSPavankumar Nandeshwar * looping_count 141687a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 141787a230ecSPavankumar Nandeshwar * producer of entries into the Ring has looped around the 141887a230ecSPavankumar Nandeshwar * ring. 141987a230ecSPavankumar Nandeshwar * 142087a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 142187a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 142287a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 142387a230ecSPavankumar Nandeshwar * count value continues with 0 again. 142487a230ecSPavankumar Nandeshwar * 142587a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 142687a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 142787a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 142887a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 142987a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 143087a230ecSPavankumar Nandeshwar * entries have been put into this ring... 143187a230ecSPavankumar Nandeshwar * 143287a230ecSPavankumar Nandeshwar * Also note that SW if it wants only needs to look at the 143387a230ecSPavankumar Nandeshwar * LSB bit of this count value. 143487a230ecSPavankumar Nandeshwar */ 143587a230ecSPavankumar Nandeshwar 143687a230ecSPavankumar Nandeshwar #define HAL_CE_DEST_DESC_ADDR_INFO_ADDR_HI GENMASK(7, 0) 143787a230ecSPavankumar Nandeshwar #define HAL_CE_DEST_DESC_ADDR_INFO_RING_ID GENMASK(27, 20) 143887a230ecSPavankumar Nandeshwar #define HAL_CE_DEST_DESC_ADDR_INFO_LOOP_CNT HAL_SRNG_DESC_LOOP_CNT 143987a230ecSPavankumar Nandeshwar 144087a230ecSPavankumar Nandeshwar struct hal_ce_srng_dest_desc { 144187a230ecSPavankumar Nandeshwar __le32 buffer_addr_low; 144287a230ecSPavankumar Nandeshwar __le32 buffer_addr_info; /* %HAL_CE_DEST_DESC_ADDR_INFO_ */ 144387a230ecSPavankumar Nandeshwar } __packed; 144487a230ecSPavankumar Nandeshwar 144587a230ecSPavankumar Nandeshwar /* hal_ce_srng_dest_desc 144687a230ecSPavankumar Nandeshwar * 144787a230ecSPavankumar Nandeshwar * dst_buffer_low 144887a230ecSPavankumar Nandeshwar * LSB 32 bits of the 40 Bit Pointer to the Destination 144987a230ecSPavankumar Nandeshwar * buffer 145087a230ecSPavankumar Nandeshwar * 145187a230ecSPavankumar Nandeshwar * dst_buffer_high 145287a230ecSPavankumar Nandeshwar * MSB 8 bits of the 40 Bit Pointer to the Destination 145387a230ecSPavankumar Nandeshwar * buffer 145487a230ecSPavankumar Nandeshwar * 145587a230ecSPavankumar Nandeshwar * ce_res_4 145687a230ecSPavankumar Nandeshwar * Reserved 145787a230ecSPavankumar Nandeshwar * 145887a230ecSPavankumar Nandeshwar * ring_id 145987a230ecSPavankumar Nandeshwar * The buffer pointer ring ID. 146087a230ecSPavankumar Nandeshwar * 0 refers to the IDLE ring 146187a230ecSPavankumar Nandeshwar * 1 - N refers to other rings 146287a230ecSPavankumar Nandeshwar * Helps with debugging when dumping ring contents. 146387a230ecSPavankumar Nandeshwar * 146487a230ecSPavankumar Nandeshwar * looping_count 146587a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 146687a230ecSPavankumar Nandeshwar * producer of entries into the Ring has looped around the 146787a230ecSPavankumar Nandeshwar * ring. 146887a230ecSPavankumar Nandeshwar * 146987a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 147087a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 147187a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 147287a230ecSPavankumar Nandeshwar * count value continues with 0 again. 147387a230ecSPavankumar Nandeshwar * 147487a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 147587a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 147687a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 147787a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 147887a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 147987a230ecSPavankumar Nandeshwar * entries have been put into this ring... 148087a230ecSPavankumar Nandeshwar * 148187a230ecSPavankumar Nandeshwar * Also note that SW if it wants only needs to look at the 148287a230ecSPavankumar Nandeshwar * LSB bit of this count value. 148387a230ecSPavankumar Nandeshwar */ 148487a230ecSPavankumar Nandeshwar 148587a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_FLAGS_HASH_EN BIT(8) 148687a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_FLAGS_BYTE_SWAP BIT(9) 148787a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_FLAGS_DEST_SWAP BIT(10) 148887a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_FLAGS_GATHER BIT(11) 148987a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_FLAGS_LEN GENMASK(31, 16) 149087a230ecSPavankumar Nandeshwar 149187a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_META_INFO_DATA GENMASK(15, 0) 149287a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_META_INFO_RING_ID GENMASK(27, 20) 149387a230ecSPavankumar Nandeshwar #define HAL_CE_DST_STATUS_DESC_META_INFO_LOOP_CNT HAL_SRNG_DESC_LOOP_CNT 149487a230ecSPavankumar Nandeshwar 149587a230ecSPavankumar Nandeshwar struct hal_ce_srng_dst_status_desc { 149687a230ecSPavankumar Nandeshwar __le32 flags; /* %HAL_CE_DST_STATUS_DESC_FLAGS_ */ 149787a230ecSPavankumar Nandeshwar __le32 toeplitz_hash0; 149887a230ecSPavankumar Nandeshwar __le32 toeplitz_hash1; 149987a230ecSPavankumar Nandeshwar __le32 meta_info; /* HAL_CE_DST_STATUS_DESC_META_INFO_ */ 150087a230ecSPavankumar Nandeshwar } __packed; 150187a230ecSPavankumar Nandeshwar 150287a230ecSPavankumar Nandeshwar /* hal_ce_srng_dst_status_desc 150387a230ecSPavankumar Nandeshwar * 150487a230ecSPavankumar Nandeshwar * ce_res_5 150587a230ecSPavankumar Nandeshwar * Reserved 150687a230ecSPavankumar Nandeshwar * 150787a230ecSPavankumar Nandeshwar * toeplitz_en 150887a230ecSPavankumar Nandeshwar * 150987a230ecSPavankumar Nandeshwar * src_swap 151087a230ecSPavankumar Nandeshwar * Source memory buffer swapped 151187a230ecSPavankumar Nandeshwar * 151287a230ecSPavankumar Nandeshwar * dest_swap 151387a230ecSPavankumar Nandeshwar * Destination memory buffer swapped 151487a230ecSPavankumar Nandeshwar * 151587a230ecSPavankumar Nandeshwar * gather 151687a230ecSPavankumar Nandeshwar * Gather of multiple copy engine source descriptors to one 151787a230ecSPavankumar Nandeshwar * destination enabled 151887a230ecSPavankumar Nandeshwar * 151987a230ecSPavankumar Nandeshwar * ce_res_6 152087a230ecSPavankumar Nandeshwar * Reserved 152187a230ecSPavankumar Nandeshwar * 152287a230ecSPavankumar Nandeshwar * length 152387a230ecSPavankumar Nandeshwar * Sum of all the Lengths of the source descriptor in the 152487a230ecSPavankumar Nandeshwar * gather chain 152587a230ecSPavankumar Nandeshwar * 152687a230ecSPavankumar Nandeshwar * toeplitz_hash_0 152787a230ecSPavankumar Nandeshwar * 32 LS bits of 64 bit Toeplitz LFSR hash result 152887a230ecSPavankumar Nandeshwar * 152987a230ecSPavankumar Nandeshwar * toeplitz_hash_1 153087a230ecSPavankumar Nandeshwar * 32 MS bits of 64 bit Toeplitz LFSR hash result 153187a230ecSPavankumar Nandeshwar * 153287a230ecSPavankumar Nandeshwar * fw_metadata 153387a230ecSPavankumar Nandeshwar * Meta data used by FW 153487a230ecSPavankumar Nandeshwar * In case of gather field in first source ring entry of 153587a230ecSPavankumar Nandeshwar * the gather copy cycle in taken into account. 153687a230ecSPavankumar Nandeshwar * 153787a230ecSPavankumar Nandeshwar * ce_res_7 153887a230ecSPavankumar Nandeshwar * Reserved 153987a230ecSPavankumar Nandeshwar * 154087a230ecSPavankumar Nandeshwar * ring_id 154187a230ecSPavankumar Nandeshwar * The buffer pointer ring ID. 154287a230ecSPavankumar Nandeshwar * 0 refers to the IDLE ring 154387a230ecSPavankumar Nandeshwar * 1 - N refers to other rings 154487a230ecSPavankumar Nandeshwar * Helps with debugging when dumping ring contents. 154587a230ecSPavankumar Nandeshwar * 154687a230ecSPavankumar Nandeshwar * looping_count 154787a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 154887a230ecSPavankumar Nandeshwar * producer of entries into the Ring has looped around the 154987a230ecSPavankumar Nandeshwar * ring. 155087a230ecSPavankumar Nandeshwar * 155187a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 155287a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 155387a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 155487a230ecSPavankumar Nandeshwar * count value continues with 0 again. 155587a230ecSPavankumar Nandeshwar * 155687a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 155787a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 155887a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 155987a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 156087a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 156187a230ecSPavankumar Nandeshwar * entries have been put into this ring... 156287a230ecSPavankumar Nandeshwar * 156387a230ecSPavankumar Nandeshwar * Also note that SW if it wants only needs to look at the 156487a230ecSPavankumar Nandeshwar * LSB bit of this count value. 156587a230ecSPavankumar Nandeshwar */ 156687a230ecSPavankumar Nandeshwar 156787a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_VALID BIT(0) 156887a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_BW GENMASK(3, 1) 156987a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_PKT_TYPE GENMASK(7, 4) 157087a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_STBC BIT(8) 157187a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_LDPC BIT(9) 157287a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_SGI GENMASK(11, 10) 157387a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_MCS GENMASK(15, 12) 157487a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_OFDMA_TX BIT(16) 157587a230ecSPavankumar Nandeshwar #define HAL_TX_RATE_STATS_INFO0_TONES_IN_RU GENMASK(28, 17) 157687a230ecSPavankumar Nandeshwar 157787a230ecSPavankumar Nandeshwar struct hal_tx_rate_stats { 157887a230ecSPavankumar Nandeshwar __le32 info0; 157987a230ecSPavankumar Nandeshwar __le32 tsf; 158087a230ecSPavankumar Nandeshwar } __packed; 158187a230ecSPavankumar Nandeshwar 158287a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_REL_SRC_MODULE GENMASK(2, 0) 158387a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_BM_ACTION GENMASK(5, 3) 158487a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_DESC_TYPE GENMASK(8, 6) 158587a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_RBM GENMASK(12, 9) 158687a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_RXDMA_PUSH_REASON GENMASK(18, 17) 158787a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_RXDMA_ERROR_CODE GENMASK(23, 19) 158887a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_REO_PUSH_REASON GENMASK(25, 24) 158987a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_REO_ERROR_CODE GENMASK(30, 26) 159087a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO0_WBM_INTERNAL_ERROR BIT(31) 159187a230ecSPavankumar Nandeshwar 159287a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO1_PHY_ADDR_HI GENMASK(7, 0) 159387a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO1_SW_COOKIE GENMASK(27, 8) 159487a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_RX_INFO1_LOOPING_COUNT GENMASK(31, 28) 159587a230ecSPavankumar Nandeshwar 159687a230ecSPavankumar Nandeshwar struct hal_wbm_completion_ring_rx { 159787a230ecSPavankumar Nandeshwar __le32 addr_lo; 159887a230ecSPavankumar Nandeshwar __le32 addr_hi; 159987a230ecSPavankumar Nandeshwar __le32 info0; 160087a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 160187a230ecSPavankumar Nandeshwar struct rx_msdu_desc rx_msdu_info; 160287a230ecSPavankumar Nandeshwar __le32 phy_addr_lo; 160387a230ecSPavankumar Nandeshwar __le32 info1; 160487a230ecSPavankumar Nandeshwar } __packed; 160587a230ecSPavankumar Nandeshwar 160687a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_REL_SRC_MODULE GENMASK(2, 0) 160787a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_DESC_TYPE GENMASK(8, 6) 160887a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_RBM GENMASK(12, 9) 160987a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_TQM_RELEASE_REASON GENMASK(16, 13) 161087a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_RBM_OVERRIDE_VLD BIT(17) 161187a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_SW_COOKIE_LO GENMASK(29, 18) 161287a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_CC_DONE BIT(30) 161387a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO0_WBM_INTERNAL_ERROR BIT(31) 161487a230ecSPavankumar Nandeshwar 161587a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO1_TQM_STATUS_NUMBER GENMASK(23, 0) 161687a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO1_TRANSMIT_COUNT GENMASK(30, 24) 161787a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO1_SW_REL_DETAILS_VALID BIT(31) 161887a230ecSPavankumar Nandeshwar 161987a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO2_ACK_FRAME_RSSI GENMASK(7, 0) 162087a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO2_FIRST_MSDU BIT(8) 162187a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO2_LAST_MSDU BIT(9) 162287a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO2_FW_TX_NOTIF_FRAME GENMASK(12, 10) 162387a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO2_BUFFER_TIMESTAMP GENMASK(31, 13) 162487a230ecSPavankumar Nandeshwar 162587a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO3_PEER_ID GENMASK(15, 0) 162687a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO3_TID GENMASK(19, 16) 162787a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO3_SW_COOKIE_HI GENMASK(27, 20) 162887a230ecSPavankumar Nandeshwar #define HAL_WBM_COMPL_TX_INFO3_LOOPING_COUNT GENMASK(31, 28) 162987a230ecSPavankumar Nandeshwar 163087a230ecSPavankumar Nandeshwar struct hal_wbm_completion_ring_tx { 163187a230ecSPavankumar Nandeshwar __le32 buf_va_lo; 163287a230ecSPavankumar Nandeshwar __le32 buf_va_hi; 163387a230ecSPavankumar Nandeshwar __le32 info0; 163487a230ecSPavankumar Nandeshwar __le32 info1; 163587a230ecSPavankumar Nandeshwar __le32 info2; 163687a230ecSPavankumar Nandeshwar struct hal_tx_rate_stats rate_stats; 163787a230ecSPavankumar Nandeshwar __le32 info3; 163887a230ecSPavankumar Nandeshwar } __packed; 163987a230ecSPavankumar Nandeshwar 164087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_REL_SRC_MODULE GENMASK(2, 0) 164187a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_BM_ACTION GENMASK(5, 3) 164287a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_DESC_TYPE GENMASK(8, 6) 164387a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_FIRST_MSDU_IDX GENMASK(12, 9) 164487a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_TQM_RELEASE_REASON GENMASK(18, 13) 164587a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_RBM_OVERRIDE_VLD BIT(17) 164687a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_SW_BUFFER_COOKIE_11_0 GENMASK(29, 18) 164787a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO0_WBM_INTERNAL_ERROR BIT(31) 164887a230ecSPavankumar Nandeshwar 164987a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO1_TQM_STATUS_NUMBER GENMASK(23, 0) 165087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO1_TRANSMIT_COUNT GENMASK(30, 24) 165187a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO1_SW_REL_DETAILS_VALID BIT(31) 165287a230ecSPavankumar Nandeshwar 165387a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO2_ACK_FRAME_RSSI GENMASK(7, 0) 165487a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO2_FIRST_MSDU BIT(8) 165587a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO2_LAST_MSDU BIT(9) 165687a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO2_FW_TX_NOTIF_FRAME GENMASK(12, 10) 165787a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO2_BUFFER_TIMESTAMP GENMASK(31, 13) 165887a230ecSPavankumar Nandeshwar 165987a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO3_PEER_ID GENMASK(15, 0) 166087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO3_TID GENMASK(19, 16) 166187a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO3_SW_BUFFER_COOKIE_19_12 GENMASK(27, 20) 166287a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_TX_INFO3_LOOPING_COUNT GENMASK(31, 28) 166387a230ecSPavankumar Nandeshwar 166487a230ecSPavankumar Nandeshwar struct hal_wbm_release_ring_tx { 166587a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 166687a230ecSPavankumar Nandeshwar __le32 info0; 166787a230ecSPavankumar Nandeshwar __le32 info1; 166887a230ecSPavankumar Nandeshwar __le32 info2; 166987a230ecSPavankumar Nandeshwar struct hal_tx_rate_stats rate_stats; 167087a230ecSPavankumar Nandeshwar __le32 info3; 167187a230ecSPavankumar Nandeshwar } __packed; 167287a230ecSPavankumar Nandeshwar 167387a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_REL_SRC_MODULE GENMASK(2, 0) 167487a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_BM_ACTION GENMASK(5, 3) 167587a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_DESC_TYPE GENMASK(8, 6) 167687a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_FIRST_MSDU_IDX GENMASK(12, 9) 167787a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_CC_STATUS BIT(16) 167887a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_RXDMA_PUSH_REASON GENMASK(18, 17) 167987a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_RXDMA_ERROR_CODE GENMASK(23, 19) 168087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_REO_PUSH_REASON GENMASK(25, 24) 168187a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_REO_ERROR_CODE GENMASK(30, 26) 168287a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO0_WBM_INTERNAL_ERROR BIT(31) 168387a230ecSPavankumar Nandeshwar 168487a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO2_RING_ID GENMASK(27, 20) 168587a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_INFO2_LOOPING_COUNT GENMASK(31, 28) 168687a230ecSPavankumar Nandeshwar 168787a230ecSPavankumar Nandeshwar struct hal_wbm_release_ring_rx { 168887a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 168987a230ecSPavankumar Nandeshwar __le32 info0; 169087a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 169187a230ecSPavankumar Nandeshwar struct rx_msdu_desc rx_msdu_info; 169287a230ecSPavankumar Nandeshwar __le32 info1; 169387a230ecSPavankumar Nandeshwar __le32 info2; 169487a230ecSPavankumar Nandeshwar } __packed; 169587a230ecSPavankumar Nandeshwar 169687a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_CC_INFO0_RBM GENMASK(12, 9) 169787a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_RX_CC_INFO1_COOKIE GENMASK(27, 8) 169887a230ecSPavankumar Nandeshwar /* Used when hw cc is success */ 169987a230ecSPavankumar Nandeshwar struct hal_wbm_release_ring_cc_rx { 170087a230ecSPavankumar Nandeshwar __le32 buf_va_lo; 170187a230ecSPavankumar Nandeshwar __le32 buf_va_hi; 170287a230ecSPavankumar Nandeshwar __le32 info0; 170387a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 170487a230ecSPavankumar Nandeshwar struct rx_msdu_desc rx_msdu_info; 170587a230ecSPavankumar Nandeshwar __le32 buf_pa_lo; 170687a230ecSPavankumar Nandeshwar __le32 info1; 170787a230ecSPavankumar Nandeshwar } __packed; 170887a230ecSPavankumar Nandeshwar 170987a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_REL_SRC_MODULE GENMASK(2, 0) 171087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_BM_ACTION GENMASK(5, 3) 171187a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_DESC_TYPE GENMASK(8, 6) 171287a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_RXDMA_PUSH_REASON GENMASK(18, 17) 171387a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_RXDMA_ERROR_CODE GENMASK(23, 19) 171487a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_REO_PUSH_REASON GENMASK(25, 24) 171587a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_REO_ERROR_CODE GENMASK(30, 26) 171687a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO0_WBM_INTERNAL_ERROR BIT(31) 171787a230ecSPavankumar Nandeshwar 171887a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO3_FIRST_MSDU BIT(0) 171987a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO3_LAST_MSDU BIT(1) 172087a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO3_CONTINUATION BIT(2) 172187a230ecSPavankumar Nandeshwar 172287a230ecSPavankumar Nandeshwar #define HAL_WBM_RELEASE_INFO5_LOOPING_COUNT GENMASK(31, 28) 172387a230ecSPavankumar Nandeshwar 172487a230ecSPavankumar Nandeshwar struct hal_wbm_release_ring { 172587a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 172687a230ecSPavankumar Nandeshwar __le32 info0; 172787a230ecSPavankumar Nandeshwar __le32 info1; 172887a230ecSPavankumar Nandeshwar __le32 info2; 172987a230ecSPavankumar Nandeshwar __le32 info3; 173087a230ecSPavankumar Nandeshwar __le32 info4; 173187a230ecSPavankumar Nandeshwar __le32 info5; 173287a230ecSPavankumar Nandeshwar } __packed; 173387a230ecSPavankumar Nandeshwar 173487a230ecSPavankumar Nandeshwar /* hal_wbm_release_ring 173587a230ecSPavankumar Nandeshwar * 173687a230ecSPavankumar Nandeshwar * Producer: SW/TQM/RXDMA/REO/SWITCH 173787a230ecSPavankumar Nandeshwar * Consumer: WBM/SW/FW 173887a230ecSPavankumar Nandeshwar * 173987a230ecSPavankumar Nandeshwar * HTT tx status is overlaid on wbm_release ring on 4-byte words 2, 3, 4 and 5 174087a230ecSPavankumar Nandeshwar * for software based completions. 174187a230ecSPavankumar Nandeshwar * 174287a230ecSPavankumar Nandeshwar * buf_addr_info 174387a230ecSPavankumar Nandeshwar * Details of the physical address of the buffer or link descriptor. 174487a230ecSPavankumar Nandeshwar * 174587a230ecSPavankumar Nandeshwar * release_source_module 174687a230ecSPavankumar Nandeshwar * Indicates which module initiated the release of this buffer/descriptor. 174787a230ecSPavankumar Nandeshwar * Values are defined in enum %HAL_WBM_REL_SRC_MODULE_. 174887a230ecSPavankumar Nandeshwar * 174987a230ecSPavankumar Nandeshwar * buffer_or_desc_type 175087a230ecSPavankumar Nandeshwar * Field only valid when WBM is marked as the return_buffer_manager in 175187a230ecSPavankumar Nandeshwar * the Released_Buffer_address_info. Indicates that type of buffer or 175287a230ecSPavankumar Nandeshwar * descriptor is being released. Values are in enum %HAL_WBM_REL_DESC_TYPE. 175387a230ecSPavankumar Nandeshwar * 175487a230ecSPavankumar Nandeshwar * wbm_internal_error 175587a230ecSPavankumar Nandeshwar * Is set when WBM got a buffer pointer but the action was to push it to 175687a230ecSPavankumar Nandeshwar * the idle link descriptor ring or do link related activity OR 175787a230ecSPavankumar Nandeshwar * Is set when WBM got a link buffer pointer but the action was to push it 175887a230ecSPavankumar Nandeshwar * to the buffer descriptor ring. 175987a230ecSPavankumar Nandeshwar * 176087a230ecSPavankumar Nandeshwar * looping_count 176187a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 176287a230ecSPavankumar Nandeshwar * producer of entries into the Buffer Manager Ring has looped 176387a230ecSPavankumar Nandeshwar * around the ring. 176487a230ecSPavankumar Nandeshwar * 176587a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 176687a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 176787a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 176887a230ecSPavankumar Nandeshwar * count value continues with 0 again. 176987a230ecSPavankumar Nandeshwar * 177087a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 177187a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 177287a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 177387a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 177487a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 177587a230ecSPavankumar Nandeshwar * entries have been put into this ring... 177687a230ecSPavankumar Nandeshwar * 177787a230ecSPavankumar Nandeshwar * Also note that SW if it wants only needs to look at the 177887a230ecSPavankumar Nandeshwar * LSB bit of this count value. 177987a230ecSPavankumar Nandeshwar */ 178087a230ecSPavankumar Nandeshwar 178187a230ecSPavankumar Nandeshwar /** 178287a230ecSPavankumar Nandeshwar * enum hal_wbm_tqm_rel_reason - TQM release reason code 178387a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_FRAME_ACKED: ACK or BACK received for the frame 178487a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_MPDU: Command remove_mpdus initiated by SW 178587a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_TX: Command remove transmitted_mpdus 178687a230ecSPavankumar Nandeshwar * initiated by sw. 178787a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_NOTX: Command remove untransmitted_mpdus 178887a230ecSPavankumar Nandeshwar * initiated by sw. 178987a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_AGED_FRAMES: Command remove aged msdus or 179087a230ecSPavankumar Nandeshwar * mpdus. 179187a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON1: Remove command initiated by 179287a230ecSPavankumar Nandeshwar * fw with fw_reason1. 179387a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON2: Remove command initiated by 179487a230ecSPavankumar Nandeshwar * fw with fw_reason2. 179587a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON3: Remove command initiated by 179687a230ecSPavankumar Nandeshwar * fw with fw_reason3. 179787a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_DISABLE_QUEUE: Remove command initiated by 179887a230ecSPavankumar Nandeshwar * fw with disable queue. 179987a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_CMD_TILL_NONMATCHING: Remove command initiated by 180087a230ecSPavankumar Nandeshwar * fw to remove all mpdu until 1st non-match. 180187a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_DROP_THRESHOLD: Dropped due to drop threshold 180287a230ecSPavankumar Nandeshwar * criteria 180387a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_DROP_LINK_DESC_UNAVAIL: Dropped due to link desc 180487a230ecSPavankumar Nandeshwar * not available 180587a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_DROP_OR_INVALID_MSDU: Dropped due drop bit set or 180687a230ecSPavankumar Nandeshwar * null flow 180787a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_MULTICAST_DROP: Dropped due mcast drop set for VDEV 180887a230ecSPavankumar Nandeshwar * @HAL_WBM_TQM_REL_REASON_VDEV_MISMATCH_DROP: Dropped due to being set with 180987a230ecSPavankumar Nandeshwar * 'TCL_drop_reason' 181087a230ecSPavankumar Nandeshwar */ 181187a230ecSPavankumar Nandeshwar enum hal_wbm_tqm_rel_reason { 181287a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_FRAME_ACKED, 181387a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_MPDU, 181487a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_TX, 181587a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_NOTX, 181687a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_AGED_FRAMES, 181787a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON1, 181887a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON2, 181987a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_REMOVE_RESEAON3, 182087a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_DISABLE_QUEUE, 182187a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_CMD_TILL_NONMATCHING, 182287a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_DROP_THRESHOLD, 182387a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_DROP_LINK_DESC_UNAVAIL, 182487a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_DROP_OR_INVALID_MSDU, 182587a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_MULTICAST_DROP, 182687a230ecSPavankumar Nandeshwar HAL_WBM_TQM_REL_REASON_VDEV_MISMATCH_DROP, 182787a230ecSPavankumar Nandeshwar }; 182887a230ecSPavankumar Nandeshwar 182987a230ecSPavankumar Nandeshwar struct hal_wbm_buffer_ring { 183087a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 183187a230ecSPavankumar Nandeshwar }; 183287a230ecSPavankumar Nandeshwar 183387a230ecSPavankumar Nandeshwar enum hal_mon_end_reason { 183487a230ecSPavankumar Nandeshwar HAL_MON_STATUS_BUFFER_FULL, 183587a230ecSPavankumar Nandeshwar HAL_MON_FLUSH_DETECTED, 183687a230ecSPavankumar Nandeshwar HAL_MON_END_OF_PPDU, 183787a230ecSPavankumar Nandeshwar HAL_MON_PPDU_TRUNCATED, 183887a230ecSPavankumar Nandeshwar }; 183987a230ecSPavankumar Nandeshwar 184087a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_RXDMA_PUSH_REASON GENMASK(1, 0) 184187a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_RXDMA_ERROR_CODE GENMASK(6, 2) 184287a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_MPDU_FRAGMENT_NUMBER GENMASK(10, 7) 184387a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_FRAMELESS_BAR BIT(11) 184487a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_STATUS_BUF_COUNT GENMASK(15, 12) 184587a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO0_END_OF_PPDU BIT(16) 184687a230ecSPavankumar Nandeshwar 184787a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO1_PHY_PPDU_ID GENMASK(15, 0) 184887a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO1_RING_ID GENMASK(27, 20) 184987a230ecSPavankumar Nandeshwar #define HAL_SW_MONITOR_RING_INFO1_LOOPING_COUNT GENMASK(31, 28) 185087a230ecSPavankumar Nandeshwar 185187a230ecSPavankumar Nandeshwar struct hal_sw_monitor_ring { 185287a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 185387a230ecSPavankumar Nandeshwar struct rx_mpdu_desc rx_mpdu_info; 185487a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr status_buff_addr_info; 185587a230ecSPavankumar Nandeshwar __le32 info0; /* %HAL_SW_MONITOR_RING_INFO0 */ 185687a230ecSPavankumar Nandeshwar __le32 info1; /* %HAL_SW_MONITOR_RING_INFO1 */ 185787a230ecSPavankumar Nandeshwar } __packed; 185887a230ecSPavankumar Nandeshwar 185987a230ecSPavankumar Nandeshwar /* hal_sw_monitor_ring 186087a230ecSPavankumar Nandeshwar * 186187a230ecSPavankumar Nandeshwar * Producer: RXDMA 186287a230ecSPavankumar Nandeshwar * Consumer: REO/SW/FW 186387a230ecSPavankumar Nandeshwar * buf_addr_info 186487a230ecSPavankumar Nandeshwar * Details of the physical address of a buffer or MSDU 186587a230ecSPavankumar Nandeshwar * link descriptor. 186687a230ecSPavankumar Nandeshwar * 186787a230ecSPavankumar Nandeshwar * rx_mpdu_info 186887a230ecSPavankumar Nandeshwar * Details related to the MPDU being pushed to SW, valid 186987a230ecSPavankumar Nandeshwar * only if end_of_ppdu is set to 0. 187087a230ecSPavankumar Nandeshwar * 187187a230ecSPavankumar Nandeshwar * status_buff_addr_info 187287a230ecSPavankumar Nandeshwar * Details of the physical address of the first status 187387a230ecSPavankumar Nandeshwar * buffer used for the PPDU (either the PPDU that included the 187487a230ecSPavankumar Nandeshwar * MPDU being pushed to SW if end_of_ppdu = 0, or the PPDU 187587a230ecSPavankumar Nandeshwar * whose end is indicated through end_of_ppdu = 1) 187687a230ecSPavankumar Nandeshwar * 187787a230ecSPavankumar Nandeshwar * rxdma_push_reason 187887a230ecSPavankumar Nandeshwar * Indicates why RXDMA pushed the frame to this ring 187987a230ecSPavankumar Nandeshwar * 188087a230ecSPavankumar Nandeshwar * <enum 0 rxdma_error_detected> RXDMA detected an error an 188187a230ecSPavankumar Nandeshwar * pushed this frame to this queue 188287a230ecSPavankumar Nandeshwar * 188387a230ecSPavankumar Nandeshwar * <enum 1 rxdma_routing_instruction> RXDMA pushed the 188487a230ecSPavankumar Nandeshwar * frame to this queue per received routing instructions. No 188587a230ecSPavankumar Nandeshwar * error within RXDMA was detected 188687a230ecSPavankumar Nandeshwar * 188787a230ecSPavankumar Nandeshwar * <enum 2 rxdma_rx_flush> RXDMA received an RX_FLUSH. As a 188887a230ecSPavankumar Nandeshwar * result the MSDU link descriptor might not have the 188987a230ecSPavankumar Nandeshwar * last_msdu_in_mpdu_flag set, but instead WBM might just see a 189087a230ecSPavankumar Nandeshwar * NULL pointer in the MSDU link descriptor. This is to be 189187a230ecSPavankumar Nandeshwar * considered a normal condition for this scenario. 189287a230ecSPavankumar Nandeshwar * 189387a230ecSPavankumar Nandeshwar * rxdma_error_code 189487a230ecSPavankumar Nandeshwar * Field only valid when rxdma_push_reason is set to 189587a230ecSPavankumar Nandeshwar * 'rxdma_error_detected.' 189687a230ecSPavankumar Nandeshwar * 189787a230ecSPavankumar Nandeshwar * <enum 0 rxdma_overflow_err>MPDU frame is not complete 189887a230ecSPavankumar Nandeshwar * due to a FIFO overflow error in RXPCU. 189987a230ecSPavankumar Nandeshwar * 190087a230ecSPavankumar Nandeshwar * <enum 1 rxdma_mpdu_length_err>MPDU frame is not complete 190187a230ecSPavankumar Nandeshwar * due to receiving incomplete MPDU from the PHY 190287a230ecSPavankumar Nandeshwar * 190387a230ecSPavankumar Nandeshwar * <enum 3 rxdma_decrypt_err>CRYPTO reported a decryption 190487a230ecSPavankumar Nandeshwar * error or CRYPTO received an encrypted frame, but did not get 190587a230ecSPavankumar Nandeshwar * a valid corresponding key id in the peer entry. 190687a230ecSPavankumar Nandeshwar * 190787a230ecSPavankumar Nandeshwar * <enum 4 rxdma_tkip_mic_err>CRYPTO reported a TKIP MIC 190887a230ecSPavankumar Nandeshwar * error 190987a230ecSPavankumar Nandeshwar * 191087a230ecSPavankumar Nandeshwar * <enum 5 rxdma_unecrypted_err>CRYPTO reported an 191187a230ecSPavankumar Nandeshwar * unencrypted frame error when encrypted was expected 191287a230ecSPavankumar Nandeshwar * 191387a230ecSPavankumar Nandeshwar * <enum 6 rxdma_msdu_len_err>RX OLE reported an MSDU 191487a230ecSPavankumar Nandeshwar * length error 191587a230ecSPavankumar Nandeshwar * 191687a230ecSPavankumar Nandeshwar * <enum 7 rxdma_msdu_limit_err>RX OLE reported that max 191787a230ecSPavankumar Nandeshwar * number of MSDUs allowed in an MPDU got exceeded 191887a230ecSPavankumar Nandeshwar * 191987a230ecSPavankumar Nandeshwar * <enum 8 rxdma_wifi_parse_err>RX OLE reported a parsing 192087a230ecSPavankumar Nandeshwar * error 192187a230ecSPavankumar Nandeshwar * 192287a230ecSPavankumar Nandeshwar * <enum 9 rxdma_amsdu_parse_err>RX OLE reported an A-MSDU 192387a230ecSPavankumar Nandeshwar * parsing error 192487a230ecSPavankumar Nandeshwar * 192587a230ecSPavankumar Nandeshwar * <enum 10 rxdma_sa_timeout_err>RX OLE reported a timeout 192687a230ecSPavankumar Nandeshwar * during SA search 192787a230ecSPavankumar Nandeshwar * 192887a230ecSPavankumar Nandeshwar * <enum 11 rxdma_da_timeout_err>RX OLE reported a timeout 192987a230ecSPavankumar Nandeshwar * during DA search 193087a230ecSPavankumar Nandeshwar * 193187a230ecSPavankumar Nandeshwar * <enum 12 rxdma_flow_timeout_err>RX OLE reported a 193287a230ecSPavankumar Nandeshwar * timeout during flow search 193387a230ecSPavankumar Nandeshwar * 193487a230ecSPavankumar Nandeshwar * <enum 13 rxdma_flush_request>RXDMA received a flush 193587a230ecSPavankumar Nandeshwar * request 193687a230ecSPavankumar Nandeshwar * 193787a230ecSPavankumar Nandeshwar * <enum 14 rxdma_amsdu_fragment_err>Rx PCU reported A-MSDU 193887a230ecSPavankumar Nandeshwar * present as well as a fragmented MPDU. 193987a230ecSPavankumar Nandeshwar * 194087a230ecSPavankumar Nandeshwar * mpdu_fragment_number 194187a230ecSPavankumar Nandeshwar * Field only valid when Reo_level_mpdu_frame_info. 194287a230ecSPavankumar Nandeshwar * Rx_mpdu_desc_info_details.Fragment_flag is set and 194387a230ecSPavankumar Nandeshwar * end_of_ppdu is set to 0. 194487a230ecSPavankumar Nandeshwar * 194587a230ecSPavankumar Nandeshwar * The fragment number from the 802.11 header. 194687a230ecSPavankumar Nandeshwar * 194787a230ecSPavankumar Nandeshwar * Note that the sequence number is embedded in the field: 194887a230ecSPavankumar Nandeshwar * Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details. 194987a230ecSPavankumar Nandeshwar * Mpdu_sequence_number 195087a230ecSPavankumar Nandeshwar * 195187a230ecSPavankumar Nandeshwar * frameless_bar 195287a230ecSPavankumar Nandeshwar * When set, this SW monitor ring struct contains BAR info 195387a230ecSPavankumar Nandeshwar * from a multi TID BAR frame. The original multi TID BAR frame 195487a230ecSPavankumar Nandeshwar * itself contained all the REO info for the first TID, but all 195587a230ecSPavankumar Nandeshwar * the subsequent TID info and their linkage to the REO 195687a230ecSPavankumar Nandeshwar * descriptors is passed down as 'frameless' BAR info. 195787a230ecSPavankumar Nandeshwar * 195887a230ecSPavankumar Nandeshwar * The only fields valid in this descriptor when this bit 195987a230ecSPavankumar Nandeshwar * is within the 196087a230ecSPavankumar Nandeshwar * 196187a230ecSPavankumar Nandeshwar * Reo_level_mpdu_frame_info: 196287a230ecSPavankumar Nandeshwar * Within Rx_mpdu_desc_info_details: 196387a230ecSPavankumar Nandeshwar * Mpdu_Sequence_number 196487a230ecSPavankumar Nandeshwar * BAR_frame 196587a230ecSPavankumar Nandeshwar * Peer_meta_data 196687a230ecSPavankumar Nandeshwar * All other fields shall be set to 0. 196787a230ecSPavankumar Nandeshwar * 196887a230ecSPavankumar Nandeshwar * status_buf_count 196987a230ecSPavankumar Nandeshwar * A count of status buffers used so far for the PPDU 197087a230ecSPavankumar Nandeshwar * (either the PPDU that included the MPDU being pushed to SW 197187a230ecSPavankumar Nandeshwar * if end_of_ppdu = 0, or the PPDU whose end is indicated 197287a230ecSPavankumar Nandeshwar * through end_of_ppdu = 1) 197387a230ecSPavankumar Nandeshwar * 197487a230ecSPavankumar Nandeshwar * end_of_ppdu 197587a230ecSPavankumar Nandeshwar * Some hw RXDMA can be configured to generate a separate 197687a230ecSPavankumar Nandeshwar * 'SW_MONITOR_RING' descriptor at the end of a PPDU (either 197787a230ecSPavankumar Nandeshwar * through an 'RX_PPDU_END' TLV or through an 'RX_FLUSH') to 197887a230ecSPavankumar Nandeshwar * demarcate PPDUs. 197987a230ecSPavankumar Nandeshwar * 198087a230ecSPavankumar Nandeshwar * For such a descriptor, this bit is set to 1 and fields 198187a230ecSPavankumar Nandeshwar * Reo_level_mpdu_frame_info, mpdu_fragment_number and 198287a230ecSPavankumar Nandeshwar * Frameless_bar are all set to 0. 198387a230ecSPavankumar Nandeshwar * 198487a230ecSPavankumar Nandeshwar * Otherwise this bit is set to 0. 198587a230ecSPavankumar Nandeshwar * 198687a230ecSPavankumar Nandeshwar * phy_ppdu_id 198787a230ecSPavankumar Nandeshwar * A PPDU counter value that PHY increments for every PPDU 198887a230ecSPavankumar Nandeshwar * received 198987a230ecSPavankumar Nandeshwar * 199087a230ecSPavankumar Nandeshwar * The counter value wraps around. Some hw RXDMA can be 199187a230ecSPavankumar Nandeshwar * configured to copy this from the RX_PPDU_START TLV for every 199287a230ecSPavankumar Nandeshwar * output descriptor. 199387a230ecSPavankumar Nandeshwar * 199487a230ecSPavankumar Nandeshwar * ring_id 199587a230ecSPavankumar Nandeshwar * For debugging. 199687a230ecSPavankumar Nandeshwar * This field is filled in by the SRNG module. 199787a230ecSPavankumar Nandeshwar * It help to identify the ring that is being looked 199887a230ecSPavankumar Nandeshwar * 199987a230ecSPavankumar Nandeshwar * looping_count 200087a230ecSPavankumar Nandeshwar * For debugging. 200187a230ecSPavankumar Nandeshwar * This field is filled in by the SRNG module. 200287a230ecSPavankumar Nandeshwar * 200387a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the 200487a230ecSPavankumar Nandeshwar * producer of entries into this Ring has looped around the 200587a230ecSPavankumar Nandeshwar * ring. 200687a230ecSPavankumar Nandeshwar * At initialization time, this value is set to 0. On the 200787a230ecSPavankumar Nandeshwar * first loop, this value is set to 1. After the max value is 200887a230ecSPavankumar Nandeshwar * reached allowed by the number of bits for this field, the 200987a230ecSPavankumar Nandeshwar * count value continues with 0 again. 201087a230ecSPavankumar Nandeshwar * 201187a230ecSPavankumar Nandeshwar * In case SW is the consumer of the ring entries, it can 201287a230ecSPavankumar Nandeshwar * use this field to figure out up to where the producer of 201387a230ecSPavankumar Nandeshwar * entries has created new entries. This eliminates the need to 201487a230ecSPavankumar Nandeshwar * check where the head pointer' of the ring is located once 201587a230ecSPavankumar Nandeshwar * the SW starts processing an interrupt indicating that new 201687a230ecSPavankumar Nandeshwar * entries have been put into this ring... 201787a230ecSPavankumar Nandeshwar */ 201887a230ecSPavankumar Nandeshwar 201987a230ecSPavankumar Nandeshwar enum hal_desc_owner { 202087a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_WBM, 202187a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_SW, 202287a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_TQM, 202387a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_RXDMA, 202487a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_REO, 202587a230ecSPavankumar Nandeshwar HAL_DESC_OWNER_SWITCH, 202687a230ecSPavankumar Nandeshwar }; 202787a230ecSPavankumar Nandeshwar 202887a230ecSPavankumar Nandeshwar enum hal_desc_buf_type { 202987a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_MSDU_LINK, 203087a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_MPDU_LINK, 203187a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_MPDU_QUEUE_HEAD, 203287a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_MPDU_QUEUE_EXT, 203387a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_FLOW, 203487a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_TX_BUFFER, 203587a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_RX_MSDU_LINK, 203687a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_RX_MPDU_LINK, 203787a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_RX_REO_QUEUE, 203887a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_RX_REO_QUEUE_EXT, 203987a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_RX_BUFFER, 204087a230ecSPavankumar Nandeshwar HAL_DESC_BUF_TYPE_IDLE_LINK, 204187a230ecSPavankumar Nandeshwar }; 204287a230ecSPavankumar Nandeshwar 204387a230ecSPavankumar Nandeshwar #define HAL_DESC_REO_OWNED 4 204487a230ecSPavankumar Nandeshwar #define HAL_DESC_REO_QUEUE_DESC 8 204587a230ecSPavankumar Nandeshwar #define HAL_DESC_REO_QUEUE_EXT_DESC 9 204687a230ecSPavankumar Nandeshwar 204787a230ecSPavankumar Nandeshwar #define HAL_DESC_HDR_INFO0_OWNER GENMASK(3, 0) 204887a230ecSPavankumar Nandeshwar #define HAL_DESC_HDR_INFO0_BUF_TYPE GENMASK(7, 4) 204987a230ecSPavankumar Nandeshwar #define HAL_DESC_HDR_INFO0_DBG_RESERVED GENMASK(31, 8) 205087a230ecSPavankumar Nandeshwar 205187a230ecSPavankumar Nandeshwar struct hal_desc_header { 205287a230ecSPavankumar Nandeshwar __le32 info0; 205387a230ecSPavankumar Nandeshwar } __packed; 205487a230ecSPavankumar Nandeshwar 205587a230ecSPavankumar Nandeshwar struct hal_rx_mpdu_link_ptr { 205687a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr addr_info; 205787a230ecSPavankumar Nandeshwar } __packed; 205887a230ecSPavankumar Nandeshwar 205987a230ecSPavankumar Nandeshwar struct hal_rx_msdu_details { 206087a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 206187a230ecSPavankumar Nandeshwar struct rx_msdu_desc rx_msdu_info; 206287a230ecSPavankumar Nandeshwar struct rx_msdu_ext_desc rx_msdu_ext_info; 206387a230ecSPavankumar Nandeshwar } __packed; 206487a230ecSPavankumar Nandeshwar 206587a230ecSPavankumar Nandeshwar #define HAL_RX_MSDU_LNK_INFO0_RX_QUEUE_NUMBER GENMASK(15, 0) 206687a230ecSPavankumar Nandeshwar #define HAL_RX_MSDU_LNK_INFO0_FIRST_MSDU_LNK BIT(16) 206787a230ecSPavankumar Nandeshwar 206887a230ecSPavankumar Nandeshwar struct hal_rx_msdu_link { 206987a230ecSPavankumar Nandeshwar struct hal_desc_header desc_hdr; 207087a230ecSPavankumar Nandeshwar struct ath12k_buffer_addr buf_addr_info; 207187a230ecSPavankumar Nandeshwar __le32 info0; 207287a230ecSPavankumar Nandeshwar __le32 pn[4]; 207387a230ecSPavankumar Nandeshwar struct hal_rx_msdu_details msdu_link[6]; 207487a230ecSPavankumar Nandeshwar } __packed; 207587a230ecSPavankumar Nandeshwar 207687a230ecSPavankumar Nandeshwar struct hal_rx_reo_queue_ext { 207787a230ecSPavankumar Nandeshwar struct hal_desc_header desc_hdr; 207887a230ecSPavankumar Nandeshwar __le32 rsvd; 207987a230ecSPavankumar Nandeshwar struct hal_rx_mpdu_link_ptr mpdu_link[15]; 208087a230ecSPavankumar Nandeshwar } __packed; 208187a230ecSPavankumar Nandeshwar 208287a230ecSPavankumar Nandeshwar /* hal_rx_reo_queue_ext 208387a230ecSPavankumar Nandeshwar * Consumer: REO 208487a230ecSPavankumar Nandeshwar * Producer: REO 208587a230ecSPavankumar Nandeshwar * 208687a230ecSPavankumar Nandeshwar * descriptor_header 208787a230ecSPavankumar Nandeshwar * Details about which module owns this struct. 208887a230ecSPavankumar Nandeshwar * 208987a230ecSPavankumar Nandeshwar * mpdu_link 209087a230ecSPavankumar Nandeshwar * Pointer to the next MPDU_link descriptor in the MPDU queue. 209187a230ecSPavankumar Nandeshwar */ 209287a230ecSPavankumar Nandeshwar 209387a230ecSPavankumar Nandeshwar enum hal_rx_reo_queue_pn_size { 209487a230ecSPavankumar Nandeshwar HAL_RX_REO_QUEUE_PN_SIZE_24, 209587a230ecSPavankumar Nandeshwar HAL_RX_REO_QUEUE_PN_SIZE_48, 209687a230ecSPavankumar Nandeshwar HAL_RX_REO_QUEUE_PN_SIZE_128, 209787a230ecSPavankumar Nandeshwar }; 209887a230ecSPavankumar Nandeshwar 209987a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_RX_QUEUE_NUMBER GENMASK(15, 0) 210087a230ecSPavankumar Nandeshwar 210187a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_VLD BIT(0) 210287a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_ASSOC_LNK_DESC_COUNTER GENMASK(2, 1) 210387a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_DIS_DUP_DETECTION BIT(3) 210487a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_SOFT_REORDER_EN BIT(4) 210587a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_AC GENMASK(6, 5) 210687a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_BAR BIT(7) 210787a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_RETRY BIT(8) 210887a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_CHECK_2K_MODE BIT(9) 210987a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_OOR_MODE BIT(10) 211087a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_BA_WINDOW_SIZE GENMASK(20, 11) 211187a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_PN_CHECK BIT(21) 211287a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_EVEN_PN BIT(22) 211387a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_UNEVEN_PN BIT(23) 211487a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_PN_HANDLE_ENABLE BIT(24) 211587a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_PN_SIZE GENMASK(26, 25) 211687a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO0_IGNORE_AMPDU_FLG BIT(27) 211787a230ecSPavankumar Nandeshwar 211887a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_SVLD BIT(0) 211987a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_SSN GENMASK(12, 1) 212087a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_CURRENT_IDX GENMASK(22, 13) 212187a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_SEQ_2K_ERR BIT(23) 212287a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_PN_ERR BIT(24) 212387a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO1_PN_VALID BIT(31) 212487a230ecSPavankumar Nandeshwar 212587a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO2_MPDU_COUNT GENMASK(6, 0) 212687a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO2_MSDU_COUNT (31, 7) 212787a230ecSPavankumar Nandeshwar 212887a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO3_TIMEOUT_COUNT GENMASK(9, 4) 212987a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO3_FWD_DUE_TO_BAR_CNT GENMASK(15, 10) 213087a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO3_DUPLICATE_COUNT GENMASK(31, 16) 213187a230ecSPavankumar Nandeshwar 213287a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO4_FRAME_IN_ORD_COUNT GENMASK(23, 0) 213387a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO4_BAR_RECVD_COUNT GENMASK(31, 24) 213487a230ecSPavankumar Nandeshwar 213587a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO5_LATE_RX_MPDU_COUNT GENMASK(11, 0) 213687a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO5_WINDOW_JUMP_2K GENMASK(15, 12) 213787a230ecSPavankumar Nandeshwar #define HAL_RX_REO_QUEUE_INFO5_HOLE_COUNT GENMASK(31, 16) 213887a230ecSPavankumar Nandeshwar 213987a230ecSPavankumar Nandeshwar struct hal_rx_reo_queue { 214087a230ecSPavankumar Nandeshwar struct hal_desc_header desc_hdr; 214187a230ecSPavankumar Nandeshwar __le32 rx_queue_num; 214287a230ecSPavankumar Nandeshwar __le32 info0; 214387a230ecSPavankumar Nandeshwar __le32 info1; 214487a230ecSPavankumar Nandeshwar __le32 pn[4]; 214587a230ecSPavankumar Nandeshwar __le32 last_rx_enqueue_timestamp; 214687a230ecSPavankumar Nandeshwar __le32 last_rx_dequeue_timestamp; 214787a230ecSPavankumar Nandeshwar __le32 next_aging_queue[2]; 214887a230ecSPavankumar Nandeshwar __le32 prev_aging_queue[2]; 214987a230ecSPavankumar Nandeshwar __le32 rx_bitmap[9]; 215087a230ecSPavankumar Nandeshwar __le32 info2; 215187a230ecSPavankumar Nandeshwar __le32 info3; 215287a230ecSPavankumar Nandeshwar __le32 info4; 215387a230ecSPavankumar Nandeshwar __le32 processed_mpdus; 215487a230ecSPavankumar Nandeshwar __le32 processed_msdus; 215587a230ecSPavankumar Nandeshwar __le32 processed_total_bytes; 215687a230ecSPavankumar Nandeshwar __le32 info5; 215787a230ecSPavankumar Nandeshwar __le32 rsvd[2]; 215887a230ecSPavankumar Nandeshwar struct hal_rx_reo_queue_ext ext_desc[]; 215987a230ecSPavankumar Nandeshwar } __packed; 216087a230ecSPavankumar Nandeshwar 216187a230ecSPavankumar Nandeshwar /* hal_rx_reo_queue 216287a230ecSPavankumar Nandeshwar * 216387a230ecSPavankumar Nandeshwar * descriptor_header 216487a230ecSPavankumar Nandeshwar * Details about which module owns this struct. Note that sub field 216587a230ecSPavankumar Nandeshwar * Buffer_type shall be set to receive_reo_queue_descriptor. 216687a230ecSPavankumar Nandeshwar * 216787a230ecSPavankumar Nandeshwar * receive_queue_number 216887a230ecSPavankumar Nandeshwar * Indicates the MPDU queue ID to which this MPDU link descriptor belongs. 216987a230ecSPavankumar Nandeshwar * 217087a230ecSPavankumar Nandeshwar * vld 217187a230ecSPavankumar Nandeshwar * Valid bit indicating a session is established and the queue descriptor 217287a230ecSPavankumar Nandeshwar * is valid. 217387a230ecSPavankumar Nandeshwar * associated_link_descriptor_counter 217487a230ecSPavankumar Nandeshwar * Indicates which of the 3 link descriptor counters shall be incremented 217587a230ecSPavankumar Nandeshwar * or decremented when link descriptors are added or removed from this 217687a230ecSPavankumar Nandeshwar * flow queue. 217787a230ecSPavankumar Nandeshwar * disable_duplicate_detection 217887a230ecSPavankumar Nandeshwar * When set, do not perform any duplicate detection. 217987a230ecSPavankumar Nandeshwar * soft_reorder_enable 218087a230ecSPavankumar Nandeshwar * When set, REO has been instructed to not perform the actual re-ordering 218187a230ecSPavankumar Nandeshwar * of frames for this queue, but just to insert the reorder opcodes. 218287a230ecSPavankumar Nandeshwar * ac 218387a230ecSPavankumar Nandeshwar * Indicates the access category of the queue descriptor. 218487a230ecSPavankumar Nandeshwar * bar 218587a230ecSPavankumar Nandeshwar * Indicates if BAR has been received. 218687a230ecSPavankumar Nandeshwar * retry 218787a230ecSPavankumar Nandeshwar * Retry bit is checked if this bit is set. 218887a230ecSPavankumar Nandeshwar * chk_2k_mode 218987a230ecSPavankumar Nandeshwar * Indicates what type of operation is expected from Reo when the received 219087a230ecSPavankumar Nandeshwar * frame SN falls within the 2K window. 219187a230ecSPavankumar Nandeshwar * oor_mode 219287a230ecSPavankumar Nandeshwar * Indicates what type of operation is expected when the received frame 219387a230ecSPavankumar Nandeshwar * falls within the OOR window. 219487a230ecSPavankumar Nandeshwar * ba_window_size 219587a230ecSPavankumar Nandeshwar * Indicates the negotiated (window size + 1). Max of 256 bits. 219687a230ecSPavankumar Nandeshwar * 219787a230ecSPavankumar Nandeshwar * A value 255 means 256 bitmap, 63 means 64 bitmap, 0 (means non-BA 219887a230ecSPavankumar Nandeshwar * session, with window size of 0). The 3 values here are the main values 219987a230ecSPavankumar Nandeshwar * validated, but other values should work as well. 220087a230ecSPavankumar Nandeshwar * 220187a230ecSPavankumar Nandeshwar * A BA window size of 0 (=> one frame entry bitmat), means that there is 220287a230ecSPavankumar Nandeshwar * no additional rx_reo_queue_ext desc. following rx_reo_queue in memory. 220387a230ecSPavankumar Nandeshwar * A BA window size of 1 - 105, means that there is 1 rx_reo_queue_ext. 220487a230ecSPavankumar Nandeshwar * A BA window size of 106 - 210, means that there are 2 rx_reo_queue_ext. 220587a230ecSPavankumar Nandeshwar * A BA window size of 211 - 256, means that there are 3 rx_reo_queue_ext. 220687a230ecSPavankumar Nandeshwar * pn_check_needed, pn_shall_be_even, pn_shall_be_uneven, pn_handling_enable, 220787a230ecSPavankumar Nandeshwar * pn_size 220887a230ecSPavankumar Nandeshwar * REO shall perform the PN increment check, even number check, uneven 220987a230ecSPavankumar Nandeshwar * number check, PN error check and size of the PN field check. 221087a230ecSPavankumar Nandeshwar * ignore_ampdu_flag 221187a230ecSPavankumar Nandeshwar * REO shall ignore the ampdu_flag on entrance descriptor for this queue. 221287a230ecSPavankumar Nandeshwar * 221387a230ecSPavankumar Nandeshwar * svld 221487a230ecSPavankumar Nandeshwar * Sequence number in next field is valid one. 221587a230ecSPavankumar Nandeshwar * ssn 221687a230ecSPavankumar Nandeshwar * Starting Sequence number of the session. 221787a230ecSPavankumar Nandeshwar * current_index 221887a230ecSPavankumar Nandeshwar * Points to last forwarded packet 221987a230ecSPavankumar Nandeshwar * seq_2k_error_detected_flag 222087a230ecSPavankumar Nandeshwar * REO has detected a 2k error jump in the sequence number and from that 222187a230ecSPavankumar Nandeshwar * moment forward, all new frames are forwarded directly to FW, without 222287a230ecSPavankumar Nandeshwar * duplicate detect, reordering, etc. 222387a230ecSPavankumar Nandeshwar * pn_error_detected_flag 222487a230ecSPavankumar Nandeshwar * REO has detected a PN error. 222587a230ecSPavankumar Nandeshwar */ 222687a230ecSPavankumar Nandeshwar 222787a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_QUEUE_ADDR_HI GENMASK(7, 0) 222887a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_RX_QUEUE_NUM BIT(8) 222987a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_VLD BIT(9) 223087a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_ASSOC_LNK_DESC_CNT BIT(10) 223187a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_DIS_DUP_DETECTION BIT(11) 223287a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_SOFT_REORDER_EN BIT(12) 223387a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_AC BIT(13) 223487a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_BAR BIT(14) 223587a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_RETRY BIT(15) 223687a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_CHECK_2K_MODE BIT(16) 223787a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_OOR_MODE BIT(17) 223887a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_BA_WINDOW_SIZE BIT(18) 223987a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN_CHECK BIT(19) 224087a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_EVEN_PN BIT(20) 224187a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_UNEVEN_PN BIT(21) 224287a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN_HANDLE_ENABLE BIT(22) 224387a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN_SIZE BIT(23) 224487a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_IGNORE_AMPDU_FLG BIT(24) 224587a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_SVLD BIT(25) 224687a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_SSN BIT(26) 224787a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_SEQ_2K_ERR BIT(27) 224887a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN_ERR BIT(28) 224987a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN_VALID BIT(29) 225087a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO0_UPD_PN BIT(30) 225187a230ecSPavankumar Nandeshwar 225287a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_RX_QUEUE_NUMBER GENMASK(15, 0) 225387a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_VLD BIT(16) 225487a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_ASSOC_LNK_DESC_COUNTER GENMASK(18, 17) 225587a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_DIS_DUP_DETECTION BIT(19) 225687a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_SOFT_REORDER_EN BIT(20) 225787a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_AC GENMASK(22, 21) 225887a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_BAR BIT(23) 225987a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_RETRY BIT(24) 226087a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_CHECK_2K_MODE BIT(25) 226187a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_OOR_MODE BIT(26) 226287a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_PN_CHECK BIT(27) 226387a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_EVEN_PN BIT(28) 226487a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_UNEVEN_PN BIT(29) 226587a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_PN_HANDLE_ENABLE BIT(30) 226687a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO1_IGNORE_AMPDU_FLG BIT(31) 226787a230ecSPavankumar Nandeshwar 226887a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_BA_WINDOW_SIZE GENMASK(9, 0) 226987a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_PN_SIZE GENMASK(11, 10) 227087a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_SVLD BIT(12) 227187a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_SSN GENMASK(24, 13) 227287a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_SEQ_2K_ERR BIT(25) 227387a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_PN_ERR BIT(26) 227487a230ecSPavankumar Nandeshwar #define HAL_REO_UPD_RX_QUEUE_INFO2_PN_VALID BIT(27) 227587a230ecSPavankumar Nandeshwar 227687a230ecSPavankumar Nandeshwar struct hal_reo_update_rx_queue { 227787a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr cmd; 227887a230ecSPavankumar Nandeshwar __le32 queue_addr_lo; 227987a230ecSPavankumar Nandeshwar __le32 info0; 228087a230ecSPavankumar Nandeshwar __le32 info1; 228187a230ecSPavankumar Nandeshwar __le32 info2; 228287a230ecSPavankumar Nandeshwar __le32 pn[4]; 228387a230ecSPavankumar Nandeshwar } __packed; 228487a230ecSPavankumar Nandeshwar 228587a230ecSPavankumar Nandeshwar struct hal_rx_reo_queue_1k { 228687a230ecSPavankumar Nandeshwar struct hal_desc_header desc_hdr; 228787a230ecSPavankumar Nandeshwar __le32 rx_bitmap_1023_288[23]; 228887a230ecSPavankumar Nandeshwar __le32 reserved[8]; 228987a230ecSPavankumar Nandeshwar } __packed; 229087a230ecSPavankumar Nandeshwar 229187a230ecSPavankumar Nandeshwar #define HAL_REO_UNBLOCK_CACHE_INFO0_UNBLK_CACHE BIT(0) 229287a230ecSPavankumar Nandeshwar #define HAL_REO_UNBLOCK_CACHE_INFO0_RESOURCE_IDX GENMASK(2, 1) 229387a230ecSPavankumar Nandeshwar 229487a230ecSPavankumar Nandeshwar struct hal_reo_unblock_cache { 229587a230ecSPavankumar Nandeshwar struct hal_reo_cmd_hdr cmd; 229687a230ecSPavankumar Nandeshwar __le32 info0; 229787a230ecSPavankumar Nandeshwar __le32 rsvd[7]; 229887a230ecSPavankumar Nandeshwar } __packed; 229987a230ecSPavankumar Nandeshwar 230087a230ecSPavankumar Nandeshwar enum hal_reo_exec_status { 230187a230ecSPavankumar Nandeshwar HAL_REO_EXEC_STATUS_SUCCESS, 230287a230ecSPavankumar Nandeshwar HAL_REO_EXEC_STATUS_BLOCKED, 230387a230ecSPavankumar Nandeshwar HAL_REO_EXEC_STATUS_FAILED, 230487a230ecSPavankumar Nandeshwar HAL_REO_EXEC_STATUS_RESOURCE_BLOCKED, 230587a230ecSPavankumar Nandeshwar }; 230687a230ecSPavankumar Nandeshwar 230787a230ecSPavankumar Nandeshwar #define HAL_REO_STATUS_HDR_INFO0_STATUS_NUM GENMASK(15, 0) 230887a230ecSPavankumar Nandeshwar #define HAL_REO_STATUS_HDR_INFO0_EXEC_TIME GENMASK(25, 16) 230987a230ecSPavankumar Nandeshwar #define HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS GENMASK(27, 26) 231087a230ecSPavankumar Nandeshwar 231187a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr { 231287a230ecSPavankumar Nandeshwar __le32 info0; 231387a230ecSPavankumar Nandeshwar __le32 timestamp; 231487a230ecSPavankumar Nandeshwar } __packed; 231587a230ecSPavankumar Nandeshwar 231687a230ecSPavankumar Nandeshwar /* hal_reo_status_hdr 231787a230ecSPavankumar Nandeshwar * Producer: REO 231887a230ecSPavankumar Nandeshwar * Consumer: SW 231987a230ecSPavankumar Nandeshwar * 232087a230ecSPavankumar Nandeshwar * status_num 232187a230ecSPavankumar Nandeshwar * The value in this field is equal to value of the reo command 232287a230ecSPavankumar Nandeshwar * number. This field helps to correlate the statuses with the REO 232387a230ecSPavankumar Nandeshwar * commands. 232487a230ecSPavankumar Nandeshwar * 232587a230ecSPavankumar Nandeshwar * execution_time (in us) 232687a230ecSPavankumar Nandeshwar * The amount of time REO took to execute the command. Note that 232787a230ecSPavankumar Nandeshwar * this time does not include the duration of the command waiting 232887a230ecSPavankumar Nandeshwar * in the command ring, before the execution started. 232987a230ecSPavankumar Nandeshwar * 233087a230ecSPavankumar Nandeshwar * execution_status 233187a230ecSPavankumar Nandeshwar * Execution status of the command. Values are defined in 233287a230ecSPavankumar Nandeshwar * enum %HAL_REO_EXEC_STATUS_. 233387a230ecSPavankumar Nandeshwar */ 233487a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO0_SSN GENMASK(11, 0) 233587a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO0_CUR_IDX GENMASK(21, 12) 233687a230ecSPavankumar Nandeshwar 233787a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO1_MPDU_COUNT GENMASK(6, 0) 233887a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO1_MSDU_COUNT GENMASK(31, 7) 233987a230ecSPavankumar Nandeshwar 234087a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO2_WINDOW_JMP2K GENMASK(3, 0) 234187a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO2_TIMEOUT_COUNT GENMASK(9, 4) 234287a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO2_FDTB_COUNT GENMASK(15, 10) 234387a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO2_DUPLICATE_COUNT GENMASK(31, 16) 234487a230ecSPavankumar Nandeshwar 234587a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO3_FIO_COUNT GENMASK(23, 0) 234687a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO3_BAR_RCVD_CNT GENMASK(31, 24) 234787a230ecSPavankumar Nandeshwar 234887a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO4_LATE_RX_MPDU GENMASK(11, 0) 234987a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO4_HOLE_COUNT GENMASK(27, 12) 235087a230ecSPavankumar Nandeshwar 235187a230ecSPavankumar Nandeshwar #define HAL_REO_GET_QUEUE_STATS_STATUS_INFO5_LOOPING_CNT GENMASK(31, 28) 235287a230ecSPavankumar Nandeshwar 235387a230ecSPavankumar Nandeshwar struct hal_reo_get_queue_stats_status { 235487a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 235587a230ecSPavankumar Nandeshwar __le32 info0; 235687a230ecSPavankumar Nandeshwar __le32 pn[4]; 235787a230ecSPavankumar Nandeshwar __le32 last_rx_enqueue_timestamp; 235887a230ecSPavankumar Nandeshwar __le32 last_rx_dequeue_timestamp; 235987a230ecSPavankumar Nandeshwar __le32 rx_bitmap[9]; 236087a230ecSPavankumar Nandeshwar __le32 info1; 236187a230ecSPavankumar Nandeshwar __le32 info2; 236287a230ecSPavankumar Nandeshwar __le32 info3; 236387a230ecSPavankumar Nandeshwar __le32 num_mpdu_frames; 236487a230ecSPavankumar Nandeshwar __le32 num_msdu_frames; 236587a230ecSPavankumar Nandeshwar __le32 total_bytes; 236687a230ecSPavankumar Nandeshwar __le32 info4; 236787a230ecSPavankumar Nandeshwar __le32 info5; 236887a230ecSPavankumar Nandeshwar } __packed; 236987a230ecSPavankumar Nandeshwar 237087a230ecSPavankumar Nandeshwar /* hal_reo_get_queue_stats_status 237187a230ecSPavankumar Nandeshwar * Producer: REO 237287a230ecSPavankumar Nandeshwar * Consumer: SW 237387a230ecSPavankumar Nandeshwar * 237487a230ecSPavankumar Nandeshwar * status_hdr 237587a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 237687a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 237787a230ecSPavankumar Nandeshwar * 237887a230ecSPavankumar Nandeshwar * ssn 237987a230ecSPavankumar Nandeshwar * Starting Sequence number of the session, this changes whenever 238087a230ecSPavankumar Nandeshwar * window moves (can be filled by SW then maintained by REO). 238187a230ecSPavankumar Nandeshwar * 238287a230ecSPavankumar Nandeshwar * current_index 238387a230ecSPavankumar Nandeshwar * Points to last forwarded packet. 238487a230ecSPavankumar Nandeshwar * 238587a230ecSPavankumar Nandeshwar * pn 238687a230ecSPavankumar Nandeshwar * Bits of the PN number. 238787a230ecSPavankumar Nandeshwar * 238887a230ecSPavankumar Nandeshwar * last_rx_enqueue_timestamp 238987a230ecSPavankumar Nandeshwar * last_rx_dequeue_timestamp 239087a230ecSPavankumar Nandeshwar * Timestamp of arrival of the last MPDU for this queue and 239187a230ecSPavankumar Nandeshwar * Timestamp of forwarding an MPDU accordingly. 239287a230ecSPavankumar Nandeshwar * 239387a230ecSPavankumar Nandeshwar * rx_bitmap 239487a230ecSPavankumar Nandeshwar * When a bit is set, the corresponding frame is currently held 239587a230ecSPavankumar Nandeshwar * in the re-order queue. The bitmap is Fully managed by HW. 239687a230ecSPavankumar Nandeshwar * 239787a230ecSPavankumar Nandeshwar * current_mpdu_count 239887a230ecSPavankumar Nandeshwar * current_msdu_count 239987a230ecSPavankumar Nandeshwar * The number of MPDUs and MSDUs in the queue. 240087a230ecSPavankumar Nandeshwar * 240187a230ecSPavankumar Nandeshwar * timeout_count 240287a230ecSPavankumar Nandeshwar * The number of times REO started forwarding frames even though 240387a230ecSPavankumar Nandeshwar * there is a hole in the bitmap. Forwarding reason is timeout. 240487a230ecSPavankumar Nandeshwar * 240587a230ecSPavankumar Nandeshwar * forward_due_to_bar_count 240687a230ecSPavankumar Nandeshwar * The number of times REO started forwarding frames even though 240787a230ecSPavankumar Nandeshwar * there is a hole in the bitmap. Fwd reason is reception of BAR. 240887a230ecSPavankumar Nandeshwar * 240987a230ecSPavankumar Nandeshwar * duplicate_count 241087a230ecSPavankumar Nandeshwar * The number of duplicate frames that have been detected. 241187a230ecSPavankumar Nandeshwar * 241287a230ecSPavankumar Nandeshwar * frames_in_order_count 241387a230ecSPavankumar Nandeshwar * The number of frames that have been received in order (without 241487a230ecSPavankumar Nandeshwar * a hole that prevented them from being forwarded immediately). 241587a230ecSPavankumar Nandeshwar * 241687a230ecSPavankumar Nandeshwar * bar_received_count 241787a230ecSPavankumar Nandeshwar * The number of times a BAR frame is received. 241887a230ecSPavankumar Nandeshwar * 241987a230ecSPavankumar Nandeshwar * mpdu_frames_processed_count 242087a230ecSPavankumar Nandeshwar * msdu_frames_processed_count 242187a230ecSPavankumar Nandeshwar * The total number of MPDU/MSDU frames that have been processed. 242287a230ecSPavankumar Nandeshwar * 242387a230ecSPavankumar Nandeshwar * total_bytes 242487a230ecSPavankumar Nandeshwar * An approximation of the number of bytes received for this queue. 242587a230ecSPavankumar Nandeshwar * 242687a230ecSPavankumar Nandeshwar * late_receive_mpdu_count 242787a230ecSPavankumar Nandeshwar * The number of MPDUs received after the window had already moved 242887a230ecSPavankumar Nandeshwar * on. The 'late' sequence window is defined as 242987a230ecSPavankumar Nandeshwar * (Window SSN - 256) - (Window SSN - 1). 243087a230ecSPavankumar Nandeshwar * 243187a230ecSPavankumar Nandeshwar * window_jump_2k 243287a230ecSPavankumar Nandeshwar * The number of times the window moved more than 2K 243387a230ecSPavankumar Nandeshwar * 243487a230ecSPavankumar Nandeshwar * hole_count 243587a230ecSPavankumar Nandeshwar * The number of times a hole was created in the receive bitmap. 243687a230ecSPavankumar Nandeshwar * 243787a230ecSPavankumar Nandeshwar * looping_count 243887a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 243987a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 244087a230ecSPavankumar Nandeshwar */ 244187a230ecSPavankumar Nandeshwar 2442*37b34a1cSBaochen Qiang struct hal_reo_get_queue_stats_status_qcc2072 { 2443*37b34a1cSBaochen Qiang __le32 tlv32_padding; 2444*37b34a1cSBaochen Qiang struct hal_reo_get_queue_stats_status status; 2445*37b34a1cSBaochen Qiang } __packed; 2446*37b34a1cSBaochen Qiang 244787a230ecSPavankumar Nandeshwar #define HAL_REO_STATUS_LOOP_CNT GENMASK(31, 28) 244887a230ecSPavankumar Nandeshwar 244987a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO0_ERR_DETECTED BIT(0) 245087a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO0_RSVD GENMASK(31, 1) 245187a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_QUEUE_INFO1_RSVD GENMASK(27, 0) 245287a230ecSPavankumar Nandeshwar 245387a230ecSPavankumar Nandeshwar struct hal_reo_flush_queue_status { 245487a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 245587a230ecSPavankumar Nandeshwar __le32 info0; 245687a230ecSPavankumar Nandeshwar __le32 rsvd0[21]; 245787a230ecSPavankumar Nandeshwar __le32 info1; 245887a230ecSPavankumar Nandeshwar } __packed; 245987a230ecSPavankumar Nandeshwar 246087a230ecSPavankumar Nandeshwar /* hal_reo_flush_queue_status 246187a230ecSPavankumar Nandeshwar * Producer: REO 246287a230ecSPavankumar Nandeshwar * Consumer: SW 246387a230ecSPavankumar Nandeshwar * 246487a230ecSPavankumar Nandeshwar * status_hdr 246587a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 246687a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 246787a230ecSPavankumar Nandeshwar * 246887a230ecSPavankumar Nandeshwar * error_detected 246987a230ecSPavankumar Nandeshwar * Status of blocking resource 247087a230ecSPavankumar Nandeshwar * 247187a230ecSPavankumar Nandeshwar * 0 - No error has been detected while executing this command 247287a230ecSPavankumar Nandeshwar * 1 - Error detected. The resource to be used for blocking was 247387a230ecSPavankumar Nandeshwar * already in use. 247487a230ecSPavankumar Nandeshwar * 247587a230ecSPavankumar Nandeshwar * looping_count 247687a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 247787a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 247887a230ecSPavankumar Nandeshwar */ 247987a230ecSPavankumar Nandeshwar 248087a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_IS_ERR BIT(0) 248187a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_BLOCK_ERR_CODE GENMASK(2, 1) 248287a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_FLUSH_STATUS_HIT BIT(8) 248387a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_FLUSH_DESC_TYPE GENMASK(11, 9) 248487a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_FLUSH_CLIENT_ID GENMASK(15, 12) 248587a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_FLUSH_ERR GENMASK(17, 16) 248687a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_CACHE_STATUS_INFO0_FLUSH_COUNT GENMASK(25, 18) 248787a230ecSPavankumar Nandeshwar 248887a230ecSPavankumar Nandeshwar struct hal_reo_flush_cache_status { 248987a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 249087a230ecSPavankumar Nandeshwar __le32 info0; 249187a230ecSPavankumar Nandeshwar __le32 rsvd0[21]; 249287a230ecSPavankumar Nandeshwar __le32 info1; 249387a230ecSPavankumar Nandeshwar } __packed; 249487a230ecSPavankumar Nandeshwar 249587a230ecSPavankumar Nandeshwar /* hal_reo_flush_cache_status 249687a230ecSPavankumar Nandeshwar * Producer: REO 249787a230ecSPavankumar Nandeshwar * Consumer: SW 249887a230ecSPavankumar Nandeshwar * 249987a230ecSPavankumar Nandeshwar * status_hdr 250087a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 250187a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 250287a230ecSPavankumar Nandeshwar * 250387a230ecSPavankumar Nandeshwar * error_detected 250487a230ecSPavankumar Nandeshwar * Status for blocking resource handling 250587a230ecSPavankumar Nandeshwar * 250687a230ecSPavankumar Nandeshwar * 0 - No error has been detected while executing this command 250787a230ecSPavankumar Nandeshwar * 1 - An error in the blocking resource management was detected 250887a230ecSPavankumar Nandeshwar * 250987a230ecSPavankumar Nandeshwar * block_error_details 251087a230ecSPavankumar Nandeshwar * only valid when error_detected is set 251187a230ecSPavankumar Nandeshwar * 251287a230ecSPavankumar Nandeshwar * 0 - No blocking related errors found 251387a230ecSPavankumar Nandeshwar * 1 - Blocking resource is already in use 251487a230ecSPavankumar Nandeshwar * 2 - Resource requested to be unblocked, was not blocked 251587a230ecSPavankumar Nandeshwar * 251687a230ecSPavankumar Nandeshwar * cache_controller_flush_status_hit 251787a230ecSPavankumar Nandeshwar * The status that the cache controller returned on executing the 251887a230ecSPavankumar Nandeshwar * flush command. 251987a230ecSPavankumar Nandeshwar * 252087a230ecSPavankumar Nandeshwar * 0 - miss; 1 - hit 252187a230ecSPavankumar Nandeshwar * 252287a230ecSPavankumar Nandeshwar * cache_controller_flush_status_desc_type 252387a230ecSPavankumar Nandeshwar * Flush descriptor type 252487a230ecSPavankumar Nandeshwar * 252587a230ecSPavankumar Nandeshwar * cache_controller_flush_status_client_id 252687a230ecSPavankumar Nandeshwar * Module who made the flush request 252787a230ecSPavankumar Nandeshwar * 252887a230ecSPavankumar Nandeshwar * In REO, this is always 0 252987a230ecSPavankumar Nandeshwar * 253087a230ecSPavankumar Nandeshwar * cache_controller_flush_status_error 253187a230ecSPavankumar Nandeshwar * Error condition 253287a230ecSPavankumar Nandeshwar * 253387a230ecSPavankumar Nandeshwar * 0 - No error found 253487a230ecSPavankumar Nandeshwar * 1 - HW interface is still busy 253587a230ecSPavankumar Nandeshwar * 2 - Line currently locked. Used for one line flush command 253687a230ecSPavankumar Nandeshwar * 3 - At least one line is still locked. 253787a230ecSPavankumar Nandeshwar * Used for cache flush command. 253887a230ecSPavankumar Nandeshwar * 253987a230ecSPavankumar Nandeshwar * cache_controller_flush_count 254087a230ecSPavankumar Nandeshwar * The number of lines that were actually flushed out 254187a230ecSPavankumar Nandeshwar * 254287a230ecSPavankumar Nandeshwar * looping_count 254387a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 254487a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 254587a230ecSPavankumar Nandeshwar */ 254687a230ecSPavankumar Nandeshwar 254787a230ecSPavankumar Nandeshwar #define HAL_REO_UNBLOCK_CACHE_STATUS_INFO0_IS_ERR BIT(0) 254887a230ecSPavankumar Nandeshwar #define HAL_REO_UNBLOCK_CACHE_STATUS_INFO0_TYPE BIT(1) 254987a230ecSPavankumar Nandeshwar 255087a230ecSPavankumar Nandeshwar struct hal_reo_unblock_cache_status { 255187a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 255287a230ecSPavankumar Nandeshwar __le32 info0; 255387a230ecSPavankumar Nandeshwar __le32 rsvd0[21]; 255487a230ecSPavankumar Nandeshwar __le32 info1; 255587a230ecSPavankumar Nandeshwar } __packed; 255687a230ecSPavankumar Nandeshwar 255787a230ecSPavankumar Nandeshwar /* hal_reo_unblock_cache_status 255887a230ecSPavankumar Nandeshwar * Producer: REO 255987a230ecSPavankumar Nandeshwar * Consumer: SW 256087a230ecSPavankumar Nandeshwar * 256187a230ecSPavankumar Nandeshwar * status_hdr 256287a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 256387a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 256487a230ecSPavankumar Nandeshwar * 256587a230ecSPavankumar Nandeshwar * error_detected 256687a230ecSPavankumar Nandeshwar * 0 - No error has been detected while executing this command 256787a230ecSPavankumar Nandeshwar * 1 - The blocking resource was not in use, and therefore it could 256887a230ecSPavankumar Nandeshwar * not be unblocked. 256987a230ecSPavankumar Nandeshwar * 257087a230ecSPavankumar Nandeshwar * unblock_type 257187a230ecSPavankumar Nandeshwar * Reference to the type of unblock command 257287a230ecSPavankumar Nandeshwar * 0 - Unblock a blocking resource 257387a230ecSPavankumar Nandeshwar * 1 - The entire cache usage is unblock 257487a230ecSPavankumar Nandeshwar * 257587a230ecSPavankumar Nandeshwar * looping_count 257687a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 257787a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 257887a230ecSPavankumar Nandeshwar */ 257987a230ecSPavankumar Nandeshwar 258087a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_TIMEOUT_STATUS_INFO0_IS_ERR BIT(0) 258187a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_TIMEOUT_STATUS_INFO0_LIST_EMPTY BIT(1) 258287a230ecSPavankumar Nandeshwar 258387a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_TIMEOUT_STATUS_INFO1_REL_DESC_COUNT GENMASK(15, 0) 258487a230ecSPavankumar Nandeshwar #define HAL_REO_FLUSH_TIMEOUT_STATUS_INFO1_FWD_BUF_COUNT GENMASK(31, 16) 258587a230ecSPavankumar Nandeshwar 258687a230ecSPavankumar Nandeshwar struct hal_reo_flush_timeout_list_status { 258787a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 258887a230ecSPavankumar Nandeshwar __le32 info0; 258987a230ecSPavankumar Nandeshwar __le32 info1; 259087a230ecSPavankumar Nandeshwar __le32 rsvd0[20]; 259187a230ecSPavankumar Nandeshwar __le32 info2; 259287a230ecSPavankumar Nandeshwar } __packed; 259387a230ecSPavankumar Nandeshwar 259487a230ecSPavankumar Nandeshwar /* hal_reo_flush_timeout_list_status 259587a230ecSPavankumar Nandeshwar * Producer: REO 259687a230ecSPavankumar Nandeshwar * Consumer: SW 259787a230ecSPavankumar Nandeshwar * 259887a230ecSPavankumar Nandeshwar * status_hdr 259987a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 260087a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 260187a230ecSPavankumar Nandeshwar * 260287a230ecSPavankumar Nandeshwar * error_detected 260387a230ecSPavankumar Nandeshwar * 0 - No error has been detected while executing this command 260487a230ecSPavankumar Nandeshwar * 1 - Command not properly executed and returned with error 260587a230ecSPavankumar Nandeshwar * 260687a230ecSPavankumar Nandeshwar * timeout_list_empty 260787a230ecSPavankumar Nandeshwar * When set, REO has depleted the timeout list and all entries are 260887a230ecSPavankumar Nandeshwar * gone. 260987a230ecSPavankumar Nandeshwar * 261087a230ecSPavankumar Nandeshwar * release_desc_count 261187a230ecSPavankumar Nandeshwar * Producer: SW; Consumer: REO 261287a230ecSPavankumar Nandeshwar * The number of link descriptor released 261387a230ecSPavankumar Nandeshwar * 261487a230ecSPavankumar Nandeshwar * forward_buf_count 261587a230ecSPavankumar Nandeshwar * Producer: SW; Consumer: REO 261687a230ecSPavankumar Nandeshwar * The number of buffers forwarded to the REO destination rings 261787a230ecSPavankumar Nandeshwar * 261887a230ecSPavankumar Nandeshwar * looping_count 261987a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 262087a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 262187a230ecSPavankumar Nandeshwar */ 262287a230ecSPavankumar Nandeshwar 262387a230ecSPavankumar Nandeshwar #define HAL_REO_DESC_THRESH_STATUS_INFO0_THRESH_INDEX GENMASK(1, 0) 262487a230ecSPavankumar Nandeshwar #define HAL_REO_DESC_THRESH_STATUS_INFO1_LINK_DESC_COUNTER0 GENMASK(23, 0) 262587a230ecSPavankumar Nandeshwar #define HAL_REO_DESC_THRESH_STATUS_INFO2_LINK_DESC_COUNTER1 GENMASK(23, 0) 262687a230ecSPavankumar Nandeshwar #define HAL_REO_DESC_THRESH_STATUS_INFO3_LINK_DESC_COUNTER2 GENMASK(23, 0) 262787a230ecSPavankumar Nandeshwar #define HAL_REO_DESC_THRESH_STATUS_INFO4_LINK_DESC_COUNTER_SUM GENMASK(25, 0) 262887a230ecSPavankumar Nandeshwar 262987a230ecSPavankumar Nandeshwar struct hal_reo_desc_thresh_reached_status { 263087a230ecSPavankumar Nandeshwar struct hal_reo_status_hdr hdr; 263187a230ecSPavankumar Nandeshwar __le32 info0; 263287a230ecSPavankumar Nandeshwar __le32 info1; 263387a230ecSPavankumar Nandeshwar __le32 info2; 263487a230ecSPavankumar Nandeshwar __le32 info3; 263587a230ecSPavankumar Nandeshwar __le32 info4; 263687a230ecSPavankumar Nandeshwar __le32 rsvd0[17]; 263787a230ecSPavankumar Nandeshwar __le32 info5; 263887a230ecSPavankumar Nandeshwar } __packed; 263987a230ecSPavankumar Nandeshwar 264087a230ecSPavankumar Nandeshwar /* hal_reo_desc_thresh_reached_status 264187a230ecSPavankumar Nandeshwar * Producer: REO 264287a230ecSPavankumar Nandeshwar * Consumer: SW 264387a230ecSPavankumar Nandeshwar * 264487a230ecSPavankumar Nandeshwar * status_hdr 264587a230ecSPavankumar Nandeshwar * Details that can link this status with the original command. It 264687a230ecSPavankumar Nandeshwar * also contains info on how long REO took to execute this command. 264787a230ecSPavankumar Nandeshwar * 264887a230ecSPavankumar Nandeshwar * threshold_index 264987a230ecSPavankumar Nandeshwar * The index of the threshold register whose value got reached 265087a230ecSPavankumar Nandeshwar * 265187a230ecSPavankumar Nandeshwar * link_descriptor_counter0 265287a230ecSPavankumar Nandeshwar * link_descriptor_counter1 265387a230ecSPavankumar Nandeshwar * link_descriptor_counter2 265487a230ecSPavankumar Nandeshwar * link_descriptor_counter_sum 265587a230ecSPavankumar Nandeshwar * Value of the respective counters at generation of this message 265687a230ecSPavankumar Nandeshwar * 265787a230ecSPavankumar Nandeshwar * looping_count 265887a230ecSPavankumar Nandeshwar * A count value that indicates the number of times the producer of 265987a230ecSPavankumar Nandeshwar * entries into this Ring has looped around the ring. 266087a230ecSPavankumar Nandeshwar */ 266187a230ecSPavankumar Nandeshwar 266287a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_DATA_LENGTH GENMASK(13, 0) 266387a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_L4_CSUM_STATUS BIT(14) 266487a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_L3_CSUM_STATUS BIT(15) 266587a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_PID GENMASK(27, 24) 266687a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_QDISC BIT(28) 266787a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_MULTICAST BIT(29) 266887a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_MORE BIT(30) 266987a230ecSPavankumar Nandeshwar #define HAL_TCL_ENTRANCE_FROM_PPE_RING_INFO0_VALID_TOGGLE BIT(31) 267087a230ecSPavankumar Nandeshwar 267187a230ecSPavankumar Nandeshwar struct hal_tcl_entrance_from_ppe_ring { 267287a230ecSPavankumar Nandeshwar __le32 buffer_addr; 267387a230ecSPavankumar Nandeshwar __le32 info0; 267487a230ecSPavankumar Nandeshwar } __packed; 267587a230ecSPavankumar Nandeshwar 267687a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_COOKIE_BUF_ID GENMASK(17, 0) 267787a230ecSPavankumar Nandeshwar 267887a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_END_OFFSET GENMASK(11, 0) 267987a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_END_REASON GENMASK(17, 16) 268087a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_INITIATOR BIT(18) 268187a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_EMPTY_DESC BIT(19) 268287a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_RING_ID GENMASK(27, 20) 268387a230ecSPavankumar Nandeshwar #define HAL_MON_DEST_INFO0_LOOPING_COUNT GENMASK(31, 28) 268487a230ecSPavankumar Nandeshwar 268587a230ecSPavankumar Nandeshwar struct hal_mon_dest_desc { 268687a230ecSPavankumar Nandeshwar __le32 cookie; 268787a230ecSPavankumar Nandeshwar __le32 reserved; 268887a230ecSPavankumar Nandeshwar __le32 ppdu_id; 268987a230ecSPavankumar Nandeshwar __le32 info0; 269087a230ecSPavankumar Nandeshwar }; 269187a230ecSPavankumar Nandeshwar 269287a230ecSPavankumar Nandeshwar /* hal_mon_dest_ring 269387a230ecSPavankumar Nandeshwar * Producer : TxMon/RxMon 269487a230ecSPavankumar Nandeshwar * Consumer : SW 269587a230ecSPavankumar Nandeshwar * cookie 269687a230ecSPavankumar Nandeshwar * bit 0 -17 buf_id to track the skb's vaddr. 269787a230ecSPavankumar Nandeshwar * ppdu_id 269887a230ecSPavankumar Nandeshwar * Phy ppdu_id 269987a230ecSPavankumar Nandeshwar * end_offset 270087a230ecSPavankumar Nandeshwar * The offset into status buffer where DMA ended, ie., offset to the last 270187a230ecSPavankumar Nandeshwar * TLV + last TLV size. 270287a230ecSPavankumar Nandeshwar * flush_detected 270387a230ecSPavankumar Nandeshwar * Indicates whether 'tx_flush' or 'rx_flush' occurred. 270487a230ecSPavankumar Nandeshwar * end_of_ppdu 270587a230ecSPavankumar Nandeshwar * Indicates end of ppdu. 270687a230ecSPavankumar Nandeshwar * pmac_id 270787a230ecSPavankumar Nandeshwar * Indicates PMAC that received from frame. 270887a230ecSPavankumar Nandeshwar * empty_descriptor 270987a230ecSPavankumar Nandeshwar * This descriptor is written on flush or end of ppdu or end of status 271087a230ecSPavankumar Nandeshwar * buffer. 271187a230ecSPavankumar Nandeshwar * ring_id 271287a230ecSPavankumar Nandeshwar * updated by SRNG. 271387a230ecSPavankumar Nandeshwar * looping_count 271487a230ecSPavankumar Nandeshwar * updated by SRNG. 271587a230ecSPavankumar Nandeshwar */ 271687a230ecSPavankumar Nandeshwar 271787a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_METADATA_INFO0_ENCRYPT_FLAG BIT(8) 271887a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_METADATA_INFO0_ENCRYPT_TYPE GENMASK(16, 15) 271987a230ecSPavankumar Nandeshwar #define HAL_TX_MSDU_METADATA_INFO0_HOST_TX_DESC_POOL BIT(31) 272087a230ecSPavankumar Nandeshwar 272187a230ecSPavankumar Nandeshwar struct hal_tx_msdu_metadata { 272287a230ecSPavankumar Nandeshwar __le32 info0; 272387a230ecSPavankumar Nandeshwar __le32 rsvd0[6]; 272487a230ecSPavankumar Nandeshwar } __packed; 272587a230ecSPavankumar Nandeshwar 272687a230ecSPavankumar Nandeshwar /* hal_tx_msdu_metadata 272787a230ecSPavankumar Nandeshwar * valid_encrypt_type 272887a230ecSPavankumar Nandeshwar * if set, encrypt type is valid 272987a230ecSPavankumar Nandeshwar * encrypt_type 273087a230ecSPavankumar Nandeshwar * 0 = NO_ENCRYPT, 273187a230ecSPavankumar Nandeshwar * 1 = ENCRYPT, 273287a230ecSPavankumar Nandeshwar * 2 ~ 3 - Reserved 273387a230ecSPavankumar Nandeshwar * host_tx_desc_pool 273487a230ecSPavankumar Nandeshwar * If set, Firmware allocates tx_descriptors 273587a230ecSPavankumar Nandeshwar * in WAL_BUFFERID_TX_HOST_DATA_EXP,instead 273687a230ecSPavankumar Nandeshwar * of WAL_BUFFERID_TX_TCL_DATA_EXP. 273787a230ecSPavankumar Nandeshwar * Use cases: 273887a230ecSPavankumar Nandeshwar * Any time firmware uses TQM-BYPASS for Data 273987a230ecSPavankumar Nandeshwar * TID, firmware expect host to set this bit. 274087a230ecSPavankumar Nandeshwar */ 274187a230ecSPavankumar Nandeshwar 274287a230ecSPavankumar Nandeshwar #endif /* ATH12K_HAL_DESC_H */ 2743