Age | Commit message (Collapse) | Author |
|
both 'Fast Forward Space File = yes' and 'Hardware End of Medium = yes'.
Mostly taken from FreeBSD.
Constant prodding by robert@, testing actual backup and restore by
ajacoutot@.
|
|
|
|
way st(4) does. Have both decline to open read-only devices for
anything but read-only access.
Suggestion to fail opens rather than individual i/o's from deraadt@.
Problem USB device found and donated by chefren, who also tested
diffs. Thanks!
ok dlg@ marco@
|
|
ok krw@ marco@ matthew@
|
|
|
|
to 18 bytes by removing the extra_bytes field. sbic.c was the only
consumer, and that was in a DEBUG message.
18 bytes is the minimum length mandated by the SCSI spec. Anything
more is vendor/device specific information.
This fixes a usb key that yuo@ had, and probably others.
Any device that decides to pay attention to extra sense data must
allocate its own space.
ok marco@ matthew@ miod@ yuo@
|
|
SCSI when you're talking to a scsi to ata translation layer (satl). this
implements the ata command ioctl handler in scsi_ioctl.c that wraps the
ata command requests up in these scsi commands and then issues them against
the hardware. this cuts atascsi over to interpreting these scsi commands
rather than the ioctls directly.
this should allow mpi users (with a relatively recent firmware) to use
atactl against their SATA disks. i cant test cos my mpi(4) parts are too
old to either support these scsi commands or too old to take recent
firmwares.
ok marco@ @krw tested by krw@ and me on ahci/atascsi
|
|
|
|
trying to dma-map odd length data areas. No other alignment should be
required according to miod@. Makes my new SATA tape drive work.
ok deraadt@
|
|
|
|
serial number and split the vpd header out for use in other places. while
here define the device identification page bits too.
ok krw@ marco@
|
|
so we will be able to address devices larger than the 10-byte cdb's allow
us to do.
ok krw@, dlg@
|
|
|
|
query.
ok krw@
|
|
ok miod@, deraadt@
|
|
ok marco@, deraadt@
|
|
asc/ascq handling to deal with the pair together rather than seperately, since
modern scsi has long since polluted the "categories" of asc enough that you
pretty much need to always look as ascq.
ok krw@ deraadt@, dlg@
|
|
|
|
obtained probe the LUNs given without checking for duplicate INQUIRY
data.
For non-USB, non-ATAPI, devices claiming to be SCSI-3 compliant. And
the target must have something attached at LUN 0.
If REPORT LUNS can't be used or isn't supported, the old scan process
is used.
Fixes Fibre Channel and SCSI enclosure devices that provide identical
INQUIRY data for all LUNs and were thus being misprobed as having
only LUN 0.
Tested by Bob Kitella, dlg@, beck@. Suggestions from deraadt@.
ok dlg@ beck@
|
|
|
|
headers; } to just union scsi_mode_sense_buf {}. No functional change.
ok marco@
|
|
struct scsi_mode_sense_buf to 256, a value which doesn't fit in the 1
byte length field of a scsi command.
Found by aoyama@ on luna88k.
Suggested by miod@. ok deraadt@.
|
|
ok marco@ krw@
|
|
|
|
for and ok marco@
|
|
|
|
ok marco@
|
|
scsi_mode_direct_blk_desc -> scsi_direct_blk_desc
scsi_mode_blk_desc_big -> scsi_blk_desc_big
|
|
so eliminate code dealing with 16 byte block descriptors. No one else
seems to use them anyway. Add define for appropriate permission bit in
case we ever need it.
Simplify and clean up scsi_do_mode_sense() code as a result.
Strengthen check to ensure block descriptor data is a valid by
checking if it is a multiple of 8 bytes rather than just > 8 bytes.
Moves code to closer to what it was before scsi_do_mode_sense().
|
|
Add 'big' parameter to report which mode sense header type is being
returned. Eliminate icky pointer arithmetic, since it won't work if
only block descriptors are returned by the device.
No functional change.
|
|
Lexar Jumpdrive and probably others. Use better structure declaration
idiom, as suggested by drahn@.
|
|
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@
|
|
Requested and ok mickey@
|
|
|
|
ok krw@
|
|
|
|
command information unit 'Task Management Flags' defines. From FreeBSD
with a few tweaks. For ahd.
ok tdeval@ marco@.
|
|
in the tree is #ifdef'd out and is fundamentally wrong anyway - it
tries to force *all* devices to SCSI-2. Also recent SCSI specs seem to
have marked the command as obsolete. Bonus - eliminates another
undocumented option (SCSI_2_DEF).
Found in a list of unused kernel functions posted to tech-kern@netbsd
by Krister Walfridsson in 2002.
ok marco@ tdeval@
|
|
UMASS_QUIRK_FORCE_SHORT_INQUIRY. Fixes a bunch of USB devices. Based
on work by Mycroft in NetBSD.
ok tdeval@ deraadt@.
|
|
numbers; fix passing a NULL to %s under some circumstances; fix the
bit index mask; etc.
No change in output.
ok deraadt@.
|
|
1) Correctly define MODE_SENSE_BIG as 0x5a, not 0x54.
2) Delete duplicate #define's of some opcodes in scsi_disk.h.
3) Delete multiple #define's for same opcode in scsi_disk.h.
4) Replace uses of deleted opcodes in umass.c with remaining ones.
ok millert@ tdeval@
|
|
ok costa@, krw@
|
|
reflect SCSI-3 editorial change from QUEUE FULL to TASK SET FULL.
Use same names as NetBSD where possible.
Some from NetBSD, some from Ashley M, some from SCSI-3 docs.
Now to edit drivers to use new constants instead of their own.
|
|
|
|
scsi_inquiry_data structure.
The last commit made the structure 57 bytes long, an odd number. This
caused problems with at least two drivers, which were not prepared to
handle the IGNORE WIDE RESIDUE message during probing. This message
apparently being generated during probes of non-existant LUNs.
Problem found on siop by Rev. Chris Cappuccio and on iha by Andreas
Gunnarsson <andreas@zzlevo.net>.
|
|
bringing it in line with the spc-2 definition of standard
inquiry data.
scsi_inquiry_data grows from 50 to 57 bytes in size.
The new 'flags2' field gives access to PPR related
information, the IUS, QAS and DT bits, used
in negotiating Ultra3 transfers.
Also add PPR related extended message defines.
ok deraadt@
|
|
|
|
os that SAF-TE devices can be found.
|
|
More SCSI logic from NetBSD-current
Some tape fixes. ATAPI tapes do not work yet for most operations.
|
|
to:
* New changer driver.
* Better optical support.
* Different `done' semantics.
* New quirks for SCSI QIC tape driver, SCSI floppy drives.
* Better support for SCSI-I devices.
Everybody needs to test this.
|