Up to [cvs.NetBSD.org] / src / sys / dev / scsipi
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.58 / (download) - annotate - [select for diffs], Fri Apr 20 20:23:21 2012 UTC (13 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.57: +9 -1
lines
Diff to previous 1.57 (colored)
Add a bustype_async_event_xfer_mode() callback to scsipi_bustype (which can be NULL), so that transport-specific details of transfer mode setting/printing can be handled more easily. Move scsipi_async_event_xfer_mode() and scsipi_print_xfer_mode() to scsi_base.c and split in parallel scsi and FC/SAS parts. size of struct scsipi_bustype has changed, welcome to 6.99.5
Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 2012 UTC (13 months ago) by bouyer
Branch: MAIN
Changes since 1.56: +4 -1
lines
Diff to previous 1.56 (colored)
Expand struct scsipi_bustype {} in a ABI-backward-compatible way to
pass more informations about the bus:
- bustype_type has 2 different bytes, one holding the existing
SCSIPI_BUSTYPE_* (scsi, atapi, ata), and one for a per-SCSIPI_BUSTYPE_*
subtype. Introduce macros to build or extract bustype_type.
- for SCSIPI_BUSTYPE_SCSI, define subtypes for parallel SCSI, Fibre Channel,
SAS and USB, to specify the transport method. SCSIPI_BUSTYPE_SCSI_PSCSI
is 0 so that bustype_type value doesn't change for existing code
- for non-SCSIPI_BUSTYPE_SCSI busses there's no defined subtype yet,
so the bustype_type value doesn't change.
- provide scsi_fc_bustype, scsi_sas_bustype and scsi_usb_bustype
along with scsi_bustype to be used by bus driver where appropriate
- scsipi_print_xfer_mode(): more existing code under a
(SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_PSCSI) case, as
sync/wide parameters only make sense for parallel SCSI.
For (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_FC) and
(SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_SAS), only print
tagged queing status if enabled. Just be silent for other
bustypes.
This change is prompted by this problem:
right now, FC (e.g. isp(4)) and SAS (e.g. mfi(4)) don't
do anything for ADAPTER_REQ_SET_XFER_MODE, and especially never
call scsipi_async_event(ASYNC_EVENT_XFER_MODE), so sd(4) always
runs untagged. Doing a scsipi_async_event(ASYNC_EVENT_XFER_MODE) with
appropriate parameters is enough to enable tagged queuing,
but then scsipi will print:
sd0: async, 8-bit transfers, tagged queueing
which is harmless (async, 8-bit transfers doens't make sense on SAS anyway)
but will confuse users. With this change scsipi will only print:
sd0: tagged queueing
which is correct.
In the long run, knowning the underlying transport in scsipi will
allow better handling of device which are not parallel SCSI.
Another change adding an extra callback to struct scsipi_bustype {}
will come (so that scsipi_print_xfer_mode(), which is SCSI-specific,
can be moved out of scsipi_base, and split into per-subtype callback),
but this will break kernel ABI and so is not suitable for
netbsd-6, so will be commmited later. The above is enough to get
tagged queuing on FC and SAS in netbsd-6.
Revision 1.56 / (download) - annotate - [select for diffs], Wed Jul 16 18:50:58 2008 UTC (4 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
simonb-wapbl-nbase,
simonb-wapbl-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
nick-hppapmap,
netbsd-6-base,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-premerge-20091211,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-premerge-20101231,
matt-mips64-base2,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2,
ad-audiomp2-base,
ad-audiomp2
Branch point for: yamt-pagecache,
netbsd-6,
jmcneill-usbmp
Changes since 1.55: +2 -2
lines
Diff to previous 1.55 (colored)
split device/softc for scsibus
Revision 1.55 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:57 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl,
haad-dm
Changes since 1.54: +1 -8
lines
Diff to previous 1.54 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.54 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
yamt-splraiseipl-base,
yamt-splraiseipl,
yamt-pf42-baseX,
yamt-pf42-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
yamt-pdpolicy,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
yamt-idlelwp-base8,
yamt-idlelwp,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
vmlocking-base,
vmlocking,
thorpej-atomic-base,
thorpej-atomic,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
rpaulo-netinet-merge-pcb-base,
rpaulo-netinet-merge-pcb,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
reinoud-bufcleanup,
post-newlock2-merge,
peter-altq-base,
peter-altq,
nick-net80211-sync-base,
nick-net80211-sync,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
newlock2-nbase,
newlock2-base,
newlock2,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
mjf-ufs-trans-base,
mjf-ufs-trans,
mjf-devfs-base,
mjf-devfs,
matt-nb4-arm-base,
matt-nb4-arm,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
jmcneill-pm,
jmcneill-base,
hpcarm-cleanup-base,
hpcarm-cleanup,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
cube-autoconf-base,
cube-autoconf,
chap-midi-nbase,
chap-midi-base,
chap-midi,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64,
ad-socklock-base1,
ad-audiomp-base,
ad-audiomp,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-pf42,
yamt-nfs-mp,
mjf-devfs2
Changes since 1.53: +1 -1
lines
Diff to previous 1.53 (colored)
merge ktrace-lwp.
Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 17 23:30:22 2004 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
yamt-lazymbuf,
yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
matt-timespec,
ktrace-lwp-base,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Changes since 1.52: +3 -5
lines
Diff to previous 1.52 (colored)
Change the way bustype_cmd is used. Rather than having it be responsible for calling scsipi_make_xs() and scsipi_execute_xs(), instead push these into scsipi_command. Make bustype_cmd and PHOLD/PRELE be called from scsipi_execute_xs(). This allows us to create a xfer structure -- possibly on the stack -- and call scsipi_execute_xs() directly.
Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 9 19:35:31 2004 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.51: +4 -3
lines
Diff to previous 1.51 (colored)
Make the xxstart() functions reentrant again, as some drivers HBA can call scsipi_done() from their scsipi_request(). For this, add a struct scsipi_xfer * argument to scsipi_command(). If not NULL scsipi_command() will use this to enqueue this xfer, otherwise it'll try to allocate a new one. This scsipi_xfer has to be allocated and initialised by scsipi_make_xs() or equivalent. In xxstart(), allocate a scsipi_xfer using scsipi_make_xs(), and if not NULL, dequeue the buffer before calling scsipi_command(). This makes sure that scsipi_command() will not fail, and also makes sure that xxstart() won't be called again between the BUFQ_PEEK() and BUFQ_GET(). Fix "dequeued wrong buf" panics reported by Juergen Hannken-Illjes in private mail and Andreas Wrede on current-users@. Thanks to Jason Thorpe and Chuck Silver for review, and Andreas Wrede for testing the patch.
Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 21 20:40:36 2004 UTC (8 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +8 -8
lines
Diff to previous 1.50 (colored)
- De-__P. - Use ANSI function decls.
Revision 1.50 / (download) - annotate - [select for diffs], Mon Jan 6 21:02:18 2003 UTC (10 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-0-base,
nathanw_sa_before_merge,
nathanw_sa_base
Branch point for: netbsd-2-0,
ktrace-lwp
Changes since 1.49: +6 -1
lines
Diff to previous 1.49 (colored)
Add multiple inclusion protection.
Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:39 2001 UTC (12 years ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf,
newlock-base,
newlock,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
kqueue,
ifpoll-base,
ifpoll,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
gehenna-devsw-base,
gehenna-devsw,
fvdl_fs64_base,
eeh-devprop-base,
eeh-devprop
Changes since 1.48: +13 -31
lines
Diff to previous 1.48 (colored)
Pull up the thorpej_scsipi branch to main branch. This is a completely rewritten scsipi_xfer execution engine, and the associated changes to HBA drivers. Overview of changes & features: - All xfers are queued in the mid-layer, rather than doing so in an ad-hoc fashion in individual adapter drivers. - Adapter/channel resource management in the mid-layer, avoids even trying to start running an xfer if the adapter/channel doesn't have the resources. - Better communication between the mid-layer and the adapters. - Asynchronous event notification mechanism from adapter to mid-layer and peripherals. - Better peripheral queue management: freeze/thaw, sorted requeueing during recovery, etc. - Clean separation of peripherals, adapters, and adapter channels (no more scsipi_link). - Kernel thread for each scsipi_channel makes error recovery much easier (no more dealing with interrupt context when recovering from an error). - Mid-layer support for tagged queueing: commands can have the tag type set explicitly, tag IDs are allocated in the mid-layer (thus eliminating the need to use buggy tag ID allocation schemes in many adapter drivers). - support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command will be requeued, or a REQUEST SENSE will be sent as appropriate. Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 20 15:22:28 1999 UTC (13 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
minoura-xpg4dl-base,
minoura-xpg4dl,
fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-newbase
Branch point for: nathanw_sa
Changes since 1.47: +2 -1
lines
Diff to previous 1.47 (colored)
Cancel active transfers on aic/wdc detach. Also makes LS-120 drive works for me again.
Revision 1.47 / (download) - annotate - [select for diffs], Sat Dec 5 19:39:24 1998 UTC (14 years, 5 months ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kenh-if-detach-base,
kenh-if-detach,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame,
chs-ubc2-base,
chs-ubc2
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.46: +3 -3
lines
Diff to previous 1.46 (colored)
Eliminate the moreluns entry as it makes no sense for fat SCSI busses (e.g, FC loops). Change the semantics of scsi_probedev so that it returns 1 if you should continue probing at this target, else 0 for not. Replace the blanket use of '7' with the use of the new sc_maxlun property that is now gathered from HBAs. Allocate scsipi_link arrays based upon this. Fix a really nasty and silly bug that has been there for a while where the number of first level scsipi_link structures was one less than it needed to be.
Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 17 14:38:42 1998 UTC (14 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.45: +1 -7
lines
Diff to previous 1.45 (colored)
Rename scsi_interpret_sense() to scsipi_interpret_sense() and move it from scsi_base.c to scsipi_base.c. Rename the functions from scsi_verbose.c too, and rename the file itself. Cleaup includes too (scsi_*.h should not be #included in scsipi_*.h files, which are supposed to be common to atapi and scsi).
Revision 1.45 / (download) - annotate - [select for diffs], Tue Oct 20 22:26:05 1998 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base,
chs-ubc
Changes since 1.44: +5 -1
lines
Diff to previous 1.44 (colored)
Fix a sight open flags buglet pointed out by Matthias Scheler.
Revision 1.44 / (download) - annotate - [select for diffs], Mon Aug 17 00:49:02 1998 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +23 -16
lines
Diff to previous 1.43 (colored)
Assign my copyrights to TNF.
Revision 1.43 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:48 1998 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +3 -3
lines
Diff to previous 1.42 (colored)
Make copyright notices with my name consistent.
Revision 1.42 / (download) - annotate - [select for diffs], Sat Mar 28 21:57:09 1998 UTC (15 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: eeh-paddr_t-base,
eeh-paddr_t
Changes since 1.41: +3 -1
lines
Diff to previous 1.41 (colored)
Split out the verbose printing of scsi messages, so that user programs can use the printing routines.
Revision 1.41 / (download) - annotate - [select for diffs], Fri Feb 13 08:28:45 1998 UTC (15 years, 3 months ago) by enami
Branch: MAIN
Changes since 1.40: +1 -6
lines
Diff to previous 1.40 (colored)
Backout previous change, and rather, remove all protection but the one actually currently required. Suggested by Charles M. Hannum.
Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 13 04:19:27 1998 UTC (15 years, 3 months ago) by enami
Branch: MAIN
Changes since 1.39: +5 -5
lines
Diff to previous 1.39 (colored)
Fix or add protection for mutiple inclusion.
Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:04 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-base
Changes since 1.38: +10 -13
lines
Diff to previous 1.38 (colored)
Cosmetic changes to keep coding style consistency in this directory; - Indent with tab of width 8. - Use four column to indent continuation line. - Fold long line if possible. - Use return (xx) instead of return xx. - Compare pointer against NULL instead of testing like boolean. - Delete whitespace at the end of line. - Delete whitespace in front of function call operator. - Delete whitespace after cast. - Dereference a pointer to function explicitly. - Add an empty line after local variable declaration. - Use NULL instead of (char *)0. - Dont use block for single statement.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Aug 27 11:26:47 1997 UTC (15 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal
Branch point for: marc-pcmcia
Changes since 1.37: +11 -395
lines
Diff to previous 1.37 (colored)
Merge scsipi branch in the mainline. This add support for ATAPI devices (currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2 busses to which devices can attach (scsibus and atapibus). This needed to change some include files and structure names in the low level scsi drivers.
Revision 1.37 / (download) - annotate - [select for diffs], Wed Aug 20 18:11:37 1997 UTC (15 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.36: +4 -1
lines
Diff to previous 1.36 (colored)
Add in prototype for routine to print SCSI errors in detail.
Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 7 22:45:37 1997 UTC (15 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.35: +26 -14
lines
Diff to previous 1.35 (colored)
mark prototypes for static inline functions as possibly unused (with __attribute__ ((unused))), to avoid generating warnings when compiling without optimization but with most ports' default warning flags.
Revision 1.35 / (download) - annotate - [select for diffs], Wed Apr 2 02:29:38 1997 UTC (16 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.34: +2 -2
lines
Diff to previous 1.34 (colored)
Push the buffer cleanup code into scsi_done(), and split it so that biodone() is called *after* the driver `done' routine. This fixes disk I/O statistics on SCSI devices. Also, calling the `done' routine with a `complete' argument of 0 and actually having it do anything meaningful loses in at least 3 ways, so just nuke the argument altogether and don't call it this way. If the driver needs to do some error handling, that's what `err_handler' is for.
Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 10 21:06:31 1996 UTC (16 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +5 -2
lines
Diff to previous 1.33 (colored)
Add a "max_target" member to struct scsi_link, which is filled in by host adapter drivers, indicating the highest SCSI target they can address. Use this value to dynamically allocate data structures, rather than hard-coding 8 targets. These changes allow targets > 7 to be addressed on wide SCSI busses. Fixes PRs #1674 and #2892.
Revision 1.33 / (download) - annotate - [select for diffs], Wed Oct 23 07:25:42 1996 UTC (16 years, 7 months ago) by matthias
Branch: MAIN
Changes since 1.32: +2 -1
lines
Diff to previous 1.32 (colored)
* At least the Teac FC-1 Shugart-SCSI bridgeboard does motor on/off management by itself. But when it gets a start unit request, it keeps the floppy motor running all the time. This adds code for dealing with yet another quirk (SDEV_NOSTARTUNIT) that prevents sd.c from sending start unit requests. A entry for the Teac FC-1 is added to the quirk table.
Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 3 18:20:36 1996 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +2 -1
lines
Diff to previous 1.31 (colored)
Store the SCSI version in the scsi_link, and set the LUN in the CDB if the version is <= SCSI-2. This should help some older SCSI devices that previously needed the "NOLUNS" quirk. While this is not strictly necessary on SCSI-2 devices, the spec allows it, so we set it for SCSI-2 devices "just in case". See section 7.2.2 of Draft X3T9.2 Rev 10L for details.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 28 18:47:55 1996 UTC (16 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.30: +16 -1
lines
Diff to previous 1.30 (colored)
(1) add a 'channel' field to scsi_link.
(2) in scsibusmatch, match channel as appropriate.
(3) add a scsiprint() function, to do the "scsibus at..."
and channel (if not SCSI_CHANNEL_ONLY_ONE) printing,
i.e. the common functionality that all SCSI drivers currently
should be doing.
Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 5 16:19:12 1996 UTC (16 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.29: +2 -1
lines
Diff to previous 1.29 (colored)
- Apply PR/2535: Add support for flex scsi disks. - Add a quirk called SCSI_NOMODESENSE for drives like the iomega jaz, that don't support mode sense.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 19 03:07:50 1996 UTC (17 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +152 -4
lines
Diff to previous 1.28 (colored)
Define a full set of [234][bl]tol() and lto[234][bl]() conversion functions, inlined. Use sized types in protocol structures. Make the definition of scsi_sense_data less ugly.
Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 18 20:32:45 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +2 -1
lines
Diff to previous 1.27 (colored)
Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes, hacked a bit. Needs more work.
Revision 1.27 / (download) - annotate - [select for diffs], Wed Feb 14 21:47:32 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.26: +15 -8
lines
Diff to previous 1.26 (colored)
scsi prototypes
Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 12 22:43:31 1996 UTC (17 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +8 -2
lines
Diff to previous 1.25 (colored)
Handle cases like the following:
- controller calls scsi_done() with error XS_TIMEOUT
- scsi_done() calls sddone()
- sddone() calls disk_unbusy()
- scsi_done() calls controller to retry command (missing the
call to disk_busy())
- controller calls scsi_done()
- scsi_done() calls sddone()
- sddone() calls disk_busy(), which panics because of the imbalance.
Bug noticed by Leo Weppleman, who also suggested this fix; pass an additional
boolean argument ("complete") to the device's "done" routine, with a
value of `0' passed from the previous call to "done", and add an additional
call to "done" when the xfer resources are freed.
Revision 1.25 / (download) - annotate - [select for diffs], Sat Aug 12 20:31:44 1995 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +5 -5
lines
Diff to previous 1.24 (colored)
minphys() functions really should return void.
Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 24 09:03:00 1995 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.23: +2 -2
lines
Diff to previous 1.23 (colored)
restore a deleted semicolon
Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 24 07:08:14 1995 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.22: +38 -38
lines
Diff to previous 1.22 (colored)
kill structure offest comments in non-fixed-size structures. In some of our worlds, pointers just Aren't 4 bytes.
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 24 06:56:22 1995 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.21: +2 -2
lines
Diff to previous 1.21 (colored)
update SCSI minphys routines' definitions to match standard minphys() definition and usage.
Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 12 09:42:00 1995 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.20: +2 -1
lines
Diff to previous 1.20 (colored)
add a SDEV_FORCELUNS flag, as suggested by Jason Thorpe, to force the SCSI code to look for LUNs on prehistoric (pre-SCSI 1) drives & controllers, where normally it would not.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Jan 26 12:05:52 1995 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +2 -2
lines
Diff to previous 1.19 (colored)
Update copyrights.
Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 26 11:56:55 1995 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +1 -2
lines
Diff to previous 1.18 (colored)
Redo the `wait for spin up' code. The Mach 3 method clearly doesn't work. Also, rearrange the first open sequences a bit; SDEV_OPEN is no longer magic.
Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 30 05:33:08 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2
lines
Diff to previous 1.17 (colored)
Fix some oversights in the debugging code.
Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 28 19:43:11 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +93 -84
lines
Diff to previous 1.16 (colored)
Numerous changes. Many bugs fixed, better autoconfig, a few new features.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 21 10:39:21 1994 UTC (18 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +9 -9
lines
Diff to previous 1.15 (colored)
Replace dev_unit with device_softc in scsi_link. Change argument to foostart() to void*.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 3 22:05:10 1994 UTC (18 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -6
lines
Diff to previous 1.14 (colored)
Always use direct configuration for SCSI devices.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 3 20:24:23 1994 UTC (18 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +3 -3
lines
Diff to previous 1.13 (colored)
Remove a couple of i386-specific hacks, and make a couple of others #ifdef CONFIG_INDIRECT instead.
Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 30 21:49:23 1994 UTC (18 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.12: +2 -2
lines
Diff to previous 1.12 (colored)
be more careful with types, also pull in headers where necessary.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 20 20:31:29 1994 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -2
lines
Diff to previous 1.11 (colored)
First cut at making user-level SCSI commands work. This is untested. Partly from John Brezak.
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 29 06:43:11 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -2
lines
Diff to previous 1.10 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.10 / (download) - annotate - [select for diffs], Thu May 12 22:16:04 1994 UTC (19 years ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -3
lines
Diff to previous 1.9 (colored)
Nuke some junk in scsi_link, as pointed out by Gordon.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 20 22:13:35 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.8: +20 -19
lines
Diff to previous 1.8 (colored)
Maintain the xs free list with LIST_*().
Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 11 03:54:07 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.7: +22 -27
lines
Diff to previous 1.7 (colored)
Fix various types. Remove some outdated flags.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 11 02:23:45 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -3
lines
Diff to previous 1.6 (colored)
Combine scsi_start_unit() and scsi_stop_unit(), and increase the start timeout (again).
Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 29 04:29:39 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.5: +237 -87
lines
Diff to previous 1.5 (colored)
New SCSI system, based on Julian's more recent work.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 25 07:38:52 1994 UTC (19 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +4 -4
lines
Diff to previous 1.4 (colored)
Put controller target in scsi_switch.
Revision 1.4 / (download) - annotate - [select for diffs], Thu May 20 03:46:39 1993 UTC (20 years ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -0
lines
Diff to previous 1.3 (colored)
add rcsids and clean up file headers
Revision 1.3 / (download) - annotate - [select for diffs], Tue May 4 08:27:33 1993 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -1
lines
Diff to previous 1.2 (colored)
support for making dev->id_alive be set, this is for iostat to find disk devices. wee bit of a kludge. sub-device attach() routines must now return 1 for successful attach(), 0 otherwise. Other bsd's do this too..
Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 12 08:19:36 1993 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +39 -22
lines
Diff to previous 1.1 (colored)
new scsi subsystem. changes also in config/mkioconf.c i386/isa/wd.c, fd.c, and all scsi drivers.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
after 0.2.2 "stable" patches applied