summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authordufault <dufault@FreeBSD.org>1995-03-01 22:34:05 +0000
committerdufault <dufault@FreeBSD.org>1995-03-01 22:34:05 +0000
commite77e1f47174a626361d4397e18fe84509556dfbb (patch)
tree14e946a4bead112719c983dc9ce59802dd734a33 /usr.sbin/config/config.y
parent466baaef08335b4fb3b94989861766f7fbe3146f (diff)
downloadFreeBSD-src-e77e1f47174a626361d4397e18fe84509556dfbb.zip
FreeBSD-src-e77e1f47174a626361d4397e18fe84509556dfbb.tar.gz
Added configuration for SCSI devices wired in place. The documentation
is in "man 4 scsi".
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 97257eb..3e1dc9f 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -49,9 +49,11 @@
%token SIZE
%token SLAVE
%token SWAP
+%token TARGET
%token TIMEZONE
%token TTY
%token TRACE
+%token UNIT
%token VECTOR
%token <str> ID
@@ -561,6 +563,8 @@ Dev_name:
seen_vba = 1;
else if (eq($2, "isa"))
seen_isa = 1;
+ else if (eq($2, "scbus"))
+ seen_scbus = 1;
cur.d_unit = $3;
};
@@ -596,6 +600,10 @@ Info_list:
Info:
CSR NUMBER
= { cur.d_addr = $2; } |
+ TARGET NUMBER
+ = { cur.d_target = $2; } |
+ UNIT NUMBER
+ = { cur.d_lun = $2; } |
DRIVE NUMBER
= { cur.d_drive = $2; } |
SLAVE NUMBER
@@ -904,7 +912,7 @@ init_dev(dp)
dp->d_vec = 0;
dp->d_addr = dp->d_flags = dp->d_dk = 0;
dp->d_pri = -1;
- dp->d_slave = dp->d_drive = dp->d_unit = UNKNOWN;
+ dp->d_slave = dp->d_lun = dp->d_target = dp->d_drive = dp->d_unit = UNKNOWN;
dp->d_port = (char *)0;
dp->d_portn = 0;
dp->d_irq = -1;
OpenPOWER on IntegriCloud