1*5113495bSYour Name 2*5113495bSYour Name /* 3*5113495bSYour Name * Copyright (c) 2021 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 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name 26*5113495bSYour Name 27*5113495bSYour Name 28*5113495bSYour Name 29*5113495bSYour Name 30*5113495bSYour Name #ifndef _TCL_GSE_CMD_H_ 31*5113495bSYour Name #define _TCL_GSE_CMD_H_ 32*5113495bSYour Name #if !defined(__ASSEMBLER__) 33*5113495bSYour Name #endif 34*5113495bSYour Name 35*5113495bSYour Name #define NUM_OF_DWORDS_TCL_GSE_CMD 8 36*5113495bSYour Name 37*5113495bSYour Name 38*5113495bSYour Name struct tcl_gse_cmd { 39*5113495bSYour Name uint32_t control_buffer_addr_31_0 : 32; 40*5113495bSYour Name uint32_t control_buffer_addr_39_32 : 8, 41*5113495bSYour Name gse_ctrl : 4, 42*5113495bSYour Name gse_sel : 1, 43*5113495bSYour Name status_destination_ring_id : 1, 44*5113495bSYour Name swap : 1, 45*5113495bSYour Name index_search_en : 1, 46*5113495bSYour Name cache_set_num : 4, 47*5113495bSYour Name reserved_1a : 12; 48*5113495bSYour Name uint32_t tcl_cmd_type : 1, 49*5113495bSYour Name reserved_2a : 31; 50*5113495bSYour Name uint32_t cmd_meta_data_31_0 : 32; 51*5113495bSYour Name uint32_t cmd_meta_data_63_32 : 32; 52*5113495bSYour Name uint32_t reserved_5a : 32; 53*5113495bSYour Name uint32_t reserved_6a : 32; 54*5113495bSYour Name uint32_t reserved_7a : 20, 55*5113495bSYour Name ring_id : 8, 56*5113495bSYour Name looping_count : 4; 57*5113495bSYour Name }; 58*5113495bSYour Name 59*5113495bSYour Name 60*5113495bSYour Name 61*5113495bSYour Name 62*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_31_0_OFFSET 0x00000000 63*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_31_0_LSB 0 64*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_31_0_MSB 31 65*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_31_0_MASK 0xffffffff 66*5113495bSYour Name 67*5113495bSYour Name 68*5113495bSYour Name 69*5113495bSYour Name 70*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_39_32_OFFSET 0x00000004 71*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_39_32_LSB 0 72*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_39_32_MSB 7 73*5113495bSYour Name #define TCL_GSE_CMD_CONTROL_BUFFER_ADDR_39_32_MASK 0x000000ff 74*5113495bSYour Name 75*5113495bSYour Name 76*5113495bSYour Name 77*5113495bSYour Name 78*5113495bSYour Name #define TCL_GSE_CMD_GSE_CTRL_OFFSET 0x00000004 79*5113495bSYour Name #define TCL_GSE_CMD_GSE_CTRL_LSB 8 80*5113495bSYour Name #define TCL_GSE_CMD_GSE_CTRL_MSB 11 81*5113495bSYour Name #define TCL_GSE_CMD_GSE_CTRL_MASK 0x00000f00 82*5113495bSYour Name 83*5113495bSYour Name 84*5113495bSYour Name 85*5113495bSYour Name 86*5113495bSYour Name #define TCL_GSE_CMD_GSE_SEL_OFFSET 0x00000004 87*5113495bSYour Name #define TCL_GSE_CMD_GSE_SEL_LSB 12 88*5113495bSYour Name #define TCL_GSE_CMD_GSE_SEL_MSB 12 89*5113495bSYour Name #define TCL_GSE_CMD_GSE_SEL_MASK 0x00001000 90*5113495bSYour Name 91*5113495bSYour Name 92*5113495bSYour Name 93*5113495bSYour Name 94*5113495bSYour Name #define TCL_GSE_CMD_STATUS_DESTINATION_RING_ID_OFFSET 0x00000004 95*5113495bSYour Name #define TCL_GSE_CMD_STATUS_DESTINATION_RING_ID_LSB 13 96*5113495bSYour Name #define TCL_GSE_CMD_STATUS_DESTINATION_RING_ID_MSB 13 97*5113495bSYour Name #define TCL_GSE_CMD_STATUS_DESTINATION_RING_ID_MASK 0x00002000 98*5113495bSYour Name 99*5113495bSYour Name 100*5113495bSYour Name 101*5113495bSYour Name 102*5113495bSYour Name #define TCL_GSE_CMD_SWAP_OFFSET 0x00000004 103*5113495bSYour Name #define TCL_GSE_CMD_SWAP_LSB 14 104*5113495bSYour Name #define TCL_GSE_CMD_SWAP_MSB 14 105*5113495bSYour Name #define TCL_GSE_CMD_SWAP_MASK 0x00004000 106*5113495bSYour Name 107*5113495bSYour Name 108*5113495bSYour Name 109*5113495bSYour Name 110*5113495bSYour Name #define TCL_GSE_CMD_INDEX_SEARCH_EN_OFFSET 0x00000004 111*5113495bSYour Name #define TCL_GSE_CMD_INDEX_SEARCH_EN_LSB 15 112*5113495bSYour Name #define TCL_GSE_CMD_INDEX_SEARCH_EN_MSB 15 113*5113495bSYour Name #define TCL_GSE_CMD_INDEX_SEARCH_EN_MASK 0x00008000 114*5113495bSYour Name 115*5113495bSYour Name 116*5113495bSYour Name 117*5113495bSYour Name 118*5113495bSYour Name #define TCL_GSE_CMD_CACHE_SET_NUM_OFFSET 0x00000004 119*5113495bSYour Name #define TCL_GSE_CMD_CACHE_SET_NUM_LSB 16 120*5113495bSYour Name #define TCL_GSE_CMD_CACHE_SET_NUM_MSB 19 121*5113495bSYour Name #define TCL_GSE_CMD_CACHE_SET_NUM_MASK 0x000f0000 122*5113495bSYour Name 123*5113495bSYour Name 124*5113495bSYour Name 125*5113495bSYour Name 126*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_1A_OFFSET 0x00000004 127*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_1A_LSB 20 128*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_1A_MSB 31 129*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_1A_MASK 0xfff00000 130*5113495bSYour Name 131*5113495bSYour Name 132*5113495bSYour Name 133*5113495bSYour Name 134*5113495bSYour Name #define TCL_GSE_CMD_TCL_CMD_TYPE_OFFSET 0x00000008 135*5113495bSYour Name #define TCL_GSE_CMD_TCL_CMD_TYPE_LSB 0 136*5113495bSYour Name #define TCL_GSE_CMD_TCL_CMD_TYPE_MSB 0 137*5113495bSYour Name #define TCL_GSE_CMD_TCL_CMD_TYPE_MASK 0x00000001 138*5113495bSYour Name 139*5113495bSYour Name 140*5113495bSYour Name 141*5113495bSYour Name 142*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_2A_OFFSET 0x00000008 143*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_2A_LSB 1 144*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_2A_MSB 31 145*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_2A_MASK 0xfffffffe 146*5113495bSYour Name 147*5113495bSYour Name 148*5113495bSYour Name 149*5113495bSYour Name 150*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_31_0_OFFSET 0x0000000c 151*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_31_0_LSB 0 152*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_31_0_MSB 31 153*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_31_0_MASK 0xffffffff 154*5113495bSYour Name 155*5113495bSYour Name 156*5113495bSYour Name 157*5113495bSYour Name 158*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_63_32_OFFSET 0x00000010 159*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_63_32_LSB 0 160*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_63_32_MSB 31 161*5113495bSYour Name #define TCL_GSE_CMD_CMD_META_DATA_63_32_MASK 0xffffffff 162*5113495bSYour Name 163*5113495bSYour Name 164*5113495bSYour Name 165*5113495bSYour Name 166*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_5A_OFFSET 0x00000014 167*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_5A_LSB 0 168*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_5A_MSB 31 169*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_5A_MASK 0xffffffff 170*5113495bSYour Name 171*5113495bSYour Name 172*5113495bSYour Name 173*5113495bSYour Name 174*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_6A_OFFSET 0x00000018 175*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_6A_LSB 0 176*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_6A_MSB 31 177*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_6A_MASK 0xffffffff 178*5113495bSYour Name 179*5113495bSYour Name 180*5113495bSYour Name 181*5113495bSYour Name 182*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_7A_OFFSET 0x0000001c 183*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_7A_LSB 0 184*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_7A_MSB 19 185*5113495bSYour Name #define TCL_GSE_CMD_RESERVED_7A_MASK 0x000fffff 186*5113495bSYour Name 187*5113495bSYour Name 188*5113495bSYour Name 189*5113495bSYour Name 190*5113495bSYour Name #define TCL_GSE_CMD_RING_ID_OFFSET 0x0000001c 191*5113495bSYour Name #define TCL_GSE_CMD_RING_ID_LSB 20 192*5113495bSYour Name #define TCL_GSE_CMD_RING_ID_MSB 27 193*5113495bSYour Name #define TCL_GSE_CMD_RING_ID_MASK 0x0ff00000 194*5113495bSYour Name 195*5113495bSYour Name 196*5113495bSYour Name 197*5113495bSYour Name 198*5113495bSYour Name #define TCL_GSE_CMD_LOOPING_COUNT_OFFSET 0x0000001c 199*5113495bSYour Name #define TCL_GSE_CMD_LOOPING_COUNT_LSB 28 200*5113495bSYour Name #define TCL_GSE_CMD_LOOPING_COUNT_MSB 31 201*5113495bSYour Name #define TCL_GSE_CMD_LOOPING_COUNT_MASK 0xf0000000 202*5113495bSYour Name 203*5113495bSYour Name 204*5113495bSYour Name 205*5113495bSYour Name #endif 206