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

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

Staging: epl: run Lindent on all kernel/*.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 9d7164cf
Loading
Loading
Loading
Loading
+23 −29
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


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



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


#ifndef _EPL_DLLK_H_
#ifndef _EPL_DLLK_H_
@@ -79,15 +78,13 @@
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



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


typedef tEplKernel(*tEplDllkCbAsync) (tEplFrameInfo * pFrameInfo_p);
typedef tEplKernel(*tEplDllkCbAsync) (tEplFrameInfo * pFrameInfo_p);


typedef struct
typedef struct {
{
	BYTE m_be_abSrcMac[6];
	BYTE m_be_abSrcMac[6];


} tEplDllkInitParam;
} tEplDllkInitParam;
@@ -95,8 +92,7 @@ typedef struct
// forward declaration
// forward declaration
struct _tEdrvTxBuffer;
struct _tEdrvTxBuffer;


struct _tEplDllkNodeInfo
struct _tEplDllkNodeInfo {
{
	struct _tEplDllkNodeInfo *m_pNextNodeInfo;
	struct _tEplDllkNodeInfo *m_pNextNodeInfo;
	struct _tEdrvTxBuffer *m_pPreqTxBuffer;
	struct _tEdrvTxBuffer *m_pPreqTxBuffer;
	unsigned int m_uiNodeId;
	unsigned int m_uiNodeId;
@@ -138,7 +134,8 @@ tEplKernel EplDllkRegAsyncHandler(tEplDllkCbAsync pfnDllkCbAsync_p);
tEplKernel EplDllkDeregAsyncHandler(tEplDllkCbAsync pfnDllkCbAsync_p);
tEplKernel EplDllkDeregAsyncHandler(tEplDllkCbAsync pfnDllkCbAsync_p);


// register C_DLL_MULTICAST_ASND in ethernet driver if any AsndServiceId is registered
// register C_DLL_MULTICAST_ASND in ethernet driver if any AsndServiceId is registered
tEplKernel EplDllkSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceId_p, tEplDllAsndFilter Filter_p);
tEplKernel EplDllkSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceId_p,
					 tEplDllAsndFilter Filter_p);


// creates the buffer for a Tx frame and registers it to the ethernet driver
// creates the buffer for a Tx frame and registers it to the ethernet driver
tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
@@ -149,7 +146,6 @@ tEplKernel EplDllkCreateTxFrame(unsigned int * puiHandle_p,


tEplKernel EplDllkDeleteTxFrame(unsigned int uiHandle_p);
tEplKernel EplDllkDeleteTxFrame(unsigned int uiHandle_p);



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


tEplKernel EplDllkAddNode(tEplDllNodeInfo * pNodeInfo_p);
tEplKernel EplDllkAddNode(tEplDllNodeInfo * pNodeInfo_p);
@@ -167,5 +163,3 @@ tEplKernel EplDllkGetFirstNodeInfo(tEplDllkNodeInfo** ppNodeInfo_p);
#endif // #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0)
#endif // #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0)


#endif // #ifndef _EPL_DLLK_H_
#endif // #ifndef _EPL_DLLK_H_

+23 −18
Original line number Original line Diff line number Diff line
@@ -66,7 +66,6 @@


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



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


#ifndef _EPL_DLLKCAL_H_
#ifndef _EPL_DLLKCAL_H_
@@ -83,8 +82,7 @@
// typedef
// typedef
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


typedef struct
typedef struct {
{
	unsigned long m_ulCurTxFrameCountGen;
	unsigned long m_ulCurTxFrameCountGen;
	unsigned long m_ulCurTxFrameCountNmt;
	unsigned long m_ulCurTxFrameCountNmt;
	unsigned long m_ulCurRxFrameCount;
	unsigned long m_ulCurRxFrameCount;
@@ -104,12 +102,16 @@ tEplKernel EplDllkCalAddInstance(void);


tEplKernel EplDllkCalDelInstance(void);
tEplKernel EplDllkCalDelInstance(void);


tEplKernel EplDllkCalAsyncGetTxCount(tEplDllAsyncReqPriority * pPriority_p, unsigned int * puiCount_p);
tEplKernel EplDllkCalAsyncGetTxCount(tEplDllAsyncReqPriority * pPriority_p,
tEplKernel EplDllkCalAsyncGetTxFrame(void * pFrame_p, unsigned int * puiFrameSize_p, tEplDllAsyncReqPriority Priority_p);
				     unsigned int *puiCount_p);
tEplKernel EplDllkCalAsyncGetTxFrame(void *pFrame_p,
				     unsigned int *puiFrameSize_p,
				     tEplDllAsyncReqPriority Priority_p);
// only frames with registered AsndServiceIds are passed to CAL
// only frames with registered AsndServiceIds are passed to CAL
tEplKernel EplDllkCalAsyncFrameReceived(tEplFrameInfo * pFrameInfo_p);
tEplKernel EplDllkCalAsyncFrameReceived(tEplFrameInfo * pFrameInfo_p);


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


tEplKernel EplDllkCalAsyncClearBuffer(void);
tEplKernel EplDllkCalAsyncClearBuffer(void);


@@ -121,16 +123,19 @@ tEplKernel EplDllkCalProcess(tEplEvent * pEvent_p);


tEplKernel EplDllkCalAsyncClearQueues(void);
tEplKernel EplDllkCalAsyncClearQueues(void);


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


tEplKernel EplDllkCalAsyncGetSoaRequest(tEplDllReqServiceId* pReqServiceId_p, unsigned int* puiNodeId_p);
tEplKernel EplDllkCalAsyncGetSoaRequest(tEplDllReqServiceId * pReqServiceId_p,
					unsigned int *puiNodeId_p);


tEplKernel EplDllkCalAsyncSetPendingRequests(unsigned int uiNodeId_p, tEplDllAsyncReqPriority AsyncReqPrio_p, unsigned int uiCount_p);
tEplKernel EplDllkCalAsyncSetPendingRequests(unsigned int uiNodeId_p,
					     tEplDllAsyncReqPriority
					     AsyncReqPrio_p,
					     unsigned int uiCount_p);


#endif //(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
#endif //(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)


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


#endif // #ifndef _EPL_DLLKCAL_H_
#endif // #ifndef _EPL_DLLKCAL_H_

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


  2006/10/02 d.k.:   start of the implementation, version 1.00
  2006/10/02 d.k.:   start of the implementation, version 1.00



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


#ifndef _EPL_ERRORHANDLERK_H_
#ifndef _EPL_ERRORHANDLERK_H_
@@ -98,7 +97,4 @@ tEplKernel PUBLIC EplErrorHandlerkDelInstance(void);
// processes error events
// processes error events
tEplKernel PUBLIC EplErrorHandlerkProcess(tEplEvent * pEvent_p);
tEplKernel PUBLIC EplErrorHandlerkProcess(tEplEvent * pEvent_p);



#endif // #ifndef _EPL_ERRORHANDLERK_H_
#endif // #ifndef _EPL_ERRORHANDLERK_H_

+3 −9
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_EVENTK_H_
#ifndef _EPL_EVENTK_H_
@@ -104,11 +103,6 @@ tEplKernel PUBLIC EplEventkPost(tEplEvent * pEvent_p);
// post errorevents from kernelspace
// post errorevents from kernelspace
tEplKernel PUBLIC EplEventkPostError(tEplEventSource EventSource_p,
tEplKernel PUBLIC EplEventkPostError(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_EVENTK_H_
#endif // #ifndef _EPL_EVENTK_H_

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


  2006/06/09 k.t.:   start of the implementation
  2006/06/09 k.t.:   start of the implementation



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


#ifndef _EPLNMTK_H_
#ifndef _EPLNMTK_H_
@@ -75,36 +74,32 @@
#include "../EplNmt.h"
#include "../EplNmt.h"
#include "EplEventk.h"
#include "EplEventk.h"



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



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



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// function prototypes
// function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMTK)) != 0)
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMTK)) != 0)
EPLDLLEXPORT tEplKernel PUBLIC EplNmtkInit(EPL_MCO_DECL_PTR_INSTANCE_PTR);
EPLDLLEXPORT tEplKernel PUBLIC EplNmtkInit(EPL_MCO_DECL_PTR_INSTANCE_PTR);


EPLDLLEXPORT tEplKernel PUBLIC EplNmtkAddInstance(EPL_MCO_DECL_PTR_INSTANCE_PTR);
EPLDLLEXPORT tEplKernel PUBLIC
EplNmtkAddInstance(EPL_MCO_DECL_PTR_INSTANCE_PTR);


EPLDLLEXPORT tEplKernel PUBLIC EplNmtkDelInstance(EPL_MCO_DECL_PTR_INSTANCE_PTR);
EPLDLLEXPORT tEplKernel PUBLIC
EplNmtkDelInstance(EPL_MCO_DECL_PTR_INSTANCE_PTR);


EPLDLLEXPORT tEplKernel PUBLIC EplNmtkProcess(EPL_MCO_DECL_PTR_INSTANCE_PTR_
EPLDLLEXPORT tEplKernel PUBLIC EplNmtkProcess(EPL_MCO_DECL_PTR_INSTANCE_PTR_
					      tEplEvent * pEvent_p);
					      tEplEvent * pEvent_p);


EPLDLLEXPORT tEplNmtState PUBLIC EplNmtkGetNmtState(EPL_MCO_DECL_PTR_INSTANCE_PTR);
EPLDLLEXPORT tEplNmtState PUBLIC
EplNmtkGetNmtState(EPL_MCO_DECL_PTR_INSTANCE_PTR);


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




#endif // #ifndef _EPLNMTK_H_
#endif // #ifndef _EPLNMTK_H_

Loading