1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name 18*5113495bSYour Name #ifndef _RECEIVED_TRIGGER_INFO_DETAILS_H_ 19*5113495bSYour Name #define _RECEIVED_TRIGGER_INFO_DETAILS_H_ 20*5113495bSYour Name 21*5113495bSYour Name #define NUM_OF_DWORDS_RECEIVED_TRIGGER_INFO_DETAILS 5 22*5113495bSYour Name 23*5113495bSYour Name struct received_trigger_info_details { 24*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 25*5113495bSYour Name uint32_t trigger_type : 4, 26*5113495bSYour Name ax_trigger_source : 1, 27*5113495bSYour Name ax_trigger_type : 4, 28*5113495bSYour Name trigger_source_sta_full_aid : 13, 29*5113495bSYour Name frame_control_valid : 1, 30*5113495bSYour Name qos_control_valid : 1, 31*5113495bSYour Name he_control_info_valid : 1, 32*5113495bSYour Name __reserved_g_0005_trigger_subtype : 4, 33*5113495bSYour Name txop_sharing_mode : 2, 34*5113495bSYour Name tid_aggregation_limit_is_zero : 1; 35*5113495bSYour Name uint32_t phy_ppdu_id : 16, 36*5113495bSYour Name lsig_response_length : 12, 37*5113495bSYour Name reserved_1a : 4; 38*5113495bSYour Name uint32_t frame_control : 16, 39*5113495bSYour Name qos_control : 16; 40*5113495bSYour Name uint32_t sw_peer_id : 16, 41*5113495bSYour Name txop_sharing_allocation_duration : 9, 42*5113495bSYour Name reserved_3a : 7; 43*5113495bSYour Name uint32_t he_control : 32; 44*5113495bSYour Name #else 45*5113495bSYour Name uint32_t tid_aggregation_limit_is_zero : 1, 46*5113495bSYour Name txop_sharing_mode : 2, 47*5113495bSYour Name __reserved_g_0005_trigger_subtype : 4, 48*5113495bSYour Name he_control_info_valid : 1, 49*5113495bSYour Name qos_control_valid : 1, 50*5113495bSYour Name frame_control_valid : 1, 51*5113495bSYour Name trigger_source_sta_full_aid : 13, 52*5113495bSYour Name ax_trigger_type : 4, 53*5113495bSYour Name ax_trigger_source : 1, 54*5113495bSYour Name trigger_type : 4; 55*5113495bSYour Name uint32_t reserved_1a : 4, 56*5113495bSYour Name lsig_response_length : 12, 57*5113495bSYour Name phy_ppdu_id : 16; 58*5113495bSYour Name uint32_t qos_control : 16, 59*5113495bSYour Name frame_control : 16; 60*5113495bSYour Name uint32_t reserved_3a : 7, 61*5113495bSYour Name txop_sharing_allocation_duration : 9, 62*5113495bSYour Name sw_peer_id : 16; 63*5113495bSYour Name uint32_t he_control : 32; 64*5113495bSYour Name #endif 65*5113495bSYour Name }; 66*5113495bSYour Name 67*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_TYPE_OFFSET 0x00000000 68*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_TYPE_LSB 0 69*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_TYPE_MSB 3 70*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_TYPE_MASK 0x0000000f 71*5113495bSYour Name 72*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_SOURCE_OFFSET 0x00000000 73*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_SOURCE_LSB 4 74*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_SOURCE_MSB 4 75*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_SOURCE_MASK 0x00000010 76*5113495bSYour Name 77*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_TYPE_OFFSET 0x00000000 78*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_TYPE_LSB 5 79*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_TYPE_MSB 8 80*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_AX_TRIGGER_TYPE_MASK 0x000001e0 81*5113495bSYour Name 82*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_SOURCE_STA_FULL_AID_OFFSET 0x00000000 83*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_SOURCE_STA_FULL_AID_LSB 9 84*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_SOURCE_STA_FULL_AID_MSB 21 85*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TRIGGER_SOURCE_STA_FULL_AID_MASK 0x003ffe00 86*5113495bSYour Name 87*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_VALID_OFFSET 0x00000000 88*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_VALID_LSB 22 89*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_VALID_MSB 22 90*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_VALID_MASK 0x00400000 91*5113495bSYour Name 92*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_VALID_OFFSET 0x00000000 93*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_VALID_LSB 23 94*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_VALID_MSB 23 95*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_VALID_MASK 0x00800000 96*5113495bSYour Name 97*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_INFO_VALID_OFFSET 0x00000000 98*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_INFO_VALID_LSB 24 99*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_INFO_VALID_MSB 24 100*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_INFO_VALID_MASK 0x01000000 101*5113495bSYour Name 102*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RANGING_TRIGGER_SUBTYPE_OFFSET 0x00000000 103*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RANGING_TRIGGER_SUBTYPE_LSB 25 104*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RANGING_TRIGGER_SUBTYPE_MSB 28 105*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RANGING_TRIGGER_SUBTYPE_MASK 0x1e000000 106*5113495bSYour Name 107*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_MODE_OFFSET 0x00000000 108*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_MODE_LSB 29 109*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_MODE_MSB 30 110*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_MODE_MASK 0x60000000 111*5113495bSYour Name 112*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TID_AGGREGATION_LIMIT_IS_ZERO_OFFSET 0x00000000 113*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TID_AGGREGATION_LIMIT_IS_ZERO_LSB 31 114*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TID_AGGREGATION_LIMIT_IS_ZERO_MSB 31 115*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TID_AGGREGATION_LIMIT_IS_ZERO_MASK 0x80000000 116*5113495bSYour Name 117*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_OFFSET 0x00000004 118*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_LSB 0 119*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_MSB 15 120*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_MASK 0x0000ffff 121*5113495bSYour Name 122*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_OFFSET 0x00000004 123*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_LSB 16 124*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_MSB 27 125*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_MASK 0x0fff0000 126*5113495bSYour Name 127*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_OFFSET 0x00000004 128*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_LSB 28 129*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_MSB 31 130*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_MASK 0xf0000000 131*5113495bSYour Name 132*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_OFFSET 0x00000008 133*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_LSB 0 134*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_MSB 15 135*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_MASK 0x0000ffff 136*5113495bSYour Name 137*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_OFFSET 0x00000008 138*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_LSB 16 139*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_MSB 31 140*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_MASK 0xffff0000 141*5113495bSYour Name 142*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_OFFSET 0x0000000c 143*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_LSB 0 144*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_MSB 15 145*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_MASK 0x0000ffff 146*5113495bSYour Name 147*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_ALLOCATION_DURATION_OFFSET 0x0000000c 148*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_ALLOCATION_DURATION_LSB 16 149*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_ALLOCATION_DURATION_MSB 24 150*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_TXOP_SHARING_ALLOCATION_DURATION_MASK 0x01ff0000 151*5113495bSYour Name 152*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_OFFSET 0x0000000c 153*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_LSB 25 154*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_MSB 31 155*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_MASK 0xfe000000 156*5113495bSYour Name 157*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_OFFSET 0x00000010 158*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_LSB 0 159*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_MSB 31 160*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_MASK 0xffffffff 161*5113495bSYour Name 162*5113495bSYour Name #endif 163