MCUSW
Eth_Cfg.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) 2019 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
70 /*******************************************************************************
71  Project : EthExApp
72  Date : 2020-05-24 21:57:16
73  SW Ver : 1.2.0
74  Module Rele Ver : AUTOSAR 4.3.1 0
75 
76  This file is generated by EB Tresos
77  Do not modify this file,otherwise the software may behave in unexpected way.
78 *******************************************************************************/
79 
87 #ifndef ETH_CFG_H_
88 #define ETH_CFG_H_
89 
90 /* ========================================================================== */
91 /* Include Files */
92 /* ========================================================================== */
93 
94 #include "Dem.h"
95 
96 #include "Os.h"
97 
98 
99 
100 #ifdef __cplusplus
101 extern "C" {
102 #endif
103 
104 /* ========================================================================== */
105 /* Macros & Typedefs */
106 /* ========================================================================== */
111 #define ETH_PRE_COMPILE_VARIANT (STD_ON)
112 
113 #define ETH_VERSION_INFO_API (STD_ON)
114 
115 #define ETH_GLOBALTIMESUPPORT_API (STD_OFF)
116 
117 #define ETH_DEV_ERROR_DETECT (STD_ON)
118 
119 #define ETH_GET_COUNTER_VALUES_API (STD_ON)
120 
121 #define ETH_GET_RX_STATS_API (STD_ON)
122 
123 #define ETH_GET_TX_STATS_API (STD_ON)
124 
125 #define ETH_GET_TX_ERROR_COUNTERSVALUES_API (STD_ON)
126 
127 #define ETH_ZERO_COPY_TX (STD_OFF)
128 
129 #define ETH_USE_Q_APIS (STD_OFF)
130 
132 #define ETH_ENABLE_MII_API (STD_ON)
133 
134 #define ETH_UPDATE_PHYS_ADDR_FILTER_API (STD_ON)
135 
136 #define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API (STD_OFF)
137 
138 #define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API (STD_OFF)
139 
140 #define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API (STD_OFF)
141 
142 #define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API (STD_OFF)
143 
144 #define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API (STD_OFF)
145 
146 #define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API (STD_OFF)
147 
148 #define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API (STD_OFF)
149 
150 #define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API (STD_OFF)
151 
152 #define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API (STD_OFF)
153 
154 #define ETH_VIRTUALMAC_DEL_MACADDR_API (STD_OFF)
155 
156 #define ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API (STD_OFF)
157 
158 #define ETH_VIRTUALMAC_ADD_VLAN_API (STD_OFF)
159 
160 #define ETH_VIRTUALMAC_DEL_VLAN_API (STD_OFF)
161 
163 #define ETH_ENABLE_TX_INTERRUPT (STD_ON)
164 
165 #define ETH_ENABLE_RX_INTERRUPT (STD_ON)
166 
167 #define ETH_NUM_TX_BUFFERS (128U)
168 
169 #define ETH_NUM_RX_BUFFERS (128U)
170 
171 #define ETH_TX_BUF_LEN_BYTE (1522U)
172 
173 #define ETH_RX_BUF_LEN_BYTE (1522U)
174 
176 #define ETH_DESC_IN_CACHED_MEMORY (STD_ON)
177 
178 #define ETH_RING_IN_CACHED_MEMORY (STD_ON)
179 
180 
181 
183 #define ETH_ISR_TYPE (ETH_ISR_CAT2)
184 
185 #define ETH_USE_DEFAULT_MAC_ADDR (STD_ON)
186 
187 #define ETH_OS_COUNTER_ID ((CounterType)OsCounter_0)
188 
189 #define ETH_TIMEOUT_DURATION (3200U)
190 
192 #define ETH_CTRL_PHY_ADDRESS { 0xaaU,0xbbU,0xccU,0xddU,0xeeU,0xffU,}
193 
195 #define ETH_VIRTUALMAC_SUPPORT (STD_OFF)
196 
200 #define ETH_VIRTUALMAC_FWINFO_TIMEOUT (10U)
201 
202 /* ========================================================================== */
203 /* External Function Prototype */
204 /* ========================================================================== */
206 extern void EthApp_wbInvCache(uint8 *buf, uint16 len);
208 extern void EthApp_wbCache(uint8 *buf, uint16 len);
210 extern void EthApp_invCache(uint8 *buf, uint16 len);
211 
218 #define DemConf_DemEventParameter_ETH_DEM_NO_EVENT (0xFFFFU)
219 #define ETH_DEM_NO_EVENT DemConf_DemEventParameter_ETH_DEM_NO_EVENT
220 
221 #ifndef ETH_E_HARDWARE_ERROR
222 
223 #define ETH_E_HARDWARE_ERROR (ETH_DEM_NO_EVENT)
224 #endif
225 
226 #ifndef ETH_E_LATECOLLISION
227 
228 #define ETH_E_LATECOLLISION (ETH_DEM_NO_EVENT)
229 #endif
230 
231 #ifndef ETH_E_MULTIPLECOLLISION
232 
233 #define ETH_E_MULTIPLECOLLISION (ETH_DEM_NO_EVENT)
234 #endif
235 
236 #ifndef ETH_E_SINGLECOLLISION
237 
238 #define ETH_E_SINGLECOLLISION (ETH_DEM_NO_EVENT)
239 #endif
240 
241 #ifndef ETH_E_ALIGNMENT
242 
243 #define ETH_E_ALIGNMENT (ETH_DEM_NO_EVENT)
244 #endif
245 
246 #ifndef ETH_E_OVERSIZEFRAME
247 
248 #define ETH_E_OVERSIZEFRAME (ETH_DEM_NO_EVENT)
249 #endif
250 
251 #ifndef ETH_E_UNDERSIZEFRAME
252 
253 #define ETH_E_UNDERSIZEFRAME (ETH_DEM_NO_EVENT)
254 #endif
255 
256 #ifndef ETH_E_CRC
257 
258 #define ETH_E_CRC (ETH_DEM_NO_EVENT)
259 #endif
260 
261 #ifndef ETH_E_RX_FRAMES_LOST
262 
263 #define ETH_E_RX_FRAMES_LOST (ETH_DEM_NO_EVENT)
264 #endif
265 
266 #ifndef ETH_E_ACCESS
267 
268 #define ETH_E_ACCESS (ETH_DEM_NO_EVENT)
269 #endif
270 
271 #ifndef ETH_E_TX_INTERNAL
272 
275 #define ETH_E_TX_INTERNAL (ETH_DEM_NO_EVENT)
276 #endif
277 
278 /* @} */
279 
280 /* ========================================================================== */
281 /* Structures and Enums */
282 /* ========================================================================== */
283 
284 /* ========================================================================== */
285 /* Generate Configuration */
286 /* ========================================================================== */
288 extern const struct Eth_ConfigType_s EthConfig_0_PC;
289 
291 #define ETH_DRV_CONFIG_0 ((const Eth_ConfigType *) &EthConfig_0_PC)
292 
293 /* ========================================================================== */
294 /* Function Declarations */
295 /* ========================================================================== */
296 
297 /* None */
298 
299 #ifdef __cplusplus
300 }
301 #endif
302 
303 #endif /* #ifndef ETH_CFG_H_ */
304 
305 /* @} */
const struct Eth_ConfigType_s EthConfig_0_PC
Pointer to the generated configuration.
void EthApp_invCache(uint8 *buf, uint16 len)
Function to invalidate cache.
void EthApp_wbCache(uint8 *buf, uint16 len)
Function to write-back cache.
void EthApp_wbInvCache(uint8 *buf, uint16 len)
Function to write-back and invalidate cache.