The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.141.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:08 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.141: +66 -70 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

sync with head

Revision 1.141.6.6 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:47 2012 UTC (2 months, 2 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141.6.5: +14 -14 lines
Diff to previous 1.141.6.5 (colored) to branchpoint 1.141 (colored) next main 1.142 (colored)

sync to -current

Revision 1.141.6.5 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:22 2012 UTC (2 months, 2 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141.6.4: +14 -14 lines
Diff to previous 1.141.6.4 (colored) to branchpoint 1.141 (colored)

sync to -current

Revision 1.144 / (download) - annotate - [select for diffs], Tue Mar 6 03:35:30 2012 UTC (2 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, HEAD
Changes since 1.143: +3 -3 lines
Diff to previous 1.143 (colored)

pull down from usbmp branch:

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

Revision 1.141.6.4 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:28 2012 UTC (2 months, 3 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141.6.3: +14 -14 lines
Diff to previous 1.141.6.3 (colored) to branchpoint 1.141 (colored)

sync to latest -current.

Revision 1.143 / (download) - annotate - [select for diffs], Sun Mar 4 00:21:20 2012 UTC (2 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base4
Changes since 1.142: +14 -14 lines
Diff to previous 1.142 (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.141.6.3 / (download) - annotate - [select for diffs], Sun Feb 26 08:02:36 2012 UTC (2 months, 4 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141.6.2: +3 -3 lines
Diff to previous 1.141.6.2 (colored) to branchpoint 1.141 (colored)

rename usb_detach_waitcv() to usb_detach_wait()

Revision 1.141.6.2 / (download) - annotate - [select for diffs], Sat Feb 25 20:49:17 2012 UTC (2 months, 4 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141.6.1: +12 -6 lines
Diff to previous 1.141.6.1 (colored) to branchpoint 1.141 (colored)

convert to using SMP usb_detach_wait/wakeup().

Revision 1.141.6.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:43 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141: +53 -57 lines
Diff to previous 1.141 (colored)

sync to -current.

Revision 1.142 / (download) - annotate - [select for diffs], Fri Feb 24 06:48:26 2012 UTC (3 months ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5, jmcneill-usbmp-base3
Changes since 1.141: +53 -57 lines
Diff to previous 1.141 (colored)

remove any remnants of freebsd/openbsd code.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Aug 24 11:28:50 2011 UTC (9 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6, 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, jmcneill-usbmp
Changes since 1.140: +4 -2 lines
Diff to previous 1.140 (colored)

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

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

defopt UMASS_DEBUG

Revision 1.139 / (download) - annotate - [select for diffs], Sun Jul 31 16:32:02 2011 UTC (9 months, 3 weeks ago) by jakllsch
Branch: MAIN
Changes since 1.138: +6 -4 lines
Diff to previous 1.138 (colored)

Restore original residue quirk proposed in PR#42225, it is necessary.

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:53 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.136: +5 -6 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

Sync with HEAD.

Revision 1.129.4.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:53 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.129.4.1: +13 -12 lines
Diff to previous 1.129.4.1 (colored) next main 1.129.4.2 (colored)

sync to netbsd-5

Revision 1.126.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:07 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.126.10.3: +21 -32 lines
Diff to previous 1.126.10.3 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

sync with head

Revision 1.129.4.2 / (download) - annotate - [select for diffs], Tue Mar 9 03:45:43 2010 UTC (2 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.129.4.1: +13 -12 lines
Diff to previous 1.129.4.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored)

Pull up following revision(s) (requested by is/martin):
	sys/dev/usb/usbdevs: revision 1.535
	sys/dev/usb/umass.c: revision 1.137
Add SuperTop and SuperTop IDE Bridge to usbdevs.
--
Max out the expected response size at the actual transfer length.
Fixes PR kern/42225.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Feb 13 02:16:51 2010 UTC (2 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, 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.137: +3 -3 lines
Diff to previous 1.137 (colored)

KNF

Revision 1.137 / (download) - annotate - [select for diffs], Sat Feb 13 02:09:41 2010 UTC (2 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.136: +5 -6 lines
Diff to previous 1.136 (colored)

Remove UMASS_QUIRK_IGNORE_RESIDUE, instead max out the expected response
size at the actual transfer length. Fixes PR kern/42225 differently.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Nov 12 19:58:27 2009 UTC (2 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Changes since 1.135: +4 -11 lines
Diff to previous 1.135 (colored)

Simplify activation hooks.  (sc_dying must die!)

Revision 1.135 / (download) - annotate - [select for diffs], Fri Oct 30 16:22:32 2009 UTC (2 years, 6 months ago) by is
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.134: +14 -12 lines
Diff to previous 1.134 (colored)

Quirk to regenerate residue for borken UMASS devices; needed (at least)
for Supertop IDE bridge. From Matthias Kretschmer, PR 42225.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Sep 23 19:07:19 2009 UTC (2 years, 8 months ago) by plunky
Branch: MAIN
Changes since 1.133: +6 -4 lines
Diff to previous 1.133 (colored)

fix up USB drivers printing of autoconf information

1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)

2. reorder the attach function so that the first thing it does is print
   newlines.

3. after this, we can call usbd_devinfo_alloc(), which polls the device
   allowing a context switch, and aprint_normal() the device information.

this avoids problems where autoconf messages are getting mixed up.

Revision 1.133 / (download) - annotate - [select for diffs], Wed Sep 16 22:44:19 2009 UTC (2 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.132: +7 -14 lines
Diff to previous 1.132 (colored)

Nothing else handles DVACT_ACTIVATE, so why should umass(4)? Get
rid of the DVACT_ACTIVATE case in umass_activate().  This eliminates
the only call to config_activate() in the entire tree.

Revision 1.126.10.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:58 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.126.10.2: +4 -5 lines
Diff to previous 1.126.10.2 (colored) to branchpoint 1.126 (colored)

sync with head

Revision 1.132 / (download) - annotate - [select for diffs], Sun Aug 23 19:03:18 2009 UTC (2 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.131: +4 -5 lines
Diff to previous 1.131 (colored)

Print devinfo on the same line as locators, and make the transfer mode
output aprint_verbose

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:35 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.130: +121 -99 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.126.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.126.10.1: +167 -140 lines
Diff to previous 1.126.10.1 (colored) to branchpoint 1.126 (colored)

sync with head.

Revision 1.129.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:39 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.129.2.1: +121 -99 lines
Diff to previous 1.129.2.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored)

Sync with HEAD.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 17 19:12:17 2009 UTC (3 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: 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-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.130: +121 -99 lines
Diff to previous 1.130 (colored)

Expand a lot of macros from sys/dev/usb/usb_port.h.

Handle child-detachment by NULL'ing the child pointer, so that
umass_detach() will not subsequently dereference the dangling
pointer.

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:09 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.129: +19 -11 lines
Diff to previous 1.129 (colored)

Sync with HEAD.

Revision 1.126.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:10 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.126.6.2: +17 -9 lines
Diff to previous 1.126.6.2 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with HEAD.

Revision 1.129.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 21:44:42 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.129: +19 -11 lines
Diff to previous 1.129 (colored)

Pull up following revision(s) (requested by jmorse in ticket #185):
	sys/dev/usb/usbdi.c: revision 1.125
	sys/dev/usb/umass.c: revision 1.130
	sys/dev/usb/usbdi.h: revision 1.77
PR#39651
Fix two problems in umass:
 * usb xfers being freed before being removed from pipe, leading to null
deref
 * config_activate requests not supported, which leads to
config_deactivate requests not being passed through. Spotted by jmcneill@=
Added mechanism to usbdi allowing the default pipe to be aborted

Revision 1.128.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:53 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.128.4.1: +19 -11 lines
Diff to previous 1.128.4.1 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Dec 12 05:35:11 2008 UTC (3 years, 5 months ago) by jmorse
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base
Branch point for: jym-xensuspend
Changes since 1.129: +19 -11 lines
Diff to previous 1.129 (colored)

PR#39651
Fix two problems in umass:
 * usb xfers being freed before being removed from pipe, leading to null deref
 * config_activate requests not supported, which leads to config_deactivate requests not being passed through. Spotted by jmcneill@

Added mechanism to usbdi allowing the default pipe to be aborted

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:10 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.128: +4 -3 lines
Diff to previous 1.128 (colored)

Sync with HEAD.

Revision 1.126.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:33 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.126.6.1: +2 -1 lines
Diff to previous 1.126.6.1 (colored) to branchpoint 1.126 (colored)

Sync with HEAD.

Revision 1.127.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:12 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.127.2.1: +4 -3 lines
Diff to previous 1.127.2.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.129 / (download) - annotate - [select for diffs], Sat Sep 6 21:49:00 2008 UTC (3 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, matt-mips64-base2, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.128: +4 -3 lines
Diff to previous 1.128 (colored)

PR/37948: Yojiro UO: Support for Sony GPS GPS-CS1 devices.  Check the support
of UR_BBB_GET_MAX_LUN, and disable the logic, if needed.

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:37 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.127: +30 -34 lines
Diff to previous 1.127 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.126.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:21 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.126.8.1: +30 -34 lines
Diff to previous 1.126.8.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

sync with head

Revision 1.126.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:55 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.126: +30 -41 lines
Diff to previous 1.126 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (4 years ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.127: +30 -34 lines
Diff to previous 1.127 (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.126.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:51 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.126: +2 -9 lines
Diff to previous 1.126 (colored)

sync with head.

Revision 1.126.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:10 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.126: +2 -9 lines
Diff to previous 1.126 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:00 2008 UTC (4 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.126: +2 -9 lines
Diff to previous 1.126 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.124.12.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.124.12.1: +3 -3 lines
Diff to previous 1.124.12.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

sync with HEAD

Revision 1.124.18.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

Sync with HEAD.

Revision 1.119.2.4 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:40 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.3: +3 -3 lines
Diff to previous 1.119.2.3 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

sync with head.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:37 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Jan 21 12:11:21 2008 UTC (4 years, 4 months ago) by ichiro
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, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored)

change umass quirks logic in USB_MATCH()

PR/37687 from Yojiro UO

Revision 1.119.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:47 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.2: +7 -2 lines
Diff to previous 1.119.2.2 (colored) to branchpoint 1.119 (colored)

sync with head

Revision 1.124.12.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:44 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.124: +7 -2 lines
Diff to previous 1.124 (colored)

sync with HEAD

Revision 1.124.20.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:26 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.124: +7 -2 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

Sync with head.

Revision 1.124.22.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:40:04 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.124: +7 -2 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:24 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-merge1, bouyer-xeni386-base
Branch point for: bouyer-xeni386
Changes since 1.124: +7 -2 lines
Diff to previous 1.124 (colored)

Merge jmcneill-pm branch.

Revision 1.124.10.2 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:37 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.124.10.1: +4 -4 lines
Diff to previous 1.124.10.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.124.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:34 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.124: +7 -2 lines
Diff to previous 1.124 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:17 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.1: +12 -20 lines
Diff to previous 1.119.2.1 (colored) to branchpoint 1.119 (colored)

sync with head.

Revision 1.123.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:42 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.123: +12 -20 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with head.

Revision 1.123.10.2 / (download) - annotate - [select for diffs], Mon Jun 18 13:55:29 2007 UTC (4 years, 11 months ago) by itohy
Branch: itohy-usb1
Changes since 1.123.10.1: +63 -6 lines
Diff to previous 1.123.10.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored)

Pullup 1.124 (attach driver per interface) with #ifdef USB_USE_IFATTACH.

Revision 1.123.10.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:43 2007 UTC (5 years ago) by itohy
Branch: itohy-usb1
Changes since 1.123: +144 -65 lines
Diff to previous 1.123 (colored)

Overhaul of USB stack, mostly DMA related

This applies to NetBSD 4.99.13 (March 1, 2007)

usbdi(9) interface is based on FreeBSD version, excluding
 - removal of portability code

Patch most NetBSD changes, excluding
 - DMA memory "reserve", since we don't need contiguous buffers any longer
 - volatiles in DMA structure, since it should not be needed
   with proper bus_dmamap_sync(9)s

DMA/non-DMA memory management overhaul
 - Move all DMA related code to usb_mem.[ch]
   (add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
   XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
 - Add corresponding non-DMA code to usb_mem_nodma.[ch] .
   Currently just use malloc(9).
 - Above files are conditionally used by config framework (added
   attributes to conf/files and dev/usb/files.usb).
 - Add diagnostic panics when resource allocation is requested
   on interrupt context.
 - Change memory allocations (that require context) from NOWAIT to WAITOK.

Allocate DMA/non-DMA buffer per host interface, not globally.
 advantage:	Buffers can be freed on detaching host interface.
		Activity of a host interface does not affect others.
 disadvantages:	It possibly consumes more memory.

API changes
 - usbd_alloc_xfer() is changed:
    old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
    new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
		usbd_pipe_handle pipe);
 - pipe argument of usbd_setup_*xfer() are now unused
   XXX the pipe argument should be removed?
 - add mapping APIs
 - async request will be processed as a task (kernel thread context),
   and delayed to some extent
 - usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
   (mapped/allocated/refered buffer for HCI driver)
 - usb_port.h: change usb_proc_ptr from  struct ptoc *  to struct lwp *
 - usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
 - usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0

changes to USB device drivers
 - atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
   uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
   uscanner, ustir, utoppy:
    * catch up API change of usbd_alloc_xfer()
 - umass, usscanner:
    * catch up API change of usbd_alloc_xfer()
    * eliminate memory copy for large transfer

ohci
 - free resources on detach
 - add lots of bus_dmamap_sync() operations
 - simplify the code of loading std chain
 - rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
 - add workaround for CMD Tech 670 and 673 chipsets
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

slhci
 - allocate xfer and slhci_xfer at once, and simplify relevant code
 - add slhci_detach()
 - remove second arg of slhci_attach() since it is the same as the first arg.
 - add support for "mapping" (no, it doesn't map since it doesn't do DMA)
   buffer and mbuf
 - add pcmcia frontend
 - NOT TESTED, missing hardware

ehci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf
 - done only simple test

uhci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

To do
 - review, test, debug
 - rewrite network drivers to utilize usbd_map_buffer_mbuf()
 - rewrite uaudio(4) to eliminate memcpy
 - "pipe" argument of usbd_setup_*xfer() should eventually be removed

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:51 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.123: +12 -20 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

sync with head.

Revision 1.123.6.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:55 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.123: +12 -20 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:56 2007 UTC (5 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.123: +12 -20 lines
Diff to previous 1.123 (colored)

Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:46 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119: +8 -2 lines
Diff to previous 1.119 (colored)

sync with head.

Revision 1.120.20.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:49 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.120.20.1: +8 -2 lines
Diff to previous 1.120.20.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

Sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Jan 9 16:46:02 2007 UTC (5 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.122: +8 -2 lines
Diff to previous 1.122 (colored)

PR/35385: Mihai Chelaru: Add a quirk for the Sony Cybershot USB camera, which
needs padding to 12.

Revision 1.120.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.120.22.1: +3 -3 lines
Diff to previous 1.120.22.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

sync with head.

Revision 1.120.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:51 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

Sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:27 2006 UTC (5 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, 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
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored)

__unused removal on arguments; approved by core.

Revision 1.120.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:52 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

sync with head

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

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

Revision 1.120 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (6 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.119: +2 -2 lines
Diff to previous 1.119 (colored)

merge ktrace-lwp.

Revision 1.96.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:06 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.96.2.4: +7 -7 lines
Diff to previous 1.96.2.4 (colored) next main 1.97 (colored)

Sync with HEAD. Here we go again...

Revision 1.119 / (download) - annotate - [select for diffs], Tue May 31 19:26:22 2005 UTC (6 years, 11 months ago) by drochner
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
Branch point for: yamt-lazymbuf
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

cast-qual fallout

Revision 1.118 / (download) - annotate - [select for diffs], Wed May 11 10:02:28 2005 UTC (7 years ago) by augustss
Branch: MAIN
Changes since 1.117: +6 -6 lines
Diff to previous 1.117 (colored)

Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.

Revision 1.96.2.4 / (download) - annotate - [select for diffs], Mon Jan 17 19:31:53 2005 UTC (7 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.96.2.3: +3 -5 lines
Diff to previous 1.96.2.3 (colored)

Sync with HEAD.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Dec 28 23:35:21 2004 UTC (7 years, 4 months ago) by nathanw
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge
Changes since 1.116: +3 -5 lines
Diff to previous 1.116 (colored)

USB_DETACH(): Don't zero out sc->sc_pipe[i] after aborting the
pipe. This lets umass_disco() free the pipes and associated controller
state, rather than leaking 2-3 pipes per attach/detach cycle.

Revision 1.96.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:47 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.96.2.2: +2 -2 lines
Diff to previous 1.96.2.2 (colored)

Fix the sync with head I botched.

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:46 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.96.2.1: +0 -0 lines
Diff to previous 1.96.2.1 (colored)

Sync with HEAD.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:37 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.96: +190 -117 lines
Diff to previous 1.96 (colored)

Sync with HEAD

Revision 1.109.2.3 / (download) - annotate - [select for diffs], Sat Jul 10 13:45:19 2004 UTC (7 years, 10 months ago) by tron
Branch: netbsd-2-0
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-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
Changes since 1.109.2.2: +3 -3 lines
Diff to previous 1.109.2.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Pull up revision 1.112 (requested by mycroft in ticket #631):
Fix a printf() error.

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Fri Jul 2 22:23:54 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.109.2.1: +5 -2 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored)

Pull up revision 1.116 (requested by mycroft in ticket #582):
  When starting a bulk-only transfer, punt early if the device
  is going away.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Fri Jul 2 17:19:52 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.109: +18 -10 lines
Diff to previous 1.109 (colored)

Pull up revisions 1.113-1.115 (requested by mycroft in ticket #572):
  Several fixes mostly related to USB:
   o Use STATUS_CMD_FAILED instead of STATUS_WIRE_FAILED in
     response to a CBI stall, so that we do a REQUEST SENSE
     thereafter.  Fixes PR#22960.
   o Fix usage of incorrect buffer in CBI, possibly causing
     general failure to transfer data correctly.  Fixes
     PR#25676.
   o Do not do a CBI resset before returning STATUS_CMD_FAILED.
     This causes any sense information to be thrown away.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jun 30 05:53:46 2004 UTC (7 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.115: +5 -2 lines
Diff to previous 1.115 (colored)

When starting a bulk-only transfer, punt early if the device is going away.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jun 26 02:17:00 2004 UTC (7 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.114: +12 -6 lines
Diff to previous 1.114 (colored)

Do not do a CBI reset before returning STATUS_CMD_FAILED.  This causes any
sense information to be thrown away, and is therefore nonsensical.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jun 25 14:14:34 2004 UTC (7 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.113: +4 -4 lines
Diff to previous 1.113 (colored)

Fix usage of incorrect buffer in CBI, possibly causing general failure to
transfer data correctly.  See PR 25676.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jun 25 14:07:27 2004 UTC (7 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.112: +10 -8 lines
Diff to previous 1.112 (colored)

Do not return STATUS_WIRE_FAILED in response to a CBI stall.  This is perfectly
normal, and is used to report errors.  Instead, use STATUS_CMD_FAILED, which
causes us to do a REQUEST SENSE.  Should address PR 22960.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Jun 22 12:21:04 2004 UTC (7 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

Fix a printf() error.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:25 2004 UTC (8 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.110 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:13 2004 UTC (8 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.109: +6 -5 lines
Diff to previous 1.109 (colored)

sprintf -> snprintf

Revision 1.109 / (download) - annotate - [select for diffs], Thu Dec 4 13:57:31 2003 UTC (8 years, 5 months ago) by keihan
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

netbsd.org -> NetBSD.org

This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 7 17:03:25 2003 UTC (8 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

URL updates, from Jared Yanovich and jmc@openbsd, forwarded by the latter.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Oct 28 23:37:59 2003 UTC (8 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.106: +3 -7 lines
Diff to previous 1.106 (colored)

The "bad status" case is impossible -- the switch value is constrained to 2
bits -- so just add the default case to the one that returns
STATUS_WIRE_FAILED.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Oct 25 18:28:31 2003 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.105: +7 -2 lines
Diff to previous 1.105 (colored)

Fix uninitialized variable warnings.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Sep 29 20:04:25 2003 UTC (8 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.104: +24 -17 lines
Diff to previous 1.104 (colored)

The umass attach can fail in many ways.  Print a message about why it
failed instead of just being silent about it.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Sep 13 03:18:13 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.103: +11 -11 lines
Diff to previous 1.103 (colored)

Do the quirk initialization earlier.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Sep 10 06:38:28 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.102: +47 -40 lines
Diff to previous 1.102 (colored)

Mostly stylistic change, making comments and printf()s similar between BBB
and CBI.

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

Copyright maintenance.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Sep 10 05:20:21 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.100: +4 -3 lines
Diff to previous 1.100 (colored)

On a Bulk-In data stall, make sure we copy back the data received, per the
spec.  This is the real problem behind FORCE_SHORT_INQUIRY.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Sep 10 02:49:18 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.99: +44 -41 lines
Diff to previous 1.99 (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.99 / (download) - annotate - [select for diffs], Mon Sep 8 19:57:32 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.98: +7 -2 lines
Diff to previous 1.98 (colored)

If maxlun>0, automatically set PQUIRK_FORCELUNS, rather than using quirk
table entries.

Revision 1.98 / (download) - annotate - [select for diffs], Mon Sep 8 19:30:59 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.97: +3 -4 lines
Diff to previous 1.97 (colored)

Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Sep 4 00:02:59 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.96: +4 -3 lines
Diff to previous 1.96 (colored)

Well, this is bloody obscure...
My Imation USB FlashGO! adapter responds to a Get Max Lun request with a
stall.  With uhci, this does the expected thing.  With ohci, it was returning
a "data underrun" error because we weren't setting "buffer rounding" (i.e.
USBD_SHORT_XFER_OK), and the underrun was taking priority.  This happened with
both the ohci in a Mac cube and the builtin ohci on the S3C2410.

So, set USBD_SHORT_XFER_OK on the Get Max Lun.  Now I get a stall reported and
umass attaches correctly.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Apr 26 12:46:59 2003 UTC (9 years, 1 month ago) by dsainty
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.95: +5 -4 lines
Diff to previous 1.95 (colored)

Use the correct bus name in "bus not configured" errors for SCSI and ATAPI

Revision 1.95 / (download) - annotate - [select for diffs], Sun Feb 16 23:14:06 2003 UTC (9 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored)

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

Revision 1.52.2.13 / (download) - annotate - [select for diffs], Tue Jan 7 21:35:00 2003 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.52.2.12: +6 -6 lines
Diff to previous 1.52.2.12 (colored) next main 1.53 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jan 6 12:46:11 2003 UTC (9 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.93: +6 -6 lines
Diff to previous 1.93 (colored)

successful with only one l.

Revision 1.87.6.2 / (download) - annotate - [select for diffs], Sun Jan 5 08:25:42 2003 UTC (9 years, 4 months ago) by jmc
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.87.6.1: +1 -1 lines
Diff to previous 1.87.6.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Pull up revisions 1.91-1.92 (requested by tron in ticket #1055)
 Use NULL instead of 0 in pointer checks.

Revision 1.52.2.12 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:18 2003 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.52.2.11: +5 -3 lines
Diff to previous 1.52.2.11 (colored)

Sync with HEAD.

Revision 1.87.6.1 / (download) - annotate - [select for diffs], Thu Jan 2 08:34:10 2003 UTC (9 years, 4 months ago) by tron
Branch: netbsd-1-6
Changes since 1.87: +5 -3 lines
Diff to previous 1.87 (colored)

Pull up revision 1.93 (requested by toshii in ticket #1054):
Assign NULL to sc_pipe after closing, so that usbd_close_pipe isn't
called twice.  At least in NetBSD, the detach function is called when the
device is removed, even if the attach function has failed.
This is probably the cause of panics reported in kern/19326.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Jan 1 15:55:48 2003 UTC (9 years, 4 months ago) by toshii
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.92: +5 -3 lines
Diff to previous 1.92 (colored)

Assign NULL to sc_pipe after closing, so that usbd_close_pipe isn't
called twice.  At least in NetBSD, the detach function is called when the
device is removed, even if the attach function has failed.
This is probably the cause of panics reported in kern/19326.

Revision 1.52.2.11 / (download) - annotate - [select for diffs], Thu Dec 19 00:48:19 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.52.2.10: +3 -3 lines
Diff to previous 1.52.2.10 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Dec 18 14:12:33 2002 UTC (9 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

Use "NULL" instead of "0" in pointer checks.

Revision 1.52.2.10 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:52 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.52.2.9: +4 -0 lines
Diff to previous 1.52.2.9 (colored)

Sync with HEAD.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Dec 6 03:57:51 2002 UTC (9 years, 5 months ago) by erh
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.90: +6 -2 lines
Diff to previous 1.90 (colored)

kern/12837: Provide a way to get working devices that violate the usb spec by
returning a non-matching CSW tag.
Defined a quirk for this and set it for Scanlogic SL11R, which gets my
NEO Jukebox working.

Revision 1.52.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:55 2002 UTC (9 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.8: +1 -1 lines
Diff to previous 1.52.2.8 (colored)

Catch up to -current

Revision 1.90 / (download) - annotate - [select for diffs], Mon Nov 4 19:17:33 2002 UTC (9 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

we don't own Jason, even if we'd like to

(fix typo in comment, in case you're wondering ;)

Revision 1.52.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:35 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.7: +3 -3 lines
Diff to previous 1.52.2.7 (colored)

Catch up to -current.

Revision 1.62.2.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:40 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.62.2.4: +5 -5 lines
Diff to previous 1.62.2.4 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.89 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:37 2002 UTC (9 years, 8 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.88: +5 -5 lines
Diff to previous 1.88 (colored)

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

Revision 1.62.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:01 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.62.2.3: +20 -20 lines
Diff to previous 1.62.2.3 (colored) to branchpoint 1.62 (colored)

sync kqueue branch with HEAD

Revision 1.52.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:00 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.6: +18 -18 lines
Diff to previous 1.52.2.6 (colored)

Catch up to -current.

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:10 2002 UTC (9 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.87: +20 -20 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

catch up with -current.

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

Get rid of trailing white space.

Revision 1.62.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:09 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.62.2.2: +4 -4 lines
Diff to previous 1.62.2.2 (colored) to branchpoint 1.62 (colored)

catch up with -current on kqueue branch

Revision 1.52.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:36 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.5: +4 -4 lines
Diff to previous 1.52.2.5 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.87 / (download) - annotate - [select for diffs], Sun Mar 17 18:02:53 2002 UTC (10 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Whitespace fixes.

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:38 2002 UTC (10 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.62.2.1: +4 -3 lines
Diff to previous 1.62.2.1 (colored) to branchpoint 1.62 (colored)

Catch up with -current.

Revision 1.52.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:32 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.4: +4 -3 lines
Diff to previous 1.52.2.4 (colored)

Catch up to -current.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Feb 7 13:52:54 2002 UTC (10 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll
Changes since 1.85: +4 -3 lines
Diff to previous 1.85 (colored)

Add quirk for devices without Get Max Lun.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:00 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.62: +388 -466 lines
Diff to previous 1.62 (colored)

Sync kqueue branch with -current.

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:12 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.3: +384 -467 lines
Diff to previous 1.52.2.3 (colored)

Catch up to -current.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Dec 31 15:54:27 2001 UTC (10 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Dump enpoint number instead of endpoint index.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Dec 31 12:52:50 2001 UTC (10 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

Don't try to deactivate child if we have no bus yet.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Dec 31 12:15:46 2001 UTC (10 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.82: +7 -5 lines
Diff to previous 1.82 (colored)

Dump more of the command.

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

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

Revision 1.81 / (download) - annotate - [select for diffs], Mon Dec 24 19:24:33 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.80: +2 -17 lines
Diff to previous 1.80 (colored)

Get rid of the transfer_speed nonsense to calculate the timeout.
We get passed a timeout from the upper layer which is what matters.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Dec 24 13:43:24 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.79: +13 -0 lines
Diff to previous 1.79 (colored)

Add a preliminary version of a driver for In-System Designs non-standard
ATA-over-BulkOnly protocol.  The ISD chip can be found, e.g., in the
Archos MP3 player.
The driver still lacks real error handling.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Dec 24 13:25:52 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.78: +71 -10 lines
Diff to previous 1.78 (colored)

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.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Dec 17 12:16:14 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.77: +186 -335 lines
Diff to previous 1.77 (colored)

Introduce the new umass quirk table.

Discussed with augustss.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Dec 15 00:26:14 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.76: +13 -2 lines
Diff to previous 1.76 (colored)

Add a hack for ScanLogic SL11R IDE adapter.  From FreeBSD.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 14 08:58:49 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.75: +15 -15 lines
Diff to previous 1.75 (colored)

Stylistic changes

Revision 1.75 / (download) - annotate - [select for diffs], Fri Dec 14 08:46:19 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.74: +32 -31 lines
Diff to previous 1.74 (colored)

Define a new structure to store wire specific control methods.
The basic BBB/CBI functions are stored as members of constant structure.
When attached device, softc holds one of that constant structures.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Dec 14 06:21:56 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.73: +10 -26 lines
Diff to previous 1.73 (colored)

Use device handle and interface number which are stored in softc.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Dec 14 05:58:13 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.72: +57 -68 lines
Diff to previous 1.72 (colored)

Change style to store endpoint addresses and pipes.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Dec 12 15:23:58 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.71: +2 -4 lines
Diff to previous 1.71 (colored)

Move usbd_clear_endpoint_toggle() prototype to usbdi.h.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Dec 12 14:24:53 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

Use vendor/product variables

Revision 1.70 / (download) - annotate - [select for diffs], Wed Dec 12 13:23:20 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.69: +16 -19 lines
Diff to previous 1.69 (colored)

Don't change wire protocol state in umass generic function

Revision 1.69 / (download) - annotate - [select for diffs], Wed Dec 12 13:17:03 2001 UTC (10 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

bcopy -> memcpy

Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 25 19:15:46 2001 UTC (10 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.67: +16 -2 lines
Diff to previous 1.67 (colored)

Add a quirk for Olympus C-1.  From FreeBSD (by iedowse)

Revision 1.67 / (download) - annotate - [select for diffs], Sun Nov 25 19:05:22 2001 UTC (10 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.66: +20 -14 lines
Diff to previous 1.66 (colored)

Pay attention to the timeout value passed down by the scsipi layer.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Nov 23 01:15:28 2001 UTC (10 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.65: +20 -17 lines
Diff to previous 1.65 (colored)

Handle Zip quirks differently.
Ugh!  This driver need major overhaul.

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:18 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.2: +9 -4 lines
Diff to previous 1.52.2.2 (colored)

Catch up to -current.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Nov 13 08:01:40 2001 UTC (10 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored)

Remove trailing `b' in some numbers for lengths.  It just makes them look
like hex.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:55 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.63: +4 -1 lines
Diff to previous 1.63 (colored)

add RCSIDs

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:32 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.62: +4 -2 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Oct 25 22:43:24 2001 UTC (10 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.62: +4 -2 lines
Diff to previous 1.62 (colored)

Better debug messages.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 12:03:15 2001 UTC (10 years, 7 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.38.2.2: +2 -2 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Apply patch (requested by wiz):
  Minor coding fix in preprocessor directive.  Fixes PR#13763.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:22 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.52.2.1: +53 -1715 lines
Diff to previous 1.52.2.1 (colored)

Catch up to -current.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 4 06:01:40 2001 UTC (10 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

Remove overly paranoid test (and not in the spec either).  From OpenBSD.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Apr 26 03:59:32 2001 UTC (11 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

s/\<PROTO_ATAPI/C&/

Revision 1.21.2.14 / (download) - annotate - [select for diffs], Sat Apr 21 17:50:01 2001 UTC (11 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.13: +80 -1817 lines
Diff to previous 1.21.2.13 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Thu Apr 19 00:50:22 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.59: +1 -99 lines
Diff to previous 1.59 (colored)

Remove stuff I didn't mean to commit yet.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Apr 19 00:47:49 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.58: +98 -4 lines
Diff to previous 1.58 (colored)

Add HP 3400.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 17 00:50:13 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.57: +46 -37 lines
Diff to previous 1.57 (colored)

Clean up formatting a little.
Split protocol variable into wire and command protocols.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Apr 13 12:51:43 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

Make it link with debug flag.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Apr 13 12:24:10 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.55: +6 -1676 lines
Diff to previous 1.55 (colored)

Split the umass driver into the part that handles the X-over-USB protocol
(umass.c) and the part that handles scsibus/atapibus (umassbus.c).
This way the must port specific stuff can be removed from umass.c.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:36 2001 UTC (11 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.52: +38 -101 lines
Diff to previous 1.52 (colored)

Catch up with -current.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Apr 1 19:04:52 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.54: +6 -3 lines
Diff to previous 1.54 (colored)

Make the ZiO! MMC adapter work.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Apr 1 14:41:39 2001 UTC (11 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.53: +33 -98 lines
Diff to previous 1.53 (colored)

Change handling of the UFI protocol so it goes through atapibus instead
of scsibus.  This removes a whole bunch of specioal cases for UFI.
All this great simplification comes from Brett McCoy <bmccoy@genuity.net>.

Revision 1.21.2.13 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:18 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.12: +1 -2 lines
Diff to previous 1.21.2.12 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 23 14:11:39 2001 UTC (11 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored)

Remove a debugging printf.

Revision 1.21.2.12 / (download) - annotate - [select for diffs], Fri Mar 23 11:32:16 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.11: +1 -9 lines
Diff to previous 1.21.2.11 (colored) to branchpoint 1.21 (colored)

Make compile again.

Revision 1.21.2.11 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:28 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.10: +2 -2 lines
Diff to previous 1.21.2.10 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Feb 24 00:03:46 2001 UTC (11 years, 3 months ago) by cgd
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

"#else if" is not a valid CPP directive.  Use "#elif".

Revision 1.21.2.10 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:26 2001 UTC (11 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.9: +49 -18 lines
Diff to previous 1.21.2.9 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Feb 8 13:24:05 2001 UTC (11 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.50: +12 -12 lines
Diff to previous 1.50 (colored)

Fix INSYSTEM_USBCALBLE quirk entry:
- Make sure to pass iface properly to usbd_set_interface().
- Call usbd_set_interface before calling usbd_get_interface_descriptor().

It seems no one have tested this device. Anyway, my In-System ISD110
USB-IDE adapter does not work in this way..

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jan 23 14:04:13 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

Make sure driver attach/detach events are generated in a consistent manner.

Revision 1.21.2.9 / (download) - annotate - [select for diffs], Mon Jan 22 17:58:14 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.8: +1 -2 lines
Diff to previous 1.21.2.8 (colored) to branchpoint 1.21 (colored)

we don't need ACAP_LEN here

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jan 21 18:56:38 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.48: +32 -4 lines
Diff to previous 1.48 (colored)

Add a quirk for devices that cannot handle full length INQUIRY.
From FreeBSD.

Revision 1.21.2.8 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:39 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.7: +13 -10 lines
Diff to previous 1.21.2.7 (colored) to branchpoint 1.21 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.21.2.7 / (download) - annotate - [select for diffs], Mon Jan 15 09:27:45 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.6: +1 -7 lines
Diff to previous 1.21.2.6 (colored) to branchpoint 1.21 (colored)

req_sense_length is dead.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 6 12:14:39 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.47: +15 -12 lines
Diff to previous 1.47 (colored)

Change debugging output a little.
Don't the for the wrong id when UMASS_DEBUG is set.

Revision 1.21.2.6 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:32 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.5: +10 -6 lines
Diff to previous 1.21.2.5 (colored) to branchpoint 1.21 (colored)

Sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Fri Dec 29 01:24:57 2000 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.46: +6 -4 lines
Diff to previous 1.46 (colored)

Update many URLs.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Dec 18 19:57:47 2000 UTC (11 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.45: +6 -5 lines
Diff to previous 1.45 (colored)

Don't use atapi_print since if there are no wdc's, it won't be present.

Revision 1.21.2.5 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:15 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.4: +7 -0 lines
Diff to previous 1.21.2.4 (colored) to branchpoint 1.21 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 8 02:33:44 2000 UTC (11 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.44: +8 -1 lines
Diff to previous 1.44 (colored)

Add a DIAGNOSTIC message.

Revision 1.21.2.4 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:05 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.3: +16 -10 lines
Diff to previous 1.21.2.3 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:28 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.21.2.2: +3224 -615 lines
Diff to previous 1.21.2.2 (colored) to branchpoint 1.21 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 4 15:54:36 2000 UTC (11 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.43: +16 -10 lines
Diff to previous 1.43 (colored)

Add quirks for a Fuji camera.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Wed Oct 4 02:38:55 2000 UTC (11 years, 7 months ago) by augustss
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.38.2.1: +4 -1 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Pull up 1.42-1.43 from trunk.  Avoids finding two disk when there is
only one.
Approved by thorpej.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Oct 3 04:33:03 2000 UTC (11 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored)

Only probe for drive 0.  Fix es problem reported by Nathan Williams
<nathanw@MIT.EDU>.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Sep 23 21:03:00 2000 UTC (11 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.41: +38 -12 lines
Diff to previous 1.41 (colored)

Recognize Sony memory sticks (from FreeBSD).
Add timing info in the debug output.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Aug 17 23:16:16 2000 UTC (11 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.40: +23 -3 lines
Diff to previous 1.40 (colored)

From FreeBSD: add code for Insystem USB cable.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 12 14:52:44 2000 UTC (11 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.39: +29 -7 lines
Diff to previous 1.39 (colored)

Make attach message correct for non-umass devices.
Handle RBC (a SCSI subset).

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 01:14:08 2000 UTC (11 years, 10 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Pull up rev. 1.39 (augustss):
Fix reversed test which caused umass detach failure.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 6 07:11:18 2000 UTC (11 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Fix reversed test in umass_activate().  Probably fixes PR 10520.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:39 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.34: +214 -119 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 1 14:29:00 2000 UTC (11 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.37: +91 -110 lines
Diff to previous 1.37 (colored)

Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.37 / (download) - annotate - [select for diffs], Wed May 31 16:13:31 2000 UTC (11 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.36: +9 -9 lines
Diff to previous 1.36 (colored)

Rename a define.

Revision 1.36 / (download) - annotate - [select for diffs], Wed May 31 09:17:13 2000 UTC (11 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.35: +37 -1 lines
Diff to previous 1.35 (colored)

Implement the scsipi_getgeom method and guess the geometry of floppies
based on the number of sectors.

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 30 01:12:51 2000 UTC (11 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.34: +90 -12 lines
Diff to previous 1.34 (colored)

Massage the SCSI commands when using the UFI protocol in a better way.
Now the Y-E Data Flashbuster floppy seems to work.

Thanks to Y-E Data for giving one to the project when I couldn't find
one easily.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 28 21:34:05 2000 UTC (12 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.33: +9 -1 lines
Diff to previous 1.33 (colored)

Don't request sense after INQUIRY.  From FreeBSD & OpenBSD.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 6 13:52:04 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.32: +10 -3 lines
Diff to previous 1.32 (colored)

Add another #if NATAPIBUS > 0 in case there is no atapibus attached.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Apr 4 20:16:47 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.31: +30 -20 lines
Diff to previous 1.31 (colored)

Make protocol message more accurate.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 3 12:31:34 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Enable QIC157 command set.  Untested.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 3 12:12:38 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.29: +18 -6 lines
Diff to previous 1.29 (colored)

Enable UFI protocol.  Still untested in NetBSD.  Used by, e.g., Y-E Data
floppies.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 3 03:56:49 2000 UTC (12 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.28: +13 -1 lines
Diff to previous 1.28 (colored)

Make this file compiles under some condition:
- #if 0'ed out the umass_reset for now.
- some atapibus specific code is conditionalized by NATAPIBUS.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 2 23:46:53 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.27: +2990 -619 lines
Diff to previous 1.27 (colored)

New and shiny version of the umass driver.  This is a port of the new
FreeBSD umass driver by Nick Hibma <n_hibma@freebsd.org> and
MAEKAWA Masahide <bishop@rr.iij4u.or.jp>.
Improvements:
  uses asynchronous USB requests
  supports more transport protocols (Bulk-only and CBI)
  supports more command sets (SCSI and ATAPI)
Tested with Zip100 and Imation Superdisk.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 29 18:30:46 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Fix a buglet.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Mar 24 22:16:42 2000 UTC (12 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Rename bulk only protocol (following FreeBSD).

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 29 21:37:01 2000 UTC (12 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.24: +14 -14 lines
Diff to previous 1.24 (colored)

Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.24 / (download) - annotate - [select for diffs], Wed Feb 2 13:18:47 2000 UTC (12 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.23: +9 -1 lines
Diff to previous 1.23 (colored)

Generate usb events on attach and detach.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:43 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.20: +20 -24 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up to last week's -current.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 17 23:00:50 1999 UTC (12 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

A few more purely stylistic changes that I missed in the last round.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:37 1999 UTC (12 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.21: +18 -19 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with -current

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:58 1999 UTC (12 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.21: +18 -19 lines
Diff to previous 1.21 (colored)

A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Tue Oct 26 23:10:19 1999 UTC (12 years, 7 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.21.2.1: +1 -2 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored)

Update for:

  Deal a little more gracefully with the fact that xfer mode parameters
  are for the I_T Nexus, and make all xfer mode updates `async events'.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:54:52 1999 UTC (12 years, 7 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.21: +129 -120 lines
Diff to previous 1.21 (colored)

Adapt to scsipi API changes.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Oct 13 08:10:57 1999 UTC (12 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.20: +3 -6 lines
Diff to previous 1.20 (colored)

Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
the USB stack compiles on FreeBSD again.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Sep 30 23:13:41 1999 UTC (12 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored)

Update for SCSIPI changes.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 16 21:53:58 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

Make defines follow the standard.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 13 21:35:08 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.17: +49 -15 lines
Diff to previous 1.17 (colored)

Put a reference counter in the softc.  Without this the driver might access
data that has been freed because the detach() routine returns to early.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 12 02:40:59 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +37 -4 lines
Diff to previous 1.16 (colored)

Display more verbose information about the command protocol and wire
protocol used by the device, e.g.:

umass0 at uhub0 port 1 configuration 1 interface 0
umass0: Iomega USB Zip 100, rev 1.00/1.00, addr 2
umass0: SCSI over Bulk-Only (iclass 8/6/80)

Revision 1.16 / (download) - annotate - [select for diffs], Sat Sep 11 21:45:28 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

Hot-unplug works now.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 11 20:52:07 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +79 -29 lines
Diff to previous 1.14 (colored)

- If a command fails, assume the device returned CHECK CONDITION status,
  and issue a REQUEST SENSE.  This fixes the media change problems I was
  having w/ my USB ZIP drive.
- Clean up some debugging code.
- Implement more hot-unplug stuff.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 9 17:12:03 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (colored)

Update doc URLs and fix a typo in umass_bulk_get_max_lun().

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 9 12:26:46 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

Change the internal API to allow DMA buffers to be pre-allocated by
the device driver instead of happening automagically in the HC driver.
This affects both the HC-USBD interface as well as the USBD-device
interface.
This change will allow DMA buffers to be reused e.g. in isochronous
traffic.

Add isochronous support to the UHCI driver (not for OHCI yet).

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 5 19:32:19 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable.  Idea from Nick Hibma, FreeBSD.
No functional changes.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 4 22:26:12 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers.  From Nick Hibma, FreeBSD.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 30 01:05:08 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored)

Oops, back out stuff I didn't mean to commit.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 30 01:04:31 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +49 -21 lines
Diff to previous 1.8 (colored)

Add detach goo; still needs work in the `scsibus' and further layers.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 29 20:41:12 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Set openings to 1; only one command may be queued with the device at
a time.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 29 19:58:55 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +96 -3 lines
Diff to previous 1.6 (colored)

Issue a Get Max Lun request to determine the max lun.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 29 18:58:03 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

One more TODO item; sub-classes other than SCSI.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 29 18:57:15 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Correct typo in URL.  From Bill Sommerfeld.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 29 18:56:24 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +3 -6 lines
Diff to previous 1.3 (colored)

Update the match routine to reflect that the driver actually matches
"Mass Storage/SCSI/Bulk".

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 29 18:13:26 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +13 -4 lines
Diff to previous 1.2 (colored)

Update documentation references.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 29 17:34:11 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored)

Note a few TODO items.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 29 00:30:08 1999 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN

Port the FreeBSD `umass' driver to NetBSD.  This is still a work-in-progress
since a few things don't yet work properly:
- Sense data isn't reported properly (err, at all).
- It doesn't work with anything other than the Iomega USB Zip drive.
- Hot-unplug doesn't work yet.

...but this is enough to make my shiny new USB Zip drive go.

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>