summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-04-13 19:57:38 +0000
committerbde <bde@FreeBSD.org>1996-04-13 19:57:38 +0000
commit6c70f295f50a3cb373c99006d3713172afa2476d (patch)
treea94df24732e592e1bd1506501bebf77087a5868a /usr.sbin/config/config.y
parentece7fb1dfd55edc729ac540bb7137d178e809786 (diff)
downloadFreeBSD-src-6c70f295f50a3cb373c99006d3713172afa2476d.zip
FreeBSD-src-6c70f295f50a3cb373c99006d3713172afa2476d.tar.gz
Implemented a new keyword `disable'. This should be useful for controlling
dangerous drivers in GENERIC. Removed non-comments on #endifs in config.y. Improved output formatting in mkioconf.c.
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 78d8bf4..7658111 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -19,6 +19,7 @@
%token CPU
%token CSR
%token DEVICE
+%token DISABLE
%token DISK
%token DRIVE
%token DRQ
@@ -633,6 +634,8 @@ Info:
= { cur.d_mask = "net"; } |
FLAGS NUMBER
= { cur.d_flags = $2; } |
+ DISABLE
+ = { cur.d_disabled = 1; } |
CONFLICTS
= { cur.d_conflicts = 1; };
@@ -917,6 +920,7 @@ init_dev(dp)
dp->d_type = DEVICE;
dp->d_conn = 0;
dp->d_conflicts = 0;
+ dp->d_disabled = 0;
dp->d_vec = 0;
dp->d_addr = dp->d_flags = dp->d_dk = 0;
dp->d_pri = -1;
OpenPOWER on IntegriCloud