Main Page   Modules   Alphabetical List   Data Structures   File List   Related Pages  

E12.h

00001 /*E12.h
00002 Global defines and includes for the E12 driver
00003 */
00004 #include <linux/module.h>/* include file for kernel development*/
00005 #include <linux/kernel.h>/* printk and others*/
00006 #include <linux/fs.h>    /* the file structure */
00007 #include <linux/ioport.h> /* inb, outb */
00008 #include <linux/delay.h>
00009 #include <linux/interrupt.h>
00010 #include <asm/io.h> /*ioremap*/
00011 #include <asm/uaccess.h>
00012 
00013 /*global declarations*/
00014 #define E12DEB "<1>" /*sets the level of the debug messaging*/
00015 #define E12MAJORNUM 0 /*set to zero for dynamic major number allocation*/
00016 #define E12NAME "37E12" /*driver name*/
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 /*Flags and bitmaps*/
00024 #define SUCCESS 1
00025 #define FAILURE 2
00026 
00027 /* data status's*/
00028 #define OLD  0/*old data, don't read it out*/
00029 #define NEW  1/*new data, read it out*/
00030 #define ON   1
00031 #define OFF  0
00032 #define TRUE 1
00033 #define FALSE 0
00034 
00035 /*debug macro printk if debugging is on, otherwise its a placeholder*/
00036 //#define IO_DEBUG
00037 //#define GEN_DEBUG
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

Generated on Mon Dec 29 09:25:43 2003 for PCM-37e12 by doxygen1.2.15