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

📄 space.c

📁 GNU Mach 微内核源代码, 基于美国卡内基美隆大学的 Mach 研究项目
💻 C
📖 第 1 页 / 共 2 页
字号:
    return 0;}#ifdef CONFIG_SDLA    extern int sdla_init(struct device *);    static struct device sdla0_dev = { "sdla0", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, sdla_init, };#   undef NEXT_DEV#   define NEXT_DEV	(&sdla0_dev)#endif/* Run-time ATtachable (Pocket) devices have a different (not "eth#") name. */#ifdef CONFIG_ATP		/* AT-LAN-TEC (RealTek) pocket adaptor. */static struct device atp_dev = {    "atp0", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, atp_init, /* ... */ };#   undef NEXT_DEV#   define NEXT_DEV	(&atp_dev)#endif#ifdef CONFIG_ARCNET    extern int arcnet_probe(struct device *dev);    static struct device arcnet_dev = {	"arc0", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, arcnet_probe, };#   undef	NEXT_DEV#   define	NEXT_DEV	(&arcnet_dev)#endif/* The first device defaults to I/O base '0', which means autoprobe. */#ifndef ETH0_ADDR# define ETH0_ADDR 0#endif#ifndef ETH0_IRQ# define ETH0_IRQ 0#endif/* "eth0" defaults to autoprobe (== 0), other use a base of 0xffe0 (== -0x20),   which means "don't probe".  These entries exist to only to provide empty   slots which may be enabled at boot-time. */static struct device eth7_dev = {    "eth7", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, NEXT_DEV, ethif_probe };static struct device eth6_dev = {    "eth6", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth7_dev, ethif_probe };static struct device eth5_dev = {    "eth5", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth6_dev, ethif_probe };static struct device eth4_dev = {    "eth4", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth5_dev, ethif_probe };static struct device eth3_dev = {    "eth3", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth4_dev, ethif_probe };static struct device eth2_dev = {    "eth2", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth3_dev, ethif_probe };static struct device eth1_dev = {    "eth1", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth2_dev, ethif_probe };static struct device eth0_dev = {    "eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, &eth1_dev, ethif_probe };#   undef NEXT_DEV#   define NEXT_DEV	(&eth0_dev)#if defined(PLIP) || defined(CONFIG_PLIP)    extern int plip_init(struct device *);    static struct device plip2_dev = {	"plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };    static struct device plip1_dev = {	"plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };    static struct device plip0_dev = {	"plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };#   undef NEXT_DEV#   define NEXT_DEV	(&plip0_dev)#endif  /* PLIP */#if defined(SLIP) || defined(CONFIG_SLIP)	/* To be exact, this node just hooks the initialization	   routines to the device structures.			*/extern int slip_init_ctrl_dev(struct device *);static struct device slip_bootstrap = {  "slip_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, slip_init_ctrl_dev, };#undef NEXT_DEV#define NEXT_DEV (&slip_bootstrap)#endif	/* SLIP */  #if defined(CONFIG_MKISS)	/* To be exact, this node just hooks the initialization	   routines to the device structures.			*/extern int mkiss_init_ctrl_dev(struct device *);static struct device mkiss_bootstrap = {  "mkiss_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, mkiss_init_ctrl_dev, };#undef NEXT_DEV#define NEXT_DEV (&mkiss_bootstrap)#endif	/* MKISS */  #if defined(CONFIG_STRIP)extern int strip_init_ctrl_dev(struct device *);static struct device strip_bootstrap = {    "strip_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, strip_init_ctrl_dev, };#undef NEXT_DEV#define NEXT_DEV (&strip_bootstrap)#endif   /* STRIP */#if defined(CONFIG_SHAPER)static struct device shaper_bootstrap = {    "shaper", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, shaper_probe, };#undef NEXT_DEV#define NEXT_DEV (&shaper_bootstrap)#endif   /* SHAPER */#if defined(CONFIG_RCPCI)static struct device rcpci_bootstrap = {    "rcpci", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, rcpci_probe, };#undef NEXT_DEV#define NEXT_DEV (&rcpci_bootstrap)#endif   /* RCPCI */#if defined(CONFIG_PPP)extern int ppp_init(struct device *);static struct device ppp_bootstrap = {    "ppp_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, ppp_init, };#undef NEXT_DEV#define NEXT_DEV (&ppp_bootstrap)#endif   /* PPP */#ifdef CONFIG_DUMMY    extern int dummy_init(struct device *dev);    static struct device dummy_dev = {	"dummy", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, dummy_init, };#   undef	NEXT_DEV#   define	NEXT_DEV	(&dummy_dev)#endif#ifdef CONFIG_EQUALIZERextern int eql_init(struct device *dev);struct device eql_dev = {  "eql",			/* Master device for IP traffic load 				   balancing */  0x0, 0x0, 0x0, 0x0,		/* recv end/start; mem end/start */  0,				/* base I/O address */  0,				/* IRQ */  0, 0, 0,			/* flags */  NEXT_DEV,			/* next device */  eql_init			/* set up the rest */};#   undef       NEXT_DEV#   define      NEXT_DEV        (&eql_dev)#endif#ifdef CONFIG_IBMTR     extern int tok_probe(struct device *dev);    static struct device ibmtr_dev1 = {	"tr1",			/* IBM Token Ring (Non-DMA) Interface */	0x0,			/* recv memory end			*/	0x0,			/* recv memory start			*/	0x0,			/* memory end				*/	0x0,			/* memory start				*/	0xa24,			/* base I/O address			*/	0,			/* IRQ					*/	0, 0, 0,		/* flags				*/	NEXT_DEV,		/* next device				*/	tok_probe		/* ??? Token_init should set up the rest	*/    };#   undef	NEXT_DEV#   define	NEXT_DEV	(&ibmtr_dev1)    static struct device ibmtr_dev0 = {	"tr0",			/* IBM Token Ring (Non-DMA) Interface */	0x0,			/* recv memory end			*/	0x0,			/* recv memory start			*/	0x0,			/* memory end				*/	0x0,			/* memory start				*/	0xa20,			/* base I/O address			*/	0,			/* IRQ					*/	0, 0, 0,		/* flags				*/	NEXT_DEV,		/* next device				*/	tok_probe		/* ??? Token_init should set up the rest	*/    };#   undef	NEXT_DEV#   define	NEXT_DEV	(&ibmtr_dev0)#endif #ifdef CONFIG_DEFXX	extern int dfx_probe(struct device *dev);	static struct device fddi7_dev =		{"fddi7", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, dfx_probe};	static struct device fddi6_dev =		{"fddi6", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi7_dev, dfx_probe};	static struct device fddi5_dev =		{"fddi5", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi6_dev, dfx_probe};	static struct device fddi4_dev =		{"fddi4", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi5_dev, dfx_probe};	static struct device fddi3_dev =		{"fddi3", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi4_dev, dfx_probe};	static struct device fddi2_dev =		{"fddi2", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi3_dev, dfx_probe};	static struct device fddi1_dev =		{"fddi1", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi2_dev, dfx_probe};	static struct device fddi0_dev =		{"fddi0", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi1_dev, dfx_probe};#undef	NEXT_DEV#define	NEXT_DEV	(&fddi0_dev)#endif #ifdef CONFIG_NET_IPIP	extern int tunnel_init(struct device *);		static struct device tunnel_dev1 = 	{		"tunl1",		/* IPIP tunnel  			*/		0x0,			/* recv memory end			*/		0x0,			/* recv memory start			*/		0x0,			/* memory end				*/		0x0,			/* memory start				*/		0x0,			/* base I/O address			*/		0,			/* IRQ					*/		0, 0, 0,		/* flags				*/		NEXT_DEV,		/* next device				*/		tunnel_init		/* Fill in the details			*/	};	static struct device tunnel_dev0 = 	{		"tunl0",		/* IPIP tunnel  			*/		0x0,			/* recv memory end			*/		0x0,			/* recv memory start			*/		0x0,			/* memory end				*/		0x0,			/* memory start				*/		0x0,			/* base I/O address			*/		0,			/* IRQ					*/		0, 0, 0,		/* flags				*/		&tunnel_dev1,		/* next device				*/		tunnel_init		/* Fill in the details			*/    };#   undef	NEXT_DEV#   define	NEXT_DEV	(&tunnel_dev0)#endif#ifdef CONFIG_APFDDI    extern int apfddi_init(struct device *dev);    static struct device fddi_dev = {	"fddi", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, apfddi_init };#   undef       NEXT_DEV#   define      NEXT_DEV        (&fddi_dev)#endif#ifdef CONFIG_APBIF    extern int bif_init(struct device *dev);    static struct device bif_dev = {        "bif", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, bif_init };#   undef       NEXT_DEV#   define      NEXT_DEV        (&bif_dev)#endif	extern int loopback_init(struct device *dev);struct device loopback_dev = {	"lo",			/* Software Loopback interface		*/	0x0,			/* recv memory end			*/	0x0,			/* recv memory start			*/	0x0,			/* memory end				*/	0x0,			/* memory start				*/	0,			/* base I/O address			*/	0,			/* IRQ					*/	0, 0, 0,		/* flags				*/	NEXT_DEV,		/* next device				*/	loopback_init		/* loopback_init should set up the rest	*/};struct device *dev_base = &loopback_dev;

⌨️ 快捷键说明

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