1 /* 2 * Copyright 2020-2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef GMAC_IP_TRUSTEDFUNCTIONS_H 8 #define GMAC_IP_TRUSTEDFUNCTIONS_H 9 10 /** 11 * @file 12 * 13 * @addtogroup GMAC_DRIVER GMAC Driver 14 * @{ 15 */ 16 17 #ifdef __cplusplus 18 extern "C"{ 19 #endif 20 21 /*================================================================================================== 22 * INCLUDE FILES 23 * 1) system and project includes 24 * 2) needed interfaces from external units 25 * 3) internal and external interfaces from this unit 26 ==================================================================================================*/ 27 28 #include "Gmac_Ip_Device_Registers.h" 29 #include "Gmac_Ip_Cfg.h" 30 31 /*================================================================================================== 32 * SOURCE FILE VERSION INFORMATION 33 ==================================================================================================*/ 34 #define GMAC_IP_TRUSTEDFUNCTIONS_VENDOR_ID 43 35 #define GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MAJOR_VERSION 4 36 #define GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MINOR_VERSION 7 37 #define GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_REVISION_VERSION 0 38 #define GMAC_IP_TRUSTEDFUNCTIONS_SW_MAJOR_VERSION 3 39 #define GMAC_IP_TRUSTEDFUNCTIONS_SW_MINOR_VERSION 0 40 #define GMAC_IP_TRUSTEDFUNCTIONS_SW_PATCH_VERSION 0 41 42 /*================================================================================================== 43 * FILE VERSION CHECKS 44 ==================================================================================================*/ 45 46 /* Checks against Gmac_Ip_Device_Registers.h */ 47 #if (GMAC_IP_TRUSTEDFUNCTIONS_VENDOR_ID != GMAC_IP_DEVICE_REGISTERS_VENDOR_ID) 48 #error "Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Device_Registers.h have different vendor ids" 49 #endif 50 #if ((GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MAJOR_VERSION != GMAC_IP_DEVICE_REGISTERS_AR_RELEASE_MAJOR_VERSION) || \ 51 (GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MINOR_VERSION != GMAC_IP_DEVICE_REGISTERS_AR_RELEASE_MINOR_VERSION) || \ 52 (GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_REVISION_VERSION != GMAC_IP_DEVICE_REGISTERS_AR_RELEASE_REVISION_VERSION)) 53 #error "AUTOSAR Version Numbers of Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Device_Registers.h are different" 54 #endif 55 #if ((GMAC_IP_TRUSTEDFUNCTIONS_SW_MAJOR_VERSION != GMAC_IP_DEVICE_REGISTERS_SW_MAJOR_VERSION) || \ 56 (GMAC_IP_TRUSTEDFUNCTIONS_SW_MINOR_VERSION != GMAC_IP_DEVICE_REGISTERS_SW_MINOR_VERSION) || \ 57 (GMAC_IP_TRUSTEDFUNCTIONS_SW_PATCH_VERSION != GMAC_IP_DEVICE_REGISTERS_SW_PATCH_VERSION) \ 58 ) 59 #error "Software Version Numbers of Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Device_Registers.h are different" 60 #endif 61 62 /* Checks against Gmac_Ip_Cfg.h */ 63 #if (GMAC_IP_TRUSTEDFUNCTIONS_VENDOR_ID != GMAC_IP_CFG_VENDOR_ID) 64 #error "Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Cfg.h have different vendor ids" 65 #endif 66 #if (( GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MAJOR_VERSION != GMAC_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \ 67 ( GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_MINOR_VERSION != GMAC_IP_CFG_AR_RELEASE_MINOR_VERSION) || \ 68 ( GMAC_IP_TRUSTEDFUNCTIONS_AR_RELEASE_REVISION_VERSION != GMAC_IP_CFG_AR_RELEASE_REVISION_VERSION)) 69 #error "AUTOSAR Version Numbers of Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Cfg.h are different" 70 #endif 71 #if (( GMAC_IP_TRUSTEDFUNCTIONS_SW_MAJOR_VERSION != GMAC_IP_CFG_SW_MAJOR_VERSION) || \ 72 ( GMAC_IP_TRUSTEDFUNCTIONS_SW_MINOR_VERSION != GMAC_IP_CFG_SW_MINOR_VERSION) || \ 73 ( GMAC_IP_TRUSTEDFUNCTIONS_SW_PATCH_VERSION != GMAC_IP_CFG_SW_PATCH_VERSION)) 74 #error "Software Version Numbers of Gmac_Ip_TrustedFunctions.h and Gmac_Ip_Cfg.h are different" 75 #endif 76 /*================================================================================================== 77 CONSTANTS 78 ==================================================================================================*/ 79 80 /*================================================================================================== 81 DEFINES AND MACROS 82 ==================================================================================================*/ 83 84 /*================================================================================================== 85 ENUMS 86 ==================================================================================================*/ 87 88 /*================================================================================================== 89 STRUCTURES AND OTHER TYPEDEFS 90 ==================================================================================================*/ 91 92 /*================================================================================================== 93 GLOBAL VARIABLE DECLARATIONS 94 ==================================================================================================*/ 95 96 /*================================================================================================== 97 FUNCTION PROTOTYPES 98 ==================================================================================================*/ 99 #define ETH_43_GMAC_START_SEC_CODE 100 #include "Eth_43_GMAC_MemMap.h" 101 102 #if (STD_ON == GMAC_SET_USER_ACCESS_ALLOWED_AVAILABLE) 103 extern void Gmac_Ip_SetUserAccessAllowed(const GMAC_Type *Base); 104 extern void Gmac_Ip_ClrUserAccessAllowed(const GMAC_Type *Base); 105 #endif 106 107 #define ETH_43_GMAC_STOP_SEC_CODE 108 #include "Eth_43_GMAC_MemMap.h" 109 110 111 #ifdef __cplusplus 112 } 113 #endif 114 115 /** @} */ 116 117 #endif /* GMAC_IP_TRUSTEDFUNCTIONS_H */ 118