00001
00002
00003
00004 #include <linux/module.h>
00005 #include <linux/kernel.h>
00006 #include <linux/fs.h>
00007 #include <linux/ioport.h>
00008 #include <linux/delay.h>
00009 #include <linux/interrupt.h>
00010 #include <asm/io.h>
00011 #include <asm/uaccess.h>
00012
00013
00014 #define E12DEB "<1>"
00015 #define E12MAJORNUM 0
00016 #define E12NAME "37E12"
00017 #define E12_DRIVER_V "1.0"
00018 #define E12_FIFO_SZ 1000
00019 #define E12MAXBOARDS 4 //ISA bus maximum stack
00020 #define E12_IOSIZE 4
00021 #define UNSET -1
00022
00023
00024 #define SUCCESS 1
00025 #define FAILURE 2
00026
00027
00028 #define OLD 0
00029 #define NEW 1
00030 #define ON 1
00031 #define OFF 0
00032 #define TRUE 1
00033 #define FALSE 0
00034
00035
00036
00037
00038 #define E12_MESSAGE
00039
00040 #undef IODEBUG
00041 #ifdef IO_DEBUG
00042 #define IODEBUG(fmt, args...) printk(E12DEB fmt, ## args)
00043 #else
00044 #define IODEBUG(fmt, args...)
00045 #endif
00046
00047 #undef GENDEBUG
00048 #ifdef GEN_DEBUG
00049 #define GENDEBUG(fmt, args...) printk(E12DEB fmt, ## args)
00050 #else
00051 #define GENDEBUG(fmt, args...)
00052 #endif
00053
00054 #undef E12MESSAGE
00055 #ifdef E12_MESSAGE
00056 #define E12MESSAGE(fmt, args...) printk(E12DEB fmt, ## args)
00057 #else
00058 #define E12MESSAGE(fmt, args...)
00059 #endif