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 
  33 struct ddi_proto protocols[] = {
  34 #ifdef  CONFIG_UNIX
  35   { "UNIX",     unix_proto_init },
  36 #endif
  37 #ifdef  CONFIG_INET
  38   { "INET",     inet_proto_init },
  39 #endif
  40   { NULL,       NULL            }
  41 };
  42 
  43 
  44 /*
  45  * Section B:   Device Driver Modules.
  46  *              This section defines which network device drivers
  47  *              get linked into the Linux kernel.  It is currently
  48  *              only used by the INET protocol.  Any takers for the
  49  *              other protocols like XNS or Novell?
  50  *
  51  * WARNING:     THIS SECTION IS NOT YET USED BY THE DRIVERS !!!!!
  52  */
  53 #include "drv/we8003/we8003.h"          /* Western Digital WD-80[01]3   */
  54 /*#include "drv/dp8390/dp8390.h"        Donald Becker's DP8390 kit      */
  55 /*#inclde "drv/slip/slip.h"             Laurence Culhane's SLIP kit     */
  56 
  57 
  58 struct ddi_device devices[] = {
  59 #if CONF_WE8003
  60   { "WD80x3[EBT]",
  61         "",     0,      1,      we8003_init,    NULL,
  62         19,     0,      DDI_FCHRDEV,
  63     { 0x280,    0,      15,     0,      32768,  0xD0000         }       },
  64 #endif
  65 #if CONF_DP8390
  66   { "DP8390/WD80x3",
  67         "",     0,      1,      dpwd8003_init,  NULL,
  68         20,     0,      DDI_FCHRDEV,
  69     {   0,      0,      0,      0,      0,      0,              }       },
  70   { "DP8390/NE-x000",
  71         "",     0,      1,      dpne2000_init,  NULL,
  72         20,     8,      DDI_FCHRDEV,
  73     {   0,      0,      0,      0,      0,      0,              }       },
  74   { "DP8390/3C50x",
  75         "",     0,      1,      dpec503_init,   NULL,
  76         20,     16,     DDI_FCHRDEV,
  77     {   0,      0,      0,      0,      0,      0,              }       },
  78 #endif
  79   { NULL,
  80         "",     0,      0,      NULL,           NULL,
  81         0,      0,      0,
  82     {   0,      0,      0,      0,      0,      0               }       }
  83 };

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