root/net/tcp/Space.c

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* Space.c */
   2 
   3 /* Holds initial configuration information for devices. */
   4 /* $Id: Space.c,v 0.8.4.7 1993/01/22 23:21:38 bir7 Exp $ */
   5 /* $Log: Space.c,v $
   6  * Revision 0.8.4.7  1993/01/22  23:21:38  bir7
   7  * Merged with 99 pl4
   8  *
   9  * Revision 0.8.4.6  1993/01/22  22:58:08  bir7
  10  * *** empty log message ***
  11  *
  12  * Revision 0.8.4.5  1992/12/12  19:25:04  bir7
  13  * Cleaned up Log messages.
  14  *
  15  * Revision 0.8.4.4  1992/12/05  21:35:53  bir7
  16  * Updated dev->init type.
  17  *
  18  * Revision 0.8.4.3  1992/11/15  14:55:30  bir7
  19  * Removed ctrl-h so diff no longer thinks it's a binary file.
  20  *
  21  * Revision 0.8.4.2  1992/11/10  10:38:48  bir7
  22  * Change free_s to kfree_s and accidently changed free_skb to kfree_skb.
  23  *
  24  * Revision 0.8.4.1  1992/11/10  00:17:18  bir7
  25  * version change only.
  26  *
  27  * Revision 0.8.3.2  1992/11/10  00:14:47  bir7
  28  * Changed malloc to kmalloc and added Id and Log
  29  *
  30  */
  31 
  32 #include "dev.h"
  33 #include <linux/stddef.h>
  34 
  35 extern int wd8003_init(struct device *);
  36 extern int loopback_init(struct device *dev);
  37 
  38 static struct device wd8003_dev =
  39 {
  40   "eth0",
  41   0xd2000,   /* recv memory end. */
  42   0xd0600,   /* recv memory start. */
  43   0xd2000,  /* memory end. */
  44   0xd0000,  /* memory start. */
  45   0x280,    /* base i/o address. */
  46   5,        /* irq */
  47   0,0,0,0,0, /* flags */
  48   NULL, /* next device */
  49   wd8003_init,
  50   /* wd8003_init should set up the rest. */
  51   0,  /* trans start. */
  52   {NULL}, /* buffs */
  53   NULL, /* backlog */
  54   NULL, /* open */
  55   NULL, /* stop */
  56   NULL, /* hard_start_xmit */
  57   NULL, /* hard_header */
  58   NULL, /* add arp */
  59   NULL, /* queue xmit */
  60   NULL, /* rebuild header */
  61   NULL, /* type_trans */
  62   NULL, /* send_packet */
  63   NULL, /* private */
  64   0,    /* type. */
  65   0,    /* hard_header_len */
  66   0,    /* mtu */
  67   {0,}, /* broadcast address */
  68   {0,}, /* device address */
  69   0     /* addr len */
  70 };
  71 
  72 static struct device loopback_dev =
  73 {
  74   "loopback",
  75   -1,       /* recv memory end. */
  76   0x0,      /* recv memory start. */
  77   -1,       /* memory end. */
  78   0,        /* memory start. */
  79   0,        /* base i/o address. */
  80   0,        /* irq */
  81   0,0,1,0,0, /* flags */
  82   &wd8003_dev, /* next device */
  83   loopback_init,
  84   /* loopback_init should set up the rest. */
  85   0,  /* trans start. */
  86   {NULL}, /* buffs */
  87   NULL, /* backlog */
  88   NULL, /* open */
  89   NULL, /* stop */
  90   NULL, /* hard_start_xmit */
  91   NULL, /* hard_header */
  92   NULL, /* add arp */
  93   NULL, /* queue xmit */
  94   NULL, /* rebuild header */
  95   NULL, /* type_trans */
  96   NULL, /* send_packet */
  97   NULL, /* private */
  98   0,    /* type. */
  99   0,    /* hard_header_len */
 100   0,    /* mtu */
 101   {0,}, /* broadcast address */
 102   {0,}, /* device address */
 103   0     /* addr len */
 104 };
 105 
 106 struct device *dev_base = &loopback_dev;

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