diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
commit | 2f86936a077e531bc6fed8688d33030ae28ea45a (patch) | |
tree | c2370b235711beb410091996b92230bc38cd2a7e /sys/scsi/st.c | |
parent | e8fbe458e4e300f2d5edc97a04eeee01c368267a (diff) | |
download | src-2f86936a077e531bc6fed8688d33030ae28ea45a.tar.gz src-2f86936a077e531bc6fed8688d33030ae28ea45a.zip |
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).
Notes
Notes:
svn path=/head/; revision=3816
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r-- | sys/scsi/st.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c index c23425501b84..8cfbf8da0161 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: st.c,v 1.19 1994/09/28 20:16:45 se Exp $ + * $Id: st.c,v 1.20 1994/10/19 00:09:47 wollman Exp $ */ /* @@ -33,7 +33,7 @@ #include <sys/param.h> #include <sys/systm.h> -#include <fcntl.h> +#include <sys/fcntl.h> #include <sys/errno.h> #include <sys/ioctl.h> #include <sys/malloc.h> @@ -273,8 +273,12 @@ st_externalize(struct proc *p, struct kern_devconf *kdc, void *userp, static struct kern_devconf kdc_st_template = { 0, 0, 0, /* filled in by dev_attach */ - "st", 0, { "scsi", MDDT_SCSI, 0 }, - st_externalize, 0, st_goaway, SCSI_EXTERNALLEN + "st", 0, MDDC_SCSI, + st_externalize, 0, st_goaway, SCSI_EXTERNALLEN, + &kdc_scbus0, /* XXX parent */ + 0, /* parentdata */ + DC_UNKNOWN, /* not supported */ + "SCSI tape drive" }; static inline void |