-
/*
-
* Space.c Defines which protocol modules and I/O device drivers get
-
* linked into the LINUX kernel. Currently, this is only used
-
* by the NET layer of LINUX, but it eventually might move to
-
* an upper directory of the system.
-
*
-
* Version: @(#)Space.c 1.0.2 04/22/93
-
*
-
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
-
*/
-
/*Space.c 定义了当前链接到LINUX Kernel的协议模块和I/O设备驱动。当前仅有LINUX的网络层使用,但它最后会在整个系统中使用。*/
-
#include <linux/config.h>
-
#include <linux/types.h>
-
#include <linux/kernel.h>
-
#include <linux/ddi.h>
-
-
-
#define CONFIG_UNIX YES /* always present... */
-
-
-
/*
-
* Section A: Networking Protocol Handlers.
-
* This section defines which networking protocols get
-
* linked into the SOCKET layer of the Linux kernel.
-
* Currently, these are AF_UNIX (always) and AF_INET.
-
*/
-
/*Section A: 网络协议管理器.
-
* 定义了链接到Linux内核的SOCKET层的网络协议。当前有AF_UNIX和AF_INET
-
*/
-
#ifdef CONFIG_UNIX
-
# include "unix/unix.h"
-
#endif
-
#ifdef CONFIG_INET
-
# include "inet/inet.h"
-
#endif
-
#ifdef CONFIG_IPX
-
#include "inet/ipxcall.h"
-
#endif
-
#ifdef CONFIG_AX25
-
#include "inet/ax25call.h"
-
#endif
/*定义了全局protocols数组,将在ddi.c中被调用*/
-
struct ddi_proto protocols[] = {
-
#ifdef CONFIG_UNIX
-
{ "UNIX", unix_proto_init },
-
#endif
-
#ifdef CONFIG_IPX
-
{ "IPX", ipx_proto_init },
-
#endif
-
#ifdef CONFIG_AX25
-
{ "AX.25", ax25_proto_init },
-
#endif
-
#ifdef CONFIG_INET
-
{ "INET", inet_proto_init },
-
#endif
-
{ NULL, NULL }
-
};
-
-
-
/*
-
* Section B: Device Driver Modules.
-
* This section defines which network device drivers
-
* get linked into the Linux kernel. It is currently
-
* only used by the INET protocol. Any takers for the
-
* other protocols like XNS or Novell?
-
*
-
* WARNING: THIS SECTION IS NOT YET USED BY THE DRIVERS !!!!!
-
*/
-
/* Section B: 设备驱动模块
-
* 定义了哪些网络设备驱动链接到Linux内核。当前仅被INET协议使用。
-
*警告: 当前还没有驱动使用这儿定义的数据
-
*
-
**/
-
/*#include "drv/we8003/we8003.h" Western Digital WD-80[01]3 */
-
/*#include "drv/dp8390/dp8390.h" Donald Becker's DP8390 kit */
-
/*#inclde "drv/slip/slip.h" Laurence Culhane's SLIP kit */
-
-
/*定义全局的devices数组,在ddi.c中使用*/
-
struct ddi_device devices[] = {
-
#if CONF_WE8003
-
{ "WD80x3[EBT]",
-
"", 0, 1, we8003_init, NULL,
-
19, 0, DDI_FCHRDEV,
-
{ 0x280, 0, 15, 0, 32768, 0xD0000 } },
-
#endif
-
#if CONF_DP8390
-
{ "DP8390/WD80x3",
-
"", 0, 1, dpwd8003_init, NULL,
-
20, 0, DDI_FCHRDEV,
-
{ 0, 0, 0, 0, 0, 0, } },
-
{ "DP8390/NE-x000",
-
"", 0, 1, dpne2000_init, NULL,
-
20, 8, DDI_FCHRDEV,
-
{ 0, 0, 0, 0, 0, 0, } },
-
{ "DP8390/3C50x",
-
"", 0, 1, dpec503_init, NULL,
-
20, 16, DDI_FCHRDEV,
-
{ 0, 0, 0, 0, 0, 0, } },
-
#endif
-
{ NULL,
-
"", 0, 0, NULL, NULL,
-
0, 0, 0,
-
{ 0, 0, 0, 0, 0, 0 } }
-
};