The NetBSD Project

CVS log for src/sys/dev/usb/umass_scsipi.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 5 14:54:06 2013 UTC (4 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-nbase, tls-maxphys-base, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.47: +3 -4 lines
Diff to previous 1.47 (colored)

this used the wrong cpp variable for debugging so it does not need opt_usb.h
after all.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:17 2013 UTC (4 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID

Revision 1.46 / (download) - annotate - [select for diffs], Mon Aug 20 10:32:31 2012 UTC (8 months, 4 weeks ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.45: +9 -5 lines
Diff to previous 1.45 (colored)

For devices which don't claim SPC-3, don't request 32 bytes of sense
data but just 18. Some devices signal an error if the transfer length
is not exactly what the device expects, and it is hard to deal with
these errors afterwards.
This makes a number of USB memory sticks and SD card readers work
which were not usable before.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Apr 20 20:23:21 2012 UTC (12 months, 4 weeks ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:21 2012 UTC (13 months ago) by bouyer
Branch: MAIN
Changes since 1.43: +4 -3 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Sun Mar 11 01:06:07 2012 UTC (14 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8, jmcneill-usbmp-base7
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

minor cleanups from usbmp:
- move usbd_delay_ms() into usbdivar.h in the usb_subr.c section
- minor rcsid fixes
- copyright maintenence

Revision 1.42 / (download) - annotate - [select for diffs], Tue Mar 6 03:35:30 2012 UTC (14 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base6
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

pull down from usbmp branch:

- rename usb_detach_{wake,waitup}() to usb_detach_{wake,waitup}old()
- use some c99 struct .initialisers

Revision 1.41 / (download) - annotate - [select for diffs], Sun Mar 4 00:21:20 2012 UTC (14 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base4
Changes since 1.40: +6 -7 lines
Diff to previous 1.40 (colored)

replace the hack to pass USBD_SYNCHRONOUS down when called with
XS_CTL_POLL with one that doesn't modify global-to-softc state.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Feb 23 13:31:13 2012 UTC (14 months, 3 weeks ago) by he
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5, jmcneill-usbmp-base3
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Include <sys/lwp.h> for access to curlwp, now used in various locking ops.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 20 20:09:09 2012 UTC (14 months, 4 weeks ago) by mrg
Branch: MAIN
Changes since 1.38: +17 -3 lines
Diff to previous 1.38 (colored)

assert kernel lock is held in a few places in inside scsipi.
lock the kernel when calling into scsipi from umass and usscanner.

with these two in place on usbmp branch, umass appears stable.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Aug 24 11:28:50 2011 UTC (20 months, 3 weeks ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

Wrap the include "opt_umass.h" in #ifdef _KERNEL_OPT.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Aug 23 16:16:43 2011 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored)

defopt UMASS_DEBUG

Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (2 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.35: +12 -12 lines
Diff to previous 1.35 (colored)

Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera.  These files produce the same assembly
(according to objdump -d) before and after the change

Revision 1.35 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.34: +3 -4 lines
Diff to previous 1.34 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jan 11 11:06:08 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.33: +8 -8 lines
Diff to previous 1.33 (colored)

make this compile

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (4 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, 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, 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-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored)

Split device_t and softc for all USB device drivers, and related cosmetic
changes.

Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral.  I tested umass myself.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:00 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.31: +2 -9 lines
Diff to previous 1.31 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 24 14:44:26 2008 UTC (5 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

Split device_t and softc for atapibus(4).

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:49 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, 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, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs2
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:27 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, 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, itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, itohy-usb1
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

__unused removal on arguments; approved by core.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:00 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.27 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-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, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

merge ktrace-lwp.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 22 22:39:37 2005 UTC (7 years, 7 months ago) by nathanw
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, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

umass_scsipi_sense_cb(): don't set XS_STS_DONE in xs->xs_status;
scsipi_done() will do that.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 7 17:27:37 2005 UTC (7 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.24: +6 -30 lines
Diff to previous 1.24 (colored)

-tighten the autoconf constraints by passing the atapi/scsi attribute
 to config_found()
 (after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
-remove scsipiprint() -- the parts which make it differ from
 scsiprint()/atapiprint() were unreachable anyway

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 21 00:29:08 2005 UTC (8 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, 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, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored)

Part 1 of a cleanup pass over the SCSI subsystem.  The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:35 2005 UTC (8 years, 3 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base2, matt-timespec
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:42 2005 UTC (8 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:46 2004 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Sep 18 16:40:11 2004 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

change some members of struct buf from long to int.
ride on 2.0H.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 17 00:20:28 2003 UTC (9 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.18: +2 -27 lines
Diff to previous 1.18 (colored)

PQUIRK_NOSENSE is dead here.  Remove the code supporting it.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 16 23:39:40 2003 UTC (9 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +7 -5 lines
Diff to previous 1.17 (colored)

Set the REQUEST SENSE command length to 12 for ATAPI, too.  (UFI and ATAPI are
really the same...)

Fixes problems with Sony Vaio memory stick slots, which advertise themselves as
"ATAPI over CBI".

Remove the quirk for Fuji cameras, since this is almost certainly the same bug.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 13 01:47:55 2003 UTC (9 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.16: +2 -4 lines
Diff to previous 1.16 (colored)

dev/scsipi/atapi_disk.h is no more, and umass_scsipi.c compiles
fine w/o it.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Sep 13 03:16:49 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +5 -8 lines
Diff to previous 1.15 (colored)

Arrange for the SCSI device to be target 0, and us to be the highest target
number.  This will make my life easier later...

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 12 19:02:30 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Set SCSIPI_CHAN_NOSETTLE.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Sep 10 05:42:18 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Copyright maintenance.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 10 05:30:15 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Er, missed one thing.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 10 05:25:44 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -16 lines
Diff to previous 1.11 (colored)

Exorcise UMASS_QUIRK_FORCE_SHORT_INQUIRY.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 10 02:49:19 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +4 -12 lines
Diff to previous 1.10 (colored)

cc -pipe   -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Fix several problems with CCI handling, and enable it:
* We were never calling the callback function when we got a UFI CCI(!).
* We were passing a bogus residual count on non-UFI CCIs.
* After a REQUEST SENSE, the UFI CCI may include the ASC/ASCQ from the sense
  information -- don't consider this a failure.
In addition, remove a horrible hack that was causing us to drop sense
information on the floor and return empty INQUIRY responses, often in the case
where there is a UNIT ATTENTION pending during the INQUIRY.  (Some drives send
the data and then fail, some don't.)

This eliminates the need for quirks for the Y-E DATA FlashBuster.

These changes work on:

umass0: SAMSUNG SFD-321U [FW 0C], rev 1.10/2.10, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus1 drive 0: <SMSC, USB FDC, 2.10> disk removable

umass0: TEAC TEAC FD-05PUB, rev 1.10/0.00, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus0 drive 0: <TEAC, FD-05PUB, 1026> disk removable

umass0: Y-E DATA FlashBuster-U, rev 1.00/3.04, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus0 drive 0: <Y-E DATA, USB-FDU, 3.04> disk removable

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 8 19:31:00 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -9 lines
Diff to previous 1.9 (colored)

Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 16 23:14:08 2003 UTC (10 years, 3 months ago) by augustss
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.8: +10 -2 lines
Diff to previous 1.8 (colored)

Add a reference count to avoid detaching while the attach is still
waiting.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 21 20:56:57 2003 UTC (10 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)

Make sure to set xs->datalen when we force a short inquiry.  From kern/19971,
Shingo WATANABE.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:26 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:38 2002 UTC (10 years, 7 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:32 2002 UTC (10 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

Get rid of trailing white space.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 31 12:15:21 2001 UTC (11 years, 4 months ago) by augustss
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, netbsd-1-6, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa, kqueue, gehenna-devsw
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Make a typedef for struct proc to make portingeasier.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 29 13:52:21 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

Always set the PQUIRK_ONLYBIG quirk for SCSI devices.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 29 13:46:23 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.1: +4 -6 lines
Diff to previous 1.1 (colored)

Introduce a field, busquirks, in the umass quirk table that is passed
directly to the quirk field for the bus.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Dec 24 13:25:52 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN

Make the separation between wire protocol (umass.c) and command protocol
(umass_scsipi.c) more distinct.
It is now possible to add new command protocols with a minimum of change.
The umassbus.[ch] files have been renamed umass_scsipi.[ch] since this
reflects their purpose better.

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>