📄 atmdev_init.c
字号:
/* drivers/atm/atmdev_init.c - ATM device driver initialization */ /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ #include <linux/config.h>#include <linux/init.h>#ifdef CONFIG_ATM_ZATMextern int zatm_detect(void);#endif#ifdef CONFIG_ATM_NICSTARextern int nicstar_detect(void);#endif#ifdef CONFIG_ATM_AMBASSADORextern int amb_detect(void);#endif#ifdef CONFIG_ATM_HORIZONextern int hrz_detect(void);#endif#ifdef CONFIG_ATM_IAextern int ia_detect(void);#endif#ifdef CONFIG_ATM_FORE200Eextern int fore200e_detect(void);#endif/* * For historical reasons, atmdev_init returns the number of devices found. * Note that some detections may not go via atmdev_init (e.g. eni.c), so this * number is meaningless. */int __init atmdev_init(void){ int devs; devs = 0;#ifdef CONFIG_ATM_ZATM devs += zatm_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#ifdef CONFIG_ATM_IA devs += ia_detect();#endif#ifdef CONFIG_ATM_FORE200E devs += fore200e_detect();#endif return devs;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -