patch-2.3.15 linux/drivers/atm/atmdev_init.c
Next file: linux/drivers/atm/atmsar11.data
Previous file: linux/drivers/atm/ambassador.h
Back to the patch index
Back to the overall index
- Lines: 61
- Date:
Mon Aug 23 09:56:31 1999
- Orig file:
v2.3.14/linux/drivers/atm/atmdev_init.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.14/linux/drivers/atm/atmdev_init.c linux/drivers/atm/atmdev_init.c
@@ -0,0 +1,60 @@
+/* drivers/atm/atmdev_init.c - ATM device driver initialization */
+
+/* Written 1995-1997 by Werner Almesberger, EPFL LRC */
+
+
+#include <linux/config.h>
+#include <linux/init.h>
+
+
+#ifdef CONFIG_ATM_ENI
+extern int eni_detect(void);
+#endif
+#ifdef CONFIG_ATM_ZATM
+extern int zatm_detect(void);
+#endif
+#ifdef CONFIG_ATM_TNETA1570
+extern int tneta1570_detect(void);
+#endif
+#ifdef CONFIG_ATM_FORE200
+extern int fore200_detect(void);
+#endif
+#ifdef CONFIG_ATM_NICSTAR
+extern int nicstar_detect(void);
+#endif
+#ifdef CONFIG_ATM_AMBASSADOR
+extern int amb_detect(void);
+#endif
+#ifdef CONFIG_ATM_HORIZON
+extern int hrz_detect(void);
+#endif
+
+
+__initfunc(int atmdev_init(void))
+{
+ int devs;
+
+ devs = 0;
+#ifdef CONFIG_ATM_ENI
+ devs += eni_detect();
+#endif
+#ifdef CONFIG_ATM_ZATM
+ devs += zatm_detect();
+#endif
+#ifdef CONFIG_ATM_TNETA1570
+ devs += tneta1570_detect();
+#endif
+#ifdef CONFIG_ATM_FORE200
+ devs += fore200_detect();
+#endif
+#ifdef CONFIG_ATM_NICSTAR
+ devs += nicstar_detect();
+#endif
+#ifdef CONFIG_ATM_AMBASSADOR
+ devs += amb_detect();
+#endif
+#ifdef CONFIG_ATM_HORIZON
+ devs += hrz_detect();
+#endif
+ return devs;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)