386BSD 0.1 development
[unix-history] / usr / src / usr.sbin / config / config.h
index e3ce875..8959710 100644 (file)
@@ -2,27 +2,43 @@
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.
  *
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted provided
- * that: (1) source distributions retain this entire copyright notice and
- * comment, and (2) distributions including binaries display the following
- * acknowledgement:  ``This product includes software developed by the
- * University of California, Berkeley and its contributors'' in the
- * documentation or other materials provided with the distribution and in
- * all advertising materials mentioning features or use of this software.
- * Neither the name of the University nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
  *
- *     @(#)config.h    5.10 (Berkeley) 6/1/90
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)config.h    5.14 (Berkeley) 7/1/91
  */
 
 /*
  * Config.
  */
 #include <sys/types.h>
  */
 
 /*
  * Config.
  */
 #include <sys/types.h>
+#include <stdlib.h>
+#include <string.h>
 
 #define        NODEV   ((dev_t)-1)
 
 
 #define        NODEV   ((dev_t)-1)
 
@@ -31,7 +47,7 @@ struct file_list {
        char    *f_fn;                  /* the name */
        u_char  f_type;                 /* see below */
        u_char  f_flags;                /* see below */
        char    *f_fn;                  /* the name */
        u_char  f_type;                 /* see below */
        u_char  f_flags;                /* see below */
-       short   f_special;              /* requires special make rule */
+       char    *f_special;             /* special make rule if present */
        char    *f_needs;
        /*
         * Random values:
        char    *f_needs;
        /*
         * Random values:
@@ -45,14 +61,12 @@ struct file_list {
                } fuw;
                struct {                /* when system specification */
                        dev_t   fus_rootdev;
                } fuw;
                struct {                /* when system specification */
                        dev_t   fus_rootdev;
-                       dev_t   fus_argdev;
                        dev_t   fus_dumpdev;
                } fus;
        } fun;
 #define        f_swapdev       fun.fuw.fuw_swapdev
 #define        f_swapsize      fun.fuw.fuw_swapsize
 #define        f_rootdev       fun.fus.fus_rootdev
                        dev_t   fus_dumpdev;
                } fus;
        } fun;
 #define        f_swapdev       fun.fuw.fuw_swapdev
 #define        f_swapsize      fun.fuw.fuw_swapsize
 #define        f_rootdev       fun.fus.fus_rootdev
-#define        f_argdev        fun.fus.fus_argdev
 #define        f_dumpdev       fun.fus.fus_dumpdev
 };
 
 #define        f_dumpdev       fun.fus.fus_dumpdev
 };
 
@@ -90,6 +104,13 @@ struct device {
 #define        UNKNOWN -2      /* -2 means not set yet */
        int     d_dk;                   /* if init 1 set to number for iostat */
        int     d_flags;                /* flags for device init */
 #define        UNKNOWN -2      /* -2 means not set yet */
        int     d_dk;                   /* if init 1 set to number for iostat */
        int     d_flags;                /* flags for device init */
+       char    *d_port;                /* io port base manifest constant */
+       int     d_portn;        /* io port base (if number not manifest) */
+       char    *d_mask;                /* interrupt mask */
+       int     d_maddr;                /* io memory base */
+       int     d_msize;                /* io memory size */
+       int     d_drq;                  /* DMA request  */
+       int     d_irq;                  /* interrupt request  */
        struct  device *d_next;         /* Next one in list */
 };
 #define TO_NEXUS       (struct device *)-1
        struct  device *d_next;         /* Next one in list */
 };
 #define TO_NEXUS       (struct device *)-1
@@ -112,6 +133,7 @@ char        *machinename;
 #define        MACHINE_VAX     1
 #define        MACHINE_TAHOE   2
 #define MACHINE_HP300  3
 #define        MACHINE_VAX     1
 #define        MACHINE_TAHOE   2
 #define MACHINE_HP300  3
+#define        MACHINE_I386    4
 
 /*
  * For each machine, a set of CPU's may be specified as supported.
 
 /*
  * For each machine, a set of CPU's may be specified as supported.
@@ -138,23 +160,21 @@ char      *ns();
 char   *tc();
 char   *qu();
 char   *get_word();
 char   *tc();
 char   *qu();
 char   *get_word();
+char   *get_quoted_word();
 char   *path();
 char   *raise();
 
 int    do_trace;
 
 char   *path();
 char   *raise();
 
 int    do_trace;
 
-char   *index();
-char   *rindex();
-char   *malloc();
-char   *strcpy();
-char   *strcat();
-
 #if MACHINE_VAX
 int    seen_mba, seen_uba;
 #endif
 #if MACHINE_TAHOE
 int    seen_vba;
 #endif
 #if MACHINE_VAX
 int    seen_mba, seen_uba;
 #endif
 #if MACHINE_TAHOE
 int    seen_vba;
 #endif
+#if MACHINE_I386
+int    seen_isa;
+#endif
 
 struct device *connect();
 struct device *dtab;
 
 struct device *connect();
 struct device *dtab;
@@ -166,7 +186,7 @@ int yyline;
 
 struct file_list *ftab, *conf_list, **confp;
 
 
 struct file_list *ftab, *conf_list, **confp;
 
-int    timezone, hadtz;
+int    zone, hadtz;
 int    dst;
 int    profiling;
 int    debugging;
 int    dst;
 int    profiling;
 int    debugging;