xref: /wlan-driver/fw-api/hw/wcn6450/v1/tcl_gse_cmd.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
6*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
7*5113495bSYour Name  * above copyright notice and this permission notice appear in all
8*5113495bSYour Name  * copies.
9*5113495bSYour Name  *
10*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
18*5113495bSYour Name  */
19*5113495bSYour Name 
20*5113495bSYour Name 
21*5113495bSYour Name 
22*5113495bSYour Name #ifndef _TCL_GSE_CMD_H_
23*5113495bSYour Name #define _TCL_GSE_CMD_H_
24*5113495bSYour Name #if !defined(__ASSEMBLER__)
25*5113495bSYour Name #endif
26*5113495bSYour Name 
27*5113495bSYour Name #define NUM_OF_DWORDS_TCL_GSE_CMD 7
28*5113495bSYour Name 
29*5113495bSYour Name struct tcl_gse_cmd {
30*5113495bSYour Name              uint32_t control_buffer_addr_31_0        : 32;
31*5113495bSYour Name              uint32_t control_buffer_addr_39_32       :  8,
32*5113495bSYour Name                       gse_ctrl                        :  4,
33*5113495bSYour Name                       gse_sel                         :  1,
34*5113495bSYour Name                       status_destination_ring_id      :  1,
35*5113495bSYour Name                       swap                            :  1,
36*5113495bSYour Name                       index_search_en                 :  1,
37*5113495bSYour Name                       cache_set_num                   :  4,
38*5113495bSYour Name                       reserved_1a                     : 12;
39*5113495bSYour Name              uint32_t cmd_meta_data_31_0              : 32;
40*5113495bSYour Name              uint32_t cmd_meta_data_63_32             : 32;
41*5113495bSYour Name              uint32_t reserved_4a                     : 32;
42*5113495bSYour Name              uint32_t reserved_5a                     : 32;
43*5113495bSYour Name              uint32_t reserved_6a                     : 20,
44*5113495bSYour Name                       ring_id                         :  8,
45*5113495bSYour Name                       looping_count                   :  4;
46*5113495bSYour Name };
47*5113495bSYour Name 
48*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_OFFSET                0x00000000
49*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_LSB                   0
50*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_MASK                  0xffffffff
51*5113495bSYour Name 
52*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_OFFSET               0x00000004
53*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_LSB                  0
54*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_MASK                 0x000000ff
55*5113495bSYour Name 
56*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_OFFSET                                0x00000004
57*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_LSB                                   8
58*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_MASK                                  0x00000f00
59*5113495bSYour Name 
60*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_OFFSET                                 0x00000004
61*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_LSB                                    12
62*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_MASK                                   0x00001000
63*5113495bSYour Name 
64*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_OFFSET              0x00000004
65*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_LSB                 13
66*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_MASK                0x00002000
67*5113495bSYour Name 
68*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_OFFSET                                    0x00000004
69*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_LSB                                       14
70*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_MASK                                      0x00004000
71*5113495bSYour Name 
72*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_OFFSET                         0x00000004
73*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_LSB                            15
74*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_MASK                           0x00008000
75*5113495bSYour Name 
76*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_OFFSET                           0x00000004
77*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_LSB                              16
78*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_MASK                             0x000f0000
79*5113495bSYour Name 
80*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_OFFSET                             0x00000004
81*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_LSB                                20
82*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_MASK                               0xfff00000
83*5113495bSYour Name 
84*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_OFFSET                      0x00000008
85*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_LSB                         0
86*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_MASK                        0xffffffff
87*5113495bSYour Name 
88*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_OFFSET                     0x0000000c
89*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_LSB                        0
90*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_MASK                       0xffffffff
91*5113495bSYour Name 
92*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_OFFSET                             0x00000010
93*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_LSB                                0
94*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_MASK                               0xffffffff
95*5113495bSYour Name 
96*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_OFFSET                             0x00000014
97*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_LSB                                0
98*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_MASK                               0xffffffff
99*5113495bSYour Name 
100*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_OFFSET                             0x00000018
101*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_LSB                                0
102*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_MASK                               0x000fffff
103*5113495bSYour Name 
104*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_OFFSET                                 0x00000018
105*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_LSB                                    20
106*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_MASK                                   0x0ff00000
107*5113495bSYour Name 
108*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_OFFSET                           0x00000018
109*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_LSB                              28
110*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_MASK                             0xf0000000
111*5113495bSYour Name 
112*5113495bSYour Name #endif
113