diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-25 20:52:42 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-25 20:52:42 +0000 |
commit | 8864d54939803f5c472b21b73056f2f8de3d31c2 (patch) | |
tree | f48986aba38da3c117de4a5896d88caaf539aad5 /sys/scsi/scsi_disk.h | |
parent | 5c433857e84069e8f66922a2975b92e208971563 (diff) |
Introduce safer, more general mode sense capability. Transparently use
both 10 byte and 6 byte MODE SENSE commands and just return error
checked values.
Convert sd_scsi.c to use new mechanism for non-optical drives. USB
umass devices will now display actual mode sense info if it is
available via a 10 byte MODE SENSE. Which may mean 0 heads, etc. is
shown until cosmetics are finalized.
ok marco@ 'that is pretty cool' deraadt@
Diffstat (limited to 'sys/scsi/scsi_disk.h')
-rw-r--r-- | sys/scsi/scsi_disk.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h index cb93bcd8c30..71c32cfdc8a 100644 --- a/sys/scsi/scsi_disk.h +++ b/sys/scsi/scsi_disk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_disk.h,v 1.14 2003/06/24 22:42:07 mickey Exp $ */ +/* $OpenBSD: scsi_disk.h,v 1.15 2005/05/25 20:52:41 krw Exp $ */ /* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */ /* @@ -236,12 +236,6 @@ struct scsi_reassign_blocks_data { } defect_descriptor[1]; }; -struct scsi_disk_blk_desc { - u_int8_t nblocks[4]; - u_int8_t density; - u_int8_t blklen[3]; -}; - union scsi_disk_pages { #define DISK_PGCODE 0x3F /* only 6 bits valid */ struct page_disk_format { |