original files of m241
This commit is contained in:
@@ -0,0 +1,243 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipfreescale_config.h,v $ $Revision: 1.22.40.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipfreescale/config/ipfreescale_config.h,v $
|
||||
* $Author: svc-cmnet $ $Date: 2013-03-13 07:45:24 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPFREESCALE_CONFIG_H
|
||||
#define IPFREESCALE_CONFIG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_config.h>
|
||||
#ifdef IPCRYPTO
|
||||
#include <ipcrypto_config.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* Check for duplicate SEC type */
|
||||
#if (defined(IPFREESCALE_SEC2) && defined(IPFREESCALE_COLDFIRE)) || \
|
||||
(defined(IPFREESCALE_SEC4) && defined(IPFREESCALE_COLDFIRE)) || \
|
||||
(defined(IPFREESCALE_SEC2) && defined(IPFREESCALE_SEC4))
|
||||
#error "Duplicate SEC type"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_STATISTICS
|
||||
*===========================================================================
|
||||
* Define this macro to include usage and error statistics.
|
||||
*/
|
||||
#define IPFREESCALE_USE_STATISTICS
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_IPSEC_ESP_CBC_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for IPSEC
|
||||
* ESP in IPHWCRYPTO.
|
||||
*/
|
||||
|
||||
#define IPFREESCALE_USE_IPSEC_ESP_CBC_ENGINE
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_DIGEST_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for message
|
||||
* digests in IPHWCRYPTO.
|
||||
*/
|
||||
#define IPFREESCALE_USE_DIGEST_ENGINE
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_CIPHER_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for ciphers
|
||||
* in IPHWCRYPTO.
|
||||
*/
|
||||
#define IPFREESCALE_USE_CIPHER_ENGINE
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_RANDOM_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for random
|
||||
* number generation in IPHWCRYPTO.
|
||||
*/
|
||||
#define IPFREESCALE_USE_RANDOM_ENGINE
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_DH_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for Diffie-
|
||||
* Hellman operations in IPHWCRYPTO.
|
||||
*/
|
||||
#if defined(IPFREESCALE_SEC2) || defined(IPFREESCALE_SEC4)
|
||||
#define IPFREESCALE_USE_DH_ENGINE
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_RSA_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for RSA
|
||||
* operations in IPHWCRYPTO.
|
||||
*/
|
||||
#if defined(IPFREESCALE_SEC2) || defined(IPFREESCALE_SEC4)
|
||||
#define IPFREESCALE_USE_RSA_ENGINE
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_DSA_ENGINE
|
||||
*===========================================================================
|
||||
* Define this macro to register device as the default engine for DSA
|
||||
* operations in IPHWCRYPTO.
|
||||
*/
|
||||
#if defined(IPFREESCALE_SEC2) || defined(IPFREESCALE_SEC4)
|
||||
#define IPFREESCALE_USE_DSA_ENGINE
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(IPFREESCALE_SEC2) || defined (IPFREESCALE_SEC4)
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_SEC_NUM_TASKS
|
||||
*===========================================================================
|
||||
* This macro controls the maximum number of tasks that can use the SEC device
|
||||
* simultaneously.
|
||||
*/
|
||||
#define IPFREESCALE_SEC_NUM_TASKS 10
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_SEC_TIMEOUT
|
||||
*===========================================================================
|
||||
* This macro controls the maximum time in milliseconds to wait for a crypto
|
||||
* operation in the SEC device to complete.
|
||||
*/
|
||||
#define IPFREESCALE_SEC_TIMEOUT 3000
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_SEC_USE_ASYNC_IPSEC
|
||||
*===========================================================================
|
||||
* This macro controls if asynchronous ipsec mode should be used. Set to
|
||||
* IP_TRUE if asynchronous mode should be used and to IP_FALSE if not.
|
||||
* Note! LKM port must use asynchronous mode - always set to IP_TRUE.
|
||||
*/
|
||||
#ifdef IPCOM_FORWARDER_NAE
|
||||
#define IPFREESCALE_SEC_IPSEC_MODE_ASYNC IP_FALSE
|
||||
#else
|
||||
#define IPFREESCALE_SEC_IPSEC_MODE_ASYNC IP_TRUE
|
||||
#endif
|
||||
|
||||
#endif /* #if defined(IPFREESCALE_SEC2) || defined(IPFREESCALE_SEC4) */
|
||||
|
||||
#ifdef IPFREESCALE_SEC4
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_USE_HW_SA
|
||||
*===========================================================================
|
||||
* Define this macro to allow for SEC4 based devices to use HW cached IPsec SA.
|
||||
*/
|
||||
/* #define IPFREESCALE_USE_HW_SA */
|
||||
|
||||
#endif /* #ifdef IPFREESCALE_SEC4 */
|
||||
|
||||
#ifdef IPFREESCALE_COLDFIRE
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_COLDFIRE_MBAR
|
||||
*===========================================================================
|
||||
* This macro controls the module base address register (MBAR). It defines
|
||||
* the logical base address for the memory-mapped space containing the
|
||||
* control registers for the on-chip peripherals.
|
||||
*/
|
||||
#define IPFREESCALE_COLDFIRE_MBAR 0xF0000000
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_COLDFIRE_USE_YIELD
|
||||
*===========================================================================
|
||||
* This macros enables yielding. Define thios macros if you want the calling
|
||||
* task to let other tasks execute while the calling tak is waiting for the
|
||||
* device operaiton to complete.
|
||||
*/
|
||||
/* #define IPFREESCALE_COLDFIRE_USE_YIELD */
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPFREESCALE_COLDFIRE_FIX_DES_PARITY
|
||||
*===========================================================================
|
||||
* This macros controls if DES and 3DES keys should be fixed for correct
|
||||
* parity before used in the device.
|
||||
*/
|
||||
#define IPFREESCALE_COLDFIRE_FIX_DES_PARITY
|
||||
#endif /* #ifdef IPFREESCALE_COLDFIRE */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user