OpenBSD CVS

CVS log for src/sys/scsi/Attic/sd_atapi.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11, Sat Jul 2 04:24:54 2005 UTC (18 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED

Unused files.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 19 20:41:28 2005 UTC (18 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

Eradicate unused struct atapi_sd_mode_data. Eradicate struct
atapi_capacity_descriptor in favour of equivalent struct
scsi_direct_blk_desc. No code change. One verbiage adjustment.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 3 15:50:10 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Thu May 26 02:10:14 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.7: +31 -27 lines
Diff to previous 1.7 (colored)

Use new mode sense mechanism for atapi disks. Make sure that fake
geometry is set even if (as for some USB devices) the MODE SENSE works
but zero values are returned for cylinders/heads/sectors. This fixes
my USB floppy which returns 0/0/0.

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 22 21:11:31 2005 UTC (19 years ago) by krw
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Remove some superfluous structures, etc. No functional change.

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 14 00:20:43 2005 UTC (19 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Add scsi_mode_[sense|select]_big() and use it instead of
atapi_mode_[sense|select](). This will allow the removal of
atapi_base.c and atapi_all.h files, and sets the stage for better usb
mode sense handling amoung other things.

Remove cd_scsibus_[get|set]_mode() and
sd_scsibus_mode_sense() shims in favour of scsi_mode_[sense|select]().
Add zero'ing of reserved length field in scsi_mode_select(). Change
some uchar * type parameters to scsi_mode_header *.

No functional changes. Mostly from NetBSD.

ok dlg@.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 16 16:41:46 2005 UTC (19 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Nuke unused/duplicate structures and defines in favour of scsi ones.

ok miod@

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Thu Feb 19 11:01:31 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.1.4.2: +23 -20 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 25 02:18:35 2003 UTC (20 years, 11 months ago) by krw
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.3: +24 -21 lines
Diff to previous 1.3 (colored)

Avoid a divide by zero by

1) Ensuring that both sd_scsi.c and sd_atapi.c report a device as
offline when its disksize cannot be determined.

2) Ensuring blksize is always non-zero, with a default value of 512.

3) Eliminating a couple of unneeded 'sectors' variables, which makes
the code easier for me to read if nothing else.

The bug was introduced when sd_atapi.c was changed to allow
'incomplete' implementations to be reported as online. REALLY
incomplete implementations (i.e. not even the disksize can be
determined) would be reported online with a blksize of zero.

Also fix a couple of knf nits in Mickey's last commit, and add another
check for an rpm of 0.

ok (pre-Mickey diffs) tdeval@ marc@ frantzen@

Revision 1.1.14.2 / (download) - annotate - [select for diffs], Mon May 19 22:28:21 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.1.14.1: +5 -4 lines
Diff to previous 1.1.14.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Fri May 16 00:29:45 2003 UTC (21 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.1.4.1: +4 -3 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

merge the trunk so we will get the genfs and locking fixes

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 13 00:53:32 2003 UTC (21 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: UBC_SYNC_A
Changes since 1.2: +5 -4 lines
Diff to previous 1.2 (colored)

Don't report devices with incomplete implementations as OFFLINE.

Fixes frantzen@'s pentax digital camera.

Suggested by Costa.

ok csapuntz@ frantzen@.

Revision 1.1.14.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:32:14 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Sync UBC branch to -current

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Thu Mar 28 14:52:01 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Merge in -current from roughly a week ago

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:13 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

First round of __P removal in sys

Revision 1.1 / (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, UBC_BASE, SMP_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: UBC, SMP



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.

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.