setup enviroment for compilation
[linux-2.4.21-pre4.git] / drivers / net / npnet.h
1 /*
2  * npnet.h -- definitions for the network module
3  *
4  *********/
5
6
7 /*
8  * Macros to help debugging
9  */
10
11 #undef PDEBUG             /* undef it, just in case */
12 #ifdef NPNET_DEBUG
13 #  ifdef __KERNEL__
14      /* This one if debugging is on, and kernel space */
15 #    define PDEBUG(fmt, args...) printk( KERN_DEBUG "npnet: " fmt, ## args)
16 #  else
17      /* This one for user space */
18 #    define PDEBUG(fmt, args...) fprintf(stderr, fmt, ## args)
19 #  endif
20 #else
21 #  define PDEBUG(fmt, args...) /* not debugging: nothing */
22 #endif
23
24 #undef PDEBUGG
25 #define PDEBUGG(fmt, args...) /* nothing: it's a placeholder */
26
27
28 /* These are the flags in the statusword */
29 #define NPNET_RX_INTR 0x0001
30 #define NPNET_TX_INTR 0x0002
31
32 /* Default timeout period */
33 #define NPNET_TIMEOUT 5   /* In jiffies */
34
35 extern struct net_device npnet_devs;
36
37
38
39