summaryrefslogtreecommitdiffstats
path: root/sys/scsi/st.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-23 21:28:03 +0000
committerwollman <wollman@FreeBSD.org>1994-10-23 21:28:03 +0000
commit7b8e09399aded7c12a148b104ccf05419e73ba88 (patch)
treec2370b235711beb410091996b92230bc38cd2a7e /sys/scsi/st.c
parent5727d2fc7e7202ade434ecfa3f1e91a6f714d47e (diff)
downloadFreeBSD-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/st.c')
-rw-r--r--sys/scsi/st.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index c234255..8cfbf8d 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
OpenPOWER on IntegriCloud