kcapi.h (9717fb8b64ed41be9dd074bc8010bafd33046f1a) | kcapi.h (0ca3a017a7373a4545dd7b345a8a0cecc16bc7e2) |
---|---|
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. --- 10 unchanged lines hidden (view full) --- 19#define DBG(format, arg...) do { \ 20printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 21} while (0) 22#else 23#define DBG(format, arg...) /* */ 24#endif 25 26enum { | 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. --- 10 unchanged lines hidden (view full) --- 19#define DBG(format, arg...) do { \ 20printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 21} while (0) 22#else 23#define DBG(format, arg...) /* */ 24#endif 25 26enum { |
27 CAPI_CTR_DETACHED = 0, |
|
27 CAPI_CTR_DETECTED = 1, 28 CAPI_CTR_LOADING = 2, 29 CAPI_CTR_RUNNING = 3, 30}; 31 32extern struct list_head capi_drivers; 33extern struct mutex capi_drivers_lock; 34 | 28 CAPI_CTR_DETECTED = 1, 29 CAPI_CTR_LOADING = 2, 30 CAPI_CTR_RUNNING = 3, 31}; 32 33extern struct list_head capi_drivers; 34extern struct mutex capi_drivers_lock; 35 |
35extern struct capi20_appl *capi_applications[CAPI_MAXAPPL]; | |
36extern struct capi_ctr *capi_controller[CAPI_MAXCONTR]; | 36extern struct capi_ctr *capi_controller[CAPI_MAXCONTR]; |
37extern struct mutex capi_controller_lock; |
|
37 | 38 |
39extern struct capi20_appl *capi_applications[CAPI_MAXAPPL]; 40 |
|
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 | 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 52 |