diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/atm/atmdev_init.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/atm/atmdev_init.c')
-rw-r--r-- | drivers/atm/atmdev_init.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/atm/atmdev_init.c b/drivers/atm/atmdev_init.c new file mode 100644 index 000000000000..0e09e5c28e3f --- /dev/null +++ b/drivers/atm/atmdev_init.c | |||
@@ -0,0 +1,54 @@ | |||
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 | ||
11 | extern int zatm_detect(void); | ||
12 | #endif | ||
13 | #ifdef CONFIG_ATM_AMBASSADOR | ||
14 | extern int amb_detect(void); | ||
15 | #endif | ||
16 | #ifdef CONFIG_ATM_HORIZON | ||
17 | extern int hrz_detect(void); | ||
18 | #endif | ||
19 | #ifdef CONFIG_ATM_FORE200E | ||
20 | extern int fore200e_detect(void); | ||
21 | #endif | ||
22 | #ifdef CONFIG_ATM_LANAI | ||
23 | extern int lanai_detect(void); | ||
24 | #endif | ||
25 | |||
26 | |||
27 | /* | ||
28 | * For historical reasons, atmdev_init returns the number of devices found. | ||
29 | * Note that some detections may not go via atmdev_init (e.g. eni.c), so this | ||
30 | * number is meaningless. | ||
31 | */ | ||
32 | |||
33 | int __init atmdev_init(void) | ||
34 | { | ||
35 | int devs; | ||
36 | |||
37 | devs = 0; | ||
38 | #ifdef CONFIG_ATM_ZATM | ||
39 | devs += zatm_detect(); | ||
40 | #endif | ||
41 | #ifdef CONFIG_ATM_AMBASSADOR | ||
42 | devs += amb_detect(); | ||
43 | #endif | ||
44 | #ifdef CONFIG_ATM_HORIZON | ||
45 | devs += hrz_detect(); | ||
46 | #endif | ||
47 | #ifdef CONFIG_ATM_FORE200E | ||
48 | devs += fore200e_detect(); | ||
49 | #endif | ||
50 | #ifdef CONFIG_ATM_LANAI | ||
51 | devs += lanai_detect(); | ||
52 | #endif | ||
53 | return devs; | ||
54 | } | ||