提交 833dfbe7 编写于 作者: G Greg Kroah-Hartman

Staging: epl: run Lindent on *.c files

It's a start, still a mess...

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e0ca0595
此差异已折叠。
此差异已折叠。
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#endif #endif
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -100,7 +99,6 @@ ...@@ -100,7 +99,6 @@
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -114,7 +112,6 @@ ...@@ -114,7 +112,6 @@
// //
/***************************************************************************/ /***************************************************************************/
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E D E F I N I T I O N S // // P R I V A T E D E F I N I T I O N S //
...@@ -130,16 +127,15 @@ ...@@ -130,16 +127,15 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0)) #if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
typedef struct typedef struct {
{ #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN]; BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
#endif #endif
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT]; BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT];
#endif #endif
} tEplApiProcessImageInstance; } tEplApiProcessImageInstance;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// local vars // local vars
...@@ -152,14 +148,12 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g; ...@@ -152,14 +148,12 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g;
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P U B L I C F U N C T I O N S // // P U B L I C F U N C T I O N S //
// // // //
//=========================================================================// //=========================================================================//
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplApiProcessImageSetup() // Function: EplApiProcessImageSetup()
...@@ -177,121 +171,97 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g; ...@@ -177,121 +171,97 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g;
tEplKernel PUBLIC EplApiProcessImageSetup(void) tEplKernel PUBLIC EplApiProcessImageSetup(void)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0)) #if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
unsigned int uiVarEntries; unsigned int uiVarEntries;
tEplObdSize ObdSize; tEplObdSize ObdSize;
#endif #endif
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2000,
0x2000, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2001,
0x2001, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 2; ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2010,
0x2010, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 2; ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2011,
0x2011, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 4; ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2020,
0x2020, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 4; ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2021,
0x2021, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
#endif #endif
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2030,
0x2030, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2031,
0x2031, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 2; ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2040,
0x2040, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 2; ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2041,
0x2041, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 4; ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2050,
0x2050, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
ObdSize = 4; ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2051,
0x2051, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries,
&ObdSize,
1); 1);
#endif #endif
...@@ -310,26 +280,29 @@ tEplObdSize ObdSize; ...@@ -310,26 +280,29 @@ tEplObdSize ObdSize;
// State: // State:
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
tEplKernel PUBLIC EplApiProcessImageExchangeIn(tEplApiProcessImage* pPI_p) tEplKernel PUBLIC EplApiProcessImageExchangeIn(tEplApiProcessImage * pPI_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__) #if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
copy_to_user(pPI_p->m_pImage, copy_to_user(pPI_p->m_pImage,
EplApiProcessImageInstance_g.m_abProcessImageInput, EplApiProcessImageInstance_g.m_abProcessImageInput,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput))); min(pPI_p->m_uiSize,
#else sizeof(EplApiProcessImageInstance_g.
m_abProcessImageInput)));
#else
EPL_MEMCPY(pPI_p->m_pImage, EPL_MEMCPY(pPI_p->m_pImage,
EplApiProcessImageInstance_g.m_abProcessImageInput, EplApiProcessImageInstance_g.m_abProcessImageInput,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput))); min(pPI_p->m_uiSize,
#endif sizeof(EplApiProcessImageInstance_g.
m_abProcessImageInput)));
#endif
#endif #endif
return Ret; return Ret;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Function: EplApiProcessImageExchangeOut() // Function: EplApiProcessImageExchangeOut()
// //
...@@ -342,33 +315,33 @@ tEplKernel Ret = kEplSuccessful; ...@@ -342,33 +315,33 @@ tEplKernel Ret = kEplSuccessful;
// State: // State:
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
tEplKernel PUBLIC EplApiProcessImageExchangeOut(tEplApiProcessImage* pPI_p) tEplKernel PUBLIC EplApiProcessImageExchangeOut(tEplApiProcessImage * pPI_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__) #if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput, copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput,
pPI_p->m_pImage, pPI_p->m_pImage,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput))); min(pPI_p->m_uiSize,
#else sizeof(EplApiProcessImageInstance_g.
m_abProcessImageOutput)));
#else
EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput, EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput,
pPI_p->m_pImage, pPI_p->m_pImage,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput))); min(pPI_p->m_uiSize,
#endif sizeof(EplApiProcessImageInstance_g.
m_abProcessImageOutput)));
#endif
#endif #endif
return Ret; return Ret;
} }
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E F U N C T I O N S // // P R I V A T E F U N C T I O N S //
// // // //
//=========================================================================// //=========================================================================//
// EOF // EOF
此差异已折叠。
此差异已折叠。
...@@ -78,7 +78,6 @@ ...@@ -78,7 +78,6 @@
#include "kernel/EplDllkCal.h" #include "kernel/EplDllkCal.h"
#endif #endif
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0)
/***************************************************************************/ /***************************************************************************/
...@@ -105,7 +104,6 @@ ...@@ -105,7 +104,6 @@
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -119,7 +117,6 @@ ...@@ -119,7 +117,6 @@
// //
/***************************************************************************/ /***************************************************************************/
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E D E F I N I T I O N S // // P R I V A T E D E F I N I T I O N S //
...@@ -134,8 +131,7 @@ ...@@ -134,8 +131,7 @@
// local types // local types
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef struct typedef struct {
{
tEplDlluCbAsnd m_apfnDlluCbAsnd[EPL_DLL_MAX_ASND_SERVICE_ID]; tEplDlluCbAsnd m_apfnDlluCbAsnd[EPL_DLL_MAX_ASND_SERVICE_ID];
} tEplDlluCalInstance; } tEplDlluCalInstance;
...@@ -152,7 +148,9 @@ static tEplDlluCalInstance EplDlluCalInstance_g; ...@@ -152,7 +148,9 @@ static tEplDlluCalInstance EplDlluCalInstance_g;
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceId_p, tEplDllAsndFilter Filter_p); static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId
ServiceId_p,
tEplDllAsndFilter Filter_p);
//=========================================================================// //=========================================================================//
// // // //
...@@ -177,10 +175,10 @@ static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceI ...@@ -177,10 +175,10 @@ static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceI
tEplKernel EplDlluCalAddInstance() tEplKernel EplDlluCalAddInstance()
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
// reset instance structure // reset instance structure
EPL_MEMSET(&EplDlluCalInstance_g, 0, sizeof (EplDlluCalInstance_g)); EPL_MEMSET(&EplDlluCalInstance_g, 0, sizeof(EplDlluCalInstance_g));
return Ret; return Ret;
} }
...@@ -202,15 +200,14 @@ tEplKernel Ret = kEplSuccessful; ...@@ -202,15 +200,14 @@ tEplKernel Ret = kEplSuccessful;
tEplKernel EplDlluCalDelInstance() tEplKernel EplDlluCalDelInstance()
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
// reset instance structure // reset instance structure
EPL_MEMSET(&EplDlluCalInstance_g, 0, sizeof (EplDlluCalInstance_g)); EPL_MEMSET(&EplDlluCalInstance_g, 0, sizeof(EplDlluCalInstance_g));
return Ret; return Ret;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplDlluCalProcess // Function: EplDlluCalProcess
...@@ -228,36 +225,39 @@ tEplKernel Ret = kEplSuccessful; ...@@ -228,36 +225,39 @@ tEplKernel Ret = kEplSuccessful;
tEplKernel EplDlluCalProcess(tEplEvent * pEvent_p) tEplKernel EplDlluCalProcess(tEplEvent * pEvent_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplMsgType MsgType; tEplMsgType MsgType;
unsigned int uiAsndServiceId; unsigned int uiAsndServiceId;
tEplFrameInfo FrameInfo; tEplFrameInfo FrameInfo;
if (pEvent_p->m_EventType == kEplEventTypeAsndRx) if (pEvent_p->m_EventType == kEplEventTypeAsndRx) {
{ FrameInfo.m_pFrame = (tEplFrame *) pEvent_p->m_pArg;
FrameInfo.m_pFrame = (tEplFrame*) pEvent_p->m_pArg;
FrameInfo.m_uiFrameSize = pEvent_p->m_uiSize; FrameInfo.m_uiFrameSize = pEvent_p->m_uiSize;
// extract NetTime // extract NetTime
FrameInfo.m_NetTime = pEvent_p->m_NetTime; FrameInfo.m_NetTime = pEvent_p->m_NetTime;
MsgType = (tEplMsgType)AmiGetByteFromLe(&FrameInfo.m_pFrame->m_le_bMessageType); MsgType =
if (MsgType != kEplMsgTypeAsnd) (tEplMsgType) AmiGetByteFromLe(&FrameInfo.m_pFrame->
{ m_le_bMessageType);
if (MsgType != kEplMsgTypeAsnd) {
Ret = kEplInvalidOperation; Ret = kEplInvalidOperation;
goto Exit; goto Exit;
} }
uiAsndServiceId = (unsigned int) AmiGetByteFromLe(&FrameInfo.m_pFrame->m_Data.m_Asnd.m_le_bServiceId); uiAsndServiceId =
if (uiAsndServiceId < EPL_DLL_MAX_ASND_SERVICE_ID) (unsigned int)AmiGetByteFromLe(&FrameInfo.m_pFrame->m_Data.
{ // ASnd service ID is valid m_Asnd.m_le_bServiceId);
if (EplDlluCalInstance_g.m_apfnDlluCbAsnd[uiAsndServiceId] != NULL) if (uiAsndServiceId < EPL_DLL_MAX_ASND_SERVICE_ID) { // ASnd service ID is valid
{ // handler was registered if (EplDlluCalInstance_g.m_apfnDlluCbAsnd[uiAsndServiceId] != NULL) { // handler was registered
Ret = EplDlluCalInstance_g.m_apfnDlluCbAsnd[uiAsndServiceId](&FrameInfo); Ret =
EplDlluCalInstance_g.
m_apfnDlluCbAsnd[uiAsndServiceId]
(&FrameInfo);
} }
} }
} }
Exit: Exit:
return Ret; return Ret;
} }
...@@ -279,20 +279,20 @@ tEplFrameInfo FrameInfo; ...@@ -279,20 +279,20 @@ tEplFrameInfo FrameInfo;
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
tEplKernel EplDlluCalRegAsndService(tEplDllAsndServiceId ServiceId_p, tEplDlluCbAsnd pfnDlluCbAsnd_p, tEplDllAsndFilter Filter_p) tEplKernel EplDlluCalRegAsndService(tEplDllAsndServiceId ServiceId_p,
tEplDlluCbAsnd pfnDlluCbAsnd_p,
tEplDllAsndFilter Filter_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
if (ServiceId_p < tabentries (EplDlluCalInstance_g.m_apfnDlluCbAsnd)) if (ServiceId_p < tabentries(EplDlluCalInstance_g.m_apfnDlluCbAsnd)) {
{
// memorize function pointer // memorize function pointer
EplDlluCalInstance_g.m_apfnDlluCbAsnd[ServiceId_p] = pfnDlluCbAsnd_p; EplDlluCalInstance_g.m_apfnDlluCbAsnd[ServiceId_p] =
pfnDlluCbAsnd_p;
if (pfnDlluCbAsnd_p == NULL) if (pfnDlluCbAsnd_p == NULL) { // close filter
{ // close filter
Filter_p = kEplDllAsndFilterNone; Filter_p = kEplDllAsndFilterNone;
} }
// set filter in DLL module in kernel part // set filter in DLL module in kernel part
Ret = EplDlluCalSetAsndServiceIdFilter(ServiceId_p, Filter_p); Ret = EplDlluCalSetAsndServiceIdFilter(ServiceId_p, Filter_p);
...@@ -319,9 +319,10 @@ tEplKernel Ret = kEplSuccessful; ...@@ -319,9 +319,10 @@ tEplKernel Ret = kEplSuccessful;
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
tEplKernel EplDlluCalAsyncSend(tEplFrameInfo * pFrameInfo_p, tEplDllAsyncReqPriority Priority_p) tEplKernel EplDlluCalAsyncSend(tEplFrameInfo * pFrameInfo_p,
tEplDllAsyncReqPriority Priority_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0)
pFrameInfo_p->m_uiFrameSize += 14; // add size of ethernet header pFrameInfo_p->m_uiFrameSize += 14; // add size of ethernet header
...@@ -333,7 +334,6 @@ tEplKernel Ret = kEplSuccessful; ...@@ -333,7 +334,6 @@ tEplKernel Ret = kEplSuccessful;
return Ret; return Ret;
} }
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -354,13 +354,13 @@ tEplKernel Ret = kEplSuccessful; ...@@ -354,13 +354,13 @@ tEplKernel Ret = kEplSuccessful;
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p, unsigned int uiNodeId_p, BYTE bSoaFlag1_p) tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p,
unsigned int uiNodeId_p, BYTE bSoaFlag1_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
// add node to appropriate request queue // add node to appropriate request queue
switch (Service_p) switch (Service_p) {
{
case kEplDllReqServiceIdent: case kEplDllReqServiceIdent:
case kEplDllReqServiceStatus: case kEplDllReqServiceStatus:
{ {
...@@ -373,7 +373,7 @@ tEplKernel Ret = kEplSuccessful; ...@@ -373,7 +373,7 @@ tEplKernel Ret = kEplSuccessful;
IssueReq.m_uiNodeId = uiNodeId_p; IssueReq.m_uiNodeId = uiNodeId_p;
IssueReq.m_bSoaFlag1 = bSoaFlag1_p; IssueReq.m_bSoaFlag1 = bSoaFlag1_p;
Event.m_pArg = &IssueReq; Event.m_pArg = &IssueReq;
Event.m_uiSize = sizeof (IssueReq); Event.m_uiSize = sizeof(IssueReq);
Ret = EplEventuPost(&Event); Ret = EplEventuPost(&Event);
break; break;
...@@ -386,11 +386,10 @@ tEplKernel Ret = kEplSuccessful; ...@@ -386,11 +386,10 @@ tEplKernel Ret = kEplSuccessful;
} }
} }
Exit: Exit:
return Ret; return Ret;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplDlluCalAddNode() // Function: EplDlluCalAddNode()
...@@ -408,20 +407,19 @@ tEplKernel Ret = kEplSuccessful; ...@@ -408,20 +407,19 @@ tEplKernel Ret = kEplSuccessful;
tEplKernel EplDlluCalAddNode(tEplDllNodeInfo * pNodeInfo_p) tEplKernel EplDlluCalAddNode(tEplDllNodeInfo * pNodeInfo_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplEvent Event; tEplEvent Event;
Event.m_EventSink = kEplEventSinkDllkCal; Event.m_EventSink = kEplEventSinkDllkCal;
Event.m_EventType = kEplEventTypeDllkAddNode; Event.m_EventType = kEplEventTypeDllkAddNode;
Event.m_pArg = pNodeInfo_p; Event.m_pArg = pNodeInfo_p;
Event.m_uiSize = sizeof (tEplDllNodeInfo); Event.m_uiSize = sizeof(tEplDllNodeInfo);
Ret = EplEventuPost(&Event); Ret = EplEventuPost(&Event);
return Ret; return Ret;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplDlluCalDeleteNode() // Function: EplDlluCalDeleteNode()
...@@ -439,20 +437,19 @@ tEplEvent Event; ...@@ -439,20 +437,19 @@ tEplEvent Event;
tEplKernel EplDlluCalDeleteNode(unsigned int uiNodeId_p) tEplKernel EplDlluCalDeleteNode(unsigned int uiNodeId_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplEvent Event; tEplEvent Event;
Event.m_EventSink = kEplEventSinkDllkCal; Event.m_EventSink = kEplEventSinkDllkCal;
Event.m_EventType = kEplEventTypeDllkDelNode; Event.m_EventType = kEplEventTypeDllkDelNode;
Event.m_pArg = &uiNodeId_p; Event.m_pArg = &uiNodeId_p;
Event.m_uiSize = sizeof (uiNodeId_p); Event.m_uiSize = sizeof(uiNodeId_p);
Ret = EplEventuPost(&Event); Ret = EplEventuPost(&Event);
return Ret; return Ret;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplDlluCalSoftDeleteNode() // Function: EplDlluCalSoftDeleteNode()
...@@ -470,23 +467,21 @@ tEplEvent Event; ...@@ -470,23 +467,21 @@ tEplEvent Event;
tEplKernel EplDlluCalSoftDeleteNode(unsigned int uiNodeId_p) tEplKernel EplDlluCalSoftDeleteNode(unsigned int uiNodeId_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplEvent Event; tEplEvent Event;
Event.m_EventSink = kEplEventSinkDllkCal; Event.m_EventSink = kEplEventSinkDllkCal;
Event.m_EventType = kEplEventTypeDllkSoftDelNode; Event.m_EventType = kEplEventTypeDllkSoftDelNode;
Event.m_pArg = &uiNodeId_p; Event.m_pArg = &uiNodeId_p;
Event.m_uiSize = sizeof (uiNodeId_p); Event.m_uiSize = sizeof(uiNodeId_p);
Ret = EplEventuPost(&Event); Ret = EplEventuPost(&Event);
return Ret; return Ret;
} }
#endif // (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #endif // (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E F U N C T I O N S // // P R I V A T E F U N C T I O N S //
...@@ -509,26 +504,26 @@ tEplEvent Event; ...@@ -509,26 +504,26 @@ tEplEvent Event;
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceId_p, tEplDllAsndFilter Filter_p) static tEplKernel EplDlluCalSetAsndServiceIdFilter(tEplDllAsndServiceId
ServiceId_p,
tEplDllAsndFilter Filter_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplEvent Event; tEplEvent Event;
tEplDllCalAsndServiceIdFilter ServFilter; tEplDllCalAsndServiceIdFilter ServFilter;
Event.m_EventSink = kEplEventSinkDllkCal; Event.m_EventSink = kEplEventSinkDllkCal;
Event.m_EventType = kEplEventTypeDllkServFilter; Event.m_EventType = kEplEventTypeDllkServFilter;
ServFilter.m_ServiceId = ServiceId_p; ServFilter.m_ServiceId = ServiceId_p;
ServFilter.m_Filter = Filter_p; ServFilter.m_Filter = Filter_p;
Event.m_pArg = &ServFilter; Event.m_pArg = &ServFilter;
Event.m_uiSize = sizeof (ServFilter); Event.m_uiSize = sizeof(ServFilter);
Ret = EplEventuPost(&Event); Ret = EplEventuPost(&Event);
return Ret; return Ret;
} }
#endif // (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0) #endif // (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0)
// EOF // EOF
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -71,11 +71,9 @@ ...@@ -71,11 +71,9 @@
#include "kernel/EplNmtkCal.h" #include "kernel/EplNmtkCal.h"
// TODO: init function needed to prepare EplNmtkGetNmtState for // TODO: init function needed to prepare EplNmtkGetNmtState for
// io-controll-call from EplNmtuCal-Modul // io-controll-call from EplNmtuCal-Modul
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -100,8 +98,6 @@ ...@@ -100,8 +98,6 @@
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P U B L I C F U N C T I O N S // // P U B L I C F U N C T I O N S //
...@@ -126,7 +122,6 @@ ...@@ -126,7 +122,6 @@
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E F U N C T I O N S // // P R I V A T E F U N C T I O N S //
...@@ -151,7 +146,4 @@ ...@@ -151,7 +146,4 @@
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// EOF // EOF
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册