summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-26 09:29:08 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-26 09:29:08 +0000
commit5b939a9b4143c6b99cb8a032f88e992b8440ae73 (patch)
tree57bdf9cdd84dd2518c22845d1b035cca6e006e6c /sys/scsi/scsiconf.h
parent676b2357c8679c7d7461d8e862dd507e664a345a (diff)
provide scsi_detach_bus, _target, and _lun to wrap up config_detach for
scsi devices. the midlayer keeps some state for each device that is attached which needs to be cleaned up on detach, hence this wrapper.
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r--sys/scsi/scsiconf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h
index ffdf1d49a9a..143226f6204 100644
--- a/sys/scsi/scsiconf.h
+++ b/sys/scsi/scsiconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.h,v 1.76 2006/10/21 07:36:15 dlg Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.77 2006/11/26 09:29:07 dlg Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
@@ -350,6 +350,10 @@ int scsi_probe_bus(struct scsibus_softc *);
int scsi_probe_target(struct scsibus_softc *, int);
int scsi_probe_lun(struct scsibus_softc *, int, int);
+int scsi_detach_bus(struct scsibus_softc *, int);
+int scsi_detach_target(struct scsibus_softc *, int, int);
+int scsi_detach_lun(struct scsibus_softc *, int, int, int);
+
static __inline void _lto2b(u_int32_t val, u_int8_t *bytes);
static __inline void _lto3b(u_int32_t val, u_int8_t *bytes);
static __inline void _lto4b(u_int32_t val, u_int8_t *bytes);