⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 space.c

📁 GNU Mach 微内核源代码, 基于美国卡内基美隆大学的 Mach 研究项目
💻 C
📖 第 1 页 / 共 2 页
字号:
/* * INET		An implementation of the TCP/IP protocol suite for the LINUX *		operating system.  INET is implemented using the  BSD Socket *		interface as the means of communication with the user level. * *		Holds initial configuration information for devices. * * NOTE:	This file is a nice idea, but its current format does not work *		well for drivers that support multiple units, like the SLIP *		driver.  We should actually have only one pointer to a driver *		here, with the driver knowing how many units it supports. *		Currently, the SLIP driver abuses the "base_addr" integer *		field of the 'device' structure to store the unit number... *		-FvK * * Version:	@(#)Space.c	1.0.8	07/31/96 * * Authors:	Ross Biro, <bir7@leland.Stanford.Edu> *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> *		Donald J. Becker, <becker@super.org> * *	FIXME: *		Sort the device chain fastest first. * *		This program is free software; you can redistribute it and/or *		modify it under the terms of the GNU General Public License *		as published by the Free Software Foundation; either version *		2 of the License, or (at your option) any later version. */#include <linux/config.h>#include <linux/netdevice.h>#include <linux/errno.h>#define	NEXT_DEV	NULL/* A unified ethernet device probe.  This is the easiest way to have every   ethernet adaptor have the name "eth[0123...]".   */extern int tulip_probe(struct device *dev);extern int hp100_probe(struct device *dev);extern int ultra_probe(struct device *dev);extern int ultra32_probe(struct device *dev);extern int wd_probe(struct device *dev);extern int el2_probe(struct device *dev);extern int ne_probe(struct device *dev);extern int ne2k_pci_probe(struct device *dev);extern int hp_probe(struct device *dev);extern int hp_plus_probe(struct device *dev);extern int znet_probe(struct device *);extern int express_probe(struct device *);extern int eepro_probe(struct device *);extern int el3_probe(struct device *);extern int at1500_probe(struct device *);extern int at1700_probe(struct device *);extern int fmv18x_probe(struct device *);extern int eth16i_probe(struct device *);extern int depca_probe(struct device *);extern int apricot_probe(struct device *);extern int ewrk3_probe(struct device *);extern int de4x5_probe(struct device *);extern int el1_probe(struct device *);extern int via_rhine_probe(struct device *);#if	defined(CONFIG_WAVELAN)extern int wavelan_probe(struct device *);#endif	/* defined(CONFIG_WAVELAN) */extern int el16_probe(struct device *);extern int elplus_probe(struct device *);extern int ac3200_probe(struct device *);extern int e2100_probe(struct device *);extern int ni52_probe(struct device *);extern int ni65_probe(struct device *);extern int SK_init(struct device *);extern int seeq8005_probe(struct device *);extern int tc59x_probe(struct device *);extern int dgrs_probe(struct device *);extern int smc_init( struct device * );extern int sparc_lance_probe(struct device *);extern int atarilance_probe(struct device *);extern int a2065_probe(struct device *);extern int ariadne_probe(struct device *);extern int hydra_probe(struct device *);extern int yellowfin_probe(struct device *);extern int eepro100_probe(struct device *);extern int epic100_probe(struct device *);extern int rtl8139_probe(struct device *);extern int tlan_probe(struct device *);extern int isa515_probe(struct device *);extern int pcnet32_probe(struct device *);extern int lance_probe(struct device *);/* Detachable devices ("pocket adaptors") */extern int atp_init(struct device *);extern int de600_probe(struct device *);extern int de620_probe(struct device *);/* The shaper hook */extern int shaper_probe(struct device *);/* Red Creek PCI hook */extern int rcpci_probe(struct device *);static intethif_probe(struct device *dev){    u_long base_addr = dev->base_addr;    if ((base_addr == 0xffe0)  ||  (base_addr == 1))	return 1;		/* ENXIO */    if (1	/* All PCI probes are safe, and thus should be first. */#ifdef CONFIG_DE4X5             /* DEC DE425, DE434, DE435 adapters */	&& de4x5_probe(dev)#endif#ifdef CONFIG_DGRS	&& dgrs_probe(dev)#endif#ifdef CONFIG_EEXPRESS_PRO100B	/* Intel EtherExpress Pro100B */	&& eepro100_probe(dev)#endif#ifdef CONFIG_EPIC	&& epic100_probe(dev)#endif#if defined(CONFIG_HP100)	&& hp100_probe(dev)#endif	#if defined(CONFIG_NE2K_PCI)	&& ne2k_pci_probe(dev)#endif#ifdef CONFIG_PCNET32	&& pcnet32_probe(dev)#endif#ifdef CONFIG_RTL8139	&& rtl8139_probe(dev)#endif#if defined(CONFIG_VIA_RHINE)	&& via_rhine_probe(dev)#endif#if defined(CONFIG_VORTEX)	&& tc59x_probe(dev)#endif#if defined(CONFIG_DEC_ELCP)	&& tulip_probe(dev)#endif#ifdef CONFIG_YELLOWFIN	&& yellowfin_probe(dev)#endif	/* Next mostly-safe EISA-only drivers. */#ifdef CONFIG_AC3200		/* Ansel Communications EISA 3200. */	&& ac3200_probe(dev)#endif#if defined(CONFIG_ULTRA32)	&& ultra32_probe(dev)#endif	/* Third, sensitive ISA boards. */#ifdef CONFIG_AT1700	&& at1700_probe(dev)#endif#if defined(CONFIG_ULTRA)	&& ultra_probe(dev)#endif#if defined(CONFIG_SMC9194)	&& smc_init(dev)#endif#if defined(CONFIG_WD80x3)	&& wd_probe(dev)#endif#if defined(CONFIG_EL2)		/* 3c503 */	&& el2_probe(dev)#endif#if defined(CONFIG_HPLAN)	&& hp_probe(dev)#endif#if defined(CONFIG_HPLAN_PLUS)	&& hp_plus_probe(dev)#endif#if defined(CONFIG_SEEQ8005)	&& seeq8005_probe(dev)#endif#ifdef CONFIG_E2100		/* Cabletron E21xx series. */	&& e2100_probe(dev)#endif#if defined(CONFIG_NE2000)	&& ne_probe(dev)#endif#ifdef CONFIG_AT1500	&& at1500_probe(dev)#endif#ifdef CONFIG_FMV18X		/* Fujitsu FMV-181/182 */	&& fmv18x_probe(dev)#endif#ifdef CONFIG_ETH16I	&& eth16i_probe(dev)	/* ICL EtherTeam 16i/32 */#endif#ifdef CONFIG_EL3		/* 3c509 */	&& el3_probe(dev)#endif#ifdef CONFIG_3C515		/* 3c515 */	&& tc515_probe(dev)#endif#ifdef CONFIG_ZNET		/* Zenith Z-Note and some IBM Thinkpads. */	&& znet_probe(dev)#endif#ifdef CONFIG_EEXPRESS		/* Intel EtherExpress */	&& express_probe(dev)#endif#ifdef CONFIG_EEXPRESS_PRO	/* Intel EtherExpress Pro/10 */	&& eepro_probe(dev)#endif#ifdef CONFIG_DEPCA		/* DEC DEPCA */	&& depca_probe(dev)#endif#ifdef CONFIG_EWRK3             /* DEC EtherWORKS 3 */        && ewrk3_probe(dev)#endif#ifdef CONFIG_APRICOT		/* Apricot I82596 */	&& apricot_probe(dev)#endif#ifdef CONFIG_EL1		/* 3c501 */	&& el1_probe(dev)#endif#if	defined(CONFIG_WAVELAN)	/* WaveLAN */	&& wavelan_probe(dev)#endif	/* defined(CONFIG_WAVELAN) */#ifdef CONFIG_EL16		/* 3c507 */	&& el16_probe(dev)#endif#ifdef CONFIG_ELPLUS		/* 3c505 */	&& elplus_probe(dev)#endif#ifdef CONFIG_DE600		/* D-Link DE-600 adapter */	&& de600_probe(dev)#endif#ifdef CONFIG_DE620		/* D-Link DE-620 adapter */	&& de620_probe(dev)#endif#if defined(CONFIG_SK_G16)	&& SK_init(dev)#endif#ifdef CONFIG_NI52	&& ni52_probe(dev)#endif#ifdef CONFIG_NI65	&& ni65_probe(dev)#endif#ifdef CONFIG_LANCE	/* ISA LANCE boards */	&& lance_probe(dev)#endif#ifdef CONFIG_ATARILANCE	/* Lance-based Atari ethernet boards */	&& atarilance_probe(dev)#endif#ifdef CONFIG_A2065		/* Commodore/Ameristar A2065 Ethernet Board */	&& a2065_probe(dev)#endif#ifdef CONFIG_ARIADNE		/* Village Tronic Ariadne Ethernet Board */	&& ariadne_probe(dev)#endif#ifdef CONFIG_HYDRA		/* Hydra Systems Amiganet Ethernet board */	&& hydra_probe(dev)#endif#ifdef CONFIG_SUNLANCE	&& sparc_lance_probe(dev)#endif#ifdef CONFIG_TLAN	&& tlan_probe(dev)#endif#ifdef CONFIG_LANCE	&& lance_probe(dev)#endif	&& 1 ) {	return 1;	/* -ENODEV or -EAGAIN would be more accurate. */    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -