original files of m241
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
/* 02comp_ipnet_wrnad.cdf - configuration for Wind River Network
|
||||
Network Acceleration Daemon (NAD) */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01c,22nov10,spw fix VIP build warnings
|
||||
01b,05oct10,spw network configuration changes.
|
||||
01a,27may10,spw written.
|
||||
*/
|
||||
|
||||
#ifdef _WRS_CONFIG_COMPONENT_WRNAD
|
||||
|
||||
Component INCLUDE_WRNAD {
|
||||
NAME Network Acceleration Daemon (NAD)
|
||||
SYNOPSIS Wind River Network Acceleration Daemon (NAD).
|
||||
REQUIRES INCLUDE_MIPC_SM
|
||||
MODULES wrnad.o
|
||||
CONFIGLETTES wrnad_config.c
|
||||
INIT_RTN wrnad_configure();
|
||||
_INIT_ORDER usrNetAppInit
|
||||
LINK_SYMS wrnad_start
|
||||
CFG_PARAMS WRNAD_MIPC_NAE_BUS \
|
||||
WRNAD_MIPC_NAE_NODE \
|
||||
WRNAD_MIPC_NAE_PORT
|
||||
}
|
||||
|
||||
Parameter WRNAD_MIPC_NAE_BUS {
|
||||
NAME MIPC bus to use.
|
||||
SYNOPSIS Specify the MIPC bus number to use for WRNAD communication.
|
||||
TYPE char *
|
||||
DEFAULT "0"
|
||||
}
|
||||
|
||||
Parameter WRNAD_MIPC_NAE_NODE {
|
||||
NAME MIPC node number of the NAE.
|
||||
SYNOPSIS Specify the MIPC node number associated with the NAE.
|
||||
TYPE char *
|
||||
DEFAULT "1"
|
||||
}
|
||||
|
||||
Parameter WRNAD_MIPC_NAE_PORT {
|
||||
NAME MIPC port used by the NAE.
|
||||
SYNOPSIS Specify the MIPC port used by the NAE for WRNAD communication.
|
||||
TYPE char *
|
||||
DEFAULT "3"
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,4 @@
|
||||
#hidden option that enables WRNAD
|
||||
config SUPPORTS_WRNAD
|
||||
bool
|
||||
default y
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
#include "ipcom_sysvar.h"
|
||||
#include "ipcom_cstyle.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 GENERAL
|
||||
****************************************************************************
|
||||
*/
|
||||
/*
|
||||
*===========================================================================
|
||||
* wrnad_conf_sysvar
|
||||
*===========================================================================
|
||||
* Description: Initiates mandatory system configuration variables specific
|
||||
* for WRNAD.
|
||||
*
|
||||
*/
|
||||
|
||||
IP_STATIC IP_CONST Ipcom_sysvar wrnad_conf_sysvar[] =
|
||||
{
|
||||
/*
|
||||
* nae_bus
|
||||
*
|
||||
* MIPC bus to use for wrnad communication with the NAEs.
|
||||
*
|
||||
* Default: 0
|
||||
*/
|
||||
|
||||
IP_SYSVAR("wrnad.mipc.nae_bus", "0", WRNAD_MIPC_NAE_BUS),
|
||||
|
||||
/*
|
||||
* nae_node
|
||||
*
|
||||
* MIPC node number of the NAE to connect to.
|
||||
*
|
||||
* Default: 1
|
||||
*/
|
||||
|
||||
IP_SYSVAR("wrnad.mipc.nae_node", "1", WRNAD_MIPC_NAE_NODE),
|
||||
|
||||
/*
|
||||
* nae_port
|
||||
*
|
||||
* MIPC port used by the NAE for WRNAD communication.
|
||||
*
|
||||
* Default: 3
|
||||
*/
|
||||
|
||||
IP_SYSVAR("wrnad.mipc.nae_port", "3", WRNAD_MIPC_NAE_PORT),
|
||||
|
||||
{ IP_NULL, IP_NULL}
|
||||
};
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 PUBLIC FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* wrnad_configure - configure NAD
|
||||
*
|
||||
* This routine is used to configure the NAD with IPCOM
|
||||
*
|
||||
* RETURNS: 0
|
||||
*
|
||||
* ERRNO: N/A
|
||||
*/
|
||||
|
||||
IP_PUBLIC Ip_err
|
||||
wrnad_configure(void)
|
||||
{
|
||||
(void)ipcom_sysvar_setv(wrnad_conf_sysvar, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user