/* * Copyright 2020-2023 NXP * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef GMAC_IP_IRQ_H #define GMAC_IP_IRQ_H /** * @file * * @addtogroup GMAC_DRIVER GMAC Driver * @{ */ #ifdef __cplusplus extern "C" { #endif /*================================================================================================== * INCLUDE FILES * 1) system and project includes * 2) needed interfaces from external units * 3) internal and external interfaces from this unit ==================================================================================================*/ #include "Gmac_Ip_Features.h" #include "OsIf.h" /*================================================================================================== * SOURCE FILE VERSION INFORMATION ==================================================================================================*/ #define GMAC_IP_IRQ_VENDOR_ID 43 #define GMAC_IP_IRQ_AR_RELEASE_MAJOR_VERSION 4 #define GMAC_IP_IRQ_AR_RELEASE_MINOR_VERSION 7 #define GMAC_IP_IRQ_AR_RELEASE_REVISION_VERSION 0 #define GMAC_IP_IRQ_SW_MAJOR_VERSION 3 #define GMAC_IP_IRQ_SW_MINOR_VERSION 0 #define GMAC_IP_IRQ_SW_PATCH_VERSION 0 /*================================================================================================== * FILE VERSION CHECKS ==================================================================================================*/ /* Checks against Gmac_Ip_Features.h */ #if (GMAC_IP_IRQ_VENDOR_ID != GMAC_IP_FEATURES_VENDOR_ID) #error "Gmac_Ip_Irq.h and Gmac_Ip_Features.h have different vendor ids" #endif #if (( GMAC_IP_IRQ_AR_RELEASE_MAJOR_VERSION != GMAC_IP_FEATURES_AR_RELEASE_MAJOR_VERSION) || \ ( GMAC_IP_IRQ_AR_RELEASE_MINOR_VERSION != GMAC_IP_FEATURES_AR_RELEASE_MINOR_VERSION) || \ ( GMAC_IP_IRQ_AR_RELEASE_REVISION_VERSION != GMAC_IP_FEATURES_AR_RELEASE_REVISION_VERSION)) #error "AUTOSAR Version Numbers of Gmac_Ip_Irq.h and Gmac_Ip_Features.h are different" #endif #if (( GMAC_IP_IRQ_SW_MAJOR_VERSION != GMAC_IP_FEATURES_SW_MAJOR_VERSION) || \ ( GMAC_IP_IRQ_SW_MINOR_VERSION != GMAC_IP_FEATURES_SW_MINOR_VERSION) || \ ( GMAC_IP_IRQ_SW_PATCH_VERSION != GMAC_IP_FEATURES_SW_PATCH_VERSION)) #error "Software Version Numbers of Gmac_Ip_Irq.h and Gmac_Ip_Features.h are different" #endif #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK /* Checks against OsIf.h */ #if (( GMAC_IP_IRQ_AR_RELEASE_MAJOR_VERSION != OSIF_AR_RELEASE_MAJOR_VERSION) || \ ( GMAC_IP_IRQ_AR_RELEASE_MINOR_VERSION != OSIF_AR_RELEASE_MINOR_VERSION)) #error "AUTOSAR Version Numbers of Gmac_Ip_Irq.h and OsIf.h are different" #endif #endif /******************************************************************************* * API ******************************************************************************/ #define ETH_43_GMAC_START_SEC_CODE #include "Eth_43_GMAC_MemMap.h" #if (FEATURE_GMAC_NUM_INSTANCES > 0U) ISR(GMAC0_Common_IRQHandler); #if (FEATURE_GMAC_ASP_ALL || FEATURE_GMAC_ASP_ECC) ISR(GMAC0_Safety_IRQHandler); #endif #if FEATURE_GMAC_INDIVIDUAL_CH_IRQS #if (FEATURE_GMAC_NUM_CHANNELS > 0U) ISR(GMAC0_CH0_TX_IRQHandler); ISR(GMAC0_CH0_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 0U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 1U) ISR(GMAC0_CH1_TX_IRQHandler); ISR(GMAC0_CH1_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 1U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 2U) ISR(GMAC0_CH2_TX_IRQHandler); ISR(GMAC0_CH2_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 2U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 3U) ISR(GMAC0_CH3_TX_IRQHandler); ISR(GMAC0_CH3_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 3U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 4U) ISR(GMAC0_CH4_TX_IRQHandler); ISR(GMAC0_CH4_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 4U) */ #elif FEATURE_GMAC_UNIFIED_CH_IRQS ISR(GMAC0_CH_TX_IRQHandler); ISR(GMAC0_CH_RX_IRQHandler); #endif /* FEATURE_GMAC_INDIVIDUAL_CH_IRQS */ #endif /* FEATURE_GMAC_NUM_INSTANCES > 0U*/ #if (FEATURE_GMAC_NUM_INSTANCES > 1U) ISR(GMAC1_Common_IRQHandler); #if (FEATURE_GMAC_ASP_ALL || FEATURE_GMAC_ASP_ECC) ISR(GMAC1_Safety_IRQHandler); #endif #if FEATURE_GMAC_INDIVIDUAL_CH_IRQS #if (FEATURE_GMAC_NUM_CHANNELS > 0U) ISR(GMAC1_CH0_TX_IRQHandler); ISR(GMAC1_CH0_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 0U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 1U) ISR(GMAC1_CH1_TX_IRQHandler); ISR(GMAC1_CH1_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 1U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 2U) ISR(GMAC1_CH2_TX_IRQHandler); ISR(GMAC1_CH2_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 2U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 3U) ISR(GMAC1_CH3_TX_IRQHandler); ISR(GMAC1_CH3_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 3U) */ #if (FEATURE_GMAC_NUM_CHANNELS > 4U) ISR(GMAC1_CH4_TX_IRQHandler); ISR(GMAC1_CH4_RX_IRQHandler); #endif /* (FEATURE_GMAC_NUM_CHANNELS > 4U) */ #elif FEATURE_GMAC_UNIFIED_CH_IRQS ISR(GMAC1_CH_TX_IRQHandler); ISR(GMAC1_CH_RX_IRQHandler); #endif /* FEATURE_GMAC_INDIVIDUAL_CH_IRQS */ #endif /* (FEATURE_GMAC_NUM_INSTANCES > 1U) */ #define ETH_43_GMAC_STOP_SEC_CODE #include "Eth_43_GMAC_MemMap.h" #ifdef __cplusplus } #endif /** @} */ #endif /* GMAC_IP_IRQ_H */