1*5113495bSYour Name 2*5113495bSYour Name /* 3*5113495bSYour Name * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * SPDX-License-Identifier: ISC 5*5113495bSYour Name */ 6*5113495bSYour Name 7*5113495bSYour Name 8*5113495bSYour Name 9*5113495bSYour Name 10*5113495bSYour Name 11*5113495bSYour Name 12*5113495bSYour Name 13*5113495bSYour Name 14*5113495bSYour Name 15*5113495bSYour Name 16*5113495bSYour Name 17*5113495bSYour Name 18*5113495bSYour Name 19*5113495bSYour Name #ifndef _RX_MPDU_DESC_INFO_H_ 20*5113495bSYour Name #define _RX_MPDU_DESC_INFO_H_ 21*5113495bSYour Name #if !defined(__ASSEMBLER__) 22*5113495bSYour Name #endif 23*5113495bSYour Name 24*5113495bSYour Name #define NUM_OF_DWORDS_RX_MPDU_DESC_INFO 2 25*5113495bSYour Name 26*5113495bSYour Name 27*5113495bSYour Name struct rx_mpdu_desc_info { 28*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 29*5113495bSYour Name uint32_t msdu_count : 8, 30*5113495bSYour Name fragment_flag : 1, 31*5113495bSYour Name mpdu_retry_bit : 1, 32*5113495bSYour Name ampdu_flag : 1, 33*5113495bSYour Name bar_frame : 1, 34*5113495bSYour Name pn_fields_contain_valid_info : 1, 35*5113495bSYour Name raw_mpdu : 1, 36*5113495bSYour Name more_fragment_flag : 1, 37*5113495bSYour Name src_info : 12, 38*5113495bSYour Name mpdu_qos_control_valid : 1, 39*5113495bSYour Name tid : 4; 40*5113495bSYour Name uint32_t peer_meta_data : 32; 41*5113495bSYour Name #else 42*5113495bSYour Name uint32_t tid : 4, 43*5113495bSYour Name mpdu_qos_control_valid : 1, 44*5113495bSYour Name src_info : 12, 45*5113495bSYour Name more_fragment_flag : 1, 46*5113495bSYour Name raw_mpdu : 1, 47*5113495bSYour Name pn_fields_contain_valid_info : 1, 48*5113495bSYour Name bar_frame : 1, 49*5113495bSYour Name ampdu_flag : 1, 50*5113495bSYour Name mpdu_retry_bit : 1, 51*5113495bSYour Name fragment_flag : 1, 52*5113495bSYour Name msdu_count : 8; 53*5113495bSYour Name uint32_t peer_meta_data : 32; 54*5113495bSYour Name #endif 55*5113495bSYour Name }; 56*5113495bSYour Name 57*5113495bSYour Name 58*5113495bSYour Name 59*5113495bSYour Name 60*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_OFFSET 0x00000000 61*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_LSB 0 62*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_MSB 7 63*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_MASK 0x000000ff 64*5113495bSYour Name 65*5113495bSYour Name 66*5113495bSYour Name 67*5113495bSYour Name 68*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_OFFSET 0x00000000 69*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_LSB 8 70*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_MSB 8 71*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_MASK 0x00000100 72*5113495bSYour Name 73*5113495bSYour Name 74*5113495bSYour Name 75*5113495bSYour Name 76*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_OFFSET 0x00000000 77*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_LSB 9 78*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_MSB 9 79*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_MASK 0x00000200 80*5113495bSYour Name 81*5113495bSYour Name 82*5113495bSYour Name 83*5113495bSYour Name 84*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_OFFSET 0x00000000 85*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_LSB 10 86*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_MSB 10 87*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_MASK 0x00000400 88*5113495bSYour Name 89*5113495bSYour Name 90*5113495bSYour Name 91*5113495bSYour Name 92*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_OFFSET 0x00000000 93*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_LSB 11 94*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_MSB 11 95*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_MASK 0x00000800 96*5113495bSYour Name 97*5113495bSYour Name 98*5113495bSYour Name 99*5113495bSYour Name 100*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET 0x00000000 101*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_LSB 12 102*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_MSB 12 103*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_MASK 0x00001000 104*5113495bSYour Name 105*5113495bSYour Name 106*5113495bSYour Name 107*5113495bSYour Name 108*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_OFFSET 0x00000000 109*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_LSB 13 110*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_MSB 13 111*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_MASK 0x00002000 112*5113495bSYour Name 113*5113495bSYour Name 114*5113495bSYour Name 115*5113495bSYour Name 116*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_OFFSET 0x00000000 117*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_LSB 14 118*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_MSB 14 119*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_MASK 0x00004000 120*5113495bSYour Name 121*5113495bSYour Name 122*5113495bSYour Name 123*5113495bSYour Name 124*5113495bSYour Name #define RX_MPDU_DESC_INFO_SRC_INFO_OFFSET 0x00000000 125*5113495bSYour Name #define RX_MPDU_DESC_INFO_SRC_INFO_LSB 15 126*5113495bSYour Name #define RX_MPDU_DESC_INFO_SRC_INFO_MSB 26 127*5113495bSYour Name #define RX_MPDU_DESC_INFO_SRC_INFO_MASK 0x07ff8000 128*5113495bSYour Name 129*5113495bSYour Name 130*5113495bSYour Name 131*5113495bSYour Name 132*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_OFFSET 0x00000000 133*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_LSB 27 134*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_MSB 27 135*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_MASK 0x08000000 136*5113495bSYour Name 137*5113495bSYour Name 138*5113495bSYour Name 139*5113495bSYour Name 140*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_OFFSET 0x00000000 141*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_LSB 28 142*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_MSB 31 143*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_MASK 0xf0000000 144*5113495bSYour Name 145*5113495bSYour Name 146*5113495bSYour Name 147*5113495bSYour Name 148*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_OFFSET 0x00000004 149*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_LSB 0 150*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_MSB 31 151*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_MASK 0xffffffff 152*5113495bSYour Name 153*5113495bSYour Name 154*5113495bSYour Name 155*5113495bSYour Name #endif 156