OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28, Thu Jul 8 00:42:39 2010 UTC (13 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.27: +1 -1 lines
FILE REMOVED

Move ss and friends to the attic.

Enthusiastic huzzahs from many.

"A great day" dlg@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 1 05:11:18 2010 UTC (13 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

Die struct scsi_device! Die! Instead, save a pointer to the routine
to interpret sense errors. This is initialized to the basic
interpretation routine, and specific scsi drivers (sd/st/cd) can
replace this with their own. While here kill EJUSTRETURN dance and
make more specialized interpretation routines directly call the
basic routine if desired.

Fixes by matthew@ to my first diff. Most original work by dlg@.

ok matthew@ marco@ dlg@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 1 03:01:37 2010 UTC (13 years, 11 months ago) by matthew
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Restore setting xs->bp; fixes ncr(4) on VAX.

ok miod@, krw@

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 30 00:02:00 2010 UTC (13 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

switch ss over to using xshandlers for queuing io. this brings it into line
with sd/cd/st.

largely a mechanical change, untested due to a complete lack of hardware
anywhere.

ok krw@ matthew@

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 26 23:24:45 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

Don't #include <sys/user.h> into files that don't need the stuff
it defines.  In some cases, this means pulling in uvm.h or pcb.h
instead, but most of the inclusions were just noise.  Tested on
alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax,
mostly by krw and naddy.
ok krw@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 11 12:02:44 2010 UTC (14 years ago) by krw
Branch: MAIN
Changes since 1.22: +13 -3 lines
Diff to previous 1.22 (colored)

Restore an unusual XS_SENSE semantic that inadvertantly got lost
in the great re-write. If the scsi device *_interpret_sense()
function returns 0 that means there was no error.

Fixes restore(8) problems seen on certain tape drives.

Found and fix tested by Percey Piper. Suggestions from Matthew
Dempsky. Thanks!

ok dlg@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 1 15:27:16 2010 UTC (14 years ago) by thib
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

move cd, st & ss over to bufq's again.

Tested by myself and krw.
ok krw@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Apr 12 09:51:48 2010 UTC (14 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored)

i snuck fine grained locking into the midlayer as part of all the
other stuff ive been doing in here. everything that needs protection
inside the midlayer and the scsi device drivers (sd, cd, etc) uses
mutexes now.

this pushes splbio out of the midlayer. splbio is only taken before
biodone is called now.

ok beck@ marco@ krw@ deraadt@. theyre all terrified, but they all
say if we're going to do then now is the right stage of the dev
cycle.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 15 05:50:31 2010 UTC (14 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Abstract and merge the manual buf queue manipulating functions into
one place for easier debugging and maintenance. No intended functional
changes.

ok dlg@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jan 15 05:31:38 2010 UTC (14 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.18: +10 -3 lines
Diff to previous 1.18 (colored)

Restore XS_BUSY delay behaviour for buf i/o. Same as for sync path.

ok dlg@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 13 01:51:20 2010 UTC (14 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix SCSIDEBUG compiles.

Pointed out and original diff by jcs@.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jan 2 23:28:51 2010 UTC (14 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.16: +68 -18 lines
Diff to previous 1.16 (colored)

move the buf handling from using scsi_scsi_cmd over to scsi_xs_exec. i
think this is the last chunk of code using a buf pointer in the scsi_xfer
now.

this has not been tested due to a lack of hardware anywhere. if there are
problems please report them as soon as possible.

ok krw@ miod@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 22 16:32:05 2008 UTC (15 years, 11 months 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.15: +7 -9 lines
Diff to previous 1.15 (colored)

Replace MUSTEK_RETRIES, SCANJET_RETRIES and ST_RETRIES with SCSI_RETRIES,
all defined to 4. Replace some magic number 4's with SCSI_RETRIES. Fix a
few lines that were now too long.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 16 01:30:24 2007 UTC (16 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

MALLOC/FREE -> malloc/free, M_ZERO, extraneous casts,
extraneous #include <malloc.h>

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 28 16:56:50 2006 UTC (17 years, 6 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

rename scsibus_attach_args to scsi_attach_args. this can help avoid
confusing when trying to attach scsibus to a hba, since it is really meant
for attaching scsi devices to scsibus.

ok deraadt@ marco@

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 11 00:45:59 2006 UTC (18 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Zap trailing whitespace.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 5 21:03:50 2005 UTC (19 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.11: +9 -3 lines
Diff to previous 1.11 (colored)

Revert ss_mustek use of new scsi_mode_select(). Further development
revealed it is doing it's own weird stuff not reproduced in new
functions. e.g. it doesn't use mode sense headers. Rather than try to
fix it or figure it out at this time ...

Revision 1.11 / (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.10: +3 -3 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Tue Apr 5 12:13:16 2005 UTC (19 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.9: +3 -9 lines
Diff to previous 1.9 (colored)

Factor out scsi_mode_sense() and scsi_mode_select() like NetBSD does.
Eliminate some duplicate structures and defines along the way. SCSI CD
drives will now pay attention to the 'flags' parameter for MODE SENSE
and MODE SELECT commands. No other functional change.

ok tdeval@

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

Sync UBC branch to -current

Revision 1.8.14.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.8: +8 -8 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Merge in -current from roughly a week ago

Revision 1.9 / (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, UBC_SYNC_A, 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, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.8: +8 -8 lines
Diff to previous 1.8 (colored)

First round of __P removal in sys

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 11 03:40:50 1997 UTC (27 years, 3 months ago) by kstailey
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, 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
Branch point for: UBC, SMP
Changes since 1.7: +1 -16 lines
Diff to previous 1.7 (colored)

move init. code to m.i. section

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 10 02:29:40 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

do GET_BUFFER_STATUS in special minphys

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 6 12:44:42 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +1 -10 lines
Diff to previous 1.5 (colored)

remove stub get_params functions

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 10 12:31:40 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

SC_DEBUG cleanup

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 7 09:34:32 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.3: +1 -624 lines
Diff to previous 1.3 (colored)

Remove erroneously doubled text (patch can do that when a new file
comes into existence simultaneously from two directions).

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

partial sync with netbsd 960418, more to come

Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 19 16:10:21 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.1: +624 -0 lines
Diff to previous 1.1 (colored)

NetBSD 960317 merge

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 20 02:28:54 1996 UTC (28 years, 3 months ago) by briggs
Branch: MAIN

Sync. with NetBSD:
- scsi prototypes.
- Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes,
  hacked a but.  Needs more work.
ss.c:
- Truncate to the window size in ssminphys(), not ssread().
- Missed some prototyping foo.
- Minor tweak; make sure window size is 0 on close.
- Change variable name to avoid GCC warning.
- Handle EOF a little differently.

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.