summaryrefslogtreecommitdiff
path: root/sys/scsi/sdvar.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-11-12 06:20:28 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-11-12 06:20:28 +0000
commit2bdddc849c46b84f11335ec6678d463c1006b8e7 (patch)
treef26c0e47e02a7e1c8e467a1c742d16a4b476e966 /sys/scsi/sdvar.h
parent31ba389aafb55266aeecd6e3351eea252dbeddae (diff)
revert midlayer back to it was before i put my big rewrite in. this is
causing a weird problems on an alpha and also appears responsible for isp(4) weirdness i havent had a chance to examine yet. sigh, this makes me sad.
Diffstat (limited to 'sys/scsi/sdvar.h')
-rw-r--r--sys/scsi/sdvar.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/scsi/sdvar.h b/sys/scsi/sdvar.h
index d848c5554f0..7147b6f6f0e 100644
--- a/sys/scsi/sdvar.h
+++ b/sys/scsi/sdvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdvar.h,v 1.22 2009/11/10 10:18:59 dlg Exp $ */
+/* $OpenBSD: sdvar.h,v 1.23 2009/11/12 06:20:27 dlg Exp $ */
/* $NetBSD: sdvar.h,v 1.7 1998/08/17 00:49:03 mycroft Exp $ */
/*-
@@ -49,10 +49,10 @@
#ifdef _KERNEL
struct sd_softc {
- struct device sc_dev;
- struct disk sc_dk;
+ struct device sc_dev;
+ struct disk sc_dk;
- int flags;
+ int flags;
#define SDF_LOCKED 0x01
#define SDF_WANTED 0x02
#define SDF_WLABEL 0x04 /* label is writable */
@@ -60,8 +60,7 @@ struct sd_softc {
#define SDF_ANCIENT 0x10 /* disk is ancient; for minphys */
#define SDF_DIRTY 0x20 /* disk is dirty; needs cache flush */
#define SDF_DYING 0x40 /* dying, when deactivated */
-#define SDF_WAITING 0x80 /* bus is busy, try again later */
- struct scsi_link *sc_link; /* contains our targ, lun, etc. */
+ struct scsi_link *sc_link; /* contains our targ, lun, etc. */
struct disk_parms {
u_long heads; /* number of heads */
u_long cyls; /* number of cylinders */
@@ -70,11 +69,9 @@ struct sd_softc {
u_long rot_rate; /* rotational rate, in RPM */
daddr64_t disksize; /* total number sectors */
} params;
- struct mutex sc_buf_mtx;
- struct buf sc_buf_queue;
+ struct buf buf_queue;
void *sc_sdhook; /* our shutdown hook */
struct timeout sc_timeout;
-
};
#define SDGP_RESULT_OK 0 /* parameters obtained */