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

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

Staging: epl: run Lindent on *.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 bd5cd82d
Loading
Loading
Loading
Loading
+160 −166
Original line number Original line Diff line number Diff line
@@ -73,7 +73,6 @@


#include "global.h"
#include "global.h"



#if (TARGET_SYSTEM == _NO_OS_) && (DEV_SYSTEM == _DEV_GNU_CF548X_)
#if (TARGET_SYSTEM == _NO_OS_) && (DEV_SYSTEM == _DEV_GNU_CF548X_)
#include "common.h"
#include "common.h"


@@ -149,7 +148,6 @@
#define BENCHMARK_MOD_31                    0x40000000
#define BENCHMARK_MOD_31                    0x40000000
#define BENCHMARK_MOD_32                    0x80000000
#define BENCHMARK_MOD_32                    0x80000000



#if (BENCHMARK_MODULES & BENCHMARK_MOD_01)
#if (BENCHMARK_MODULES & BENCHMARK_MOD_01)
#define BENCHMARK_MOD_01_SET(x)         BENCHMARK_SET(x)
#define BENCHMARK_MOD_01_SET(x)         BENCHMARK_SET(x)
#define BENCHMARK_MOD_01_RESET(x)       BENCHMARK_RESET(x)
#define BENCHMARK_MOD_01_RESET(x)       BENCHMARK_RESET(x)
@@ -424,20 +422,16 @@
#define BENCHMARK_MOD_32_RESET(x)
#define BENCHMARK_MOD_32_RESET(x)
#endif
#endif



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// modul global types
// modul global types
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// local vars
// local vars
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// local function prototypes
// local function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



#endif // _BENCHMARK_H_
#endif // _BENCHMARK_H_
+485 −501
Original line number Original line Diff line number Diff line
@@ -71,7 +71,6 @@


#include "global.h"
#include "global.h"



/***************************************************************************/
/***************************************************************************/
/*                                                                         */
/*                                                                         */
/*                                                                         */
/*                                                                         */
@@ -122,30 +121,24 @@
#define DEBUG_LVL_ERROR                 0x40000000
#define DEBUG_LVL_ERROR                 0x40000000
#define DEBUG_LVL_ALWAYS                0x80000000
#define DEBUG_LVL_ALWAYS                0x80000000



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// global types
// global types
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// global vars
// global vars
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// global function prototypes
// global function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// global macros
// global macros
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// this macro defines a version string
// this macro defines a version string
#define MAKE_VERSION_STRING(product,appname,verstr,author) \
    "prd:" product ",app:" appname ",ver:" verstr ",dat:" __DATE__ ",aut:" author




//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -159,7 +152,6 @@
    prefix "Version:   " verstr                               "\n" \
    prefix "Version:   " verstr                               "\n" \
    prefix "***************************************************\n\n"
    prefix "***************************************************\n\n"



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// The default debug-level is: ERROR and ALWAYS.
// The default debug-level is: ERROR and ALWAYS.
// You can define an other debug-level in project settings.
// You can define an other debug-level in project settings.
@@ -170,7 +162,6 @@
#define DEBUG_GLB_LVL()                 (DEF_DEBUG_LVL)
#define DEBUG_GLB_LVL()                 (DEF_DEBUG_LVL)
#endif
#endif



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#if (DEV_SYSTEM == _DEV_WIN32_) && defined (TRACE_MSG)
#if (DEV_SYSTEM == _DEV_WIN32_) && defined (TRACE_MSG)


@@ -654,7 +645,6 @@


#endif
#endif



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// The macro DEBUG_DUMP_DATA() can be used with the same debug-levels to dump
// The macro DEBUG_DUMP_DATA() can be used with the same debug-levels to dump
// out data bytes. Function DumpData() has to be included.
// out data bytes. Function DumpData() has to be included.
@@ -662,8 +652,7 @@
#if (!defined (NDEBUG) && defined (DUMP_DATA)) || (DEV_SYSTEM == _DEV_WIN32_)
#if (!defined (NDEBUG) && defined (DUMP_DATA)) || (DEV_SYSTEM == _DEV_WIN32_)


#ifdef __cplusplus
#ifdef __cplusplus
    extern "C"
extern "C" {
    {
#endif
#endif


	void DumpData(char *szStr_p, BYTE MEM * pbData_p, WORD wSize_p);
	void DumpData(char *szStr_p, BYTE MEM * pbData_p, WORD wSize_p);
@@ -671,17 +660,14 @@
#ifdef __cplusplus
#ifdef __cplusplus
}				// von extern "C"
}				// von extern "C"
#endif
#endif

#define DEBUG_DUMP_DATA(lvl,str,ptr,siz)    if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \
#define DEBUG_DUMP_DATA(lvl,str,ptr,siz)    if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \
                                                    DumpData (str, (BYTE MEM*) (ptr), (WORD) (siz));
                                                    DumpData (str, (BYTE MEM*) (ptr), (WORD) (siz));

#else
#else


#define DEBUG_DUMP_DATA(lvl,str,ptr,siz)
#define DEBUG_DUMP_DATA(lvl,str,ptr,siz)


#endif
#endif



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// The macro DEBUG_ASSERT() can be used to print out an error string if the
// The macro DEBUG_ASSERT() can be used to print out an error string if the
// parametered expresion does not result TRUE.
// parametered expresion does not result TRUE.
@@ -731,7 +717,6 @@


#endif
#endif



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// The macro DEBUG_ONLY() implements code, if NDEBUG is not defined.
// The macro DEBUG_ONLY() implements code, if NDEBUG is not defined.
#if !defined (DEBUG_ONLY)
#if !defined (DEBUG_ONLY)
@@ -746,5 +731,4 @@
#endif
#endif
#endif
#endif



#endif // _DEBUG_H_
#endif // _DEBUG_H_
+6 −18
Original line number Original line Diff line number Diff line
@@ -73,37 +73,29 @@
#ifndef _EDRVFEC_H_
#ifndef _EDRVFEC_H_
#define _EDRVFEC_H_
#define _EDRVFEC_H_



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// do this in config header
// do this in config header
#define TARGET_HARDWARE TGTHW_SPLC_CF54
#define TARGET_HARDWARE TGTHW_SPLC_CF54



// base addresses
// base addresses
#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)



#elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)
#elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)



#else
#else


#error 'ERROR: Target was never implemented!'
#error 'ERROR: Target was never implemented!'


#endif
#endif




//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// types
// types
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



// Rx and Tx buffer descriptor format
// Rx and Tx buffer descriptor format
typedef struct
typedef struct {
{
	WORD m_wStatus;		// control / status  ---  used by edrv, do not change in application
	WORD m_wStatus;		// control / status  ---  used by edrv, do not change in application
	WORD m_wLength;		// transfer length
	WORD m_wLength;		// transfer length
	BYTE *m_pbData;		// buffer address
	BYTE *m_pbData;		// buffer address
@@ -119,8 +111,4 @@ typedef struct
// function prototypes
// function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------




#endif // #ifndef _EDRV_FEC_H_
#endif // #ifndef _EDRV_FEC_H_

+92 −99
Original line number Original line Diff line number Diff line
@@ -73,7 +73,6 @@
#ifndef _EDRVFEC_H_
#ifndef _EDRVFEC_H_
#define _EDRVFEC_H_
#define _EDRVFEC_H_



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -315,8 +314,7 @@
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


// Rx and Tx buffer descriptor format
// Rx and Tx buffer descriptor format
typedef struct
typedef struct {
{
	WORD m_wStatus;		// control / status  ---  used by edrv, do not change in application
	WORD m_wStatus;		// control / status  ---  used by edrv, do not change in application
	WORD m_wLength;		// transfer length
	WORD m_wLength;		// transfer length
	BYTE *m_pbData;		// buffer address
	BYTE *m_pbData;		// buffer address
@@ -339,9 +337,4 @@ typedef struct
#endif
#endif
#endif
#endif





#endif // #ifndef _EDRV_FEC_H_
#endif // #ifndef _EDRV_FEC_H_

+3 −8
Original line number Original line Diff line number Diff line
@@ -71,7 +71,6 @@
#ifndef _EDRVSIM_H_
#ifndef _EDRVSIM_H_
#define _EDRVSIM_H_
#define _EDRVSIM_H_



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// const defines
// const defines
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -80,15 +79,11 @@
// types
// types
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// function prototypes
// function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


void EdrvRxInterruptHandler (BYTE bBufferInFrame_p, BYTE * pbEthernetData_p, WORD wDataLen_p);
void EdrvRxInterruptHandler(BYTE bBufferInFrame_p, BYTE * pbEthernetData_p,

			    WORD wDataLen_p);



#endif // #ifndef _EDRVSIM_H_
#endif // #ifndef _EDRVSIM_H_

Loading