/**
*   @file    Eth_SIU.h
*   @version 1.0.1
*
*    @brief            System Integration Unit 
*    @details          Implement the device system integration units
*
*   @addtogroup FR_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_SIU_H
#define ETH_SIU_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @page misra_violations MISRA-C:2012 violations
* 
* @section Eth_SIU_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_SIU_h_REF_2
* Violates MISRA 2012 Advisory Rule 20.1, #include directives should only be preceded by preprocessor 
* directives or comments. AUTOSAR imposes the specification of the sections in which certain parts
* of the driver must be placed.
*
*
* @section Eth_SIU_h_REF_3
* Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
*
* @section Eth_SIU_h_REF_4
* Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
*
* @section Eth_SIU_h_REF_5
* Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
*
* @section Eth_SIU_h_REF_6
* Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
*/

/*==================================================================================================
*                                        INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
==================================================================================================*/
/** 
* @file        Eth_SIU.h
* @brief Include IP module versions
*/
#include "Platform_Types.h"
#include "Soc_Ips.h"
#include "Mcal.h"
#include "Eth_SIU_Reg_Sys.h"
#include "Eth_Cfg.h"
/*==================================================================================================
*                              SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define ETH_SIU_VENDOR_ID_H                      43
#define ETH_SIU_MODULE_ID_H                      88
/* @violates @ref Eth_SIU_h_REF_3 */
/* @violates @ref Eth_SIU_h_REF_4 */
/* @violates @ref Eth_SIU_h_REF_5 */
/* @violates @ref Eth_SIU_h_REF_6 */
#define ETH_SIU_AR_RELEASE_MAJOR_VERSION_H       4
/* @violates @ref Eth_SIU_h_REF_3 */
/* @violates @ref Eth_SIU_h_REF_4 */
/* @violates @ref Eth_SIU_h_REF_5 */
/* @violates @ref Eth_SIU_h_REF_6 */
#define ETH_SIU_AR_RELEASE_MINOR_VERSION_H       3
/* @violates @ref Eth_SIU_h_REF_3 */
/* @violates @ref Eth_SIU_h_REF_4 */
/* @violates @ref Eth_SIU_h_REF_5 */
/* @violates @ref Eth_SIU_h_REF_6 */
#define ETH_SIU_AR_RELEASE_REVISION_VERSION_H    1
#define ETH_SIU_SW_MAJOR_VERSION_H               1
#define ETH_SIU_SW_MINOR_VERSION_H               0
#define ETH_SIU_SW_PATCH_VERSION_H               0
/*==================================================================================================
*                                      FILE VERSION CHECKS
==================================================================================================*/
/* Check if current file and ETH header file are of the same Software version */
#if ((ETH_SIU_AR_RELEASE_MAJOR_VERSION_H != ETH_SIU_REG_SYS_AR_RELEASE_MAJOR_VERSION_H) || \
     (ETH_SIU_AR_RELEASE_MINOR_VERSION_H != ETH_SIU_REG_SYS_AR_RELEASE_MINOR_VERSION_H) || \
     (ETH_SIU_AR_RELEASE_REVISION_VERSION_H != ETH_SIU_REG_SYS_AR_RELEASE_REVISION_VERSION_H)    \
    )
    #error "ASR Version Numbers of Eth_SIU.h and Eth_SIU_Reg_Sys.h are different"
#endif
#if ((ETH_SIU_SW_MAJOR_VERSION_H != ETH_SIU_REG_SYS_SW_MAJOR_VERSION_H) || \
     (ETH_SIU_SW_MINOR_VERSION_H != ETH_SIU_REG_SYS_SW_MINOR_VERSION_H) || \
     (ETH_SIU_SW_PATCH_VERSION_H != ETH_SIU_REG_SYS_SW_PATCH_VERSION_H)    \
    )
    #error "Software Version Numbers of Eth_SIU.h and Eth_SIU_Reg_Sys.h are different"
#endif
#if ((ETH_SIU_AR_RELEASE_MAJOR_VERSION_H != ETH_AR_RELEASE_MAJOR_VERSION_CFG) || \
     (ETH_SIU_AR_RELEASE_MINOR_VERSION_H != ETH_AR_RELEASE_MINOR_VERSION_CFG) || \
     (ETH_SIU_AR_RELEASE_REVISION_VERSION_H != ETH_AR_RELEASE_REVISION_VERSION_CFG)    \
    )
    #error "ASR Version Numbers of Eth_SIU.h and Eth_Cfg.h are different"
#endif
#if ((ETH_SIU_SW_MAJOR_VERSION_H != ETH_SW_MAJOR_VERSION_CFG) || \
     (ETH_SIU_SW_MINOR_VERSION_H != ETH_SW_MINOR_VERSION_CFG) || \
     (ETH_SIU_SW_PATCH_VERSION_H != ETH_SW_PATCH_VERSION_CFG)    \
    )
    #error "Software Version Numbers of Eth_SIU.h and Eth_Cfg.h are different"
#endif
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
    /* Check if source file and Platform_Types.h header file are of the same Autosar version */
    #if ((ETH_SIU_AR_RELEASE_MAJOR_VERSION_H != PLATFORM_AR_RELEASE_MAJOR_VERSION) || \
         (ETH_SIU_AR_RELEASE_MINOR_VERSION_H != PLATFORM_AR_RELEASE_MINOR_VERSION))
        #error "AutoSar Version Numbers of Eth_SIU.h and Platform_Types.h are different"
    #endif
    /* Check if source file and Soc_Ips.h header file are of the same Autosar version */
    #if ((ETH_SIU_AR_RELEASE_MAJOR_VERSION_H != SOC_IPS_AR_RELEASE_MAJOR_VERSION) || \
         (ETH_SIU_AR_RELEASE_MINOR_VERSION_H != SOC_IPS_AR_RELEASE_MINOR_VERSION))
        #error "AutoSar Version Numbers of Eth_SIU.h and Soc_Ips.h are different"
    #endif
#endif
/*==================================================================================================
*                                          CONSTANTS
==================================================================================================*/

/*==================================================================================================
*                                      DEFINES AND MACROS
==================================================================================================*/
/*==============================================================================
*                                       LOCAL FUNCTIONS
==============================================================================*/
#define ETH_START_SEC_CODE
/* @violates @ref Eth_SIU_h_REF_1 */
/* @violates @ref Eth_SIU_h_REF_2 */
#include "Eth_MemMap.h"
#if defined (ETH_MII_MODE_SEL)
#if STD_ON == ETH_MII_MODE_SEL
extern FUNC(void, ETH_CODE) Eth_SIU_ModeSelect(void);
#endif
#endif
#define ETH_STOP_SEC_CODE
/* @violates @ref Eth_SIU_h_REF_1 */
/* @violates @ref Eth_SIU_h_REF_2 */
#include "Eth_MemMap.h"

#ifdef __cplusplus
}
#endif

#endif /*ETH_SIU_H*/
