From 0841a555af4e15c1048f69b800a475f2fbf315a9 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 28 Jul 2009 17:05:51 -0700 Subject: Staging: remove epl driver This is no longer maintained upstream, and no one cares about it at all, so delete it. The fact that it is duplicating an existing network driver also is a good reason to remove it, it's causing nothing but trouble right now. Cc: Daniel Krueger Cc: Ronald Sieber Signed-off-by: Greg Kroah-Hartman --- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/epl/Benchmark.h | 425 --- drivers/staging/epl/Debug.h | 694 ----- drivers/staging/epl/Edrv8139.c | 1246 -------- drivers/staging/epl/EdrvFec.h | 114 - drivers/staging/epl/EdrvSim.h | 89 - drivers/staging/epl/Epl.h | 272 -- drivers/staging/epl/EplAmi.h | 323 -- drivers/staging/epl/EplApiGeneric.c | 2054 ------------- drivers/staging/epl/EplApiLinux.h | 141 - drivers/staging/epl/EplApiLinuxKernel.c | 1173 ------- drivers/staging/epl/EplApiProcessImage.c | 328 -- drivers/staging/epl/EplCfg.h | 196 -- drivers/staging/epl/EplDef.h | 355 --- drivers/staging/epl/EplDll.h | 205 -- drivers/staging/epl/EplDllCal.h | 123 - drivers/staging/epl/EplDllk.c | 4052 ------------------------- drivers/staging/epl/EplDllkCal.c | 1260 -------- drivers/staging/epl/EplDlluCal.c | 529 ---- drivers/staging/epl/EplErrDef.h | 294 -- drivers/staging/epl/EplErrorHandlerk.c | 810 ----- drivers/staging/epl/EplEvent.h | 279 -- drivers/staging/epl/EplEventk.c | 853 ------ drivers/staging/epl/EplEventu.c | 813 ----- drivers/staging/epl/EplFrame.h | 344 --- drivers/staging/epl/EplIdentu.c | 486 --- drivers/staging/epl/EplInc.h | 370 --- drivers/staging/epl/EplInstDef.h | 363 --- drivers/staging/epl/EplLed.h | 92 - drivers/staging/epl/EplNmt.h | 230 -- drivers/staging/epl/EplNmtCnu.c | 701 ----- drivers/staging/epl/EplNmtMnu.c | 2828 ----------------- drivers/staging/epl/EplNmtk.c | 1840 ----------- drivers/staging/epl/EplNmtkCal.c | 147 - drivers/staging/epl/EplNmtu.c | 706 ----- drivers/staging/epl/EplNmtuCal.c | 158 - drivers/staging/epl/EplObd.c | 3192 ------------------- drivers/staging/epl/EplObd.h | 456 --- drivers/staging/epl/EplObdMacro.h | 354 --- drivers/staging/epl/EplObdkCal.c | 146 - drivers/staging/epl/EplObdu.c | 506 --- drivers/staging/epl/EplObduCal.c | 543 ---- drivers/staging/epl/EplPdo.h | 117 - drivers/staging/epl/EplPdok.c | 669 ---- drivers/staging/epl/EplPdokCal.c | 266 -- drivers/staging/epl/EplPdou.c | 565 ---- drivers/staging/epl/EplSdo.h | 241 -- drivers/staging/epl/EplSdoAc.h | 111 - drivers/staging/epl/EplSdoAsndu.c | 483 --- drivers/staging/epl/EplSdoAsySequ.c | 2522 --------------- drivers/staging/epl/EplSdoComu.c | 3345 -------------------- drivers/staging/epl/EplSdoUdpu.c | 650 ---- drivers/staging/epl/EplStatusu.c | 377 --- drivers/staging/epl/EplTarget.h | 140 - drivers/staging/epl/EplTimer.h | 116 - drivers/staging/epl/EplTimeruLinuxKernel.c | 446 --- drivers/staging/epl/EplVersion.h | 98 - drivers/staging/epl/Kconfig | 6 - drivers/staging/epl/Makefile | 41 - drivers/staging/epl/SharedBuff.c | 1762 ----------- drivers/staging/epl/SharedBuff.h | 187 -- drivers/staging/epl/ShbIpc-LinuxKernel.c | 944 ------ drivers/staging/epl/ShbIpc.h | 99 - drivers/staging/epl/ShbLinuxKernel.h | 68 - drivers/staging/epl/SocketLinuxKernel.c | 197 -- drivers/staging/epl/SocketLinuxKernel.h | 105 - drivers/staging/epl/TimerHighReskX86.c | 510 ---- drivers/staging/epl/VirtualEthernetLinux.c | 348 --- drivers/staging/epl/amix86.c | 861 ------ drivers/staging/epl/demo_main.c | 947 ------ drivers/staging/epl/edrv.h | 167 - drivers/staging/epl/global.h | 144 - drivers/staging/epl/kernel/EplDllk.h | 153 - drivers/staging/epl/kernel/EplDllkCal.h | 129 - drivers/staging/epl/kernel/EplErrorHandlerk.h | 88 - drivers/staging/epl/kernel/EplEventk.h | 96 - drivers/staging/epl/kernel/EplNmtk.h | 90 - drivers/staging/epl/kernel/EplObdk.h | 156 - drivers/staging/epl/kernel/EplPdok.h | 98 - drivers/staging/epl/kernel/EplPdokCal.h | 86 - drivers/staging/epl/kernel/EplTimerHighResk.h | 96 - drivers/staging/epl/kernel/EplTimerk.h | 108 - drivers/staging/epl/kernel/VirtualEthernet.h | 84 - drivers/staging/epl/proc_fs.c | 410 --- drivers/staging/epl/proc_fs.h | 89 - drivers/staging/epl/user/EplCfgMau.h | 276 -- drivers/staging/epl/user/EplDllu.h | 96 - drivers/staging/epl/user/EplDlluCal.h | 106 - drivers/staging/epl/user/EplEventu.h | 96 - drivers/staging/epl/user/EplIdentu.h | 94 - drivers/staging/epl/user/EplLedu.h | 95 - drivers/staging/epl/user/EplNmtCnu.h | 92 - drivers/staging/epl/user/EplNmtMnu.h | 117 - drivers/staging/epl/user/EplNmtu.h | 139 - drivers/staging/epl/user/EplNmtuCal.h | 80 - drivers/staging/epl/user/EplObdu.h | 169 -- drivers/staging/epl/user/EplObduCal.h | 126 - drivers/staging/epl/user/EplPdou.h | 96 - drivers/staging/epl/user/EplSdoAsndu.h | 96 - drivers/staging/epl/user/EplSdoAsySequ.h | 100 - drivers/staging/epl/user/EplSdoComu.h | 114 - drivers/staging/epl/user/EplSdoUdpu.h | 97 - drivers/staging/epl/user/EplStatusu.h | 90 - drivers/staging/epl/user/EplTimeru.h | 95 - 105 files changed, 50482 deletions(-) delete mode 100644 drivers/staging/epl/Benchmark.h delete mode 100644 drivers/staging/epl/Debug.h delete mode 100644 drivers/staging/epl/Edrv8139.c delete mode 100644 drivers/staging/epl/EdrvFec.h delete mode 100644 drivers/staging/epl/EdrvSim.h delete mode 100644 drivers/staging/epl/Epl.h delete mode 100644 drivers/staging/epl/EplAmi.h delete mode 100644 drivers/staging/epl/EplApiGeneric.c delete mode 100644 drivers/staging/epl/EplApiLinux.h delete mode 100644 drivers/staging/epl/EplApiLinuxKernel.c delete mode 100644 drivers/staging/epl/EplApiProcessImage.c delete mode 100644 drivers/staging/epl/EplCfg.h delete mode 100644 drivers/staging/epl/EplDef.h delete mode 100644 drivers/staging/epl/EplDll.h delete mode 100644 drivers/staging/epl/EplDllCal.h delete mode 100644 drivers/staging/epl/EplDllk.c delete mode 100644 drivers/staging/epl/EplDllkCal.c delete mode 100644 drivers/staging/epl/EplDlluCal.c delete mode 100644 drivers/staging/epl/EplErrDef.h delete mode 100644 drivers/staging/epl/EplErrorHandlerk.c delete mode 100644 drivers/staging/epl/EplEvent.h delete mode 100644 drivers/staging/epl/EplEventk.c delete mode 100644 drivers/staging/epl/EplEventu.c delete mode 100644 drivers/staging/epl/EplFrame.h delete mode 100644 drivers/staging/epl/EplIdentu.c delete mode 100644 drivers/staging/epl/EplInc.h delete mode 100644 drivers/staging/epl/EplInstDef.h delete mode 100644 drivers/staging/epl/EplLed.h delete mode 100644 drivers/staging/epl/EplNmt.h delete mode 100644 drivers/staging/epl/EplNmtCnu.c delete mode 100644 drivers/staging/epl/EplNmtMnu.c delete mode 100644 drivers/staging/epl/EplNmtk.c delete mode 100644 drivers/staging/epl/EplNmtkCal.c delete mode 100644 drivers/staging/epl/EplNmtu.c delete mode 100644 drivers/staging/epl/EplNmtuCal.c delete mode 100644 drivers/staging/epl/EplObd.c delete mode 100644 drivers/staging/epl/EplObd.h delete mode 100644 drivers/staging/epl/EplObdMacro.h delete mode 100644 drivers/staging/epl/EplObdkCal.c delete mode 100644 drivers/staging/epl/EplObdu.c delete mode 100644 drivers/staging/epl/EplObduCal.c delete mode 100644 drivers/staging/epl/EplPdo.h delete mode 100644 drivers/staging/epl/EplPdok.c delete mode 100644 drivers/staging/epl/EplPdokCal.c delete mode 100644 drivers/staging/epl/EplPdou.c delete mode 100644 drivers/staging/epl/EplSdo.h delete mode 100644 drivers/staging/epl/EplSdoAc.h delete mode 100644 drivers/staging/epl/EplSdoAsndu.c delete mode 100644 drivers/staging/epl/EplSdoAsySequ.c delete mode 100644 drivers/staging/epl/EplSdoComu.c delete mode 100644 drivers/staging/epl/EplSdoUdpu.c delete mode 100644 drivers/staging/epl/EplStatusu.c delete mode 100644 drivers/staging/epl/EplTarget.h delete mode 100644 drivers/staging/epl/EplTimer.h delete mode 100644 drivers/staging/epl/EplTimeruLinuxKernel.c delete mode 100644 drivers/staging/epl/EplVersion.h delete mode 100644 drivers/staging/epl/Kconfig delete mode 100644 drivers/staging/epl/Makefile delete mode 100644 drivers/staging/epl/SharedBuff.c delete mode 100644 drivers/staging/epl/SharedBuff.h delete mode 100644 drivers/staging/epl/ShbIpc-LinuxKernel.c delete mode 100644 drivers/staging/epl/ShbIpc.h delete mode 100644 drivers/staging/epl/ShbLinuxKernel.h delete mode 100644 drivers/staging/epl/SocketLinuxKernel.c delete mode 100644 drivers/staging/epl/SocketLinuxKernel.h delete mode 100644 drivers/staging/epl/TimerHighReskX86.c delete mode 100644 drivers/staging/epl/VirtualEthernetLinux.c delete mode 100644 drivers/staging/epl/amix86.c delete mode 100644 drivers/staging/epl/demo_main.c delete mode 100644 drivers/staging/epl/edrv.h delete mode 100644 drivers/staging/epl/global.h delete mode 100644 drivers/staging/epl/kernel/EplDllk.h delete mode 100644 drivers/staging/epl/kernel/EplDllkCal.h delete mode 100644 drivers/staging/epl/kernel/EplErrorHandlerk.h delete mode 100644 drivers/staging/epl/kernel/EplEventk.h delete mode 100644 drivers/staging/epl/kernel/EplNmtk.h delete mode 100644 drivers/staging/epl/kernel/EplObdk.h delete mode 100644 drivers/staging/epl/kernel/EplPdok.h delete mode 100644 drivers/staging/epl/kernel/EplPdokCal.h delete mode 100644 drivers/staging/epl/kernel/EplTimerHighResk.h delete mode 100644 drivers/staging/epl/kernel/EplTimerk.h delete mode 100644 drivers/staging/epl/kernel/VirtualEthernet.h delete mode 100644 drivers/staging/epl/proc_fs.c delete mode 100644 drivers/staging/epl/proc_fs.h delete mode 100644 drivers/staging/epl/user/EplCfgMau.h delete mode 100644 drivers/staging/epl/user/EplDllu.h delete mode 100644 drivers/staging/epl/user/EplDlluCal.h delete mode 100644 drivers/staging/epl/user/EplEventu.h delete mode 100644 drivers/staging/epl/user/EplIdentu.h delete mode 100644 drivers/staging/epl/user/EplLedu.h delete mode 100644 drivers/staging/epl/user/EplNmtCnu.h delete mode 100644 drivers/staging/epl/user/EplNmtMnu.h delete mode 100644 drivers/staging/epl/user/EplNmtu.h delete mode 100644 drivers/staging/epl/user/EplNmtuCal.h delete mode 100644 drivers/staging/epl/user/EplObdu.h delete mode 100644 drivers/staging/epl/user/EplObduCal.h delete mode 100644 drivers/staging/epl/user/EplPdou.h delete mode 100644 drivers/staging/epl/user/EplSdoAsndu.h delete mode 100644 drivers/staging/epl/user/EplSdoAsySequ.h delete mode 100644 drivers/staging/epl/user/EplSdoComu.h delete mode 100644 drivers/staging/epl/user/EplSdoUdpu.h delete mode 100644 drivers/staging/epl/user/EplStatusu.h delete mode 100644 drivers/staging/epl/user/EplTimeru.h diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 58274ca5e63c..7b500a88060a 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -95,8 +95,6 @@ source "drivers/staging/mimio/Kconfig" source "drivers/staging/frontier/Kconfig" -source "drivers/staging/epl/Kconfig" - source "drivers/staging/android/Kconfig" source "drivers/staging/dream/Kconfig" diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 0bf10ac04d07..1ac7c8f23d02 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -30,7 +30,6 @@ obj-$(CONFIG_RTL8192SU) += rtl8192su/ obj-$(CONFIG_USB_RSPI) += rspiusb/ obj-$(CONFIG_INPUT_MIMIO) += mimio/ obj-$(CONFIG_TRANZPORT) += frontier/ -obj-$(CONFIG_EPL) += epl/ obj-$(CONFIG_ANDROID) += android/ obj-$(CONFIG_ANDROID) += dream/ obj-$(CONFIG_DST) += dst/ diff --git a/drivers/staging/epl/Benchmark.h b/drivers/staging/epl/Benchmark.h deleted file mode 100644 index 4cc01bd12a1a..000000000000 --- a/drivers/staging/epl/Benchmark.h +++ /dev/null @@ -1,425 +0,0 @@ -/**************************************************************************** - - (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29 - www.systec-electronic.com - - Project: openPOWERLINK - - Description: header file for benchmarking - - License: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. Neither the name of SYSTEC electronic GmbH nor the names of its - contributors may be used to endorse or promote products derived - from this software without prior written permission. For written - permission, please contact info@systec-electronic.com. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - - Severability Clause: - - If a provision of this License is or becomes illegal, invalid or - unenforceable in any jurisdiction, that shall not affect: - 1. the validity or enforceability in that jurisdiction of any other - provision of this License; or - 2. the validity or enforceability in other jurisdictions of that or - any other provision of this License. - - ------------------------------------------------------------------------- - - $RCSfile: Benchmark.h,v $ - - $Author: D.Krueger $ - - $Revision: 1.5 $ $Date: 2008/04/17 21:36:32 $ - - $State: Exp $ - - Build Environment: - ... - - ------------------------------------------------------------------------- - - Revision History: - - 2006/08/16 d.k.: start of implementation - -****************************************************************************/ - -#ifndef _BENCHMARK_H_ -#define _BENCHMARK_H_ - -#include "global.h" - -#include - -#ifdef CONFIG_COLDFIRE -#include -#include - -#define BENCHMARK_SET(x) MCF_GPIO_PODR_PCIBG |= (1 << (x)) // (x+1) -#define BENCHMARK_RESET(x) MCF_GPIO_PODR_PCIBG &= ~(1 << (x)) // (x+1) -#define BENCHMARK_TOGGLE(x) MCF_GPIO_PODR_PCIBR ^= (1 << (x - 5)) -#else -#undef BENCHMARK_MODULES -#define BENCHMARK_MODULES 0x00000000 -#endif - -/***************************************************************************/ -/* */ -/* */ -/* G L O B A L D E F I N I T I O N S */ -/* */ -/* */ -/***************************************************************************/ - -//--------------------------------------------------------------------------- -// const defines -//--------------------------------------------------------------------------- - -#ifndef BENCHMARK_MODULES -#define BENCHMARK_MODULES 0x00000000 -#endif - -#define BENCHMARK_MOD_01 0x00000001 -#define BENCHMARK_MOD_02 0x00000002 -#define BENCHMARK_MOD_03 0x00000004 -#define BENCHMARK_MOD_04 0x00000008 -#define BENCHMARK_MOD_05 0x00000010 -#define BENCHMARK_MOD_06 0x00000020 -#define BENCHMARK_MOD_07 0x00000040 -#define BENCHMARK_MOD_08 0x00000080 -#define BENCHMARK_MOD_09 0x00000100 -#define BENCHMARK_MOD_10 0x00000200 -#define BENCHMARK_MOD_11 0x00000400 -#define BENCHMARK_MOD_12 0x00000800 -#define BENCHMARK_MOD_13 0x00001000 -#define BENCHMARK_MOD_14 0x00002000 -#define BENCHMARK_MOD_15 0x00004000 -#define BENCHMARK_MOD_16 0x00008000 -#define BENCHMARK_MOD_17 0x00010000 -#define BENCHMARK_MOD_18 0x00020000 -#define BENCHMARK_MOD_19 0x00040000 -#define BENCHMARK_MOD_20 0x00080000 -#define BENCHMARK_MOD_21 0x00100000 -#define BENCHMARK_MOD_22 0x00200000 -#define BENCHMARK_MOD_23 0x00400000 -#define BENCHMARK_MOD_24 0x00800000 -#define BENCHMARK_MOD_25 0x01000000 -#define BENCHMARK_MOD_26 0x02000000 -#define BENCHMARK_MOD_27 0x04000000 -#define BENCHMARK_MOD_28 0x08000000 -#define BENCHMARK_MOD_29 0x10000000 -#define BENCHMARK_MOD_30 0x20000000 -#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) -#define BENCHMARK_MOD_01_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_01_SET(x) -#define BENCHMARK_MOD_01_RESET(x) -#define BENCHMARK_MOD_01_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_02) -#define BENCHMARK_MOD_02_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_02_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_02_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_02_SET(x) -#define BENCHMARK_MOD_02_RESET(x) -#define BENCHMARK_MOD_02_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_03) -#define BENCHMARK_MOD_03_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_03_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_03_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_03_SET(x) -#define BENCHMARK_MOD_03_RESET(x) -#define BENCHMARK_MOD_03_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_04) -#define BENCHMARK_MOD_04_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_04_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_04_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_04_SET(x) -#define BENCHMARK_MOD_04_RESET(x) -#define BENCHMARK_MOD_04_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_05) -#define BENCHMARK_MOD_05_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_05_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_05_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_05_SET(x) -#define BENCHMARK_MOD_05_RESET(x) -#define BENCHMARK_MOD_05_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_06) -#define BENCHMARK_MOD_06_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_06_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_06_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_06_SET(x) -#define BENCHMARK_MOD_06_RESET(x) -#define BENCHMARK_MOD_06_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_07) -#define BENCHMARK_MOD_07_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_07_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_07_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_07_SET(x) -#define BENCHMARK_MOD_07_RESET(x) -#define BENCHMARK_MOD_07_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_08) -#define BENCHMARK_MOD_08_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_08_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_08_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_08_SET(x) -#define BENCHMARK_MOD_08_RESET(x) -#define BENCHMARK_MOD_08_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_09) -#define BENCHMARK_MOD_09_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_09_RESET(x) BENCHMARK_RESET(x) -#define BENCHMARK_MOD_09_TOGGLE(x) BENCHMARK_TOGGLE(x) -#else -#define BENCHMARK_MOD_09_SET(x) -#define BENCHMARK_MOD_09_RESET(x) -#define BENCHMARK_MOD_09_TOGGLE(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_10) -#define BENCHMARK_MOD_10_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_10_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_10_SET(x) -#define BENCHMARK_MOD_10_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_11) -#define BENCHMARK_MOD_11_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_11_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_11_SET(x) -#define BENCHMARK_MOD_11_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_12) -#define BENCHMARK_MOD_12_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_12_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_12_SET(x) -#define BENCHMARK_MOD_12_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_13) -#define BENCHMARK_MOD_13_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_13_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_13_SET(x) -#define BENCHMARK_MOD_13_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_14) -#define BENCHMARK_MOD_14_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_14_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_14_SET(x) -#define BENCHMARK_MOD_14_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_15) -#define BENCHMARK_MOD_15_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_15_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_15_SET(x) -#define BENCHMARK_MOD_15_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_16) -#define BENCHMARK_MOD_16_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_16_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_16_SET(x) -#define BENCHMARK_MOD_16_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_17) -#define BENCHMARK_MOD_17_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_17_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_17_SET(x) -#define BENCHMARK_MOD_17_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_18) -#define BENCHMARK_MOD_18_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_18_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_18_SET(x) -#define BENCHMARK_MOD_18_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_19) -#define BENCHMARK_MOD_19_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_19_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_19_SET(x) -#define BENCHMARK_MOD_19_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_20) -#define BENCHMARK_MOD_20_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_20_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_20_SET(x) -#define BENCHMARK_MOD_20_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_21) -#define BENCHMARK_MOD_21_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_21_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_21_SET(x) -#define BENCHMARK_MOD_21_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_22) -#define BENCHMARK_MOD_22_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_22_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_22_SET(x) -#define BENCHMARK_MOD_22_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_23) -#define BENCHMARK_MOD_23_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_23_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_23_SET(x) -#define BENCHMARK_MOD_23_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_24) -#define BENCHMARK_MOD_24_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_24_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_24_SET(x) -#define BENCHMARK_MOD_24_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_25) -#define BENCHMARK_MOD_25_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_25_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_25_SET(x) -#define BENCHMARK_MOD_25_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_26) -#define BENCHMARK_MOD_26_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_26_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_26_SET(x) -#define BENCHMARK_MOD_26_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_27) -#define BENCHMARK_MOD_27_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_27_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_27_SET(x) -#define BENCHMARK_MOD_27_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_28) -#define BENCHMARK_MOD_28_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_28_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_28_SET(x) -#define BENCHMARK_MOD_28_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_29) -#define BENCHMARK_MOD_29_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_29_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_29_SET(x) -#define BENCHMARK_MOD_29_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_30) -#define BENCHMARK_MOD_30_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_30_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_30_SET(x) -#define BENCHMARK_MOD_30_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_31) -#define BENCHMARK_MOD_31_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_31_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_31_SET(x) -#define BENCHMARK_MOD_31_RESET(x) -#endif - -#if (BENCHMARK_MODULES & BENCHMARK_MOD_32) -#define BENCHMARK_MOD_32_SET(x) BENCHMARK_SET(x) -#define BENCHMARK_MOD_32_RESET(x) BENCHMARK_RESET(x) -#else -#define BENCHMARK_MOD_32_SET(x) -#define BENCHMARK_MOD_32_RESET(x) -#endif - -//--------------------------------------------------------------------------- -// modul global types -//--------------------------------------------------------------------------- - -//--------------------------------------------------------------------------- -// local vars -//--------------------------------------------------------------------------- - -//--------------------------------------------------------------------------- -// local function prototypes -//--------------------------------------------------------------------------- - -#endif // _BENCHMARK_H_ diff --git a/drivers/staging/epl/Debug.h b/drivers/staging/epl/Debug.h deleted file mode 100644 index 851a22213ad7..000000000000 --- a/drivers/staging/epl/Debug.h +++ /dev/null @@ -1,694 +0,0 @@ -/**************************************************************************** - - (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29 - www.systec-electronic.com - - Project: openPOWERLINK - - Description: Debug interface - - License: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. Neither the name of SYSTEC electronic GmbH nor the names of its - contributors may be used to endorse or promote products derived - from this software without prior written permission. For written - permission, please contact info@systec-electronic.com. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - - Severability Clause: - - If a provision of this License is or becomes illegal, invalid or - unenforceable in any jurisdiction, that shall not affect: - 1. the validity or enforceability in that jurisdiction of any other - provision of this License; or - 2. the validity or enforceability in other jurisdictions of that or - any other provision of this License. - - ------------------------------------------------------------------------- - - $RCSfile: Debug.h,v $ - - $Author: D.Krueger $ - - $Revision: 1.4 $ $Date: 2008/10/17 15:32:32 $ - - $State: Exp $ - - Build Environment: - ... - - ------------------------------------------------------------------------- - - Revision History: - -****************************************************************************/ - -#ifndef _DEBUG_H_ -#define _DEBUG_H_ - -#include "global.h" - -/***************************************************************************/ -/* */ -/* */ -/* G L O B A L D E F I N I T I O N S */ -/* */ -/* */ -/***************************************************************************/ - -//--------------------------------------------------------------------------- -// global const defines -//--------------------------------------------------------------------------- - -// These definitions are important for level-debug traces. -// A macro DEBUG_GLB_LVL() defines the current debug-level using following bis. -// If the corresponding bit is set then trace message will be printed out -// (only if NDEBUG is not defined). The upper debug-levels are reserved for -// the debug-levels ALWAYS, ERROR and ASSERT. -#define DEBUG_LVL_01 0x00000001 -#define DEBUG_LVL_02 0x00000002 -#define DEBUG_LVL_03 0x00000004 -#define DEBUG_LVL_04 0x00000008 -#define DEBUG_LVL_05 0x00000010 -#define DEBUG_LVL_06 0x00000020 -#define DEBUG_LVL_07 0x00000040 -#define DEBUG_LVL_08 0x00000080 -#define DEBUG_LVL_09 0x00000100 -#define DEBUG_LVL_10 0x00000200 -#define DEBUG_LVL_11 0x00000400 -#define DEBUG_LVL_12 0x00000800 -#define DEBUG_LVL_13 0x00001000 -#define DEBUG_LVL_14 0x00002000 -#define DEBUG_LVL_15 0x00004000 -#define DEBUG_LVL_16 0x00008000 -#define DEBUG_LVL_17 0x00010000 -#define DEBUG_LVL_18 0x00020000 -#define DEBUG_LVL_19 0x00040000 -#define DEBUG_LVL_20 0x00080000 -#define DEBUG_LVL_21 0x00100000 -#define DEBUG_LVL_22 0x00200000 -#define DEBUG_LVL_23 0x00400000 -#define DEBUG_LVL_24 0x00800000 -#define DEBUG_LVL_25 0x01000000 -#define DEBUG_LVL_26 0x02000000 -#define DEBUG_LVL_27 0x04000000 -#define DEBUG_LVL_28 0x08000000 -#define DEBUG_LVL_29 0x10000000 -#define DEBUG_LVL_ASSERT 0x20000000 -#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 - - -//--------------------------------------------------------------------------- -// this macro defines a build info string (e.g. for using in printf()) -#define DEBUG_MAKE_BUILD_INFO(prefix,product,prodid,descr,verstr,author) "\n" \ - prefix "***************************************************\n" \ - prefix "Project: " product ", " prodid "\n" \ - prefix "Descript.: " descr "\n" \ - prefix "Author: " author "\n" \ - prefix "Date: " __DATE__ "\n" \ - 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. -#ifndef DEF_DEBUG_LVL -#define DEF_DEBUG_LVL (DEBUG_LVL_ALWAYS | DEBUG_LVL_ERROR) -#endif -#ifndef DEBUG_GLB_LVL -#define DEBUG_GLB_LVL() (DEF_DEBUG_LVL) -#endif - -//--------------------------------------------------------------------------- - // At microcontrollers we do reduce the memory usage by deleting DEBUG_TRACE-lines - // (compiler does delete the lines). - // - // Here the parameter 'lvl' can only be used with one debug-level. - // - // Example: DEBUG_TRACE1(DEBUG_LVL_ERROR, "error code %d", dwRet); - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_ALWAYS) -#define DEBUG_LVL_ALWAYS_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_ALWAYS_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_ALWAYS_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_ALWAYS_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ALWAYS_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_ALWAYS_TRACE0(str) -#define DEBUG_LVL_ALWAYS_TRACE1(str,p1) -#define DEBUG_LVL_ALWAYS_TRACE2(str,p1,p2) -#define DEBUG_LVL_ALWAYS_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ALWAYS_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_ERROR) -#define DEBUG_LVL_ERROR_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_ERROR_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_ERROR_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_ERROR_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ERROR_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_ERROR_TRACE0(str) -#define DEBUG_LVL_ERROR_TRACE1(str,p1) -#define DEBUG_LVL_ERROR_TRACE2(str,p1,p2) -#define DEBUG_LVL_ERROR_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ERROR_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_ASSERT) -#define DEBUG_LVL_ASSERT_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_ASSERT_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_ASSERT_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_ASSERT_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ASSERT_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_ASSERT_TRACE0(str) -#define DEBUG_LVL_ASSERT_TRACE1(str,p1) -#define DEBUG_LVL_ASSERT_TRACE2(str,p1,p2) -#define DEBUG_LVL_ASSERT_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_ASSERT_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_29) -#define DEBUG_LVL_29_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_29_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_29_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_29_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_29_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_29_TRACE0(str) -#define DEBUG_LVL_29_TRACE1(str,p1) -#define DEBUG_LVL_29_TRACE2(str,p1,p2) -#define DEBUG_LVL_29_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_29_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_28) -#define DEBUG_LVL_28_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_28_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_28_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_28_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_28_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_28_TRACE0(str) -#define DEBUG_LVL_28_TRACE1(str,p1) -#define DEBUG_LVL_28_TRACE2(str,p1,p2) -#define DEBUG_LVL_28_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_28_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_27) -#define DEBUG_LVL_27_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_27_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_27_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_27_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_27_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_27_TRACE0(str) -#define DEBUG_LVL_27_TRACE1(str,p1) -#define DEBUG_LVL_27_TRACE2(str,p1,p2) -#define DEBUG_LVL_27_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_27_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_26) -#define DEBUG_LVL_26_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_26_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_26_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_26_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_26_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_26_TRACE0(str) -#define DEBUG_LVL_26_TRACE1(str,p1) -#define DEBUG_LVL_26_TRACE2(str,p1,p2) -#define DEBUG_LVL_26_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_26_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_25) -#define DEBUG_LVL_25_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_25_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_25_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_25_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_25_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_25_TRACE0(str) -#define DEBUG_LVL_25_TRACE1(str,p1) -#define DEBUG_LVL_25_TRACE2(str,p1,p2) -#define DEBUG_LVL_25_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_25_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_24) -#define DEBUG_LVL_24_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_24_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_24_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_24_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_24_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_24_TRACE0(str) -#define DEBUG_LVL_24_TRACE1(str,p1) -#define DEBUG_LVL_24_TRACE2(str,p1,p2) -#define DEBUG_LVL_24_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_24_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_23) -#define DEBUG_LVL_23_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_23_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_23_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_23_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_23_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_23_TRACE0(str) -#define DEBUG_LVL_23_TRACE1(str,p1) -#define DEBUG_LVL_23_TRACE2(str,p1,p2) -#define DEBUG_LVL_23_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_23_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_22) -#define DEBUG_LVL_22_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_22_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_22_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_22_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_22_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_22_TRACE0(str) -#define DEBUG_LVL_22_TRACE1(str,p1) -#define DEBUG_LVL_22_TRACE2(str,p1,p2) -#define DEBUG_LVL_22_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_22_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_21) -#define DEBUG_LVL_21_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_21_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_21_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_21_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_21_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_21_TRACE0(str) -#define DEBUG_LVL_21_TRACE1(str,p1) -#define DEBUG_LVL_21_TRACE2(str,p1,p2) -#define DEBUG_LVL_21_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_21_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_20) -#define DEBUG_LVL_20_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_20_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_20_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_20_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_20_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_20_TRACE0(str) -#define DEBUG_LVL_20_TRACE1(str,p1) -#define DEBUG_LVL_20_TRACE2(str,p1,p2) -#define DEBUG_LVL_20_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_20_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_19) -#define DEBUG_LVL_19_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_19_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_19_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_19_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_19_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_19_TRACE0(str) -#define DEBUG_LVL_19_TRACE1(str,p1) -#define DEBUG_LVL_19_TRACE2(str,p1,p2) -#define DEBUG_LVL_19_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_19_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_18) -#define DEBUG_LVL_18_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_18_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_18_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_18_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_18_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_18_TRACE0(str) -#define DEBUG_LVL_18_TRACE1(str,p1) -#define DEBUG_LVL_18_TRACE2(str,p1,p2) -#define DEBUG_LVL_18_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_18_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_17) -#define DEBUG_LVL_17_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_17_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_17_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_17_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_17_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_17_TRACE0(str) -#define DEBUG_LVL_17_TRACE1(str,p1) -#define DEBUG_LVL_17_TRACE2(str,p1,p2) -#define DEBUG_LVL_17_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_17_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_16) -#define DEBUG_LVL_16_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_16_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_16_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_16_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_16_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_16_TRACE0(str) -#define DEBUG_LVL_16_TRACE1(str,p1) -#define DEBUG_LVL_16_TRACE2(str,p1,p2) -#define DEBUG_LVL_16_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_16_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_15) -#define DEBUG_LVL_15_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_15_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_15_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_15_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_15_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_15_TRACE0(str) -#define DEBUG_LVL_15_TRACE1(str,p1) -#define DEBUG_LVL_15_TRACE2(str,p1,p2) -#define DEBUG_LVL_15_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_15_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_14) -#define DEBUG_LVL_14_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_14_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_14_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_14_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_14_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_14_TRACE0(str) -#define DEBUG_LVL_14_TRACE1(str,p1) -#define DEBUG_LVL_14_TRACE2(str,p1,p2) -#define DEBUG_LVL_14_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_14_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_13) -#define DEBUG_LVL_13_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_13_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_13_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_13_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_13_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_13_TRACE0(str) -#define DEBUG_LVL_13_TRACE1(str,p1) -#define DEBUG_LVL_13_TRACE2(str,p1,p2) -#define DEBUG_LVL_13_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_13_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_12) -#define DEBUG_LVL_12_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_12_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_12_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_12_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_12_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_12_TRACE0(str) -#define DEBUG_LVL_12_TRACE1(str,p1) -#define DEBUG_LVL_12_TRACE2(str,p1,p2) -#define DEBUG_LVL_12_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_12_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_11) -#define DEBUG_LVL_11_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_11_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_11_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_11_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_11_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_11_TRACE0(str) -#define DEBUG_LVL_11_TRACE1(str,p1) -#define DEBUG_LVL_11_TRACE2(str,p1,p2) -#define DEBUG_LVL_11_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_11_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_10) -#define DEBUG_LVL_10_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_10_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_10_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_10_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_10_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_10_TRACE0(str) -#define DEBUG_LVL_10_TRACE1(str,p1) -#define DEBUG_LVL_10_TRACE2(str,p1,p2) -#define DEBUG_LVL_10_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_10_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_09) -#define DEBUG_LVL_09_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_09_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_09_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_09_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_09_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_09_TRACE0(str) -#define DEBUG_LVL_09_TRACE1(str,p1) -#define DEBUG_LVL_09_TRACE2(str,p1,p2) -#define DEBUG_LVL_09_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_09_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_08) -#define DEBUG_LVL_08_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_08_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_08_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_08_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_08_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_08_TRACE0(str) -#define DEBUG_LVL_08_TRACE1(str,p1) -#define DEBUG_LVL_08_TRACE2(str,p1,p2) -#define DEBUG_LVL_08_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_08_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_07) -#define DEBUG_LVL_07_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_07_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_07_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_07_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_07_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_07_TRACE0(str) -#define DEBUG_LVL_07_TRACE1(str,p1) -#define DEBUG_LVL_07_TRACE2(str,p1,p2) -#define DEBUG_LVL_07_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_07_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_06) -#define DEBUG_LVL_06_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_06_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_06_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_06_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_06_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_06_TRACE0(str) -#define DEBUG_LVL_06_TRACE1(str,p1) -#define DEBUG_LVL_06_TRACE2(str,p1,p2) -#define DEBUG_LVL_06_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_06_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_05) -#define DEBUG_LVL_05_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_05_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_05_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_05_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_05_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_05_TRACE0(str) -#define DEBUG_LVL_05_TRACE1(str,p1) -#define DEBUG_LVL_05_TRACE2(str,p1,p2) -#define DEBUG_LVL_05_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_05_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_04) -#define DEBUG_LVL_04_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_04_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_04_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_04_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_04_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_04_TRACE0(str) -#define DEBUG_LVL_04_TRACE1(str,p1) -#define DEBUG_LVL_04_TRACE2(str,p1,p2) -#define DEBUG_LVL_04_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_04_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_03) -#define DEBUG_LVL_03_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_03_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_03_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_03_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_03_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_03_TRACE0(str) -#define DEBUG_LVL_03_TRACE1(str,p1) -#define DEBUG_LVL_03_TRACE2(str,p1,p2) -#define DEBUG_LVL_03_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_03_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_02) -#define DEBUG_LVL_02_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_02_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_02_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_02_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_02_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_02_TRACE0(str) -#define DEBUG_LVL_02_TRACE1(str,p1) -#define DEBUG_LVL_02_TRACE2(str,p1,p2) -#define DEBUG_LVL_02_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_02_TRACE4(str,p1,p2,p3,p4) -#endif - -#if (DEBUG_GLB_LVL() & DEBUG_LVL_01) -#define DEBUG_LVL_01_TRACE0(str) TRACE0(str) -#define DEBUG_LVL_01_TRACE1(str,p1) TRACE1(str,p1) -#define DEBUG_LVL_01_TRACE2(str,p1,p2) TRACE2(str,p1,p2) -#define DEBUG_LVL_01_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_01_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) -#else -#define DEBUG_LVL_01_TRACE0(str) -#define DEBUG_LVL_01_TRACE1(str,p1) -#define DEBUG_LVL_01_TRACE2(str,p1,p2) -#define DEBUG_LVL_01_TRACE3(str,p1,p2,p3) -#define DEBUG_LVL_01_TRACE4(str,p1,p2,p3,p4) -#endif - -#define DEBUG_TRACE0(lvl,str) lvl##_TRACE0(str) -#define DEBUG_TRACE1(lvl,str,p1) lvl##_TRACE1(str,p1) -#define DEBUG_TRACE2(lvl,str,p1,p2) lvl##_TRACE2(str,p1,p2) -#define DEBUG_TRACE3(lvl,str,p1,p2,p3) lvl##_TRACE3(str,p1,p2,p3) -#define DEBUG_TRACE4(lvl,str,p1,p2,p3,p4) lvl##_TRACE4(str,p1,p2,p3,p4) - -//--------------------------------------------------------------------------- -// The macro DEBUG_DUMP_DATA() can be used with the same debug-levels to dump -// out data bytes. Function DumpData() has to be included. -// NOTE: DUMP_DATA has to be defined in project settings. -#if (!defined (NDEBUG) && defined (DUMP_DATA)) - -#ifdef __cplusplus -extern "C" { -#endif - - void DumpData(char *szStr_p, u8 *pbData_p, u16 wSize_p); - -#ifdef __cplusplus -} // von extern "C" -#endif -#define DEBUG_DUMP_DATA(lvl,str,ptr,siz) if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \ - DumpData (str, (u8 *)(ptr), (u16)(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. -// NOTE: If DEBUG_KEEP_ASSERT is defined, then DEBUG_ASSERT-line will not be -// deleted from compiler (in release version too). -#if !defined (NDEBUG) || defined (DEBUG_KEEP_ASSERT) - - // For microcontrollers process will be stopped using endless loop. - -#define DEBUG_ASSERT0(expr,str) if (!(expr )) { \ - DEBUG_LVL_ASSERT_TRACE3 ( \ - "Assertion failed: line %d file '%s'\n" \ - " -> '%s'\n", __LINE__, __FILE__, str); \ - while (1); } - -#define DEBUG_ASSERT1(expr,str,p1) if (!(expr )) { \ - DEBUG_LVL_ASSERT_TRACE4 ( \ - "Assertion failed: line %d file '%s'\n" \ - " -> '%s'\n" \ - " -> 0x%08lX\n", __LINE__, __FILE__, str, (u32) p1); \ - while (1); } - - -#else - -#define DEBUG_ASSERT0(expr,str) -#define DEBUG_ASSERT1(expr,str,p1) - -#endif - -//--------------------------------------------------------------------------- -// The macro DEBUG_ONLY() implements code, if NDEBUG is not defined. -#if !defined (DEBUG_ONLY) -#if !defined (NDEBUG) - -#define DEBUG_ONLY(expr) expr - -#else - -#define DEBUG_ONLY(expr) - -#endif -#endif - -#endif // _DEBUG_H_ diff --git a/drivers/staging/epl/Edrv8139.c b/drivers/staging/epl/Edrv8139.c deleted file mode 100644 index 44e3f7b144bc..000000000000 --- a/drivers/staging/epl/Edrv8139.c +++ /dev/null @@ -1,1246 +0,0 @@ -/**************************************************************************** - - (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29 - www.systec-electronic.com - - Project: openPOWERLINK - - Description: Ethernet driver for Realtek RTL8139 chips - except the RTL8139C+, because it has a different - Tx descriptor handling. - - License: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. Neither the name of SYSTEC electronic GmbH nor the names of its - contributors may be used to endorse or promote products derived - from this software without prior written permission. For written - permission, please contact info@systec-electronic.com. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - - Severability Clause: - - If a provision of this License is or becomes illegal, invalid or - unenforceable in any jurisdiction, that shall not affect: - 1. the validity or enforceability in that jurisdiction of any other - provision of this License; or - 2. the validity or enforceability in other jurisdictions of that or - any other provision of this License. - - ------------------------------------------------------------------------- - - $RCSfile: Edrv8139.c,v $ - - $Author: D.Krueger $ - - $Revision: 1.10 $ $Date: 2008/11/21 09:00:38 $ - - $State: Exp $ - - Build Environment: - Dev C++ and GNU-Compiler for m68k - - ------------------------------------------------------------------------- - - Revision History: - - 2008/02/05 d.k.: start of implementation - -****************************************************************************/ - -#include "global.h" -#include "EplInc.h" -#include "edrv.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/***************************************************************************/ -/* */ -/* */ -/* G L O B A L D E F I N I T I O N S */ -/* */ -/* */ -/***************************************************************************/ - -// Buffer handling: -// All buffers are created statically (i.e. at compile time resp. at -// initialisation via kmalloc() ) and not dynamically on request (i.e. via -// EdrvAllocTxMsgBuffer(). -// EdrvAllocTxMsgBuffer() searches for an unused buffer which is large enough. -// EdrvInit() may allocate some buffers with sizes less than maximum frame -// size (i.e. 1514 bytes), e.g. for SoC, SoA, StatusResponse, IdentResponse, -// NMT requests / commands. The less the size of the buffer the less the -// number of the buffer. - -//--------------------------------------------------------------------------- -// const defines -//--------------------------------------------------------------------------- - -#ifndef EDRV_MAX_TX_BUFFERS -#define EDRV_MAX_TX_BUFFERS 20 -#endif - -#define EDRV_MAX_FRAME_SIZE 0x600 - -#define EDRV_RX_BUFFER_SIZE 0x8610 // 32 kB + 16 Byte + 1,5 kB (WRAP is enabled) -#define EDRV_RX_BUFFER_LENGTH (EDRV_RX_BUFFER_SIZE & 0xF800) // buffer size cut down to 2 kB alignment - -#define EDRV_TX_BUFFER_SIZE (EDRV_MAX_TX_BUFFERS * EDRV_MAX_FRAME_SIZE) // n * (MTU + 14 + 4) - -#define DRV_NAME "epl" - -#define EDRV_REGW_INT_MASK 0x3C // interrupt mask register -#define EDRV_REGW_INT_STATUS 0x3E // interrupt status register -#define EDRV_REGW_INT_ROK 0x0001 // Receive OK interrupt -#define EDRV_REGW_INT_RER 0x0002 // Receive error interrupt -#define EDRV_REGW_INT_TOK 0x0004 // Transmit OK interrupt -#define EDRV_REGW_INT_TER 0x0008 // Transmit error interrupt -#define EDRV_REGW_INT_RXOVW 0x0010 // Rx buffer overflow interrupt -#define EDRV_REGW_INT_PUN 0x0020 // Packe