original files of m241

This commit is contained in:
neelimap
2026-07-30 11:19:44 +05:30
parent 170c2b3f3a
commit afc7070c1f
12254 changed files with 7655111 additions and 0 deletions
@@ -0,0 +1,33 @@
/* 01ipcavium.cdf - IPCAVIUM configuration file */
/*
* Copyright (c) 2006-2007 Wind River Systems, Inc.
*
* The right to copy, distribute or otherwise make use of this software
* may be licensed only pursuant to the terms of an applicable Wind River
* license agreement. No license to Wind River intellectual property rights
* is granted herein. All rights not licensed by Wind River are reserved
* by Wind River.
*/
#ifdef _WRS_CONFIG_COMPONENT_IPCAVIUM
Component INCLUDE_IPCAVIUM
{
NAME Hardware crypto offload for Cavium.
_CHILDREN FOLDER_CRYPTO
SYNOPSIS Enables the Cavium crypto offload
CONFIGLETTES ipcavium_config.c
MODULES ipcavium_ipsec.o
REQUIRES INCLUDE_IPHWCRYPTO INCLUDE_IPCAVIUM_CMD
}
/* This is a hidden component */
Component INCLUDE_IPCAVIUM_CMD
{
NAME cavium
SYNOPSIS cavium test command
MODULES ipcavium_ipsec.o
_CHILDREN FOLDER_NOT_VISIBLE
REQUIRES INCLUDE_IPCOM_SHELL_CMD
}
#endif
@@ -0,0 +1,12 @@
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: common.vxconfig,v $ $Revision: 1.5 $
# $Source: /home/interpeak/CVSRoot/ipcavium/config/common.vxconfig,v $
# $Author: myakan $
# $State: Exp $ $Locker: $
#
# INTERPEAK_COPYRIGHT_STRING
#hidden option that enables IPCAVIUM
config SUPPORTS_CAVIUM
bool
default y
@@ -0,0 +1,138 @@
/*
******************************************************************************
* INTERPEAK CONFIGURATION SOURCE FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcavium_config.c,v $ $Revision: 1.2 $
* $Source: /home/interpeak/CVSRoot/ipcavium/config/ipcavium_config.c,v $
* $Author: markus $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
******************************************************************************
*/
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
* IPCAVIUM - Hardware crypto support product - configuration.
*/
/*
****************************************************************************
* 2 INCLUDE FILES
****************************************************************************
*/
#include "ipcavium_config.h"
#include <ipcom_type.h>
#include <ipcom_cstyle.h>
#include <ipcom_err.h>
#include <ipcom_shell.h>
#include <ipcom_sysvar.h>
/*
****************************************************************************
* 3 DEFINES
****************************************************************************
*/
/*
****************************************************************************
* 4 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 5 EXTERN PROTOTYPES
****************************************************************************
*/
IP_EXTERN int ipcavium_cmd_cavium(int argc, char **argv);
/*
****************************************************************************
* 6 LOCAL PROTOTYPES
****************************************************************************
*/
IP_PUBLIC Ip_err ipcavium_configure(void);
/*
****************************************************************************
* 7 DATA
****************************************************************************
*/
/*
*===========================================================================
* ipcavium_conf_sysvar
*===========================================================================
* Cavium configuration Variables
*/
IP_CONST Ipcom_sysvar ipcavium_conf_sysvar[] =
{
{ IP_NULL, IP_NULL }
};
/*
****************************************************************************
* 8 STATIC FUNCTIONS
****************************************************************************
*/
/*
****************************************************************************
* 9 GLOBAL FUNCTIONS
****************************************************************************
*/
/*
****************************************************************************
* 10 PUBLIC FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* ipcavium_configure
*===========================================================================
* Description: Product configure hook. Called by IPCOM at startup.
* Parameters: none.
* Returns: IPCOM_SUCCESS = ok
* IPCOM_ERR_FAILED = error
*
*/
IP_PUBLIC Ip_err
ipcavium_configure(void)
{
Ip_err ret;
ret = ipcom_sysvar_setv(ipcavium_conf_sysvar, 0);
if(ret != IPCOM_SUCCESS)
return ret;
#if defined(INCLUDE_IPCAVIUM_CMD) || !defined(IP_PORT_VXWORKS)
ret = ipcom_shell_add_cmd("cavium", "cavium [cmd] <modifier...>", "Test Cavium hardware crypto",
(Ipcom_shell_cmd_type)ipcavium_cmd_cavium,
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_DEFAULT);
if(ret != IPCOM_SUCCESS)
return ret;
#endif /* defined(INCLUDE_IPCAVIUM_CMD) || !defined(IP_PORT_VXWORKS) */
return IPCOM_SUCCESS;
}
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/
@@ -0,0 +1,148 @@
/*
******************************************************************************
* INTERPEAK CONFIGURATION HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcavium_config.h,v $ $Revision: 1.1.1.1 $
* $Source: /home/interpeak/CVSRoot/ipcavium/config/ipcavium_config.h,v $
* $Author: markus $ $Date: 2008-12-17 08:08:03 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Markus Carlstedt <markus@interpeak.se>
******************************************************************************
*/
#ifndef IPCAVIUM_CONFIG_H
#define IPCAVIUM_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
****************************************************************************
*/
/*
*===========================================================================
* IPCAVIUM_USE_STATISTICS
*===========================================================================
* Define this macro to include usage and error statistics.
*/
#define IPCAVIUM_USE_STATISTICS
/*
*===========================================================================
* IPCAVIUM_USE_IPSEC_ESP_CBC_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for IPSEC
* ESP in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_IPSEC_ESP_CBC_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_DIGEST_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for message
* digests in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_DIGEST_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_CIPHER_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for ciphers
* in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_CIPHER_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_RANDOM_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for random
* number generation in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_RANDOM_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_DH_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for Diffie-
* Hellman operations in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_DH_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_RSA_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for RSA
* operations in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_RSA_ENGINE
/*
*===========================================================================
* IPCAVIUM_USE_DSA_ENGINE
*===========================================================================
* Define this macro to register device as the default engine for DSA
* operations in IPHWCRYPTO.
*/
#define IPCAVIUM_USE_DSA_ENGINE
/*
****************************************************************************
* 4 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 5 FUNCTIONS
****************************************************************************
*/
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/