Loading drivers/staging/epl/Benchmark.h +160 −166 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ #include "global.h" #if (TARGET_SYSTEM == _NO_OS_) && (DEV_SYSTEM == _DEV_GNU_CF548X_) #include "common.h" Loading Loading @@ -149,7 +148,6 @@ #define BENCHMARK_MOD_31 0x40000000 #define BENCHMARK_MOD_32 0x80000000 #if (BENCHMARK_MODULES & BENCHMARK_MOD_01) #define BENCHMARK_MOD_01_SET(x) BENCHMARK_SET(x) #define BENCHMARK_MOD_01_RESET(x) BENCHMARK_RESET(x) Loading Loading @@ -424,20 +422,16 @@ #define BENCHMARK_MOD_32_RESET(x) #endif //--------------------------------------------------------------------------- // modul global types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // local vars //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // local function prototypes //--------------------------------------------------------------------------- #endif // _BENCHMARK_H_ drivers/staging/epl/Debug.h +485 −501 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ #include "global.h" /***************************************************************************/ /* */ /* */ Loading Loading @@ -122,30 +121,24 @@ #define DEBUG_LVL_ERROR 0x40000000 #define DEBUG_LVL_ALWAYS 0x80000000 //--------------------------------------------------------------------------- // global types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global vars //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global function prototypes //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global macros //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // this macro defines a version string #define MAKE_VERSION_STRING(product,appname,verstr,author) \ "prd:" product ",app:" appname ",ver:" verstr ",dat:" __DATE__ ",aut:" author //--------------------------------------------------------------------------- Loading @@ -159,7 +152,6 @@ prefix "Version: " verstr "\n" \ prefix "***************************************************\n\n" //--------------------------------------------------------------------------- // The default debug-level is: ERROR and ALWAYS. // You can define an other debug-level in project settings. Loading @@ -170,7 +162,6 @@ #define DEBUG_GLB_LVL() (DEF_DEBUG_LVL) #endif //--------------------------------------------------------------------------- #if (DEV_SYSTEM == _DEV_WIN32_) && defined (TRACE_MSG) Loading Loading @@ -654,7 +645,6 @@ #endif //--------------------------------------------------------------------------- // The macro DEBUG_DUMP_DATA() can be used with the same debug-levels to dump // out data bytes. Function DumpData() has to be included. Loading @@ -662,8 +652,7 @@ #if (!defined (NDEBUG) && defined (DUMP_DATA)) || (DEV_SYSTEM == _DEV_WIN32_) #ifdef __cplusplus extern "C" { extern "C" { #endif void DumpData(char *szStr_p, BYTE MEM * pbData_p, WORD wSize_p); Loading @@ -671,17 +660,14 @@ #ifdef __cplusplus } // von extern "C" #endif #define DEBUG_DUMP_DATA(lvl,str,ptr,siz) if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \ DumpData (str, (BYTE MEM*) (ptr), (WORD) (siz)); #else #define DEBUG_DUMP_DATA(lvl,str,ptr,siz) #endif //--------------------------------------------------------------------------- // The macro DEBUG_ASSERT() can be used to print out an error string if the // parametered expresion does not result TRUE. Loading Loading @@ -731,7 +717,6 @@ #endif //--------------------------------------------------------------------------- // The macro DEBUG_ONLY() implements code, if NDEBUG is not defined. #if !defined (DEBUG_ONLY) Loading @@ -746,5 +731,4 @@ #endif #endif #endif // _DEBUG_H_ drivers/staging/epl/EdrvFec.h +6 −18 Original line number Diff line number Diff line Loading @@ -73,37 +73,29 @@ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- // do this in config header #define TARGET_HARDWARE TGTHW_SPLC_CF54 // base addresses #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485) #else #error 'ERROR: Target was never implemented!' #endif //--------------------------------------------------------------------------- // types //--------------------------------------------------------------------------- // 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_wLength; // transfer length BYTE *m_pbData; // buffer address Loading @@ -119,8 +111,4 @@ typedef struct // function prototypes //--------------------------------------------------------------------------- #endif // #ifndef _EDRV_FEC_H_ drivers/staging/epl/EdrvFec5282.h +92 −99 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- Loading Loading @@ -315,8 +314,7 @@ //--------------------------------------------------------------------------- // 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_wLength; // transfer length BYTE *m_pbData; // buffer address Loading @@ -339,9 +337,4 @@ typedef struct #endif #endif #endif // #ifndef _EDRV_FEC_H_ drivers/staging/epl/EdrvSim.h +3 −8 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ #ifndef _EDRVSIM_H_ #define _EDRVSIM_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- Loading @@ -80,15 +79,11 @@ // types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // 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_ Loading
drivers/staging/epl/Benchmark.h +160 −166 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ #include "global.h" #if (TARGET_SYSTEM == _NO_OS_) && (DEV_SYSTEM == _DEV_GNU_CF548X_) #include "common.h" Loading Loading @@ -149,7 +148,6 @@ #define BENCHMARK_MOD_31 0x40000000 #define BENCHMARK_MOD_32 0x80000000 #if (BENCHMARK_MODULES & BENCHMARK_MOD_01) #define BENCHMARK_MOD_01_SET(x) BENCHMARK_SET(x) #define BENCHMARK_MOD_01_RESET(x) BENCHMARK_RESET(x) Loading Loading @@ -424,20 +422,16 @@ #define BENCHMARK_MOD_32_RESET(x) #endif //--------------------------------------------------------------------------- // modul global types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // local vars //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // local function prototypes //--------------------------------------------------------------------------- #endif // _BENCHMARK_H_
drivers/staging/epl/Debug.h +485 −501 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ #include "global.h" /***************************************************************************/ /* */ /* */ Loading Loading @@ -122,30 +121,24 @@ #define DEBUG_LVL_ERROR 0x40000000 #define DEBUG_LVL_ALWAYS 0x80000000 //--------------------------------------------------------------------------- // global types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global vars //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global function prototypes //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // global macros //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // this macro defines a version string #define MAKE_VERSION_STRING(product,appname,verstr,author) \ "prd:" product ",app:" appname ",ver:" verstr ",dat:" __DATE__ ",aut:" author //--------------------------------------------------------------------------- Loading @@ -159,7 +152,6 @@ prefix "Version: " verstr "\n" \ prefix "***************************************************\n\n" //--------------------------------------------------------------------------- // The default debug-level is: ERROR and ALWAYS. // You can define an other debug-level in project settings. Loading @@ -170,7 +162,6 @@ #define DEBUG_GLB_LVL() (DEF_DEBUG_LVL) #endif //--------------------------------------------------------------------------- #if (DEV_SYSTEM == _DEV_WIN32_) && defined (TRACE_MSG) Loading Loading @@ -654,7 +645,6 @@ #endif //--------------------------------------------------------------------------- // The macro DEBUG_DUMP_DATA() can be used with the same debug-levels to dump // out data bytes. Function DumpData() has to be included. Loading @@ -662,8 +652,7 @@ #if (!defined (NDEBUG) && defined (DUMP_DATA)) || (DEV_SYSTEM == _DEV_WIN32_) #ifdef __cplusplus extern "C" { extern "C" { #endif void DumpData(char *szStr_p, BYTE MEM * pbData_p, WORD wSize_p); Loading @@ -671,17 +660,14 @@ #ifdef __cplusplus } // von extern "C" #endif #define DEBUG_DUMP_DATA(lvl,str,ptr,siz) if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \ DumpData (str, (BYTE MEM*) (ptr), (WORD) (siz)); #else #define DEBUG_DUMP_DATA(lvl,str,ptr,siz) #endif //--------------------------------------------------------------------------- // The macro DEBUG_ASSERT() can be used to print out an error string if the // parametered expresion does not result TRUE. Loading Loading @@ -731,7 +717,6 @@ #endif //--------------------------------------------------------------------------- // The macro DEBUG_ONLY() implements code, if NDEBUG is not defined. #if !defined (DEBUG_ONLY) Loading @@ -746,5 +731,4 @@ #endif #endif #endif // _DEBUG_H_
drivers/staging/epl/EdrvFec.h +6 −18 Original line number Diff line number Diff line Loading @@ -73,37 +73,29 @@ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- // do this in config header #define TARGET_HARDWARE TGTHW_SPLC_CF54 // base addresses #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485) #else #error 'ERROR: Target was never implemented!' #endif //--------------------------------------------------------------------------- // types //--------------------------------------------------------------------------- // 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_wLength; // transfer length BYTE *m_pbData; // buffer address Loading @@ -119,8 +111,4 @@ typedef struct // function prototypes //--------------------------------------------------------------------------- #endif // #ifndef _EDRV_FEC_H_
drivers/staging/epl/EdrvFec5282.h +92 −99 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- Loading Loading @@ -315,8 +314,7 @@ //--------------------------------------------------------------------------- // 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_wLength; // transfer length BYTE *m_pbData; // buffer address Loading @@ -339,9 +337,4 @@ typedef struct #endif #endif #endif // #ifndef _EDRV_FEC_H_
drivers/staging/epl/EdrvSim.h +3 −8 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ #ifndef _EDRVSIM_H_ #define _EDRVSIM_H_ //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- Loading @@ -80,15 +79,11 @@ // types //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // 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_