summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-07-17 23:38:16 +0000
committergibbs <gibbs@FreeBSD.org>1995-07-17 23:38:16 +0000
commit5fa4b742aea5aa85a02d5669d70b27bd476ff05d (patch)
treee6aac2b0d579342bd4f87e50bae9270464edff6e /usr.sbin/config/config.y
parentb104528a4f81d68fcc596e81db6cf2c2888512a5 (diff)
downloadFreeBSD-src-5fa4b742aea5aa85a02d5669d70b27bd476ff05d.zip
FreeBSD-src-5fa4b742aea5aa85a02d5669d70b27bd476ff05d.tar.gz
Allow the specification of the controller bus when wiring down scsi buses.
This is performed by using a line similar to: controller scbus0 at ahc0 bus 1 to wire scbus0 to the second bus on an adaptec 2742T controller. Reviewed by: Peter Dufault(dufault@hda.com), Rod Grimes(rgrimes@FreeBSD.org)
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 221e388..cc21222 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -10,6 +10,7 @@
%token ARGS
%token AT
%token BIO
+%token BUS
%token COMMA
%token CONFIG
%token CONFLICTS
@@ -572,6 +573,14 @@ Info_list:
Info:
CSR NUMBER
= { cur.d_addr = $2; } |
+ BUS NUMBER
+ = {
+ if (cur.d_conn != 0 && cur.d_conn->d_type == CONTROLLER)
+ cur.d_slave = $2;
+ else
+ yyerror("can't specify a bus to something "
+ other than a controller");
+ } |
TARGET NUMBER
= { cur.d_target = $2; } |
UNIT NUMBER
OpenPOWER on IntegriCloud