OpenBSD CVS

CVS log for src/sys/scsi/scsi_all.h


[BACK] Up to [local] / src / sys / scsi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 11 23:10:11 2022 UTC (2 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

spelling

Revision 1.64 / (download) - annotate - [select for diffs], Tue Sep 8 12:36:42 2020 UTC (3 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored)

If SCSI_IGNORE_ILLEGAL_REQUEST is set no error is returned from scsi_xs_sync()
when the request is unsupported.

So check mode sense(6) and mode sense(10) results for valid headers before
passing the results back.

Avoid overwriting any error that was returned.

ok jmatthew@

Revision 1.63 / (download) - annotate - [select for diffs], Sat Sep 5 14:21:52 2020 UTC (3 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Rename SID_INQUIRY_HDR (a.k.a. 5) to more explicit SID_SCSI2_HDRLEN and use it
to replace various uses of '5' when calculating the amount of data in the
INQUIRY response. Matches up more naturally with SID_SCSI2_ALEN.

Also use to fix SCSIDEBUG display of INQUIRY responses to show correct count of
bytes received/available.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Sep 2 23:41:01 2020 UTC (3 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored)

Add #define SID_SCSI2_RESPONSE 0x2 to allow elimination of another bunch of
magic numbers. As the nearby comment says '< 2 is obsolete. >2 is reserved'. So
0x2 is just right.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Nov 25 17:02:56 2019 UTC (4 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.60: +30 -1 lines
Diff to previous 1.60 (colored)

Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 to
scsi_all.h.

Add scsi_read_cap_10() and scsi_read_cap_16() functions to
scsi_base.c, i.e. move logic to do actual READ_CAPACITY commands out
of sd_read_cap() and sd_read_cap_16().

This will allow the READ_CAPACITY code to be reused by cd(4).

Return -1 for errors where the error code is just discarded, reducing
ENOMEM, ENXIO, EIO uses.

No intentional functional change.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 27 23:07:42 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Use consistent idiom/naming convention for the the #include
guards. Spelunkers using grep are easily confused.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 21 00:12:15 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.58: +10 -1 lines
Diff to previous 1.58 (colored)

Expand scsi_inquiry_data to 96 bytes to include new fields. If the
device claims to have more than the 36 bytes of SCSI2 data, issue a
2nd INQUIRY (under SCSIDEBUG!) to get up to 96 bytes of data.

Add some length sanity checks to debug output. Print VPD data under
SCSIDEBUG.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Sep 18 11:45:49 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.57: +41 -25 lines
Diff to previous 1.57 (colored)

Update struct inquiry_data with latest flags and remove flags that we didn't use and
are now (SPC-4+) marked as "reserved" instead of just "obsolete". Whitespace tweaks
to line stuff up.

Mostly following FreeBSD.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Sep 16 16:34:14 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.56: +24 -16 lines
Diff to previous 1.56 (colored)

Update list of device types with combination of FreeBSD and
SPC-5. Add/Fix comments.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Aug 27 14:41:45 2019 UTC (4 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.55: +7 -1 lines
Diff to previous 1.55 (colored)

Refactor probing logic to mirror detach logic. i.e. put smarts in
scsi_probe() and make scsi_probe_bus(), scsi_probe_target() and
scsi_probe_lun() simple wrappers around scsi_probe().

Abstract the determination of which luns to probe into a separate
function. Thus eliminating the need to remove/add lun 0 link while
probing devices modern enough to support REPORTLUNS. Which means the
lun 0 link is no longer in different positions in the scsi_link list
for such devices compared to older devices which are blindly probed
until an invalid LUN is encountered.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jun 7 19:13:27 2015 UTC (9 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.54: +11 -11 lines
Diff to previous 1.54 (colored)

More damned eye searing whitespace.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jun 6 14:00:44 2013 UTC (11 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.53: +6 -1 lines
Diff to previous 1.53 (colored)

Fix EOM handling. Makes Bacula much happier by allowing the use of
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@.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 8 08:13:19 2011 UTC (12 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.52: +16 -1 lines
Diff to previous 1.52 (colored)

describe the ata vpd page

Revision 1.52 / (download) - annotate - [select for diffs], Fri Dec 24 02:45:33 2010 UTC (13 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.51: +4 -1 lines
Diff to previous 1.51 (colored)

Have sd(4) devices check for and respect read-only information the
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@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 2 11:54:44 2010 UTC (13 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.50: +2 -3 lines
Diff to previous 1.50 (colored)

the page_length field in the vpd page header is 2 bytes, not 1.

ok krw@ marco@ matthew@

Revision 1.50 / (download) - annotate - [select for diffs], Wed Sep 1 04:44:26 2010 UTC (13 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)

ata information vpd page id

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 29 21:12:01 2010 UTC (13 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

Shrink struct scsi_sense_data and thus the sense member of scsi_xfer,
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@

Revision 1.48 / (download) - annotate - [select for diffs], Fri Apr 23 01:39:05 2010 UTC (14 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.47: +62 -1 lines
Diff to previous 1.47 (colored)

the SAT spec from t10.org defines messages for tunnelling ATA commands over
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

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 12 00:30:15 2009 UTC (14 years, 8 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.46: +1 -1 lines
Diff to previous 1.46 (colored)

mask bits correctly in devid vpd for the PI

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 2 15:43:59 2008 UTC (16 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.45: +5 -3 lines
Diff to previous 1.45 (colored)

Shrink scsi_mode_sense_buf to 254 bytes so ahci doesn't get upset at
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@

Revision 1.45 / (download) - annotate - [select for diffs], Thu Apr 10 13:18:07 2008 UTC (16 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

fix the macros that are used to read the devid vpd page.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 28 16:19:15 2007 UTC (16 years, 5 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.43: +46 -2 lines
Diff to previous 1.43 (colored)

massage the way vpds are defined. rename the page used for the devices
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@

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 12 16:33:27 2007 UTC (17 years, 2 months ago) by weingart
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

The beginnings of support for 16-byte cdb's in the scsi code.  This is
so we will be able to address devices larger than the 10-byte cdb's allow
us to do.

ok krw@, dlg@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Apr 3 04:55:34 2007 UTC (17 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

define the vpd inquiry page code.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Apr 3 04:15:50 2007 UTC (17 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

modernise scsi_inquiry. the length field has grown and now theres pages to
query.

ok krw@

Revision 1.40 / (download) - annotate - [select for diffs], Mon Nov 27 23:14:22 2006 UTC (17 years, 6 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored)

more magic removal
ok miod@, deraadt@

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 27 20:15:09 2006 UTC (17 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

get rid of the rest of the asc/ascq magic codes in scsi
ok marco@, deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 27 18:24:43 2006 UTC (17 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.37: +35 -1 lines
Diff to previous 1.37 (colored)

rework asc/ascq handling to get rid of "magic" 0x values in the code, changes
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@

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jul 29 02:52:49 2006 UTC (17 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.36: +1 -3 lines
Diff to previous 1.36 (colored)

Zap a couple of unused defines - SID_ANSI_SCSI2 and SID_ANSI_SCSI3.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jul 23 14:34:55 2006 UTC (17 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.35: +28 -1 lines
Diff to previous 1.35 (colored)

Use REPORT LUNS to get the list of LUNs to probe. If such a list is
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@

Revision 1.35 / (download) - annotate - [select for diffs], Thu May 11 00:45:59 2006 UTC (18 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Zap trailing whitespace.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Sep 11 17:34:27 2005 UTC (18 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.33: +6 -8 lines
Diff to previous 1.33 (colored)

Simplify code by changing struct scsi_mode_sense_buf{ union {}
headers; } to just union scsi_mode_sense_buf {}. No functional change.

ok marco@

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 29 00:33:55 2005 UTC (18 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Make sure certain architectures/compilers don't round up the size of
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@.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 17 02:40:53 2005 UTC (18 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

add a macro for the WRITE_BUFFER opcode

ok marco@ krw@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 9 14:27:56 2005 UTC (18 years, 10 months ago) by marco
Branch: MAIN
Changes since 1.30: +10 -1 lines
Diff to previous 1.30 (colored)

Add Vital Product Data structure.  Requested deraadt@ ok dlg@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Aug 5 00:25:15 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

a define for the scsi READ BUFFER opcode

for and ok marco@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 4 00:49:23 2005 UTC (18 years, 10 months ago) by marco
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add SCSI 3 define.  ok dlg@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jul 25 05:31:32 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

SID_ANSII_SCSI2 is a valid value of SID_ANSII

ok marco@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 18 01:09:03 2005 UTC (18 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Shorten a couple of structure names:

scsi_mode_direct_blk_desc -> scsi_direct_blk_desc
scsi_mode_blk_desc_big -> scsi_blk_desc_big

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 12 21:40:05 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored)

It turns out you need to ask for 16 byte block descriptors. We don't,
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().

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 3 15:50:10 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.24: +1 -9 lines
Diff to previous 1.24 (colored)

Tweak scsi_do_mode_sense(). NetBSD was right and I was wrong. Sigh.
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.

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 27 00:14:50 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.23: +10 -2 lines
Diff to previous 1.23 (colored)

Reduce size of scsi_mode_sense_buf to 255 characters from 256. Fixes
Lexar Jumpdrive and probably others. Use better structure declaration
idiom, as suggested by drahn@.

Revision 1.23 / (download) - annotate - [select for diffs], Wed May 25 20:52:41 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.22: +25 -2 lines
Diff to previous 1.22 (colored)

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@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Apr 6 20:50:31 2005 UTC (19 years, 2 months ago) by marco
Branch: MAIN
Changes since 1.21: +1 -71 lines
Diff to previous 1.21 (colored)

Remove ses crud.
Requested and ok mickey@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 6 16:15:53 2005 UTC (19 years, 2 months ago) by marco
Branch: MAIN
Changes since 1.20: +42 -4 lines
Diff to previous 1.20 (colored)

Add status/receive ses structures and #defines.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 6 02:12:54 2005 UTC (19 years, 2 months ago) by marco
Branch: MAIN
Changes since 1.19: +33 -1 lines
Diff to previous 1.19 (colored)

Add control/send structures.

ok krw@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 6 00:00:09 2005 UTC (19 years, 2 months ago) by marco
Branch: MAIN
Changes since 1.18: +5 -3 lines
Diff to previous 1.18 (colored)

Add RECEIVE_DIAGNOSTIC & SEND_DIAGNOSTIC #defines for SES.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 18 18:23:53 2004 UTC (19 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.17: +38 -1 lines
Diff to previous 1.17 (colored)

Add SPI status information unit structure and defines, along with some
command information unit 'Task Management Flags' defines. From FreeBSD
with a few tweaks. For ahd.

ok tdeval@ marco@.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 31 11:31:29 2004 UTC (19 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.16: +1 -13 lines
Diff to previous 1.16 (colored)

Remove scsi_change_def() and related command structure. Its only use
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@

Revision 1.6.4.7 / (download) - annotate - [select for diffs], Sat Jun 5 23:13:08 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.6.4.6: +2 -0 lines
Diff to previous 1.6.4.6 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Merge with the trunk

Revision 1.16 / (download) - annotate - [select for diffs], Sat Feb 21 00:47:42 2004 UTC (20 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

Eliminate the quirks SDEV_NOSTARTUNIT, UMASS_QUIRK_NO_START_STOP, and
UMASS_QUIRK_FORCE_SHORT_INQUIRY. Fixes a bunch of USB devices. Based
on work by Mycroft in NetBSD.

ok tdeval@ deraadt@.

Revision 1.6.4.6 / (download) - annotate - [select for diffs], Thu Feb 19 11:01:30 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.6.4.5: +5 -1 lines
Diff to previous 1.6.4.5 (colored) to branchpoint 1.6 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 4 03:25:30 2004 UTC (20 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

Rewrite scsi_decode_sense() to clean up code; eliminate many magic
numbers; fix passing a NULL to %s under some circumstances; fix the
bit index mask; etc.

No change in output.

ok deraadt@.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon May 19 22:28:21 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.12.2.1: +3 -3 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

sync

Revision 1.6.4.5 / (download) - annotate - [select for diffs], Fri Mar 28 00:08:47 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.6.4.4: +3 -2 lines
Diff to previous 1.6.4.4 (colored) to branchpoint 1.6 (colored)

Sync the SMP branch with 3.3

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 15 20:53:33 2002 UTC (21 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: UBC_SYNC_A, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Fix/Cleanup some SCSI #defines.

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@

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:49 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

sync to -current

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 4 23:07:28 2002 UTC (21 years, 9 months ago) by tdeval
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add support for RBC (simplified direct) devices.
ok costa@, krw@

Revision 1.6.4.4 / (download) - annotate - [select for diffs], Tue Nov 13 23:02:30 2001 UTC (22 years, 7 months ago) by niklas
Branch: SMP
Changes since 1.6.4.3: +12 -6 lines
Diff to previous 1.6.4.3 (colored) to branchpoint 1.6 (colored)

merge in -current

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 11 21:38:17 2001 UTC (22 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: UBC
Changes since 1.11: +12 -6 lines
Diff to previous 1.11 (colored)

Add missing values for SCSI status byte. Add new name for 0x28 to
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.

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Wed Jul 4 11:00:02 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.6.4.2: +19 -19 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 22 14:35:42 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.10: +19 -19 lines
Diff to previous 1.10 (colored)

KNF

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Mon May 14 22:44:59 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.6.4.1: +8 -3 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 8 03:16:10 2001 UTC (23 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add one more 1 byte (reserved, as defined in spc-2) field to the
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>.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 2 17:11:25 2001 UTC (23 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

Add padding and new field 'flags2' to struct scsi_inquiry_data,
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@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 9 17:36:34 2001 UTC (23 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Typo: dome -> some

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Mon Feb 21 22:29:14 2000 UTC (24 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

sync with -current

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 21 08:18:31 2000 UTC (24 years, 3 months ago) by mjacob
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Add in Enclosure device type (0xd/13). Pad out inquiry data to 50 bytes
os that SAF-TE devices can be found.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 25 07:09:19 1999 UTC (24 years, 10 months ago) by csapuntz
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP
Changes since 1.5: +18 -1 lines
Diff to previous 1.5 (colored)



Merge sd stuff from NetBSD-current. Helps with LS-120, ZIP

More SCSI logic from NetBSD-current

Some tape fixes. ATAPI tapes do not work yet for most operations.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 14 04:09:06 1997 UTC (27 years, 2 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +10 -6 lines
Diff to previous 1.4 (colored)

Merge in various pieces of current NetBSD scsi code, including but not limited
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.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 2 20:18:49 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

handle SCSI_QUEUE_FULL correctly

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 16 23:53:15 1996 UTC (28 years ago) by downsj
Branch: MAIN
Changes since 1.2: +6 -0 lines
Diff to previous 1.2 (colored)

netbsd pr#2220: add SCIOCRESET.  I can't think of any reason not to.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 21 22:30:48 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +20 -45 lines
Diff to previous 1.1 (colored)

partial sync with netbsd 960418, more to come

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:53:24 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:53:24 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.