diff options
author | wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
commit | 7b8e09399aded7c12a148b104ccf05419e73ba88 (patch) | |
tree | c2370b235711beb410091996b92230bc38cd2a7e /sys/scsi/ch.c | |
parent | 5727d2fc7e7202ade434ecfa3f1e91a6f714d47e (diff) | |
download | FreeBSD-src-7b8e09399aded7c12a148b104ccf05419e73ba88.zip FreeBSD-src-7b8e09399aded7c12a148b104ccf05419e73ba88.tar.gz |
Finished device configuration database work for all ISA devices (except `ze')
and all SCSI devices (except that it's not done quite the way I want). New
information added includes:
- A text description of the device
- A ``state''---unknown, unconfigured, idle, or busy
- A generic parent device (with support in the m.i. code)
- An interrupt mask type field (which will hopefully go away) so that
. ``doconfig'' can be written
This requires a new version of the `lsdev' program as well (next commit).
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index ea7a168..662038e 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -2,7 +2,7 @@ * Written by grefen@????? * Based on scsi drivers by Julian Elischer (julian@tfs.com) * - * $Id: ch.c,v 1.9 1994/10/19 00:09:44 wollman Exp $ + * $Id: ch.c,v 1.10 1994/10/21 01:19:20 wollman Exp $ */ #include <sys/types.h> @@ -94,8 +94,12 @@ ch_externalize(struct proc *p, struct kern_devconf *kdc, void *userp, static struct kern_devconf kdc_ch_template = { 0, 0, 0, /* filled in by dev_attach */ - "ch", 0, { "scsi", MDDT_SCSI, 0 }, - ch_externalize, 0, ch_goaway, SCSI_EXTERNALLEN + "ch", 0, MDDC_SCSI, + ch_externalize, 0, ch_goaway, SCSI_EXTERNALLEN, + &kdc_scbus0, /* parent */ + 0, /* parentdata */ + DC_UNKNOWN, /* not supported */ + "SCSI media changer" }; static inline void |