xref: /wlan-driver/fw-api/hw/peach/v2/rxpt_classify_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 
18 #ifndef _RXPT_CLASSIFY_INFO_H_
19 #define _RXPT_CLASSIFY_INFO_H_
20 
21 #define NUM_OF_DWORDS_RXPT_CLASSIFY_INFO 1
22 
23 struct rxpt_classify_info {
24 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
25              uint32_t reo_destination_indication                              :  5,
26                       lmac_peer_id_msb                                        :  2,
27                       use_flow_id_toeplitz_clfy                               :  1,
28                       pkt_selection_fp_ucast_data                             :  1,
29                       pkt_selection_fp_mcast_data                             :  1,
30                       pkt_selection_fp_1000                                   :  1,
31                       rxdma0_source_ring_selection                            :  3,
32                       rxdma0_destination_ring_selection                       :  3,
33                       mcast_echo_drop_enable                                  :  1,
34                       wds_learning_detect_en                                  :  1,
35                       intrabss_check_en                                       :  1,
36                       use_ppe                                                 :  1,
37                       ppe_routing_enable                                      :  1,
38                       cce_source_sel_en                                       :  1,
39                       reserved_0b                                             :  9;
40 #else
41              uint32_t reserved_0b                                             :  9,
42                       cce_source_sel_en                                       :  1,
43                       ppe_routing_enable                                      :  1,
44                       use_ppe                                                 :  1,
45                       intrabss_check_en                                       :  1,
46                       wds_learning_detect_en                                  :  1,
47                       mcast_echo_drop_enable                                  :  1,
48                       rxdma0_destination_ring_selection                       :  3,
49                       rxdma0_source_ring_selection                            :  3,
50                       pkt_selection_fp_1000                                   :  1,
51                       pkt_selection_fp_mcast_data                             :  1,
52                       pkt_selection_fp_ucast_data                             :  1,
53                       use_flow_id_toeplitz_clfy                               :  1,
54                       lmac_peer_id_msb                                        :  2,
55                       reo_destination_indication                              :  5;
56 #endif
57 };
58 
59 #define RXPT_CLASSIFY_INFO_REO_DESTINATION_INDICATION_OFFSET                        0x00000000
60 #define RXPT_CLASSIFY_INFO_REO_DESTINATION_INDICATION_LSB                           0
61 #define RXPT_CLASSIFY_INFO_REO_DESTINATION_INDICATION_MSB                           4
62 #define RXPT_CLASSIFY_INFO_REO_DESTINATION_INDICATION_MASK                          0x0000001f
63 
64 #define RXPT_CLASSIFY_INFO_LMAC_PEER_ID_MSB_OFFSET                                  0x00000000
65 #define RXPT_CLASSIFY_INFO_LMAC_PEER_ID_MSB_LSB                                     5
66 #define RXPT_CLASSIFY_INFO_LMAC_PEER_ID_MSB_MSB                                     6
67 #define RXPT_CLASSIFY_INFO_LMAC_PEER_ID_MSB_MASK                                    0x00000060
68 
69 #define RXPT_CLASSIFY_INFO_USE_FLOW_ID_TOEPLITZ_CLFY_OFFSET                         0x00000000
70 #define RXPT_CLASSIFY_INFO_USE_FLOW_ID_TOEPLITZ_CLFY_LSB                            7
71 #define RXPT_CLASSIFY_INFO_USE_FLOW_ID_TOEPLITZ_CLFY_MSB                            7
72 #define RXPT_CLASSIFY_INFO_USE_FLOW_ID_TOEPLITZ_CLFY_MASK                           0x00000080
73 
74 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_UCAST_DATA_OFFSET                       0x00000000
75 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_UCAST_DATA_LSB                          8
76 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_UCAST_DATA_MSB                          8
77 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_UCAST_DATA_MASK                         0x00000100
78 
79 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_MCAST_DATA_OFFSET                       0x00000000
80 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_MCAST_DATA_LSB                          9
81 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_MCAST_DATA_MSB                          9
82 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_MCAST_DATA_MASK                         0x00000200
83 
84 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_1000_OFFSET                             0x00000000
85 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_1000_LSB                                10
86 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_1000_MSB                                10
87 #define RXPT_CLASSIFY_INFO_PKT_SELECTION_FP_1000_MASK                               0x00000400
88 
89 #define RXPT_CLASSIFY_INFO_RXDMA0_SOURCE_RING_SELECTION_OFFSET                      0x00000000
90 #define RXPT_CLASSIFY_INFO_RXDMA0_SOURCE_RING_SELECTION_LSB                         11
91 #define RXPT_CLASSIFY_INFO_RXDMA0_SOURCE_RING_SELECTION_MSB                         13
92 #define RXPT_CLASSIFY_INFO_RXDMA0_SOURCE_RING_SELECTION_MASK                        0x00003800
93 
94 #define RXPT_CLASSIFY_INFO_RXDMA0_DESTINATION_RING_SELECTION_OFFSET                 0x00000000
95 #define RXPT_CLASSIFY_INFO_RXDMA0_DESTINATION_RING_SELECTION_LSB                    14
96 #define RXPT_CLASSIFY_INFO_RXDMA0_DESTINATION_RING_SELECTION_MSB                    16
97 #define RXPT_CLASSIFY_INFO_RXDMA0_DESTINATION_RING_SELECTION_MASK                   0x0001c000
98 
99 #define RXPT_CLASSIFY_INFO_MCAST_ECHO_DROP_ENABLE_OFFSET                            0x00000000
100 #define RXPT_CLASSIFY_INFO_MCAST_ECHO_DROP_ENABLE_LSB                               17
101 #define RXPT_CLASSIFY_INFO_MCAST_ECHO_DROP_ENABLE_MSB                               17
102 #define RXPT_CLASSIFY_INFO_MCAST_ECHO_DROP_ENABLE_MASK                              0x00020000
103 
104 #define RXPT_CLASSIFY_INFO_WDS_LEARNING_DETECT_EN_OFFSET                            0x00000000
105 #define RXPT_CLASSIFY_INFO_WDS_LEARNING_DETECT_EN_LSB                               18
106 #define RXPT_CLASSIFY_INFO_WDS_LEARNING_DETECT_EN_MSB                               18
107 #define RXPT_CLASSIFY_INFO_WDS_LEARNING_DETECT_EN_MASK                              0x00040000
108 
109 #define RXPT_CLASSIFY_INFO_INTRABSS_CHECK_EN_OFFSET                                 0x00000000
110 #define RXPT_CLASSIFY_INFO_INTRABSS_CHECK_EN_LSB                                    19
111 #define RXPT_CLASSIFY_INFO_INTRABSS_CHECK_EN_MSB                                    19
112 #define RXPT_CLASSIFY_INFO_INTRABSS_CHECK_EN_MASK                                   0x00080000
113 
114 #define RXPT_CLASSIFY_INFO_USE_PPE_OFFSET                                           0x00000000
115 #define RXPT_CLASSIFY_INFO_USE_PPE_LSB                                              20
116 #define RXPT_CLASSIFY_INFO_USE_PPE_MSB                                              20
117 #define RXPT_CLASSIFY_INFO_USE_PPE_MASK                                             0x00100000
118 
119 #define RXPT_CLASSIFY_INFO_PPE_ROUTING_ENABLE_OFFSET                                0x00000000
120 #define RXPT_CLASSIFY_INFO_PPE_ROUTING_ENABLE_LSB                                   21
121 #define RXPT_CLASSIFY_INFO_PPE_ROUTING_ENABLE_MSB                                   21
122 #define RXPT_CLASSIFY_INFO_PPE_ROUTING_ENABLE_MASK                                  0x00200000
123 
124 #define RXPT_CLASSIFY_INFO_CCE_SOURCE_SEL_EN_OFFSET                                 0x00000000
125 #define RXPT_CLASSIFY_INFO_CCE_SOURCE_SEL_EN_LSB                                    22
126 #define RXPT_CLASSIFY_INFO_CCE_SOURCE_SEL_EN_MSB                                    22
127 #define RXPT_CLASSIFY_INFO_CCE_SOURCE_SEL_EN_MASK                                   0x00400000
128 
129 #define RXPT_CLASSIFY_INFO_RESERVED_0B_OFFSET                                       0x00000000
130 #define RXPT_CLASSIFY_INFO_RESERVED_0B_LSB                                          23
131 #define RXPT_CLASSIFY_INFO_RESERVED_0B_MSB                                          31
132 #define RXPT_CLASSIFY_INFO_RESERVED_0B_MASK                                         0xff800000
133 
134 #endif
135