xref: /wlan-driver/fw-api/hw/qca5424/rx_ppdu_start.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
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_PPDU_START_H_
20*5113495bSYour Name #define _RX_PPDU_START_H_
21*5113495bSYour Name #if !defined(__ASSEMBLER__)
22*5113495bSYour Name #endif
23*5113495bSYour Name 
24*5113495bSYour Name #define NUM_OF_DWORDS_RX_PPDU_START 6
25*5113495bSYour Name 
26*5113495bSYour Name #define NUM_OF_QWORDS_RX_PPDU_START 3
27*5113495bSYour Name 
28*5113495bSYour Name 
29*5113495bSYour Name struct rx_ppdu_start {
30*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
31*5113495bSYour Name              uint32_t phy_ppdu_id                                             : 16,
32*5113495bSYour Name                       preamble_time_to_rxframe                                :  8,
33*5113495bSYour Name                       reserved_0a                                             :  8;
34*5113495bSYour Name              uint32_t sw_phy_meta_data                                        : 32;
35*5113495bSYour Name              uint32_t ppdu_start_timestamp_31_0                               : 32;
36*5113495bSYour Name              uint32_t ppdu_start_timestamp_63_32                              : 32;
37*5113495bSYour Name              uint32_t rxframe_assert_timestamp                                : 32;
38*5113495bSYour Name              uint32_t tlv64_padding                                           : 32;
39*5113495bSYour Name #else
40*5113495bSYour Name              uint32_t reserved_0a                                             :  8,
41*5113495bSYour Name                       preamble_time_to_rxframe                                :  8,
42*5113495bSYour Name                       phy_ppdu_id                                             : 16;
43*5113495bSYour Name              uint32_t sw_phy_meta_data                                        : 32;
44*5113495bSYour Name              uint32_t ppdu_start_timestamp_31_0                               : 32;
45*5113495bSYour Name              uint32_t ppdu_start_timestamp_63_32                              : 32;
46*5113495bSYour Name              uint32_t rxframe_assert_timestamp                                : 32;
47*5113495bSYour Name              uint32_t tlv64_padding                                           : 32;
48*5113495bSYour Name #endif
49*5113495bSYour Name };
50*5113495bSYour Name 
51*5113495bSYour Name 
52*5113495bSYour Name 
53*5113495bSYour Name 
54*5113495bSYour Name #define RX_PPDU_START_PHY_PPDU_ID_OFFSET                                            0x0000000000000000
55*5113495bSYour Name #define RX_PPDU_START_PHY_PPDU_ID_LSB                                               0
56*5113495bSYour Name #define RX_PPDU_START_PHY_PPDU_ID_MSB                                               15
57*5113495bSYour Name #define RX_PPDU_START_PHY_PPDU_ID_MASK                                              0x000000000000ffff
58*5113495bSYour Name 
59*5113495bSYour Name 
60*5113495bSYour Name 
61*5113495bSYour Name 
62*5113495bSYour Name #define RX_PPDU_START_PREAMBLE_TIME_TO_RXFRAME_OFFSET                               0x0000000000000000
63*5113495bSYour Name #define RX_PPDU_START_PREAMBLE_TIME_TO_RXFRAME_LSB                                  16
64*5113495bSYour Name #define RX_PPDU_START_PREAMBLE_TIME_TO_RXFRAME_MSB                                  23
65*5113495bSYour Name #define RX_PPDU_START_PREAMBLE_TIME_TO_RXFRAME_MASK                                 0x0000000000ff0000
66*5113495bSYour Name 
67*5113495bSYour Name 
68*5113495bSYour Name 
69*5113495bSYour Name 
70*5113495bSYour Name #define RX_PPDU_START_RESERVED_0A_OFFSET                                            0x0000000000000000
71*5113495bSYour Name #define RX_PPDU_START_RESERVED_0A_LSB                                               24
72*5113495bSYour Name #define RX_PPDU_START_RESERVED_0A_MSB                                               31
73*5113495bSYour Name #define RX_PPDU_START_RESERVED_0A_MASK                                              0x00000000ff000000
74*5113495bSYour Name 
75*5113495bSYour Name 
76*5113495bSYour Name 
77*5113495bSYour Name 
78*5113495bSYour Name #define RX_PPDU_START_SW_PHY_META_DATA_OFFSET                                       0x0000000000000000
79*5113495bSYour Name #define RX_PPDU_START_SW_PHY_META_DATA_LSB                                          32
80*5113495bSYour Name #define RX_PPDU_START_SW_PHY_META_DATA_MSB                                          63
81*5113495bSYour Name #define RX_PPDU_START_SW_PHY_META_DATA_MASK                                         0xffffffff00000000
82*5113495bSYour Name 
83*5113495bSYour Name 
84*5113495bSYour Name 
85*5113495bSYour Name 
86*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_31_0_OFFSET                              0x0000000000000008
87*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_31_0_LSB                                 0
88*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_31_0_MSB                                 31
89*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_31_0_MASK                                0x00000000ffffffff
90*5113495bSYour Name 
91*5113495bSYour Name 
92*5113495bSYour Name 
93*5113495bSYour Name 
94*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_63_32_OFFSET                             0x0000000000000008
95*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_63_32_LSB                                32
96*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_63_32_MSB                                63
97*5113495bSYour Name #define RX_PPDU_START_PPDU_START_TIMESTAMP_63_32_MASK                               0xffffffff00000000
98*5113495bSYour Name 
99*5113495bSYour Name 
100*5113495bSYour Name 
101*5113495bSYour Name 
102*5113495bSYour Name #define RX_PPDU_START_RXFRAME_ASSERT_TIMESTAMP_OFFSET                               0x0000000000000010
103*5113495bSYour Name #define RX_PPDU_START_RXFRAME_ASSERT_TIMESTAMP_LSB                                  0
104*5113495bSYour Name #define RX_PPDU_START_RXFRAME_ASSERT_TIMESTAMP_MSB                                  31
105*5113495bSYour Name #define RX_PPDU_START_RXFRAME_ASSERT_TIMESTAMP_MASK                                 0x00000000ffffffff
106*5113495bSYour Name 
107*5113495bSYour Name 
108*5113495bSYour Name 
109*5113495bSYour Name 
110*5113495bSYour Name #define RX_PPDU_START_TLV64_PADDING_OFFSET                                          0x0000000000000010
111*5113495bSYour Name #define RX_PPDU_START_TLV64_PADDING_LSB                                             32
112*5113495bSYour Name #define RX_PPDU_START_TLV64_PADDING_MSB                                             63
113*5113495bSYour Name #define RX_PPDU_START_TLV64_PADDING_MASK                                            0xffffffff00000000
114*5113495bSYour Name 
115*5113495bSYour Name 
116*5113495bSYour Name 
117*5113495bSYour Name #endif
118