OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.43 / (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.42: +2 -2 lines
Diff to previous 1.42 (colored)

spelling

Revision 1.42 / (download) - annotate - [select for diffs], Fri Mar 12 10:22:46 2021 UTC (3 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

spelling

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 1 12:17:53 2020 UTC (3 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big to
struct scsi_rw_10.

ok gnezdo@ jmatthew@ (who also did sparc64 compile test)

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 3 15:58:28 2019 UTC (4 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

Check for expected mode sense page code as well as expected mode page length when
constructing the pointer to the page data. Remove now unneeded DISK_PGCODE().

Usual misc whitespace/modernization tweaks to functions being modified.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 25 17:02:57 2019 UTC (4 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.38: +1 -30 lines
Diff to previous 1.38 (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.38 / (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.37: +2 -2 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Fri Sep 27 17:22:31 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Add/tweak #endif comments to make spelunking via grep more rewarding.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Sep 19 16:07:33 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.35: +17 -4 lines
Diff to previous 1.35 (colored)

Add new (a.k.a SBC-4) flags/fields to struct scsi_read_cap_16. Adopt
more concise nameing convention roughly adopted from FreeBSD as
tweaked by SBC-4. Keep older names when they are currently in use
elsewhere.

Revision 1.35 / (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.34: +2 -2 lines
Diff to previous 1.34 (colored)

More damned eye searing whitespace.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Nov 26 20:33:20 2013 UTC (10 years, 6 months ago) by deraadt
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
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

1 << 31 cleanup.  Eitan Adler pointed out that there has been a
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 30 18:31:34 2013 UTC (11 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

typo: thing -> thin provisioning

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 8 07:28:45 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.31: +16 -0 lines
Diff to previous 1.31 (colored)

sbc3 defines a thin provisioning vpd page

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 8 07:20:39 2011 UTC (12 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.30: +9 -8 lines
Diff to previous 1.30 (colored)

white space fixes

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 8 06:48:15 2011 UTC (12 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

add the UGAVALID flag to the block limits vpd page

Revision 1.29 / (download) - annotate - [select for diffs], Thu Sep 23 11:23:58 2010 UTC (13 years, 8 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.28: +6 -1 lines
Diff to previous 1.28 (colored)

descripe a few bits of the write same commands.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Sep 21 09:00:23 2010 UTC (13 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.27: +45 -1 lines
Diff to previous 1.27 (colored)

opcodes, cdbs, and payloads for WRITE SAME 10/16 and UNMAP commands.

ok deraadt@ krw@ matthew@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 13 00:56:55 2010 UTC (13 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.26: +9 -9 lines
Diff to previous 1.26 (colored)

i got the order of the bits in the cache page back to front. how
embarrsssment.

discovered by okan@

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 5 11:33:26 2010 UTC (14 years, 1 month ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

map the ATA data set management stuff (ie, trim) to the SCSI thin
provisioning bits in read cap 16

Revision 1.25 / (download) - annotate - [select for diffs], Sat Apr 3 07:09:29 2010 UTC (14 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.24: +47 -1 lines
Diff to previous 1.24 (colored)

add support for emulating the disk characteristics and disk limits vpd
pages. this if the first step in figuring out if disks use a different
physical block size compared to the logical block size they present to the
operating system.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 3 11:09:41 2010 UTC (14 years, 5 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.23: +24 -1 lines
Diff to previous 1.23 (colored)

disk cache mode page

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 6 05:35:48 2009 UTC (15 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

We only really need to #define SYNCHRONIZE_CACHE 0x35 once.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jun 23 19:19:49 2007 UTC (16 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Implement disk sizes > 2^32-1. Code modelled on NetBSD.

Tested, tweaked and ok otto@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 12 16:33:27 2007 UTC (17 years, 2 months ago) by weingart
Branch: MAIN
Changes since 1.20: +47 -6 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Thu Sep 15 05:33:39 2005 UTC (18 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.19: +1 -9 lines
Diff to previous 1.19 (colored)

Don't fake MODE SENSE page 4 info inside raid drivers, just let sd
fake a geometry. Page 4 info does not get used for size information.
Eliminate now unused union scsi_disk_pages.

ok marco@ mickey@ pre-lock.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 21 16:25:52 2005 UTC (18 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Some devices go berserk when asked for mode sense pages they don't
have. Some devices return four bytes less information than requested
for the PAGE_RIGID_GEOMETRY page. Put the two together and older
Conner drives don't work because we rejected the short page and asked
for the PAGE_FLEX_GEOMETY page. Noted by hshoexer@ and kettenis@.

Also should fix the problems with a device miod@ reported that did a
similar short PAGE_FLEX_GEOMETRY.

ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 17 02:17:51 2005 UTC (18 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.17: +7 -2 lines
Diff to previous 1.17 (colored)

Use defines for disk mode page codes. Check returned mode pages to
ensure they are the ones requested. No functional change unless
garbage was being returned.

ok marco@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Aug 12 01:49:08 2005 UTC (18 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.16: +81 -72 lines
Diff to previous 1.16 (colored)

Move disk mode page structure declarations out of scsi_disk_pages
union declaration to allow pointers to individual page types. Simplify
sd.c code by using individual page type pointers. No functional
change.

ok tdeval@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 3 04:03:25 2005 UTC (18 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Add missing reserved byte to page_disk_format struct in
scsi_disk_pages union. From FreeBSD and SCSI spec.

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 25 20:52:41 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.14: +1 -7 lines
Diff to previous 1.14 (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.8.4.4 / (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.8.4.3: +1 -2 lines
Diff to previous 1.8.4.3 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 24 22:42:07 2003 UTC (20 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

try to devise drive's rpm and default to 3600 should we fail miserably.
derived from pr2815 from Marco Peereboom
krw@ deraadt@ ok

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

sync

Revision 1.8.4.3 / (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.8.4.2: +16 -12 lines
Diff to previous 1.8.4.2 (colored) to branchpoint 1.8 (colored)

Sync the SMP branch with 3.3

Revision 1.13 / (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_3_BASE, OPENBSD_3_3
Changes since 1.12: +2 -12 lines
Diff to previous 1.12 (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.11.4.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.11: +15 -1 lines
Diff to previous 1.11 (colored)

sync to -current

Revision 1.12 / (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.11: +15 -1 lines
Diff to previous 1.11 (colored)

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

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Wed Jul 4 11:00:04 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.8.4.1: +11 -11 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (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:43 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.10: +11 -11 lines
Diff to previous 1.10 (colored)

KNF

Revision 1.8.4.1 / (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.8: +8 -2 lines
Diff to previous 1.8 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 29 02:33:17 2001 UTC (23 years, 4 months ago) by csapuntz
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +7 -1 lines
Diff to previous 1.9 (colored)



Prepend SCSI_ to some of the SCSI opcodes to aid in sharing code w/NetBSD

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 25 03:50:53 2001 UTC (23 years, 4 months ago) by todd
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

spelling

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 24 01:20:22 1999 UTC (24 years, 9 months ago) by csapuntz
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP
Changes since 1.7: +7 -1 lines
Diff to previous 1.7 (colored)



Added type field to scsi_addr to reflect bus/device type (ATAPI or SCSI).
Updated ioctls to match

Minor patches in anticipation of wd->sd translation layer

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 25 07:09:19 1999 UTC (24 years, 10 months ago) by csapuntz
Branch: MAIN
Changes since 1.6: +115 -7 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Mon Apr 14 04:09:09 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.5: +30 -37 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Thu Oct 31 01:09:23 1996 UTC (27 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

$OpenBSD RCSIDs + comment fix in sd.c

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 16 03:07:20 1996 UTC (28 years ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.3: +37 -0 lines
Diff to previous 1.3 (colored)

NetBSD PR#2535: add mode sense 5 and floppy support in our framework.

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

partial sync with netbsd 960418, more to come

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 14 05:50:53 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +10 -1 lines
Diff to previous 1.1 (colored)

from netbsd; flesh out the mode pages

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.