| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. | 
 | 9 |  * | 
 | 10 |  */ | 
 | 11 |  | 
 | 12 |  | 
 | 13 | #include <linux/kernel.h> | 
 | 14 | #include <linux/spinlock.h> | 
 | 15 | #include <linux/list.h> | 
 | 16 | #include <linux/isdn/capilli.h> | 
 | 17 |  | 
 | 18 | #ifdef KCAPI_DEBUG | 
 | 19 | #define DBG(format, arg...) do { \ | 
 | 20 | printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ | 
 | 21 | } while (0) | 
 | 22 | #else | 
 | 23 | #define DBG(format, arg...) /* */ | 
 | 24 | #endif | 
 | 25 |  | 
 | 26 | enum { | 
 | 27 | 	CARD_DETECTED = 1, | 
 | 28 | 	CARD_LOADING  =	2, | 
 | 29 | 	CARD_RUNNING  = 3, | 
 | 30 | }; | 
 | 31 |  | 
 | 32 | extern struct list_head capi_drivers; | 
 | 33 | extern rwlock_t capi_drivers_list_lock; | 
 | 34 |  | 
 | 35 | extern struct capi20_appl *capi_applications[CAPI_MAXAPPL]; | 
 | 36 | extern struct capi_ctr *capi_cards[CAPI_MAXCONTR]; | 
 | 37 |  | 
 | 38 | #ifdef CONFIG_PROC_FS | 
 | 39 |  | 
 | 40 | void kcapi_proc_init(void); | 
 | 41 | void kcapi_proc_exit(void); | 
 | 42 |  | 
 | 43 | #else | 
 | 44 |  | 
 | 45 | static inline void kcapi_proc_init(void) { }; | 
 | 46 | static inline void kcapi_proc_exit(void) { }; | 
 | 47 |  | 
 | 48 | #endif | 
 | 49 |  |