diff options
author | bde <bde@FreeBSD.org> | 1996-04-13 19:57:38 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-04-13 19:57:38 +0000 |
commit | 6c70f295f50a3cb373c99006d3713172afa2476d (patch) | |
tree | a94df24732e592e1bd1506501bebf77087a5868a /usr.sbin/config/config.y | |
parent | ece7fb1dfd55edc729ac540bb7137d178e809786 (diff) | |
download | FreeBSD-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.y | 4 |
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; |