Merge branch 'x86-irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / drivers / isdn / capi / kcapi.h
CommitLineData
1da177e4
LT
1/*
2 * Kernel CAPI 2.0 Module
475be4d8 3 *
1da177e4
LT
4 * Copyright 1999 by Carsten Paeth <calle@calle.de>
5 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
475be4d8 6 *
1da177e4
LT
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
475be4d8
JP
19#define DBG(format, arg...) do { \
20 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
21 } while (0)
1da177e4
LT
22#else
23#define DBG(format, arg...) /* */
24#endif
25
26enum {
0ca3a017 27 CAPI_CTR_DETACHED = 0,
52253031
JK
28 CAPI_CTR_DETECTED = 1,
29 CAPI_CTR_LOADING = 2,
30 CAPI_CTR_RUNNING = 3,
1da177e4
LT
31};
32
33extern struct list_head capi_drivers;
9717fb8b 34extern struct mutex capi_drivers_lock;
1da177e4 35
52253031 36extern struct capi_ctr *capi_controller[CAPI_MAXCONTR];
0ca3a017
JK
37extern struct mutex capi_controller_lock;
38
39extern struct capi20_appl *capi_applications[CAPI_MAXAPPL];
1da177e4
LT
40
41#ifdef CONFIG_PROC_FS
42
43void kcapi_proc_init(void);
44void kcapi_proc_exit(void);
45
46#else
47
48static inline void kcapi_proc_init(void) { };
49static inline void kcapi_proc_exit(void) { };
50
51#endif