1/* drivers/atm/atmdev_init.c - ATM device driver initialization */
2
3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
4
5
6#include <linux/config.h>
7#include <linux/init.h>
8
9
10#ifdef CONFIG_ATM_ZATM
11extern int zatm_detect(void);
12#endif
13#ifdef CONFIG_ATM_NICSTAR
14extern int nicstar_detect(void);
15#endif
16#ifdef CONFIG_ATM_AMBASSADOR
17extern int amb_detect(void);
18#endif
19#ifdef CONFIG_ATM_HORIZON
20extern int hrz_detect(void);
21#endif
22#ifdef CONFIG_ATM_IA
23extern int ia_detect(void);
24#endif
25#ifdef CONFIG_ATM_FORE200E
26extern int fore200e_detect(void);
27#endif
28#ifdef CONFIG_ATM_LANAI
29extern int lanai_detect(void);
30#endif
31
32
33/*
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.
37 */
38
39int __init atmdev_init(void)
40{
41	int devs;
42
43	devs = 0;
44#ifdef CONFIG_ATM_ZATM
45	devs += zatm_detect();
46#endif
47#ifdef CONFIG_ATM_NICSTAR
48	devs += nicstar_detect();
49#endif
50#ifdef CONFIG_ATM_AMBASSADOR
51	devs += amb_detect();
52#endif
53#ifdef CONFIG_ATM_HORIZON
54	devs += hrz_detect();
55#endif
56#ifdef CONFIG_ATM_IA
57	devs += ia_detect();
58#endif
59#ifdef CONFIG_ATM_FORE200E
60	devs += fore200e_detect();
61#endif
62#ifdef CONFIG_ATM_LANAI
63	devs += lanai_detect();
64#endif
65	return devs;
66}
67