1 /* 2 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 18 #ifndef _RXPCU_EARLY_RX_INDICATION_H_ 19 #define _RXPCU_EARLY_RX_INDICATION_H_ 20 21 #define NUM_OF_DWORDS_RXPCU_EARLY_RX_INDICATION 1 22 23 struct rxpcu_early_rx_indication { 24 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 25 uint32_t pkt_type : 4, 26 dot11ax_su_extended : 1, 27 rate_mcs : 4, 28 dot11ax_received_ext_ru_size : 4, 29 reserved_0a : 19; 30 #else 31 uint32_t reserved_0a : 19, 32 dot11ax_received_ext_ru_size : 4, 33 rate_mcs : 4, 34 dot11ax_su_extended : 1, 35 pkt_type : 4; 36 #endif 37 }; 38 39 #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_OFFSET 0x00000000 40 #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_LSB 0 41 #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_MSB 3 42 #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_MASK 0x0000000f 43 44 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_OFFSET 0x00000000 45 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_LSB 4 46 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_MSB 4 47 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_MASK 0x00000010 48 49 #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_OFFSET 0x00000000 50 #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_LSB 5 51 #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_MSB 8 52 #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_MASK 0x000001e0 53 54 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_OFFSET 0x00000000 55 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_LSB 9 56 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_MSB 12 57 #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_MASK 0x00001e00 58 59 #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_OFFSET 0x00000000 60 #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_LSB 13 61 #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_MSB 31 62 #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_MASK 0xffffe000 63 64 #endif 65