summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_disk.h
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2002-09-04 23:07:29 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2002-09-04 23:07:29 +0000
commite4246e4a6e57452b37d4a86022289dca3401e3d8 (patch)
tree061f65704488fe7202c0b1e0973bd00d182ad052 /sys/scsi/scsi_disk.h
parenta98af4423d3839ab4773e0080a4ede3129ae01eb (diff)
Add support for RBC (simplified direct) devices.
ok costa@, krw@
Diffstat (limited to 'sys/scsi/scsi_disk.h')
-rw-r--r--sys/scsi/scsi_disk.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h
index 33d8cfbbc29..347ba8bf4f0 100644
--- a/sys/scsi/scsi_disk.h
+++ b/sys/scsi/scsi_disk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_disk.h,v 1.11 2001/06/22 14:35:43 deraadt Exp $ */
+/* $OpenBSD: scsi_disk.h,v 1.12 2002/09/04 23:07:28 tdeval Exp $ */
/* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */
/*
@@ -325,6 +325,20 @@ union scsi_disk_pages {
u_int8_t reserved3;
u_int8_t reserved4;
} flex_geometry;
+ struct page_reduced_geometry {
+ u_int8_t pg_code; /* page code (should be 6) */
+ u_int8_t pg_length; /* page length (should be 0x0B) */
+ u_int8_t wcd; /* bit 0 = write cache disable */
+ u_int8_t bytes_s[2]; /* bytes per sector */
+ u_int8_t sectors[5]; /* total number of sectors */
+ u_int8_t pow_perf; /* power/performance level */
+ u_int8_t flags; /* various */
+#define LOCK_DISABLED 0x1
+#define FORMAT_DISABLED 0x2
+#define WRITE_DISABLED 0x4
+#define READ_DISABLED 0x8
+ u_int8_t reserved;
+ } reduced_geometry;
};
#endif /* _SCSI_SCSI_DISK_H */