xref: /wlan-driver/fw-api/hw/kiwi/v2/received_trigger_info_details.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /*
3*5113495bSYour Name  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
6*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
7*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*5113495bSYour Name  */
17*5113495bSYour Name 
18*5113495bSYour Name 
19*5113495bSYour Name 
20*5113495bSYour Name #ifndef _RECEIVED_TRIGGER_INFO_DETAILS_H_
21*5113495bSYour Name #define _RECEIVED_TRIGGER_INFO_DETAILS_H_
22*5113495bSYour Name #if !defined(__ASSEMBLER__)
23*5113495bSYour Name #endif
24*5113495bSYour Name 
25*5113495bSYour Name #define NUM_OF_DWORDS_RECEIVED_TRIGGER_INFO_DETAILS 5
26*5113495bSYour Name 
27*5113495bSYour Name struct received_trigger_info_details {
28*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
29*5113495bSYour Name              uint32_t trigger_type                                            :  4,
30*5113495bSYour Name                       ax_trigger_source                                       :  1,
31*5113495bSYour Name                       ax_trigger_type                                         :  4,
32*5113495bSYour Name                       trigger_source_sta_full_aid                             : 13,
33*5113495bSYour Name                       frame_control_valid                                     :  1,
34*5113495bSYour Name                       qos_control_valid                                       :  1,
35*5113495bSYour Name                       he_control_info_valid                                   :  1,
36*5113495bSYour Name                       __reserved_g_0005_trigger_subtype                                 :  4,
37*5113495bSYour Name                       reserved_0b                                             :  3;
38*5113495bSYour Name              uint32_t phy_ppdu_id                                             : 16,
39*5113495bSYour Name                       lsig_response_length                                    : 12,
40*5113495bSYour Name                       reserved_1a                                             :  4;
41*5113495bSYour Name              uint32_t frame_control                                           : 16,
42*5113495bSYour Name                       qos_control                                             : 16;
43*5113495bSYour Name              uint32_t sw_peer_id                                              : 16,
44*5113495bSYour Name                       reserved_3a                                             : 16;
45*5113495bSYour Name              uint32_t he_control                                              : 32;
46*5113495bSYour Name #else
47*5113495bSYour Name              uint32_t reserved_0b                                             :  3,
48*5113495bSYour Name                       __reserved_g_0005_trigger_subtype                                 :  4,
49*5113495bSYour Name                       he_control_info_valid                                   :  1,
50*5113495bSYour Name                       qos_control_valid                                       :  1,
51*5113495bSYour Name                       frame_control_valid                                     :  1,
52*5113495bSYour Name                       trigger_source_sta_full_aid                             : 13,
53*5113495bSYour Name                       ax_trigger_type                                         :  4,
54*5113495bSYour Name                       ax_trigger_source                                       :  1,
55*5113495bSYour Name                       trigger_type                                            :  4;
56*5113495bSYour Name              uint32_t reserved_1a                                             :  4,
57*5113495bSYour Name                       lsig_response_length                                    : 12,
58*5113495bSYour Name                       phy_ppdu_id                                             : 16;
59*5113495bSYour Name              uint32_t qos_control                                             : 16,
60*5113495bSYour Name                       frame_control                                           : 16;
61*5113495bSYour Name              uint32_t reserved_3a                                             : 16,
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_RESERVED_0B_OFFSET                            0x00000000
108*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_0B_LSB                               29
109*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_0B_MSB                               31
110*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_0B_MASK                              0xe0000000
111*5113495bSYour Name 
112*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_OFFSET                            0x00000004
113*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_LSB                               0
114*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_MSB                               15
115*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_PHY_PPDU_ID_MASK                              0x0000ffff
116*5113495bSYour Name 
117*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_OFFSET                   0x00000004
118*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_LSB                      16
119*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_MSB                      27
120*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_LSIG_RESPONSE_LENGTH_MASK                     0x0fff0000
121*5113495bSYour Name 
122*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_OFFSET                            0x00000004
123*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_LSB                               28
124*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_MSB                               31
125*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_1A_MASK                              0xf0000000
126*5113495bSYour Name 
127*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_OFFSET                          0x00000008
128*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_LSB                             0
129*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_MSB                             15
130*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_FRAME_CONTROL_MASK                            0x0000ffff
131*5113495bSYour Name 
132*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_OFFSET                            0x00000008
133*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_LSB                               16
134*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_MSB                               31
135*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_QOS_CONTROL_MASK                              0xffff0000
136*5113495bSYour Name 
137*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_OFFSET                             0x0000000c
138*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_LSB                                0
139*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_MSB                                15
140*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_SW_PEER_ID_MASK                               0x0000ffff
141*5113495bSYour Name 
142*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_OFFSET                            0x0000000c
143*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_LSB                               16
144*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_MSB                               31
145*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_RESERVED_3A_MASK                              0xffff0000
146*5113495bSYour Name 
147*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_OFFSET                             0x00000010
148*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_LSB                                0
149*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_MSB                                31
150*5113495bSYour Name #define RECEIVED_TRIGGER_INFO_DETAILS_HE_CONTROL_MASK                               0xffffffff
151*5113495bSYour Name 
152*5113495bSYour Name #endif
153