1 /* drivers/atm/atmdev_init.c - ATM device driver initialization */
3 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
6 #include <linux/config.h>
7 #include <linux/init.h>
10 #ifdef CONFIG_ATM_ZATM
11 extern int zatm_detect(void);
13 #ifdef CONFIG_ATM_NICSTAR
14 extern int nicstar_detect(void);
16 #ifdef CONFIG_ATM_AMBASSADOR
17 extern int amb_detect(void);
19 #ifdef CONFIG_ATM_HORIZON
20 extern int hrz_detect(void);
23 extern int ia_detect(void);
25 #ifdef CONFIG_ATM_FORE200E
26 extern int fore200e_detect(void);
28 #ifdef CONFIG_ATM_LANAI
29 extern int lanai_detect(void);
34 * For historical reasons, atmdev_init returns the number of devices found.
35 * Note that some detections may not go via atmdev_init (e.g. eni.c), so this
36 * number is meaningless.
39 int __init atmdev_init(void)
44 #ifdef CONFIG_ATM_ZATM
45 devs += zatm_detect();
47 #ifdef CONFIG_ATM_NICSTAR
48 devs += nicstar_detect();
50 #ifdef CONFIG_ATM_AMBASSADOR
53 #ifdef CONFIG_ATM_HORIZON
59 #ifdef CONFIG_ATM_FORE200E
60 devs += fore200e_detect();
62 #ifdef CONFIG_ATM_LANAI
63 devs += lanai_detect();