139 lines
4.3 KiB
C
139 lines
4.3 KiB
C
/*
|
|
******************************************************************************
|
|
* 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
|
|
****************************************************************************
|
|
*/
|