Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd5cd82d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: epl: run Lindent on all user/*.h 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ba338d46
Loading
Loading
Loading
Loading
+70 −85
Original line number Original line Diff line number Diff line
@@ -90,8 +90,7 @@ typedef void (PUBLIC* tfpEplCfgMaCb) (unsigned int uiNodeId_p,
				       tEplKernel Errorstate_p);
				       tEplKernel Errorstate_p);


//State for configuartion manager Statemachine
//State for configuartion manager Statemachine
typedef enum
typedef enum {
{
	// general states
	// general states
	kEplCfgMaIdle = 0x0000,	// Configurationsprocess
	kEplCfgMaIdle = 0x0000,	// Configurationsprocess
	// is idle
	// is idle
@@ -101,21 +100,16 @@ typedef enum
	// parameter with 0
	// parameter with 0


	kEplCfgMaFinished = 0x0004	// configuartion is finished
	kEplCfgMaFinished = 0x0004	// configuartion is finished

} tEplCfgState;
} tEplCfgState;


typedef enum
typedef enum {
{
	kEplCfgMaDcfTypSystecSeg = 0x00,
	kEplCfgMaDcfTypSystecSeg = 0x00,
	kEplCfgMaDcfTypConDcf = 0x01,
	kEplCfgMaDcfTypConDcf = 0x01,
	kEplCfgMaDcfTypDcf = 0x02,	// not supported
	kEplCfgMaDcfTypDcf = 0x02,	// not supported
	kEplCfgMaDcfTypXdc = 0x03	// not supported
	kEplCfgMaDcfTypXdc = 0x03	// not supported


} tEplCfgMaDcfTyp;
} tEplCfgMaDcfTyp;


typedef enum
typedef enum {
{
	kEplCfgMaCommon = 0,	// all other index
	kEplCfgMaCommon = 0,	// all other index
	kEplCfgMaPdoComm = 1,	// communication index
	kEplCfgMaPdoComm = 1,	// communication index
	kEplCfgMaPdoMapp = 2,	// mapping index
	kEplCfgMaPdoMapp = 2,	// mapping index
@@ -123,11 +117,9 @@ typedef enum


} tEplCfgMaIndexType;
} tEplCfgMaIndexType;



//bitcoded answer about the last sdo transfer saved in m_SdocState
//bitcoded answer about the last sdo transfer saved in m_SdocState
// also used to singal start of the State Maschine
// also used to singal start of the State Maschine
typedef enum
typedef enum {
{
	kEplCfgMaSdocBusy = 0x00,	// SDOC activ
	kEplCfgMaSdocBusy = 0x00,	// SDOC activ
	kEplCfgMaSdocReady = 0x01,	// SDOC finished
	kEplCfgMaSdocReady = 0x01,	// SDOC finished
	kEplCfgMaSdocTimeout = 0x02,	// SDOC Timeout
	kEplCfgMaSdocTimeout = 0x02,	// SDOC Timeout
@@ -136,8 +128,7 @@ typedef enum
} tEplSdocState;
} tEplSdocState;


//internal structure (instancetable for modul configuration manager)
//internal structure (instancetable for modul configuration manager)
typedef struct
typedef struct {
{
	tEplCfgState m_CfgState;	// state of the configuration state maschine
	tEplCfgState m_CfgState;	// state of the configuration state maschine
	tEplSdoComConHdl m_SdoComConHdl;	// handle for sdo connection
	tEplSdoComConHdl m_SdoComConHdl;	// handle for sdo connection
	DWORD m_dwLastAbortCode;
	DWORD m_dwLastAbortCode;
@@ -219,7 +210,6 @@ tEplKernel PUBLIC EplCfgMaStartConfig(unsigned int uiNodeId_p,
				      tEplObdSize SizeOfConcise_p,
				      tEplObdSize SizeOfConcise_p,
				      tEplCfgMaDcfTyp DcfType_p);
				      tEplCfgMaDcfTyp DcfType_p);



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Function:    CfgMaStartConfigurationNode()
// Function:    CfgMaStartConfigurationNode()
//
//
@@ -236,7 +226,6 @@ tEplKernel PUBLIC EplCfgMaStartConfigNode(unsigned int uiNodeId_p,
					  tfpEplCfgMaCb fpCfgMaCb_p,
					  tfpEplCfgMaCb fpCfgMaCb_p,
					  tEplCfgMaDcfTyp DcfType_p);
					  tEplCfgMaDcfTyp DcfType_p);



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Function:    EplCfgMaStartConfigNodeDcf()
// Function:    EplCfgMaStartConfigNodeDcf()
//
//
@@ -288,10 +277,6 @@ tEplKernel PUBLIC EplCfgMaLinkDcf(unsigned int uiNodeId_p,
tEplKernel PUBLIC EplCfgMaCheckDcf(unsigned int uiNodeId_p,
tEplKernel PUBLIC EplCfgMaCheckDcf(unsigned int uiNodeId_p,
				   tEplCfgMaDcfTyp DcfType_p);
				   tEplCfgMaDcfTyp DcfType_p);






#endif // #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_CFGMA)) != 0)
#endif // #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_CFGMA)) != 0)


#endif // _EPLCFGMA_H_
#endif // _EPLCFGMA_H_
+7 −7
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


  2006/06/20 d.k.:   start of the implementation, version 1.00
  2006/06/20 d.k.:   start of the implementation, version 1.00



****************************************************************************/
****************************************************************************/


#ifndef _EPL_DLLU_H_
#ifndef _EPL_DLLU_H_
@@ -94,9 +93,12 @@ tEplKernel EplDlluAddInstance(void);


tEplKernel EplDlluDelInstance(void);
tEplKernel EplDlluDelInstance(void);


tEplKernel EplDlluRegAsndService(tEplDllAsndServiceId ServiceId_p, tEplDlluCbAsnd pfnDlluCbAsnd_p, tEplDllAsndFilter Filter_p);
tEplKernel EplDlluRegAsndService(tEplDllAsndServiceId ServiceId_p,
				 tEplDlluCbAsnd pfnDlluCbAsnd_p,
				 tEplDllAsndFilter Filter_p);


tEplKernel EplDlluAsyncSend(tEplFrameInfo * pFrameInfo_p, tEplDllAsyncReqPriority Priority_p);
tEplKernel EplDlluAsyncSend(tEplFrameInfo * pFrameInfo_p,
			    tEplDllAsyncReqPriority Priority_p);


// processes asynch frames
// processes asynch frames
tEplKernel EplDlluProcess(tEplFrameInfo * pFrameInfo_p);
tEplKernel EplDlluProcess(tEplFrameInfo * pFrameInfo_p);
@@ -104,5 +106,3 @@ tEplKernel EplDlluProcess(tEplFrameInfo * pFrameInfo_p);
#endif // #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0)
#endif // #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLU)) != 0)


#endif // #ifndef _EPL_DLLU_H_
#endif // #ifndef _EPL_DLLU_H_

+8 −11
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


  2006/06/20 d.k.:   start of the implementation, version 1.00
  2006/06/20 d.k.:   start of the implementation, version 1.00



****************************************************************************/
****************************************************************************/


#ifndef _EPL_DLLUCAL_H_
#ifndef _EPL_DLLUCAL_H_
@@ -97,11 +96,11 @@ tEplKernel EplDlluCalRegAsndService(tEplDllAsndServiceId ServiceId_p,
				    tEplDlluCbAsnd pfnDlluCbAsnd_p,
				    tEplDlluCbAsnd pfnDlluCbAsnd_p,
				    tEplDllAsndFilter Filter_p);
				    tEplDllAsndFilter Filter_p);


tEplKernel EplDlluCalAsyncSend(tEplFrameInfo * pFrameInfo, tEplDllAsyncReqPriority Priority_p);
tEplKernel EplDlluCalAsyncSend(tEplFrameInfo * pFrameInfo,
			       tEplDllAsyncReqPriority Priority_p);


tEplKernel EplDlluCalProcess(tEplEvent * pEvent_p);
tEplKernel EplDlluCalProcess(tEplEvent * pEvent_p);



#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)


tEplKernel EplDlluCalAddNode(tEplDllNodeInfo * pNodeInfo_p);
tEplKernel EplDlluCalAddNode(tEplDllNodeInfo * pNodeInfo_p);
@@ -110,11 +109,9 @@ tEplKernel EplDlluCalDeleteNode(unsigned int uiNodeId_p);


tEplKernel EplDlluCalSoftDeleteNode(unsigned int uiNodeId_p);
tEplKernel EplDlluCalSoftDeleteNode(unsigned int uiNodeId_p);


tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p, unsigned int uiNodeId_p, BYTE bSoaFlag1_p);
tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p,
				  unsigned int uiNodeId_p, BYTE bSoaFlag1_p);


#endif
#endif



#endif // #ifndef _EPL_DLLUCAL_H_
#endif // #ifndef _EPL_DLLUCAL_H_

+5 −12
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


  2006/06/12 d.k.:   start of the implementation, version 1.00
  2006/06/12 d.k.:   start of the implementation, version 1.00



****************************************************************************/
****************************************************************************/


#ifndef _EPL_EVENTU_H_
#ifndef _EPL_EVENTU_H_
@@ -74,7 +73,6 @@


#include "../EplEvent.h"
#include "../EplEvent.h"



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -83,7 +81,6 @@
// typedef
// typedef
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// function prototypes
// function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -91,7 +88,8 @@
tEplKernel PUBLIC EplEventuInit(tEplProcessEventCb pfnApiProcessEventCb_p);
tEplKernel PUBLIC EplEventuInit(tEplProcessEventCb pfnApiProcessEventCb_p);


// add instance
// add instance
tEplKernel PUBLIC EplEventuAddInstance(tEplProcessEventCb pfnApiProcessEventCb_p);
tEplKernel PUBLIC EplEventuAddInstance(tEplProcessEventCb
				       pfnApiProcessEventCb_p);


// delete instance
// delete instance
tEplKernel PUBLIC EplEventuDelInstance(void);
tEplKernel PUBLIC EplEventuDelInstance(void);
@@ -105,11 +103,6 @@ tEplKernel PUBLIC EplEventuPost(tEplEvent * pEvent_p);
// post errorevents from userspace
// post errorevents from userspace
tEplKernel PUBLIC EplEventuPostError(tEplEventSource EventSource_p,
tEplKernel PUBLIC EplEventuPostError(tEplEventSource EventSource_p,
				     tEplKernel EplError_p,
				     tEplKernel EplError_p,
                                     unsigned int    uiArgSize_p,
				     unsigned int uiArgSize_p, void *pArg_p);
                                     void*           pArg_p);




#endif // #ifndef _EPL_EVENTU_H_
#endif // #ifndef _EPL_EVENTU_H_

+10 −15
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


  2006/11/15 d.k.:   start of the implementation
  2006/11/15 d.k.:   start of the implementation



****************************************************************************/
****************************************************************************/


#include "../EplDll.h"
#include "../EplDll.h"
@@ -74,19 +73,17 @@
#ifndef _EPLIDENTU_H_
#ifndef _EPLIDENTU_H_
#define _EPLIDENTU_H_
#define _EPLIDENTU_H_



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// typedef
// typedef
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


typedef tEplKernel (PUBLIC * tEplIdentuCbResponse) (
typedef tEplKernel(PUBLIC * tEplIdentuCbResponse) (unsigned int uiNodeId_p,
                                  unsigned int        uiNodeId_p,
						   tEplIdentResponse *
                                  tEplIdentResponse* pIdentResponse_p);
						   pIdentResponse_p);


//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// function prototypes
// function prototypes
@@ -100,14 +97,12 @@ tEplKernel PUBLIC EplIdentuDelInstance(void);


tEplKernel PUBLIC EplIdentuReset(void);
tEplKernel PUBLIC EplIdentuReset(void);


tEplKernel PUBLIC EplIdentuGetIdentResponse(
tEplKernel PUBLIC EplIdentuGetIdentResponse(unsigned int uiNodeId_p,
                                  unsigned int        uiNodeId_p,
					    tEplIdentResponse **
                                  tEplIdentResponse** ppIdentResponse_p);
					    ppIdentResponse_p);


tEplKernel PUBLIC EplIdentuRequestIdentResponse(
tEplKernel PUBLIC EplIdentuRequestIdentResponse(unsigned int uiNodeId_p,
                                  unsigned int        uiNodeId_p,
						tEplIdentuCbResponse
                                  tEplIdentuCbResponse pfnCbResponse_p);
						pfnCbResponse_p);


#endif // #ifndef _EPLIDENTU_H_
#endif // #ifndef _EPLIDENTU_H_

Loading