diff options
author | gibbs <gibbs@FreeBSD.org> | 1995-07-17 23:38:16 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1995-07-17 23:38:16 +0000 |
commit | 5fa4b742aea5aa85a02d5669d70b27bd476ff05d (patch) | |
tree | e6aac2b0d579342bd4f87e50bae9270464edff6e /usr.sbin/config/mkioconf.c | |
parent | b104528a4f81d68fcc596e81db6cf2c2888512a5 (diff) | |
download | FreeBSD-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/mkioconf.c')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index d2b1535..d180203 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -818,10 +818,10 @@ scbus_devtab(fp, dev_idp) fprintf(fp, "#include \"scsi/scsiconf.h\"\n"); fprintf(fp, "\nstruct scsi_ctlr_config scsi_cinit[] = {\n"); - fprintf(fp, "/* unit driver driver unit */\n"); + fprintf(fp, "/* scbus, driver, driver unit, ctlr bus*/\n"); /* XXX: Why do we always get an entry such as: - * { '?', "ncr", '?' }, + * { '?', "ncr", '?', '?' }, */ for (dp = dtab; dp; dp = dp->d_next) { @@ -832,9 +832,10 @@ scbus_devtab(fp, dev_idp) } fprintf(fp, "{ %s, ", id(dp->d_unit)); fprintf(fp, "\"%s\", ", mp->d_name); - fprintf(fp, "%s },\n", id(mp->d_unit)); + fprintf(fp, "%s, ", id(mp->d_unit)); + fprintf(fp, "%s },\n", id(dp->d_slave)); } - fprintf(fp, "{ 0, 0, 0 }\n};\n"); + fprintf(fp, "{ 0, 0, 0, 0 }\n};\n"); fprintf(fp, "\nstruct scsi_device_config scsi_dinit[] = {\n"); fprintf(fp, "/* name unit cunit target LUN flags */\n"); |