i2c-eg20t: change timeout value 50msec to 1000msec
[zen-stable.git] / drivers / isdn / capi / kcapi.h
blobf4620b38ec518c43c67026fdaea0b5e255717ce8
1 /*
2 * Kernel CAPI 2.0 Module
3 *
4 * Copyright 1999 by Carsten Paeth <calle@calle.de>
5 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
6 *
7 * This software may be used and distributed according to the terms
8 * of the GNU General Public License, incorporated herein by reference.
13 #include <linux/kernel.h>
14 #include <linux/spinlock.h>
15 #include <linux/list.h>
16 #include <linux/isdn/capilli.h>
18 #ifdef KCAPI_DEBUG
19 #define DBG(format, arg...) do { \
20 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
21 } while (0)
22 #else
23 #define DBG(format, arg...) /* */
24 #endif
26 enum {
27 CAPI_CTR_DETACHED = 0,
28 CAPI_CTR_DETECTED = 1,
29 CAPI_CTR_LOADING = 2,
30 CAPI_CTR_RUNNING = 3,
33 extern struct list_head capi_drivers;
34 extern struct mutex capi_drivers_lock;
36 extern struct capi_ctr *capi_controller[CAPI_MAXCONTR];
37 extern struct mutex capi_controller_lock;
39 extern struct capi20_appl *capi_applications[CAPI_MAXAPPL];
41 #ifdef CONFIG_PROC_FS
43 void kcapi_proc_init(void);
44 void kcapi_proc_exit(void);
46 #else
48 static inline void kcapi_proc_init(void) { };
49 static inline void kcapi_proc_exit(void) { };
51 #endif