blob: 07c58500fe482a2dc1b69176dba9f929dc4772f6 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 { \
Harvey Harrison156f1ed2008-04-28 02:14:40 -070020printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
Linus Torvalds1da177e2005-04-16 15:20:36 -070021} while (0)
22#else
23#define DBG(format, arg...) /* */
24#endif
25
26enum {
Jan Kiszka52253032010-02-08 10:12:10 +000027 CAPI_CTR_DETECTED = 1,
28 CAPI_CTR_LOADING = 2,
29 CAPI_CTR_RUNNING = 3,
Linus Torvalds1da177e2005-04-16 15:20:36 -070030};
31
32extern struct list_head capi_drivers;
Jan Kiszka9717fb82010-02-08 10:12:11 +000033extern struct mutex capi_drivers_lock;
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
35extern struct capi20_appl *capi_applications[CAPI_MAXAPPL];
Jan Kiszka52253032010-02-08 10:12:10 +000036extern struct capi_ctr *capi_controller[CAPI_MAXCONTR];
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
38#ifdef CONFIG_PROC_FS
39
40void kcapi_proc_init(void);
41void kcapi_proc_exit(void);
42
43#else
44
45static inline void kcapi_proc_init(void) { };
46static inline void kcapi_proc_exit(void) { };
47
48#endif
49