1 2 /* 3 * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. 4 * SPDX-License-Identifier: ISC 5 */ 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #ifndef _RX_PREAMBLE_H_ 20 #define _RX_PREAMBLE_H_ 21 #if !defined(__ASSEMBLER__) 22 #endif 23 24 #define NUM_OF_DWORDS_RX_PREAMBLE 2 25 26 #define NUM_OF_QWORDS_RX_PREAMBLE 1 27 28 29 struct rx_preamble { 30 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 31 uint32_t num_users : 6, 32 pkt_type : 4, 33 direction : 1, 34 reserved_0a : 21; 35 uint32_t tlv64_padding : 32; 36 #else 37 uint32_t reserved_0a : 21, 38 direction : 1, 39 pkt_type : 4, 40 num_users : 6; 41 uint32_t tlv64_padding : 32; 42 #endif 43 }; 44 45 46 47 48 #define RX_PREAMBLE_NUM_USERS_OFFSET 0x0000000000000000 49 #define RX_PREAMBLE_NUM_USERS_LSB 0 50 #define RX_PREAMBLE_NUM_USERS_MSB 5 51 #define RX_PREAMBLE_NUM_USERS_MASK 0x000000000000003f 52 53 54 55 56 #define RX_PREAMBLE_PKT_TYPE_OFFSET 0x0000000000000000 57 #define RX_PREAMBLE_PKT_TYPE_LSB 6 58 #define RX_PREAMBLE_PKT_TYPE_MSB 9 59 #define RX_PREAMBLE_PKT_TYPE_MASK 0x00000000000003c0 60 61 62 63 64 #define RX_PREAMBLE_DIRECTION_OFFSET 0x0000000000000000 65 #define RX_PREAMBLE_DIRECTION_LSB 10 66 #define RX_PREAMBLE_DIRECTION_MSB 10 67 #define RX_PREAMBLE_DIRECTION_MASK 0x0000000000000400 68 69 70 71 72 #define RX_PREAMBLE_RESERVED_0A_OFFSET 0x0000000000000000 73 #define RX_PREAMBLE_RESERVED_0A_LSB 11 74 #define RX_PREAMBLE_RESERVED_0A_MSB 31 75 #define RX_PREAMBLE_RESERVED_0A_MASK 0x00000000fffff800 76 77 78 79 80 #define RX_PREAMBLE_TLV64_PADDING_OFFSET 0x0000000000000000 81 #define RX_PREAMBLE_TLV64_PADDING_LSB 32 82 #define RX_PREAMBLE_TLV64_PADDING_MSB 63 83 #define RX_PREAMBLE_TLV64_PADDING_MASK 0xffffffff00000000 84 85 86 87 #endif 88