00001 /* Gxsm - Gnome X Scanning Microscopy 00002 * universal STM/AFM/SARLS/SPALEED/... controlling and 00003 * data analysis software 00004 * 00005 * Copyright (C) 1999,2000,2001 Percy Zahl 00006 * 00007 * Authors: Percy Zahl <zahl@users.sf.net> 00008 * additional features: Andreas Klust <klust@users.sf.net> 00009 * WWW Home: http://gxsm.sf.net 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00024 */ 00025 00026 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 8 c-style: "K&R" -*- */ 00027 00028 /* dbgstuff.h */ 00029 00030 /* kernel debugging infos */ 00031 #define DGBLEVL 1 00032 #define KDEBUG(format, args...) printk(KERN_INFO MODNAME format, ##args ) 00033 #if DGBLEVL > 1 00034 #define KDEBUG_L1(format, args...) printk(KERN_INFO MODNAME format, ##args ) 00035 #if DGBLEVL > 2 00036 #define KDEBUG_L2(format, args...) printk(KERN_INFO MODNAME format, ##args ) 00037 #if DGBLEVL > 3 00038 #define KDEBUG_L3(format, args...) printk(KERN_INFO MODNAME format, ##args ) 00039 #else 00040 #define KDEBUG_L3(format, args...) 00041 #endif 00042 #else 00043 #define KDEBUG_L3(format, args...) 00044 #define KDEBUG_L2(format, args...) 00045 #endif 00046 #else 00047 #define KDEBUG_L1(format, args...) 00048 #define KDEBUG_L2(format, args...) 00049 #define KDEBUG_L3(format, args...) 00050 #endif 00051 00052 /* define TRUE and FALSE */ 00053 #ifndef TRUE 00054 #define TRUE 1 00055 #endif 00056 #ifndef FALSE 00057 #define FALSE 0 00058 #endif 00059 00060 /* support old naming sillyness */ 00061 #if LINUX_VERSION_CODE < 0x020100 00062 #define ioremap vremap 00063 #define iounmap vfree 00064 #endif