* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / atm / atmdev_init.c
blob3e5c714f033fb2b039d8f2fc834621f456b7ee45
1 /* drivers/atm/atmdev_init.c - ATM device driver initialization */
3 /* Written 1995-1997 by Werner Almesberger, EPFL LRC */
6 #include <linux/config.h>
7 #include <linux/init.h>
10 #ifdef CONFIG_ATM_ENI
11 extern int eni_detect(void);
12 #endif
13 #ifdef CONFIG_ATM_ZATM
14 extern int zatm_detect(void);
15 #endif
16 #ifdef CONFIG_ATM_TNETA1570
17 extern int tneta1570_detect(void);
18 #endif
19 #ifdef CONFIG_ATM_FORE200
20 extern int fore200_detect(void);
21 #endif
22 #ifdef CONFIG_ATM_NICSTAR
23 extern int nicstar_detect(void);
24 #endif
25 #ifdef CONFIG_ATM_AMBASSADOR
26 extern int amb_detect(void);
27 #endif
28 #ifdef CONFIG_ATM_HORIZON
29 extern int hrz_detect(void);
30 #endif
33 int __init atmdev_init(void)
35 int devs;
37 devs = 0;
38 #ifdef CONFIG_ATM_ENI
39 devs += eni_detect();
40 #endif
41 #ifdef CONFIG_ATM_ZATM
42 devs += zatm_detect();
43 #endif
44 #ifdef CONFIG_ATM_TNETA1570
45 devs += tneta1570_detect();
46 #endif
47 #ifdef CONFIG_ATM_FORE200
48 devs += fore200_detect();
49 #endif
50 #ifdef CONFIG_ATM_NICSTAR
51 devs += nicstar_detect();
52 #endif
53 #ifdef CONFIG_ATM_AMBASSADOR
54 devs += amb_detect();
55 #endif
56 #ifdef CONFIG_ATM_HORIZON
57 devs += hrz_detect();
58 #endif
59 return devs;