The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/device/device_init.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        device_init.c,v $
   29  * Revision 2.14  93/02/01  09:46:41  danner
   30  *      Added call to chario_init.
   31  *      [93/01/25            danner]
   32  * 
   33  * Revision 2.13  92/08/03  17:33:28  jfriedl
   34  *      removed silly prototypes
   35  *      [92/08/02            jfriedl]
   36  * 
   37  * Revision 2.12  92/05/21  17:09:11  jfriedl
   38  *      tried prototypes.
   39  *      [92/05/20            jfriedl]
   40  * 
   41  * Revision 2.11  91/08/03  18:17:30  jsb
   42  *      Removed NORMA hooks.
   43  *      [91/07/17  23:06:14  jsb]
   44  * 
   45  * Revision 2.10  91/06/17  15:43:55  jsb
   46  *      Renamed NORMA conditionals.
   47  *      [91/06/17  09:58:32  jsb]
   48  * 
   49  * Revision 2.9  91/06/06  17:03:56  jsb
   50  *      NORMA_BOOT: master_device_port initialization change.
   51  *      [91/05/13  16:51:18  jsb]
   52  * 
   53  * Revision 2.8  91/05/14  15:42:08  mrt
   54  *      Correcting copyright
   55  * 
   56  * Revision 2.7  91/03/16  14:42:48  rpd
   57  *      Changed net_rcv_msg_thread to net_thread.
   58  *      [91/02/13            rpd]
   59  * 
   60  * Revision 2.6  91/02/05  17:08:54  mrt
   61  *      Changed to new Mach copyright
   62  *      [91/01/31  17:27:56  mrt]
   63  * 
   64  * Revision 2.5  90/12/14  10:59:35  jsb
   65  *      Added NORMA_BOOT support.
   66  *      [90/12/13  21:06:19  jsb]
   67  * 
   68  * Revision 2.4  90/08/27  21:55:11  dbg
   69  *      Removed call to cinit.
   70  *      [90/07/09            dbg]
   71  * 
   72  * Revision 2.3  90/06/02  14:47:29  rpd
   73  *      Converted to new IPC.
   74  *      [90/03/26  21:51:02  rpd]
   75  * 
   76  * Revision 2.2  89/09/08  11:23:33  dbg
   77  *      Created.
   78  *      [89/08/02            dbg]
   79  * 
   80  */
   81 /*
   82  *      Author: David B. Golub, Carnegie Mellon University
   83  *      Date:   8/89
   84  *
   85  *      Initialize device service as part of kernel task.
   86  */
   87 #include <ipc/ipc_port.h>
   88 #include <ipc/ipc_space.h>
   89 #include <kern/task.h>
   90 
   91 #include <device/device_types.h>
   92 #include <device/device_port.h>
   93 
   94 
   95 
   96 extern void     ds_init();
   97 extern void     dev_lookup_init();
   98 extern void     net_io_init();
   99 extern void     device_pager_init();
  100 extern void     chario_init(void);
  101 
  102 extern void     io_done_thread();
  103 extern void     net_thread();
  104 
  105 ipc_port_t      master_device_port;
  106 
  107 void
  108 device_service_create()
  109 {
  110         master_device_port = ipc_port_alloc_kernel();
  111         if (master_device_port == IP_NULL)
  112             panic("can't allocate master device port");
  113 
  114         ds_init();
  115         dev_lookup_init();
  116         net_io_init();
  117         device_pager_init();
  118         chario_init();
  119 
  120         (void) kernel_thread(kernel_task, io_done_thread, 0);
  121         (void) kernel_thread(kernel_task, net_thread, 0);
  122 }

Cache object: df85d23831752ee041df4a10ba262d04


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.