root/net/Space.c

/* [previous][next][first][last][top][bottom][index][help] */
   1 /*
   2  * Space.c      Defines which protocol modules and I/O device drivers get
   3  *              linked into the LINUX kernel.  Currently, this is only used
   4  *              by the NET layer of LINUX, but it eventually might move to
   5  *              an upper directory of the system.
   6  *
   7  * Version:     @(#)Space.c     1.0.2   04/22/93
   8  *
   9  * Author:      Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  10  */
  11 #include <linux/config.h>
  12 #include <linux/types.h>
  13 #include <linux/kernel.h>
  14 #include <linux/ddi.h>
  15 
  16 
  17 #define CONFIG_UNIX             YES             /* always present...    */
  18 
  19 
  20 /*
  21  * Section A:   Networking Protocol Handlers.
  22  *              This section defines which networking protocols get
  23  *              linked into the SOCKET layer of the Linux kernel.
  24  *              Currently, these are AF_UNIX (always) and AF_INET.
  25  */
  26 #ifdef  CONFIG_UNIX
  27 #  include "unix/unix.h"
  28 #endif
  29 #ifdef  CONFIG_INET
  30 #  include "inet/inet.h"
  31 #endif
  32 #ifdef CONFIG_IPX
  33 #include "inet/ipxcall.h"
  34 #endif
  35 #ifdef CONFIG_AX25
  36 #include "inet/ax25call.h"
  37 #endif
  38 
  39 struct ddi_proto protocols[] = {
  40 #ifdef  CONFIG_UNIX
  41   { "UNIX",     unix_proto_init },
  42 #endif
  43 #ifdef  CONFIG_IPX
  44   { "IPX",      ipx_proto_init },
  45 #endif
  46 #ifdef CONFIG_AX25  
  47   { "AX.25",    ax25_proto_init },
  48 #endif  
  49 #ifdef  CONFIG_INET
  50   { "INET",     inet_proto_init },
  51 #endif
  52   { NULL,       NULL            }
  53 };
  54 
  55 
  56 /*
  57  * Section B:   Device Driver Modules.
  58  *              This section defines which network device drivers
  59  *              get linked into the Linux kernel.  It is currently
  60  *              only used by the INET protocol.  Any takers for the
  61  *              other protocols like XNS or Novell?
  62  *
  63  * WARNING:     THIS SECTION IS NOT YET USED BY THE DRIVERS !!!!!
  64  */
  65 /*#include "drv/we8003/we8003.h"        Western Digital WD-80[01]3      */
  66 /*#include "drv/dp8390/dp8390.h"        Donald Becker's DP8390 kit      */
  67 /*#inclde "drv/slip/slip.h"             Laurence Culhane's SLIP kit     */
  68 
  69 
  70 struct ddi_device devices[] = {
  71 #if CONF_WE8003
  72   { "WD80x3[EBT]",
  73         "",     0,      1,      we8003_init,    NULL,
  74         19,     0,      DDI_FCHRDEV,
  75     { 0x280,    0,      15,     0,      32768,  0xD0000         }       },
  76 #endif
  77 #if CONF_DP8390
  78   { "DP8390/WD80x3",
  79         "",     0,      1,      dpwd8003_init,  NULL,
  80         20,     0,      DDI_FCHRDEV,
  81     {   0,      0,      0,      0,      0,      0,              }       },
  82   { "DP8390/NE-x000",
  83         "",     0,      1,      dpne2000_init,  NULL,
  84         20,     8,      DDI_FCHRDEV,
  85     {   0,      0,      0,      0,      0,      0,              }       },
  86   { "DP8390/3C50x",
  87         "",     0,      1,      dpec503_init,   NULL,
  88         20,     16,     DDI_FCHRDEV,
  89     {   0,      0,      0,      0,      0,      0,              }       },
  90 #endif
  91   { NULL,
  92         "",     0,      0,      NULL,           NULL,
  93         0,      0,      0,
  94     {   0,      0,      0,      0,      0,      0               }       }
  95 };

/* [previous][next][first][last][top][bottom][index][help] */