/**
*   @file    Eth_Irq.h
*   @version 1.0.0
*
*   @brief AUTOSAR Eth driver interrupt handlers prototypes
*   @details Prototypes of interrupt handling routines for the Ethernet driver.
*
*   @addtogroup ETH_DRIVER
*   @{
*/
/*==================================================================================================
*   Project              : AUTOSAR 4.3 MCAL
*   Platform             : PA
*   Peripheral           : FEC
*   Dependencies         : 
*
*   Autosar Version      : 4.3.1
*   Autosar Revision     : ASR_REL_4_3_REV_0001
*   Autosar Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
*
*   (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
*   All Rights Reserved.
==================================================================================================*/
/*==================================================================================================
==================================================================================================*/
#ifndef ETH_IRQ_H
#define ETH_IRQ_H

#ifdef __cplusplus
extern "C"{
#endif

/**
* @page misra_violations MISRA-C:2012 violations
* 
* @section Eth_Irq_h_REF_1
* Violates MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents
* of a header file being included more than once. This comes from the order of includes in the .c file
* and from include dependencies. As a safe approach, any file must include all its dependencies.
* Header files are already protected against double inclusions. The inclusion of Eth_Memmap.h is as
* per AUTOSAR requirement (SWS_MemMap_00003)
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
*          The used compilers use more than 31 chars for identifiers.
*
* @section Eth_Irq_h_REF_2
* Violates MISRA 2012 Advisory Rule 2.5, A project should not contain unused macro declarations.
*
*/

/*==================================================================================================
*                                        INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
==================================================================================================*/
#include "Eth_Ipw.h"
/*==================================================================================================
*                              SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define ETH_VENDOR_ID_ETHIRQ                    43
/* @violates @ref Eth_Irq_h_REF_2 */
#define ETH_MODULE_ID_ETHIRQ                    88
#define ETH_AR_RELEASE_MAJOR_VERSION_ETHIRQ     4
#define ETH_AR_RELEASE_MINOR_VERSION_ETHIRQ     3
#define ETH_AR_RELEASE_REVISION_VERSION_ETHIRQ  1
#define ETH_SW_MAJOR_VERSION_ETHIRQ             1
#define ETH_SW_MINOR_VERSION_ETHIRQ             0
#define ETH_SW_PATCH_VERSION_ETHIRQ             0

/*==================================================================================================
*                                     FILE VERSION CHECKS
==================================================================================================*/
/* Check if current file and Eth_LLD header file are of the same vendor */
#if (ETH_VENDOR_ID_ETHIRQ != ETH_VENDOR_ID_ETHIPW_H)
    #error "Eth_Irq.h and Eth_Ipw.h have different vendor ids"
#endif
/* Check if current file and Eth_LLD header file are of the same module */
#if (ETH_MODULE_ID_ETHIRQ != ETH_MODULE_ID_ETHIPW_H)
    #error "Eth_Irq.h and Eth_Ipw.h have different vendor ids"
#endif
/* Check if current file and Eth_LLD header file are of the same Autosar version */
#if ((ETH_AR_RELEASE_MAJOR_VERSION_ETHIRQ    != ETH_AR_RELEASE_MAJOR_VERSION_ETHIPW_H) || \
     (ETH_AR_RELEASE_MINOR_VERSION_ETHIRQ    != ETH_AR_RELEASE_MINOR_VERSION_ETHIPW_H) || \
     (ETH_AR_RELEASE_REVISION_VERSION_ETHIRQ != ETH_AR_RELEASE_REVISION_VERSION_ETHIPW_H))
    #error "AutoSar Version Numbers of Eth_Irq.h and Eth_Ipw.h are different"
#endif
/* Check if current file and Eth_LLD header file are of the same Software version */
#if ((ETH_SW_MAJOR_VERSION_ETHIRQ != ETH_SW_MAJOR_VERSION_ETHIPW_H) || \
     (ETH_SW_MINOR_VERSION_ETHIRQ != ETH_SW_MINOR_VERSION_ETHIPW_H) || \
     (ETH_SW_PATCH_VERSION_ETHIRQ != ETH_SW_PATCH_VERSION_ETHIPW_H))
    #error "Software Version Numbers of Eth_Irq.h and Eth_Ipw.h are different"
#endif
/*==================================================================================================
*                                          CONSTANTS
==================================================================================================*/

/*==================================================================================================
*                                      DEFINES AND MACROS
==================================================================================================*/

/*==================================================================================================
*                                             ENUMS
==================================================================================================*/

/*==================================================================================================
*                                STRUCTURES AND OTHER TYPEDEFS
==================================================================================================*/

/*==================================================================================================
*                                GLOBAL VARIABLE DECLARATIONS
==================================================================================================*/

/*==================================================================================================
*                                    FUNCTION PROTOTYPES
==================================================================================================*/
#define ETH_START_SEC_CODE
/* @violates @ref Eth_Irq_h_REF_1 This violation is not fixed since the inclusion of Eth_MemMap.h is as per AUTOSAR requirement*/
#include "Eth_MemMap.h"

    extern ISR(Eth_TxIrqHdlr_0);
    extern ISR(Eth_RxIrqHdlr_0);
    extern ISR(Eth_TxIrqHdlr_1);
    extern ISR(Eth_RxIrqHdlr_1);
    extern ISR(Eth_TxIrqHdlr_2);
    extern ISR(Eth_RxIrqHdlr_2);
    extern ISR(Eth_TxIrqHdlr_3);
    extern ISR(Eth_RxIrqHdlr_3);
    extern ISR(Eth_TxIrqHdlr_4);
    extern ISR(Eth_RxIrqHdlr_4);
    extern ISR(Eth_TxIrqHdlr_5);
    extern ISR(Eth_RxIrqHdlr_5);
    extern ISR(Eth_TxIrqHdlr_6);
    extern ISR(Eth_RxIrqHdlr_6);
    extern ISR(Eth_TxIrqHdlr_7);
    extern ISR(Eth_RxIrqHdlr_7);
#define ETH_STOP_SEC_CODE
/* @violates @ref Eth_Irq_h_REF_1 This violation is not fixed since the inclusion of Eth_MemMap.h is as per AUTOSAR requirement*/
#include "Eth_MemMap.h"

#ifdef __cplusplus
}
#endif

#endif /* ETH_IRQ_H */

/** @} */
