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/sqtconf/sqt_io_conf.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 Carnegie Mellon University
    4  * Copyright (c) 1991 Sequent Computer Systems
    5  * All Rights Reserved.
    6  * 
    7  * Permission to use, copy, modify and distribute this software and its
    8  * documentation is hereby granted, provided that both the copyright
    9  * notice and this permission notice appear in all copies of the
   10  * software, derivative works or modified versions, and any portions
   11  * thereof, and that both notices appear in supporting documentation.
   12  * 
   13  * CARNEGIE MELLON AND SEQUENT COMPUTER SYSTEMS ALLOW FREE USE OF
   14  * THIS SOFTWARE IN ITS "AS IS" CONDITION.  CARNEGIE MELLON AND
   15  * SEQUENT COMPUTER SYSTEMS DISCLAIM ANY LIABILITY OF ANY KIND FOR
   16  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   17  * 
   18  * Carnegie Mellon requests users of this software to return to
   19  * 
   20  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   21  *  School of Computer Science
   22  *  Carnegie Mellon University
   23  *  Pittsburgh PA 15213-3890
   24  * 
   25  * any improvements or extensions that they make and grant Carnegie Mellon 
   26  * the rights to redistribute these changes.
   27  */
   28 
   29 /*
   30  * HISTORY
   31  * $Log:        sqt_io_conf.c,v $
   32  * Revision 2.3  91/07/31  18:05:55  dbg
   33  *      Changed copyright.
   34  *      [91/07/31            dbg]
   35  * 
   36  * Revision 2.2  91/05/08  13:04:10  dbg
   37  *      Adapted for pure Mach kernel.
   38  *      [90/10/03            dbg]
   39  * 
   40  */
   41 
   42 /*
   43  * Configuration file for Sequent SYMMETRY.
   44  * Sequent generates this file with bin/config.
   45  */
   46 
   47 #include        <sqt/ioconf.h>
   48 
   49 /*
   50  * Pseudo-device configuration
   51  */
   52 
   53 struct  pseudo_dev pseudo_dev[] = {
   54         { 0 },
   55 };
   56 
   57 /*
   58  * Interrupt table
   59  */
   60 
   61 int     bin_intr[8] = {
   62                 0,                              /* bin 0, always zero */
   63                 0,                              /* bin 1 */
   64                 0,                              /* bin 2 */
   65                 0,                              /* bin 3 */
   66                 26,                             /* bin 4 */
   67                 17,                             /* bin 5 */
   68                 8,                              /* bin 6 */
   69                 0,                              /* bin 7 */
   70 };
   71 
   72 /*
   73  * b8k_cntlrs array collects all controller entries
   74  */
   75 extern int  conf_sec(), probe_sec_devices(),    sec_map();
   76 #if 0
   77 extern int  conf_zdc(), probe_zdc_devices(),    zdc_map();
   78 extern int  conf_mbad(),probe_mbad_devices(),   mbad_map();
   79 #endif
   80 
   81 struct  cntlrs b8k_cntlrs[] = {
   82 /*      conf            probe_devs              map     */
   83 #if 0
   84 {       conf_mbad,      probe_mbad_devices,     mbad_map        }, 
   85 #endif
   86 {       conf_sec,       probe_sec_devices,      sec_map }, 
   87 #if 0
   88 {       conf_zdc,       probe_zdc_devices,      zdc_map }, 
   89 #endif
   90 {       0,      },
   91 };
   92 
   93 u_long  MBAd_IOwindow =         3*256*1024;     /* top 1/4 Meg */
   94 
   95 /*
   96  * mbad device configuration.
   97  */
   98 
   99 
  100 #include        <sqtmbad/ioconf.h>
  101 
  102 #if 0
  103 extern  struct  mbad_driver     st_driver;
  104 extern  struct  mbad_driver     zt_driver;
  105 extern  struct  mbad_driver     lp_driver;
  106 
  107 struct  mbad_dev mbad_st[] = {
  108 /*      index   csr     flags   maps    bin     intr */
  109 {       -1,     512,    0,      0,      4,      3,      },      /* st0 */
  110 {       -1,     528,    0,      0,      4,      4,      },      /* st1 */
  111 {       -1,     544,    0,      0,      4,      5,      },      /* st2 */
  112 {       -1,     560,    0,      0,      4,      6,      },      /* st3 */
  113 {       -1,     576,    0,      0,      4,      3,      },      /* st4 */
  114 {       -1,     592,    0,      0,      4,      4,      },      /* st5 */
  115 };
  116 
  117 struct  mbad_dev mbad_zt[] = {
  118 /*      index   csr     flags   maps    bin     intr */
  119 {       -1,     768,    0,      34,     5,      7,      },      /* zt0 */
  120 };
  121 
  122 struct  mbad_dev mbad_lp[] = {
  123 /*      index   csr     flags   maps    bin     intr */
  124 {       -1,     1024,   0,      8,      5,      6,      },      /* lp0 */
  125 };
  126 
  127 #endif 0
  128 /*
  129  * mbad_conf array collects all mbad devices
  130  */
  131 
  132 struct  mbad_conf mbad_conf[] = {
  133 /*      Driver          #Entries        Devices         */
  134 #if 0
  135 {       &st_driver,     6,              mbad_st,        },      /* st */
  136 {       &zt_driver,     1,              mbad_zt,        },      /* zt */
  137 {       &lp_driver,     1,              mbad_lp,        },      /* lp */
  138 #endif 0
  139         { 0 },
  140 };
  141 
  142 
  143 /*
  144  * sec device configuration.
  145  */
  146 
  147 
  148 #include        <sqtsec/ioconf.h>
  149 
  150 extern  struct  sec_driver      co_driver;
  151 extern  struct  sec_driver      se_driver;
  152 extern  struct  sec_driver      sd_driver;
  153 #if 0
  154 extern  struct  sec_driver      ts_driver;
  155 extern  struct  sec_driver      sm_driver;
  156 #endif 0
  157 
  158 
  159 struct  sec_dev sec_co[] = {
  160 /*      flags   bin     req     doneq   index   target  unit */
  161 {       0,      4,      4,      4,      0,      -1,     0,      },      /* co0 */
  162 {       0,      4,      4,      4,      0,      -1,     1,      },      /* co1 */
  163 {       0,      4,      4,      4,      0,      -1,     2,      },      /* co2 */
  164 {       0,      4,      4,      4,      0,      -1,     3,      },      /* co3 */
  165 {       0,      4,      4,      4,      1,      -1,     0,      },      /* co4 */
  166 {       0,      4,      4,      4,      1,      -1,     1,      },      /* co5 */
  167 {       0,      4,      4,      4,      1,      -1,     2,      },      /* co6 */
  168 {       0,      4,      4,      4,      1,      -1,     3,      },      /* co7 */
  169 {       0,      4,      4,      4,      2,      -1,     0,      },      /* co8 */
  170 {       0,      4,      4,      4,      2,      -1,     1,      },      /* co9 */
  171 {       0,      4,      4,      4,      2,      -1,     2,      },      /* co10 */
  172 {       0,      4,      4,      4,      2,      -1,     3,      },      /* co11 */
  173 {       0,      4,      4,      4,      3,      -1,     0,      },      /* co12 */
  174 {       0,      4,      4,      4,      3,      -1,     1,      },      /* co13 */
  175 {       0,      4,      4,      4,      3,      -1,     2,      },      /* co14 */
  176 {       0,      4,      4,      4,      3,      -1,     3,      },      /* co15 */
  177 };
  178 
  179 struct  sec_dev sec_se[] = {
  180 /*      flags   bin     req     doneq   index   target  unit */
  181 {       0,      6,      25,     25,     0,      -1,     0,      },      /* se0 */
  182 {       0,      6,      10,     10,     0,      -1,     1,      },      /* se1 */
  183 {       0,      6,      25,     25,     1,      -1,     0,      },      /* se2 */
  184 {       0,      6,      10,     10,     1,      -1,     1,      },      /* se3 */
  185 };
  186 
  187 struct  sec_dev sec_sd[] = {
  188 /*      flags   bin     req     doneq   index   target  unit */
  189 {       0,      5,      4,      4,      -1,     -1,     -1,     },      /* sd0 */
  190 {       0,      5,      4,      4,      -1,     -1,     -1,     },      /* sd1 */
  191 {       0,      5,      4,      4,      -1,     -1,     -1,     },      /* sd2 */
  192 };
  193 
  194 struct  sec_dev sec_ts[] = {
  195 /*      flags   bin     req     doneq   index   target  unit */
  196 {       0,      5,      4,      4,      -1,     4,      -1,     },      /* ts0 */
  197 };
  198 
  199 struct  sec_dev sec_sm[] = {
  200 /*      flags   bin     req     doneq   index   target  unit */
  201 {       0,      4,      3,      3,      0,      -1,     0,      },      /* sm0 */
  202 {       0,      4,      3,      3,      1,      -1,     0,      },      /* sm1 */
  203 };
  204 
  205 /*
  206  * sec_conf array collects all sec devices
  207  */
  208 
  209 struct  sec_conf sec_conf[] = {
  210 /*      Driver          #Entries        Devices         */
  211 {       &co_driver,     16,             sec_co, },      /* co */
  212 {       &se_driver,     4,              sec_se, },      /* se */
  213 {       &sd_driver,     3,              sec_sd, },      /* sd */
  214 #if 0
  215 {       &ts_driver,     1,              sec_ts, },      /* ts */
  216 {       &sm_driver,     2,              sec_sm, },      /* sm */
  217 #endif 0
  218         { 0 },
  219 };
  220 
  221 
  222 /*
  223  * zdc device configuration.
  224  */
  225 
  226 
  227 #include        <sqtzdc/ioconf.h>
  228 
  229 #if 0
  230 extern  struct  zdc_driver      zd_driver;
  231 
  232 struct  zdc_dev zdc_zd[] = {
  233 /*      index   drive   drive_type */
  234 {       0,      -1,     -1,     },      /* zd0 */
  235 {       0,      -1,     -1,     },      /* zd1 */
  236 {       0,      -1,     -1,     },      /* zd2 */
  237 {       0,      -1,     -1,     },      /* zd3 */
  238 {       0,      -1,     -1,     },      /* zd4 */
  239 {       0,      -1,     -1,     },      /* zd5 */
  240 {       0,      -1,     -1,     },      /* zd6 */
  241 {       0,      -1,     -1,     },      /* zd7 */
  242 {       1,      -1,     -1,     },      /* zd8 */
  243 {       1,      -1,     -1,     },      /* zd9 */
  244 {       1,      -1,     -1,     },      /* zd10 */
  245 {       1,      -1,     -1,     },      /* zd11 */
  246 {       1,      -1,     -1,     },      /* zd12 */
  247 {       1,      -1,     -1,     },      /* zd13 */
  248 {       1,      -1,     -1,     },      /* zd14 */
  249 {       1,      -1,     -1,     },      /* zd15 */
  250 {       2,      -1,     -1,     },      /* zd16 */
  251 {       2,      -1,     -1,     },      /* zd17 */
  252 {       2,      -1,     -1,     },      /* zd18 */
  253 {       2,      -1,     -1,     },      /* zd19 */
  254 {       2,      -1,     -1,     },      /* zd20 */
  255 {       2,      -1,     -1,     },      /* zd21 */
  256 {       2,      -1,     -1,     },      /* zd22 */
  257 {       2,      -1,     -1,     },      /* zd23 */
  258 {       3,      -1,     -1,     },      /* zd24 */
  259 {       3,      -1,     -1,     },      /* zd25 */
  260 {       3,      -1,     -1,     },      /* zd26 */
  261 {       3,      -1,     -1,     },      /* zd27 */
  262 {       3,      -1,     -1,     },      /* zd28 */
  263 {       3,      -1,     -1,     },      /* zd29 */
  264 {       3,      -1,     -1,     },      /* zd30 */
  265 {       3,      -1,     -1,     },      /* zd31 */
  266 };
  267 
  268 #endif 0
  269 /*
  270  * zdc_conf array collects all zdc devices
  271  */
  272 
  273 struct  zdc_conf zdc_conf[] = {
  274 /*      Driver          #Entries        Devices         */
  275 #if 0
  276 {       &zd_driver,     32,             zdc_zd, },      /* zd */
  277 #endif 0
  278         { 0 },
  279 };

Cache object: dd9c1d8ae91426c214bfe0a715599585


[ 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.