PREFIX only used in main.c
[unix-history] / usr / src / usr.sbin / config / config.h
index f599206..d256838 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)config.h    5.2 (Berkeley) %G%
+ *     @(#)config.h    5.6 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -64,7 +64,7 @@ struct        idlst {
 };
 
 struct device {
 };
 
 struct device {
-       int     d_type;                 /* CONTROLLER, DEVICE, UBA or MBA */
+       int     d_type;                 /* CONTROLLER, DEVICE, bus adaptor */
        struct  device *d_conn;         /* what it is connected to */
        char    *d_name;                /* name of device (e.g. rk11) */
        struct  idlst *d_vec;           /* interrupt vectors */
        struct  device *d_conn;         /* what it is connected to */
        char    *d_name;                /* name of device (e.g. rk11) */
        struct  idlst *d_vec;           /* interrupt vectors */
@@ -80,6 +80,7 @@ struct device {
        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
+#define TO_VBA         (struct device *)-2
 
 struct config {
        char    *c_dev;
 
 struct config {
        char    *c_dev;
@@ -96,7 +97,7 @@ struct config {
 int    machine;
 char   *machinename;
 #define        MACHINE_VAX     1
 int    machine;
 char   *machinename;
 #define        MACHINE_VAX     1
-#define        MACHINE_SUN     2
+#define        MACHINE_TAHOE   2
 
 /*
  * 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.
@@ -110,12 +111,13 @@ struct cputype {
 /*
  * A set of options may also be specified which are like CPU types,
  * but which may also specify values for the options.
 /*
  * A set of options may also be specified which are like CPU types,
  * but which may also specify values for the options.
+ * A separate set of options may be defined for make-style options.
  */
 struct opt {
        char    *op_name;
        char    *op_value;
        struct  opt *op_next;
  */
 struct opt {
        char    *op_name;
        char    *op_value;
        struct  opt *op_next;
-} *opt;
+} *opt, *mkopt;
 
 char   *ident;
 char   *ns();
 
 char   *ident;
 char   *ns();
@@ -132,11 +134,13 @@ char      *rindex();
 char   *malloc();
 char   *strcpy();
 char   *strcat();
 char   *malloc();
 char   *strcpy();
 char   *strcat();
-char   *sprintf();
 
 #if MACHINE_VAX
 int    seen_mba, seen_uba;
 #endif
 
 #if MACHINE_VAX
 int    seen_mba, seen_uba;
 #endif
+#if MACHINE_TAHOE
+int    seen_vba;
+#endif
 
 struct device *connect();
 struct device *dtab;
 
 struct device *connect();
 struct device *dtab;
@@ -147,7 +151,6 @@ char        errbuf[80];
 int    yyline;
 
 struct file_list *ftab, *conf_list, **confp;
 int    yyline;
 
 struct file_list *ftab, *conf_list, **confp;
-char   *PREFIX;
 
 int    timezone, hadtz;
 int    dst;
 
 int    timezone, hadtz;
 int    dst;