The NetBSD Project

CVS log for src/sys/dev/scsipi/scsipi_ioctl.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / scsipi

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.67 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 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.66: +4 -4 lines
Diff to previous 1.66 (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.66 / (download) - annotate - [select for diffs], Mon Jul 14 12:36:44 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.65: +4 -2 lines
Diff to previous 1.65 (colored)

set the buffer's "resid" if a raw SCSI command fails, otherwise a
diagnostic check in kern_physio is set up

Revision 1.65 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:58 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.64: +2 -9 lines
Diff to previous 1.64 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:39 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored)

Merge vmlocking2 to head.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:23 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-mips64, matt-armv6, bouyer-xeni386
Changes since 1.62: +8 -11 lines
Diff to previous 1.62 (colored)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:43 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans
Branch point for: vmlocking, nick-csl-alignment
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Apr 14 17:33:10 2006 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, 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, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.60: +5 -2 lines
Diff to previous 1.60 (colored)

Coverity CID 1101: Protect against address argument being NULL.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:34 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.59: +6 -5 lines
Diff to previous 1.59 (colored)

Use device_unit().

Revision 1.59 / (download) - annotate - [select for diffs], Sat Mar 25 23:26:17 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored)

Use device_parent().

Revision 1.58 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:13 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.57: +7 -4 lines
Diff to previous 1.57 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 14 21:55:47 2005 UTC (7 years, 5 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Allow SCIOCCOMMAND ioctl that executes a SCSI command to also be issued
within the kernel when the FKIOCTL flag is passed to the ioctl.

No code actually uses this yet but is committed for completion.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored)

merge ktrace-lwp.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 1 20:44:04 2005 UTC (7 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)

Rework the funny "user_strat: No ioctl" error messages - the functions
have not been called user_strat for quite some time and the message is
confusing if you do not know the code.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 1 15:40:00 2005 UTC (7 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

Don't claim there is a data in or out phase if the datalen is 0 (userland
shouldn't claim it either, but a buggy software shouldn't be able to crash
the kernel anyway). Should fix port-sparc64/31925 by Johan A.van Zanten
(which should really be kern/31925).
Analysed and patch tested by Martin Husemann.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Oct 31 14:36:41 2005 UTC (7 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.52: +8 -20 lines
Diff to previous 1.52 (colored)

fix ioctl problems after the recent physio changes
in some drivers including wd and scsi.

- physio: if a caller provided a buf, stick to use it
  because some drivers use it as an identifier.
- sprinkle simple_locks.
- scsistrategy: rather than issueing an async request and
  waiting for its completion, simply issue a sync request.
  the way to wait for the completion had an assumption that
  B_CALL is never used.  it isn't the case after the recent
  physio() changes.

pointed/analyzed/tested by Martin Husemann.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (8 years, 3 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, yamt-km-base4, yamt-km-base3, yamt-km-base2, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, matt-timespec, kent-audio2-base
Branch point for: yamt-vop, yamt-lazymbuf, netbsd-3
Changes since 1.51: +1 -1 lines
Diff to previous 1.51 (colored)

Backing out changes to clean up scsipi. I was pointed out there were
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:41 2005 UTC (8 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 18 00:08:16 2004 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base, yamt-km, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored)

Standardize some variable names and the calling pattern for scsipi_command().
Use void pointer casts.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Sep 17 23:43:17 2004 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

Remove the "xfer" argument to scsipi_command().

Revision 1.48 / (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.47: +3 -3 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sat Aug 21 21:29:39 2004 UTC (8 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +14 -28 lines
Diff to previous 1.46 (colored)

Use ANSI function decls and make use of static.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:41 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0, ktrace-lwp
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:43 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.44: +6 -6 lines
Diff to previous 1.44 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.44 / (download) - annotate - [select for diffs], Sun Feb 23 08:50:59 2003 UTC (10 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

initialize b_interlock properly.
(for ioctl)

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 12 16:37:55 2002 UTC (11 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: 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, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, 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
Branch point for: netbsd-1-6
Changes since 1.42: +3 -4 lines
Diff to previous 1.42 (colored)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.42 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:17 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.41: +3 -4 lines
Diff to previous 1.41 (colored)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 13 06:56:40 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

add RCSIDs

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jul 18 18:25:41 2001 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

bcopy -> memcpy

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jul 18 18:21:05 2001 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

bzero -> memset

Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:40 2001 UTC (12 years ago) by bouyer
Branch: MAIN
Branch point for: kqueue
Changes since 1.37: +74 -59 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:54 1999 UTC (13 years, 7 months ago) by thorpej
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, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: wrstuden-devbsize, thorpej_scsipi, nathanw_sa
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)

Cleanup the scsipi_xfer flags:
- `flags' is now gone, replaced with `xs_control' and `xs_status'.
- Massive cleanup of the control flags.  Now we explicitly say that
  a job is to complete asynchronously, rather than relying on side-effects,
  and use a new flag to now that device discovery is being performed.
- Do SCSI device discovery interrupt-driven.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 11 22:07:08 1999 UTC (14 years, 4 months ago) by thorpej
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, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.35: +7 -2 lines
Diff to previous 1.35 (colored)

Add missing XS_SELTIMEOUT case in user command completion path, returning
SCCMD_TIMEOUT.  Based on PR #6720, Andreas Wrede.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 17 14:38:43 1998 UTC (14 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.34: +8 -2 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Sat Oct 10 02:35:30 1998 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.33: +1 -18 lines
Diff to previous 1.33 (colored)

Garbage-collect the SCIOCREPROBE and OSCIOCREPROBE ioctls.  This is a
bus-oriented command.  (How much sense does it make to open a device
to rescan the bus?!)

Revision 1.33 / (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.32: +23 -16 lines
Diff to previous 1.32 (colored)

Assign my copyrights to TNF.

Revision 1.32 / (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.31: +3 -3 lines
Diff to previous 1.31 (colored)

Make copyright notices with my name consistent.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 5 08:49:41 1998 UTC (14 years, 10 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 25 22:50:18 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

defopt COMPAT_FREEBSD

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 15 08:16:01 1998 UTC (14 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Treat OSCIOCIDENTIFY just as SCIOCIDENTIFY regarding permissions, don't
require the file descriptor to be open read/write. Fix PR kern/5592
from John F. Woods.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Oct 18 19:51:04 1997 UTC (15 years, 7 months ago) by thorpej
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
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Implement two macros, scsipi_command() and scsipi_command_direct(), and
use them to hide the structure of the function pointers we jump through
to issue a command.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:12 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.26: +46 -40 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Fri Sep 19 00:59:49 1997 UTC (15 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.25: +22 -1 lines
Diff to previous 1.25 (colored)

Add new ioctl OSCIOCREPROBE and OSCIOCIDENTIFY to support binary
compatibility with NetBSD 1.2.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 27 11:26:57 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.24: +52 -34 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Sat Apr 26 22:24:46 1997 UTC (16 years ago) by augustss
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.23: +6 -2 lines
Diff to previous 1.23 (colored)

Don't require that a device is open for writing to perform a raw
SCSI command that just reads.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Oct 12 23:23:17 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.22: +8 -8 lines
Diff to previous 1.22 (colored)

revert previous kprintf change

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 10 23:34:19 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.21: +8 -8 lines
Diff to previous 1.21 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 13 00:35:59 1996 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +12 -1 lines
Diff to previous 1.20 (colored)

For ioctl commands which may change the device's state, ensure that
the caller has the device open for writing.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 14 21:47:22 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored)

scsi prototypes

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 26 19:26:58 1995 UTC (17 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Don't declare Debugger().  It's handled in <sys/systm.h>.
#include <sys/systm.h> where necessary, as suggested by Jonathan Stone.
Fixes PR #1511.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 30 15:54:42 1995 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Fix invocation of scsi_scsi_cmd(), per John Kohl.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 23 17:56:26 1995 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +1 -9 lines
Diff to previous 1.16 (colored)

Remove old, misleading comment.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Dec 28 19:43:05 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +10 -6 lines
Diff to previous 1.15 (colored)

Numerous changes.  Many bugs fixed, better autoconfig, a few new features.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Dec 1 12:36:35 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Set UIO residual count.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 1 12:26:37 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Always set the device number correctly, even though we don't need it.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 1 12:12:08 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +12 -16 lines
Diff to previous 1.12 (colored)

Redux.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 1 12:04:45 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +22 -31 lines
Diff to previous 1.11 (colored)

Uncomment call to scsi_user_done(), and remove a duplicate biodone() (and
another si_free()).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 1 11:53:56 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +47 -71 lines
Diff to previous 1.10 (colored)

Remove the silly statically allocated array, and simply malloc the data
structures as needed.  Also, put the buf in the malloc()ed area.  Remove a
duplicate si_free() (though this was harmless before).

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 30 21:49:21 1994 UTC (18 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 23 19:24:01 1994 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +17 -27 lines
Diff to previous 1.8 (colored)

Make this more likely to work.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 20 20:31:27 1994 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +20 -32 lines
Diff to previous 1.7 (colored)

First cut at making user-level SCSI commands work.  This is untested.
Partly from John Brezak.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 29 06:43:06 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 16 01:11:44 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

b_un.b_addr -> b_data

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 11 03:54:04 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Fix various types.  Remove some outdated flags.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 29 04:29:35 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.3: +220 -127 lines
Diff to previous 1.3 (colored)

New SCSI system, based on Julian's more recent work.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 29 20:33:25 1993 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Use new struct buf fields.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 24 09:45:07 1993 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +80 -80 lines
Diff to previous 1.1 (colored)

Still under construction...

Revision 1.1 / (download) - annotate - [select for diffs], Wed Nov 24 04:52:49 1993 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN

Under construction...

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.




CVSweb <webmaster@jp.NetBSD.org>