Loading drivers/staging/epl/Benchmark.h +160 −166 Original line number Original line Diff line number Diff line Loading @@ -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" Loading Loading @@ -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) Loading Loading @@ -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_ drivers/staging/epl/Debug.h +485 −501 Original line number Original line Diff line number Diff line Loading @@ -71,7 +71,6 @@ #include "global.h" #include "global.h" /***************************************************************************/ /***************************************************************************/ /* */ /* */ /* */ /* */ Loading Loading @@ -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 //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading @@ -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. Loading @@ -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) Loading Loading @@ -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. Loading @@ -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); Loading @@ -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. Loading Loading @@ -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) Loading @@ -746,5 +731,4 @@ #endif #endif #endif #endif #endif // _DEBUG_H_ #endif // _DEBUG_H_ drivers/staging/epl/EdrvFec.h +6 −18 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -119,8 +111,4 @@ typedef struct // function prototypes // function prototypes //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #endif // #ifndef _EDRV_FEC_H_ #endif // #ifndef _EDRV_FEC_H_ drivers/staging/epl/EdrvFec5282.h +92 −99 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,6 @@ #ifndef _EDRVFEC_H_ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // const defines // const defines //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading Loading @@ -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 Loading @@ -339,9 +337,4 @@ typedef struct #endif #endif #endif #endif #endif // #ifndef _EDRV_FEC_H_ #endif // #ifndef _EDRV_FEC_H_ drivers/staging/epl/EdrvSim.h +3 −8 Original line number Original line Diff line number Diff line Loading @@ -71,7 +71,6 @@ #ifndef _EDRVSIM_H_ #ifndef _EDRVSIM_H_ #define _EDRVSIM_H_ #define _EDRVSIM_H_ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // const defines // const defines //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading @@ -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
drivers/staging/epl/Benchmark.h +160 −166 Original line number Original line Diff line number Diff line Loading @@ -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" Loading Loading @@ -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) Loading Loading @@ -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_
drivers/staging/epl/Debug.h +485 −501 Original line number Original line Diff line number Diff line Loading @@ -71,7 +71,6 @@ #include "global.h" #include "global.h" /***************************************************************************/ /***************************************************************************/ /* */ /* */ /* */ /* */ Loading Loading @@ -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 //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading @@ -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. Loading @@ -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) Loading Loading @@ -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. Loading @@ -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); Loading @@ -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. Loading Loading @@ -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) Loading @@ -746,5 +731,4 @@ #endif #endif #endif #endif #endif // _DEBUG_H_ #endif // _DEBUG_H_
drivers/staging/epl/EdrvFec.h +6 −18 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -119,8 +111,4 @@ typedef struct // function prototypes // function prototypes //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #endif // #ifndef _EDRV_FEC_H_ #endif // #ifndef _EDRV_FEC_H_
drivers/staging/epl/EdrvFec5282.h +92 −99 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,6 @@ #ifndef _EDRVFEC_H_ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ #define _EDRVFEC_H_ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // const defines // const defines //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading Loading @@ -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 Loading @@ -339,9 +337,4 @@ typedef struct #endif #endif #endif #endif #endif // #ifndef _EDRV_FEC_H_ #endif // #ifndef _EDRV_FEC_H_
drivers/staging/epl/EdrvSim.h +3 −8 Original line number Original line Diff line number Diff line Loading @@ -71,7 +71,6 @@ #ifndef _EDRVSIM_H_ #ifndef _EDRVSIM_H_ #define _EDRVSIM_H_ #define _EDRVSIM_H_ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // const defines // const defines //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- Loading @@ -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_