PDK API Guide for J721E
sciserver_secproxyDescription.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
47 #ifndef SCISERVER_SECPROXY_DESC_H
48 #define SCISERVER_SECPROXY_DESC_H
49 
50 /* ========================================================================== */
51 /* Include Files */
52 /* ========================================================================== */
53 
54 #include <types/sbool.h>
55 #include <types/short_types.h>
56 #include <types/address_types.h>
57 #include <types/devgrps.h>
58 #include <sciserver_secproxySocData.h>
59 #include <sciserver_secproxyConfigData.h>
60 
61 /* ========================================================================== */
62 /* Macros & Typedefs */
63 /* ========================================================================== */
64 
65 /* None */
66 
67 /* ========================================================================== */
68 /* Structure Declarations */
69 /* ========================================================================== */
70 
110  soc_phys_addr_t baseaddr_cfg_rt;
111  soc_phys_addr_t baseaddr_cfg_scfg;
112  soc_phys_addr_t baseaddr_src_target_data;
113  soc_phys_addr_t sproxy_target_hl;
116  uint16_t num_threads;
117  uint8_t ra_idx;
118  uint8_t buffer_idx;
121 };
122 
124 extern const uint8_t Sciserver_SecureProxyInstancesNum;
126 extern const struct Sciserver_SecureProxy gSciserverSecureProxyInstances[SOC_MAX_SEC_PROXY_INSTANCES];
127 
150  uint16_t host_id;
151  uint16_t thread_id;
152  uint16_t evt_threshold;
153  uint16_t evt_error;
155  uint8_t threshold;
157 };
159 extern const uint16_t gSciserverSecureProxyRxConfigNum;
161 extern const struct Sciserver_SecureProxyRxThreadConfig
162  gSciserverSecureProxyRxConfigurations[SOC_MAX_SPT_RX_CONFIG_INSTANCES];
163 
184  uint16_t host_id;
185  uint16_t thread_id;
186  uint8_t num_credits;
187  uint8_t threshold;
188  uint16_t evt_threshold;
189  uint16_t evt_error;
191 };
193 extern const uint16_t Sciserver_SecureProxyTxConfigNum;
195 extern const struct Sciserver_SecureProxyTxThreadConfig
196  Sciserver_SecureProxyTxConfigurations[SOC_MAX_SPT_TX_CONFIG_INSTANCES];
197 
198 /* ========================================================================== */
199 /* Function Declarations */
200 /* ========================================================================== */
201 
202 /* None */
203 
204 /* ========================================================================== */
205 /* Static Function Definitions */
206 /* ========================================================================== */
207 
208 /* None */
209 
210 #endif /* SCISERVER_SECPROXY_DESC_H */
211 
212 /* @} */
uint16_t host_id
Definition: sciserver_secproxyDescription.h:150
const uint16_t Sciserver_SecureProxyTxConfigNum
uint16_t sproxy_ring_index_max
Definition: sciserver_secproxyDescription.h:115
devgrp_t devgrp
Definition: sciserver_secproxyDescription.h:120
uint16_t num_threads
Definition: sciserver_secproxyDescription.h:116
uint32_t buffer_neg_offset
Definition: sciserver_secproxyDescription.h:119
uint8_t secure_proxy_instance_id
Definition: sciserver_secproxyDescription.h:156
soc_phys_addr_t baseaddr_src_target_data
Definition: sciserver_secproxyDescription.h:112
uint8_t devgrp_t
Defines the sysfw DEVGRP type. This is meant to be used in code or data structures that require disti...
Definition: sciclient.h:242
uint16_t sproxy_ring_index_base
Definition: sciserver_secproxyDescription.h:114
const struct Sciserver_SecureProxyTxThreadConfig Sciserver_SecureProxyTxConfigurations[SOC_MAX_SPT_TX_CONFIG_INSTANCES]
uint16_t thread_id
Definition: sciserver_secproxyDescription.h:185
uint16_t ring_config_instance_id
Definition: sciserver_secproxyDescription.h:154
uint16_t evt_error
Definition: sciserver_secproxyDescription.h:153
uint16_t evt_threshold
Definition: sciserver_secproxyDescription.h:188
soc_phys_addr_t baseaddr_cfg_scfg
Definition: sciserver_secproxyDescription.h:111
const uint16_t gSciserverSecureProxyRxConfigNum
uint16_t host_id
Definition: sciserver_secproxyDescription.h:184
Describes the Secure proxy Reader (Rx) thread configuration.
Definition: sciserver_secproxyDescription.h:149
uint16_t evt_threshold
Definition: sciserver_secproxyDescription.h:152
uint8_t ra_idx
Definition: sciserver_secproxyDescription.h:117
Describes the Secure proxy Writer (tx) thread configuration.
Definition: sciserver_secproxyDescription.h:183
uint8_t buffer_idx
Definition: sciserver_secproxyDescription.h:118
const struct Sciserver_SecureProxyRxThreadConfig gSciserverSecureProxyRxConfigurations[SOC_MAX_SPT_RX_CONFIG_INSTANCES]
soc_phys_addr_t sproxy_target_hl
Definition: sciserver_secproxyDescription.h:113
const uint8_t Sciserver_SecureProxyInstancesNum
uint8_t num_credits
Definition: sciserver_secproxyDescription.h:186
uint16_t thread_id
Definition: sciserver_secproxyDescription.h:151
uint8_t threshold
Definition: sciserver_secproxyDescription.h:187
uint8_t threshold
Definition: sciserver_secproxyDescription.h:155
uint16_t rx_thread_instance_id
Definition: sciserver_secproxyDescription.h:190
const struct Sciserver_SecureProxy gSciserverSecureProxyInstances[SOC_MAX_SEC_PROXY_INSTANCES]
uint16_t evt_error
Definition: sciserver_secproxyDescription.h:189
Describes a Secure Proxy instance.
Definition: sciserver_secproxyDescription.h:109
soc_phys_addr_t baseaddr_cfg_rt
Definition: sciserver_secproxyDescription.h:110