config.h (61523) | config.h (61640) |
---|---|
1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)config.h 8.1 (Berkeley) 6/6/93 | 1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)config.h 8.1 (Berkeley) 6/6/93 |
34 * $FreeBSD: head/usr.sbin/config/config.h 61523 2000-06-10 22:13:40Z peter $ | 34 * $FreeBSD: head/usr.sbin/config/config.h 61640 2000-06-13 22:28:50Z peter $ |
35 */ 36 37/* 38 * Config. 39 */ 40#include <sys/types.h> 41#include <stdlib.h> 42#include <string.h> --- 28 unchanged lines hidden (view full) --- 71#define NO_IMPLCT_RULE 2 72#define NO_OBJ 4 73#define BEFORE_DEPEND 8 74#define NEED_COUNT 16 75#define ISDUP 32 76 77struct device { 78 int d_type; /* DEVICE, bus adaptor */ | 35 */ 36 37/* 38 * Config. 39 */ 40#include <sys/types.h> 41#include <stdlib.h> 42#include <string.h> --- 28 unchanged lines hidden (view full) --- 71#define NO_IMPLCT_RULE 2 72#define NO_OBJ 4 73#define BEFORE_DEPEND 8 74#define NEED_COUNT 16 75#define ISDUP 32 76 77struct device { 78 int d_type; /* DEVICE, bus adaptor */ |
79 char *d_conn; /* what it is connected to */ 80 int d_connunit; /* unit of connection */ | |
81 char *d_name; /* name of device (e.g. rk11) */ | 79 char *d_name; /* name of device (e.g. rk11) */ |
82 int d_unit; /* unit number */ 83 int d_drive; /* drive number */ 84 int d_target; /* target number */ 85 int d_lun; /* unit number */ 86 int d_bus; /* controller bus number */ 87 int d_count; /* pseudo-device count */ | 80 int d_count; /* device count */ |
88#define QUES -1 /* -1 means '?' */ 89#define UNKNOWN -2 /* -2 means not set yet */ | 81#define QUES -1 /* -1 means '?' */ 82#define UNKNOWN -2 /* -2 means not set yet */ |
90 int d_flags; /* flags for device init */ 91 int d_disabled; /* nonzero to skip probe/attach */ 92 char *d_port; /* io port base manifest constant */ 93 int d_portn; /* io port base (if number not manifest) */ 94 int d_maddr; /* io memory base */ 95 int d_msize; /* io memory size */ 96 int d_drq; /* DMA request */ 97 int d_irq; /* interrupt request */ | |
98 struct device *d_next; /* Next one in list */ 99}; 100 101struct config { 102 char *s_sysname; 103}; 104 105/* --- 33 unchanged lines hidden (view full) --- 139 140struct opt_list { 141 char *o_name; 142 char *o_file; 143 struct opt_list *o_next; 144} *otab; 145 146extern char *ident; | 83 struct device *d_next; /* Next one in list */ 84}; 85 86struct config { 87 char *s_sysname; 88}; 89 90/* --- 33 unchanged lines hidden (view full) --- 124 125struct opt_list { 126 char *o_name; 127 char *o_file; 128 struct opt_list *o_next; 129} *otab; 130 131extern char *ident; |
132extern char *hints; |
|
147extern int do_trace; 148 | 133extern int do_trace; 134 |
149char *get_word __P((FILE *)); 150char *get_quoted_word __P((FILE *)); 151char *path __P((char *)); 152char *raisestr __P((char *)); 153void moveifchanged __P((const char *, const char *)); 154void init_dev __P((struct device *)); 155void newbus_ioconf __P((void)); 156int yyparse __P((void)); 157int yylex __P((void)); 158void options __P((void)); 159void makefile __P((void)); 160void headers __P((void)); | 135char *get_word(FILE *); 136char *get_quoted_word(FILE *); 137char *path(char *); 138char *raisestr(char *); 139void moveifchanged(const char *, const char *); 140void newbus_ioconf(void); 141int yyparse(void); 142int yylex(void); 143void options(void); 144void makefile(void); 145void headers(void); |
161 162extern struct device *dtab; 163 164extern char errbuf[80]; 165extern int yyline; 166 167extern struct file_list *ftab; 168 169extern int profiling; 170extern int debugging; 171 172extern int maxusers; 173 174extern char *PREFIX; /* Config file name - for error messages */ 175extern char srcdir[]; /* root of the kernel source tree */ 176 177#define eq(a,b) (!strcmp(a,b)) 178#define ns(s) strdup(s) | 146 147extern struct device *dtab; 148 149extern char errbuf[80]; 150extern int yyline; 151 152extern struct file_list *ftab; 153 154extern int profiling; 155extern int debugging; 156 157extern int maxusers; 158 159extern char *PREFIX; /* Config file name - for error messages */ 160extern char srcdir[]; /* root of the kernel source tree */ 161 162#define eq(a,b) (!strcmp(a,b)) 163#define ns(s) strdup(s) |