root/net/ddi.c

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

DEFINITIONS

This source file includes following definitions.
  1. ddi_init

   1 /*
   2  * ddi.c        Implement the Device Driver Interface (DDI) routines.
   3  *              Currently, this is only used by the NET layer of LINUX,
   4  *              but it eventually might move to an upper directory of
   5  *              the system.
   6  *
   7  * Version:     @(#)ddi.c       1.28    27/12/93
   8  *
   9  * Author:      Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  10  *
  11  *      Unused pieces nobbled.
  12  */
  13 #include <asm/segment.h>
  14 #include <asm/system.h>
  15 #include <linux/types.h>
  16 #include <linux/config.h>
  17 #include <linux/kernel.h>
  18 #include <linux/sched.h>
  19 #include <linux/string.h>
  20 #include <linux/mm.h>
  21 #include <linux/socket.h>
  22 #include <linux/ddi.h>
  23 #include <linux/interrupt.h>
  24 
  25 #include "socket/dev.h"
  26 
  27 
  28 #undef  DDI_DEBUG
  29 #ifdef  DDI_DEBUG
  30 #   define PRINTK(x)    printk x
  31 #else
  32 #   define PRINTK(x)    /**/
  33 #endif
  34 
  35 
  36 extern struct ddi_proto         protocols[];    /* network protocols    */
  37 
  38 
  39 /*
  40  * This is the function that is called by a kernel routine during
  41  * system startup.  Its purpose is to walk trough the "devices"
  42  * table (defined above), and to call all moduled defined in it.
  43  */
  44  
  45 void ddi_init(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  46 {
  47         struct ddi_proto *pro;
  48 
  49         PRINTK (("DDI: Starting up!\n"));
  50 
  51         /* First off, kick all configured protocols. */
  52         pro = protocols;
  53         while (pro->name != NULL) 
  54         {
  55                 (*pro->init)(pro);
  56                 pro++;
  57         }
  58   
  59         dev_init();
  60         /* Initialize the "Buffer Head" pointers. */
  61         bh_base[INET_BH].routine = inet_bh;
  62   
  63         /* We're all done... */
  64 }       

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