1 2 /* 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 19 20 #ifndef _RX_START_PARAM_H_ 21 #define _RX_START_PARAM_H_ 22 #if !defined(__ASSEMBLER__) 23 #endif 24 25 #define NUM_OF_DWORDS_RX_START_PARAM 2 26 27 #define NUM_OF_QWORDS_RX_START_PARAM 1 28 29 struct rx_start_param { 30 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 31 uint32_t pkt_type : 4, 32 reserved_0a : 12, 33 remaining_rx_time : 16; 34 uint32_t tlv64_padding : 32; 35 #else 36 uint32_t remaining_rx_time : 16, 37 reserved_0a : 12, 38 pkt_type : 4; 39 uint32_t tlv64_padding : 32; 40 #endif 41 }; 42 43 #define RX_START_PARAM_PKT_TYPE_OFFSET 0x0000000000000000 44 #define RX_START_PARAM_PKT_TYPE_LSB 0 45 #define RX_START_PARAM_PKT_TYPE_MSB 3 46 #define RX_START_PARAM_PKT_TYPE_MASK 0x000000000000000f 47 48 #define RX_START_PARAM_RESERVED_0A_OFFSET 0x0000000000000000 49 #define RX_START_PARAM_RESERVED_0A_LSB 4 50 #define RX_START_PARAM_RESERVED_0A_MSB 15 51 #define RX_START_PARAM_RESERVED_0A_MASK 0x000000000000fff0 52 53 #define RX_START_PARAM_REMAINING_RX_TIME_OFFSET 0x0000000000000000 54 #define RX_START_PARAM_REMAINING_RX_TIME_LSB 16 55 #define RX_START_PARAM_REMAINING_RX_TIME_MSB 31 56 #define RX_START_PARAM_REMAINING_RX_TIME_MASK 0x00000000ffff0000 57 58 #define RX_START_PARAM_TLV64_PADDING_OFFSET 0x0000000000000000 59 #define RX_START_PARAM_TLV64_PADDING_LSB 32 60 #define RX_START_PARAM_TLV64_PADDING_MSB 63 61 #define RX_START_PARAM_TLV64_PADDING_MASK 0xffffffff00000000 62 63 #endif 64