The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.89 / (download) - annotate - [select for diffs], Fri Jul 1 01:08:06 2022 UTC (6 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.88: +11 -12 lines
Diff to previous 1.88 (colored)

umidi(4): Clarify loops.  No functional change intended.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jun 27 18:56:56 2022 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.87: +4 -3 lines
Diff to previous 1.87 (colored)

umidi(4): Fix fencepost in error branch.

Reported-by: syzbot+0bbf3d81c15fd1354759@syzkaller.appspotmail.com

Revision 1.87 / (download) - annotate - [select for diffs], Sun Apr 17 13:15:15 2022 UTC (9 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.86: +24 -13 lines
Diff to previous 1.86 (colored)

umidi(4): Restore umidi_cs_descriptor_t type.

Had been previously deleted under the misapprehension that
usb_descriptor_t is appropriate here, but it's not -- it should not
have the bDescriptorSubtype member.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Mar 19 20:44:07 2022 UTC (10 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.85: +57 -49 lines
Diff to previous 1.85 (colored)

umidi(4): Parse descriptors a little more robustly.

Reported-by: syzbot+fd58d1d4dd12f8931486@syzkaller.appspotmail.com

Revision 1.85 / (download) - annotate - [select for diffs], Mon Mar 14 16:14:11 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.84: +6 -2 lines
Diff to previous 1.84 (colored)

umidi(4): Bail early if no endpoints.

kmem_alloc is unhappy with zero-size allocation.

Reported-by: syzbot+483b984480c295979391@syzkaller.appspotmail.com

Revision 1.84 / (download) - annotate - [select for diffs], Sun Aug 8 20:50:12 2021 UTC (17 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

s/varable/variable s/explictly/explicitly/ s/proerly/properly/ in comments.

Revision 1.82.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:50 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.82: +8 -4 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 20 22:46:33 2021 UTC (2 years ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.82: +8 -4 lines
Diff to previous 1.82 (colored)

fix free_all_endpoints() to not try calling free_pipe() when no endpoints
are allocated; this can happen during config_detach() after attach fails

Reported-by: syzbot+6e8a4c978358ecead03e@syzkaller.appspotmail.com
Reported-by: syzbot+b25ba25b57561144ac6e@syzkaller.appspotmail.com

Revision 1.74.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:50 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.74.4.2: +8 -5 lines
Diff to previous 1.74.4.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.74.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:13 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.74.4.1: +12 -13 lines
Diff to previous 1.74.4.1 (colored) to branchpoint 1.74 (colored)

Merge changes from current as of 20200406

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Sun Jan 5 09:30:04 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

Pull up following revision(s) (requested by maxv in ticket #600):

	sys/dev/usb/umidi.c: revision 1.82

Remove the call to KERNEL_UNLOCK_ONE(), it was forgotten when the biglock
was dropped in rev1.63. Found via vHCI.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jan 2 08:08:30 2020 UTC (3 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored)

Remove the call to KERNEL_UNLOCK_ONE(), it was forgotten when the biglock
was dropped in rev1.63. Found via vHCI.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Dec 1 08:27:54 2019 UTC (3 years, 1 month ago) by maxv
Branch: MAIN
Changes since 1.80: +12 -12 lines
Diff to previous 1.80 (colored)

localify

Revision 1.80 / (download) - annotate - [select for diffs], Thu Oct 3 05:16:16 2019 UTC (3 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.79: +8 -7 lines
Diff to previous 1.79 (colored)

More less kmem_zalloc(0).

Revision 1.79 / (download) - annotate - [select for diffs], Sun Sep 15 09:18:17 2019 UTC (3 years, 4 months ago) by maxv
Branch: MAIN
Changes since 1.78: +4 -2 lines
Diff to previous 1.78 (colored)

Don't kmem_alloc(0) if there are no endpoints, otherwise panic. Found via
vHCI.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.74: +8 -8 lines
Diff to previous 1.74 (colored)

Sync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Wed May 8 13:40:19 2019 UTC (3 years, 8 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.77: +2 -3 lines
Diff to previous 1.77 (colored)

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.77 / (download) - annotate - [select for diffs], Sun May 5 03:17:54 2019 UTC (3 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Fri May 3 05:43:47 2019 UTC (3 years, 8 months ago) by isaki
Branch: isaki-audio2
Changes since 1.76: +2 -3 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Remove dev/auconv.[ch].
 Now it is handled in dev/audio/audio.c and dev/audio/linear.c.
Remove dev/mulaw.h.
 It already have been just a link to dev/audio/mulaw.h in this
 branch.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 7 13:20:41 2019 UTC (3 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.75: +6 -5 lines
Diff to previous 1.75 (colored)

Remove (mostly useless) usb_detach_{broadcast,wait} and replace with
cv_{broadcast,timedwait}

Really should loop on conditon.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:05 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.75 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:34 2018 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.65.12.3 / (download) - annotate - [select for diffs], Mon Feb 19 19:33:06 2018 UTC (4 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.65.12.2: +3 -3 lines
Diff to previous 1.65.12.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Pull up following revision(s) (requested by skrll in ticket #1556):
	sys/dev/usb/if_athn_usb.c: 1.25
	sys/dev/usb/if_atu.c: 1.56
	sys/dev/usb/if_aue.c: 1.142
	sys/dev/usb/if_axe.c: 1.84
	sys/dev/usb/if_axen.c: 1.12
	sys/dev/usb/if_cdce.c: 1.45
	sys/dev/usb/if_cue.c: 1.77
	sys/dev/usb/if_kue.c: 1.91
	sys/dev/usb/if_otus.c: 1.32
	sys/dev/usb/if_rum.c: 1.59
	sys/dev/usb/if_run.c: 1.25
	sys/dev/usb/if_smsc.c: 1.33
	sys/dev/usb/if_udav.c: 1.52
	sys/dev/usb/if_upgt.c: 1.18
	sys/dev/usb/if_upl.c: 1.61
	sys/dev/usb/if_ural.c: 1.53
	sys/dev/usb/if_url.c: 1.57
	sys/dev/usb/if_urndis.c: 1.17
	sys/dev/usb/if_urtw.c: 1.14
	sys/dev/usb/if_urtwn.c: 1.56
	sys/dev/usb/if_zyd.c: 1.45
	sys/dev/usb/irmce.c: 1.4
	sys/dev/usb/pseye.c: 1.24
	sys/dev/usb/ubt.c: 1.60
	sys/dev/usb/ucom.c: 1.120
	sys/dev/usb/udsir.c: 1.6
	sys/dev/usb/ugen.c: 1.137
	sys/dev/usb/uhso.c: 1.27
	sys/dev/usb/uirda.c: 1.43
	sys/dev/usb/ulpt.c: 1.99
	sys/dev/usb/umass.c: 1.163
	sys/dev/usb/umidi.c: 1.74
	sys/dev/usb/uscanner.c: 1.82
	sys/dev/usb/usscanner.c: 1.43
	sys/dev/usb/ustir.c: 1.39
	sys/dev/usb/utoppy.c: 1.30
	sys/dev/usb/uvideo.c: 1.46
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup.  We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Wed Jan 31 18:01:54 2018 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Pull up following revision(s) (requested by skrll in ticket #509):
	sys/dev/usb/if_ural.c: revision 1.53
	sys/dev/usb/if_run.c: revision 1.25
	sys/dev/usb/ustir.c: revision 1.39
	sys/dev/usb/irmce.c: revision 1.4
	sys/dev/usb/if_urtwn.c: revision 1.56
	sys/dev/usb/pseye.c: revision 1.24
	sys/dev/usb/if_rum.c: revision 1.59
	sys/dev/usb/if_upl.c: revision 1.61
	sys/dev/usb/ucom.c: revision 1.120
	sys/dev/usb/if_zyd.c: revision 1.45
	sys/dev/usb/if_axen.c: revision 1.12
	sys/dev/usb/umidi.c: revision 1.74
	sys/dev/usb/if_udav.c: revision 1.52
	sys/dev/usb/if_athn_usb.c: revision 1.25
	sys/dev/usb/usscanner.c: revision 1.43
	sys/dev/usb/ualea.c: revision 1.6 - 1.9
	sys/dev/usb/if_upgt.c: revision 1.18
	sys/dev/usb/if_atu.c: revision 1.56
	sys/dev/usb/utoppy.c: revision 1.30
	sys/dev/usb/ubt.c: revision 1.60
	sys/dev/usb/if_urtw.c: revision 1.14
	sys/dev/usb/uirda.c: revision 1.43
	sys/dev/usb/umass.c: revision 1.163
	sys/dev/usb/if_cdce.c: revision 1.45
	sys/dev/usb/if_cue.c: revision 1.77
	sys/dev/usb/if_kue.c: revision 1.91
	sys/dev/usb/uvideo.c: revision 1.46
	sys/dev/usb/uhso.c: revision 1.27
	sys/dev/usb/if_smsc.c: revision 1.33
	sys/dev/usb/ugen.c: revision 1.137
	sys/dev/usb/if_axe.c: revision 1.84
	sys/dev/usb/if_aue.c: revision 1.142
	sys/dev/usb/uscanner.c: revision 1.82
	sys/dev/usb/if_urndis.c: revision 1.17
	sys/dev/usb/udsir.c: revision 1.6
	sys/dev/usb/if_url.c: revision 1.57
	sys/dev/usb/if_otus.c: revision 1.32
	sys/dev/usb/ulpt.c: revision 1.99

PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup.  We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs

ualea: Tidy up a bit.  Fulfil requests completely.
Don't subtract uninitialized pktsize in error path.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jan 21 13:57:12 2018 UTC (5 years ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

PR kern/52931 Kernel panics with Atheros usb wireless interface

Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup.  We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.63.2.1: +405 -177 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

update from HEAD

Revision 1.65.14.15 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:28 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.14: +2 -13 lines
Diff to previous 1.65.14.14 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:12 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.72: +2 -13 lines
Diff to previous 1.72 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.65.12.2 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:20 2017 UTC (5 years, 9 months ago) by snj
Branch: netbsd-7
Changes since 1.65.12.1: +135 -130 lines
Diff to previous 1.65.12.1 (colored) to branchpoint 1.65 (colored)

Pull up following revision(s) (requested by skrll in ticket #1395):
	share/man/man4/axe.4: netbsd-7-nhusb
	share/man/man4/axen.4: netbsd-7-nhusb
	share/man/man4/cdce.4: netbsd-7-nhusb
	share/man/man4/uaudio.4: netbsd-7-nhusb
	share/man/man4/ucom.4: netbsd-7-nhusb
	share/man/man4/uep.4: netbsd-7-nhusb
	share/man/man4/urtw.4: netbsd-7-nhusb
	share/man/man4/usb.4: netbsd-7-nhusb
	share/man/man4/uyap.4: netbsd-7-nhusb
	share/man/man4/xhci.4: netbsd-7-nhusb
	share/man/man9/usbdi.9: netbsd-7-nhusb
	sys/arch/amd64/conf/ALL: netbsd-7-nhusb
	sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
	sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
	sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
	sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
	sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
	sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
	sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
	sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
	sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
	sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
	sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
	sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
	sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
	sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
	sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
	sys/arch/i386/conf/ALL: netbsd-7-nhusb
	sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
	sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
	sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
	sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
	sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
	sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
	sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
	sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
	sys/conf/files: netbsd-7-nhusb
	sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
	sys/dev/ic/sl811hs.c: netbsd-7-nhusb
	sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
	sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
	sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
	sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
	sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
	sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
	sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
	sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
	sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
	sys/dev/usb/TODO: netbsd-7-nhusb
	sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
	sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
	sys/dev/usb/auvitek.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
	sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
	sys/dev/usb/ehci.c: netbsd-7-nhusb
	sys/dev/usb/ehcireg.h: netbsd-7-nhusb
	sys/dev/usb/ehcivar.h: netbsd-7-nhusb
	sys/dev/usb/emdtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
	sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
	sys/dev/usb/ezload.c: netbsd-7-nhusb
	sys/dev/usb/ezload.h: netbsd-7-nhusb
	sys/dev/usb/files.usb: netbsd-7-nhusb
	sys/dev/usb/hid.c: netbsd-7-nhusb
	sys/dev/usb/hid.h: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
	sys/dev/usb/if_atu.c: netbsd-7-nhusb
	sys/dev/usb/if_atureg.h: netbsd-7-nhusb
	sys/dev/usb/if_aue.c: netbsd-7-nhusb
	sys/dev/usb/if_auereg.h: netbsd-7-nhusb
	sys/dev/usb/if_axe.c: netbsd-7-nhusb
	sys/dev/usb/if_axen.c: netbsd-7-nhusb
	sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
	sys/dev/usb/if_axereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cdce.c: netbsd-7-nhusb
	sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cue.c: netbsd-7-nhusb
	sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_kue.c: netbsd-7-nhusb
	sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_otus.c: netbsd-7-nhusb
	sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
	sys/dev/usb/if_rum.c: netbsd-7-nhusb
	sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
	sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
	sys/dev/usb/if_run.c: netbsd-7-nhusb
	sys/dev/usb/if_runvar.h: netbsd-7-nhusb
	sys/dev/usb/if_smsc.c: netbsd-7-nhusb
	sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
	sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
	sys/dev/usb/if_udav.c: netbsd-7-nhusb
	sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
	sys/dev/usb/if_upgt.c: netbsd-7-nhusb
	sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
	sys/dev/usb/if_upl.c: netbsd-7-nhusb
	sys/dev/usb/if_ural.c: netbsd-7-nhusb
	sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
	sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
	sys/dev/usb/if_url.c: netbsd-7-nhusb
	sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urndis.c: netbsd-7-nhusb
	sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtw.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
	sys/dev/usb/if_zyd.c: netbsd-7-nhusb
	sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
	sys/dev/usb/irmce.c: netbsd-7-nhusb
	sys/dev/usb/moscom.c: netbsd-7-nhusb
	sys/dev/usb/motg.c: netbsd-7-nhusb
	sys/dev/usb/motgvar.h: netbsd-7-nhusb
	sys/dev/usb/ohci.c: netbsd-7-nhusb
	sys/dev/usb/ohcireg.h: netbsd-7-nhusb
	sys/dev/usb/ohcivar.h: netbsd-7-nhusb
	sys/dev/usb/pseye.c: netbsd-7-nhusb
	sys/dev/usb/slurm.c: netbsd-7-nhusb
	sys/dev/usb/stuirda.c: netbsd-7-nhusb
	sys/dev/usb/u3g.c: netbsd-7-nhusb
	sys/dev/usb/uark.c: netbsd-7-nhusb
	sys/dev/usb/uatp.c: netbsd-7-nhusb
	sys/dev/usb/uaudio.c: netbsd-7-nhusb
	sys/dev/usb/uberry.c: netbsd-7-nhusb
	sys/dev/usb/ubsa.c: netbsd-7-nhusb
	sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
	sys/dev/usb/ubsavar.h: netbsd-7-nhusb
	sys/dev/usb/ubt.c: netbsd-7-nhusb
	sys/dev/usb/uchcom.c: netbsd-7-nhusb
	sys/dev/usb/ucom.c: netbsd-7-nhusb
	sys/dev/usb/ucomvar.h: netbsd-7-nhusb
	sys/dev/usb/ucycom.c: netbsd-7-nhusb
	sys/dev/usb/udl.c: netbsd-7-nhusb
	sys/dev/usb/udl.h: netbsd-7-nhusb
	sys/dev/usb/udsbr.c: netbsd-7-nhusb
	sys/dev/usb/udsir.c: netbsd-7-nhusb
	sys/dev/usb/uep.c: netbsd-7-nhusb
	sys/dev/usb/uftdi.c: netbsd-7-nhusb
	sys/dev/usb/uftdireg.h: netbsd-7-nhusb
	sys/dev/usb/ugen.c: netbsd-7-nhusb
	sys/dev/usb/ugensa.c: netbsd-7-nhusb
	sys/dev/usb/uhci.c: netbsd-7-nhusb
	sys/dev/usb/uhcireg.h: netbsd-7-nhusb
	sys/dev/usb/uhcivar.h: netbsd-7-nhusb
	sys/dev/usb/uhid.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.h: netbsd-7-nhusb
	sys/dev/usb/uhmodem.c: netbsd-7-nhusb
	sys/dev/usb/uhso.c: netbsd-7-nhusb
	sys/dev/usb/uhub.c: netbsd-7-nhusb
	sys/dev/usb/uipad.c: netbsd-7-nhusb
	sys/dev/usb/uipaq.c: netbsd-7-nhusb
	sys/dev/usb/uirda.c: netbsd-7-nhusb
	sys/dev/usb/uirdavar.h: netbsd-7-nhusb
	sys/dev/usb/ukbd.c: netbsd-7-nhusb
	sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.h: netbsd-7-nhusb
	sys/dev/usb/ulpt.c: netbsd-7-nhusb
	sys/dev/usb/umass.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
	sys/dev/usb/umassvar.h: netbsd-7-nhusb
	sys/dev/usb/umcs.c: netbsd-7-nhusb
	sys/dev/usb/umct.c: netbsd-7-nhusb
	sys/dev/usb/umidi.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umodem.c: netbsd-7-nhusb
	sys/dev/usb/umodem_common.c: netbsd-7-nhusb
	sys/dev/usb/umodemvar.h: netbsd-7-nhusb
	sys/dev/usb/ums.c: netbsd-7-nhusb
	sys/dev/usb/uplcom.c: netbsd-7-nhusb
	sys/dev/usb/urio.c: netbsd-7-nhusb
	sys/dev/usb/urio.h: netbsd-7-nhusb
	sys/dev/usb/usb.c: netbsd-7-nhusb
	sys/dev/usb/usb.h: netbsd-7-nhusb
	sys/dev/usb/usb_mem.c: netbsd-7-nhusb
	sys/dev/usb/usb_mem.h: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
	sys/dev/usb/usb_subr.c: netbsd-7-nhusb
	sys/dev/usb/usbdevices.config: netbsd-7-nhusb
	sys/dev/usb/usbdevs: netbsd-7-nhusb
	sys/dev/usb/usbdevs.h: netbsd-7-nhusb
	sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
	sys/dev/usb/usbdi.c: netbsd-7-nhusb
	sys/dev/usb/usbdi.h: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
	sys/dev/usb/usbdivar.h: netbsd-7-nhusb
	sys/dev/usb/usbhid.h: netbsd-7-nhusb
	sys/dev/usb/usbhist.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub.c: netbsd-7-nhusb
	sys/dev/usb/usbroothub.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub_subr.c: delete
	sys/dev/usb/usbroothub_subr.h: delete
	sys/dev/usb/uscanner.c: netbsd-7-nhusb
	sys/dev/usb/uslsa.c: netbsd-7-nhusb
	sys/dev/usb/usscanner.c: netbsd-7-nhusb
	sys/dev/usb/ustir.c: netbsd-7-nhusb
	sys/dev/usb/uthum.c: netbsd-7-nhusb
	sys/dev/usb/utoppy.c: netbsd-7-nhusb
	sys/dev/usb/uts.c: netbsd-7-nhusb
	sys/dev/usb/uvideo.c: netbsd-7-nhusb
	sys/dev/usb/uvisor.c: netbsd-7-nhusb
	sys/dev/usb/uvscom.c: netbsd-7-nhusb
	sys/dev/usb/uyap.c: netbsd-7-nhusb
	sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
	sys/dev/usb/uyurex.c: netbsd-7-nhusb
	sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
	sys/dev/usb/xhci.c: netbsd-7-nhusb
	sys/dev/usb/xhcireg.h: netbsd-7-nhusb
	sys/dev/usb/xhcivar.h: netbsd-7-nhusb
	sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
	sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
	sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/include/linux/err.h: delete
	sys/external/bsd/drm2/include/linux/workqueue.h: delete
	sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
	sys/external/bsd/drm2/linux/linux_work.c: delete
	sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
	sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
	sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
	sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
	sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
	sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
	sys/sys/mbuf.h: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
     - kern/48308
     - uhub status notification improvements
     - umass(4) probe fix (applied to HEAD already)
     - ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
  This gives the callback a chance of running when another softint handler
  at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
  the network stack.
     - kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
       softnet_lock held across usb xfr
     - kern/50491 - unkillable wait in usbd_transfer while using usmsc0
       on raspberry pi 2
     - kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)

Revision 1.65.12.1.4.2 / (download) - annotate - [select for diffs], Thu Jan 26 21:54:25 2017 UTC (6 years ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.65.12.1.4.1: +12 -5 lines
Diff to previous 1.65.12.1.4.1 (colored) to branchpoint 1.65.12.1 (colored) next main 1.65.12.2 (colored)

Sync with HEAD/nhusb

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:42 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.65.14.14 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:18 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.13: +6 -2 lines
Diff to previous 1.65.14.13 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Fri Nov 25 12:56:29 2016 UTC (6 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored)

+#include "opt_usb.h"

Revision 1.65.14.13 / (download) - annotate - [select for diffs], Thu Oct 27 07:46:19 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.12: +8 -5 lines
Diff to previous 1.65.14.12 (colored) to branchpoint 1.65 (colored)

Retire usb_detach_{wait,broadcast} and simply use condvar(9) instead

Revision 1.65.12.1.4.1 / (download) - annotate - [select for diffs], Tue Sep 6 20:33:09 2016 UTC (6 years, 4 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.65.12.1: +125 -127 lines
Diff to previous 1.65.12.1 (colored)

First pass at netbsd-7 updated with USB code from HEAD

Revision 1.65.14.12 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:16 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.11: +20 -18 lines
Diff to previous 1.65.14.11 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:42 2016 UTC (6 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.70: +20 -18 lines
Diff to previous 1.70 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.65.14.11 / (download) - annotate - [select for diffs], Sun May 29 08:44:31 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.10: +4 -2 lines
Diff to previous 1.65.14.10 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Sat May 7 08:09:43 2016 UTC (6 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.69: +4 -2 lines
Diff to previous 1.69 (colored)

disable kpreempt around softint_schedule().  fixes playing on umidi.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (6 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.68: +105 -111 lines
Diff to previous 1.68 (colored)

Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix

Revision 1.65.14.10 / (download) - annotate - [select for diffs], Mon Dec 28 10:15:09 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.9: +9 -9 lines
Diff to previous 1.65.14.9 (colored) to branchpoint 1.65 (colored)

Use IPL_SOFTUSB instead of IPL_USB appropriately.  Transfer completions
are executed as a softint and so this is the priority level required.

Revision 1.65.14.9 / (download) - annotate - [select for diffs], Mon Dec 28 09:26:33 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.8: +3 -3 lines
Diff to previous 1.65.14.8 (colored) to branchpoint 1.65 (colored)

Strictly follow the sequence abort pipe, destroy xfers, and close pipe as
API now requires.  Plug some memory leaks in some drivers while doing
this.

Also, remove up_refcnt as it was broken and helped leak more memory.

Revision 1.65.14.8 / (download) - annotate - [select for diffs], Tue Oct 6 21:32:15 2015 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.7: +18 -26 lines
Diff to previous 1.65.14.7 (colored) to branchpoint 1.65 (colored)

Move from usbd_{alloc,free}_xfer and usbd_{alloc,free}_buffer to
usbd_{create,destroy}_xfer.  The API change will allow future changes
to HCDs to simplify the transfer resource allocation and activation.

Several devices tested including ucom, umass, smsc, uvideo, and uaudio.

Revision 1.65.14.7 / (download) - annotate - [select for diffs], Tue Sep 29 11:38:29 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.6: +11 -11 lines
Diff to previous 1.65.14.6 (colored) to branchpoint 1.65 (colored)

sizeof KNF

Revision 1.65.14.6 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.5: +293 -56 lines
Diff to previous 1.65.14.5 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.65.14.5 / (download) - annotate - [select for diffs], Sat Mar 21 11:33:37 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.4: +14 -12 lines
Diff to previous 1.65.14.4 (colored) to branchpoint 1.65 (colored)

Add prefixes to attach_arg structure member names. No functional change.

Revision 1.65.14.4 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.3: +8 -8 lines
Diff to previous 1.65.14.3 (colored) to branchpoint 1.65 (colored)

Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.65.12.1 / (download) - annotate - [select for diffs], Sun Jan 11 14:13:25 2015 UTC (8 years ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7-nhusb
Changes since 1.65: +293 -56 lines
Diff to previous 1.65 (colored)

Pull up following revision(s) (requested by mrg in ticket #407):
	sys/dev/midivar.h: revision 1.20
	sys/dev/usb/umidivar.h: file removal
	sys/dev/midi.c: revision 1.82
	sys/dev/midi.c: revision 1.83
	sys/dev/usb/FILES: revision 1.13
	sys/dev/midi_if.h: revision 1.26
	sys/dev/sequencer.c: revision 1.60
	sys/dev/sequencer.c: revision 1.61
	sys/dev/sequencer.c: revision 1.62
	sys/dev/sequencer.c: revision 1.63
	sys/dev/usb/umidi_quirks.c: revision 1.19
	sys/dev/usb/umidi.c: revision 1.66
	sys/dev/usb/umidi.c: revision 1.67
	sys/dev/usb/umidi.c: revision 1.68
	sys/dev/usb/umidireg.h: file removal
	sys/dev/sequencervar.h: revision 1.17
fix the midi_if documentation to properly describe the locks that will
be held during various operations.
various umidi clean ups:
- move the contents of umidi{reg,var}.h into umidi.c directly as they
  are not referenced by any other file.
- remove the useless include of umidi{reg,var}.h from umidi_quirks.c.
- add reference counting and wait/broadcast support to the IO paths.
- fix the error handling in midi_attach() and midi_open().
- sprinkle KASSERT() in several places.
- drop the local interrupt lock before calling into various parts of
  the USB code.  fixes lockdebug issues, and likely hangs.
- rename "binded" member as "bound".
with these most of the panics and problems i've seen are gone.  there
is still one lockdebug panic to deal with that happens when unplugging
umidi while midiplay(1) is running.
various clean ups for midi and sequencer:
midi specific:
- add reference counting for midi operations, and ensure that
  detach waits for other threads to complete before tearing
  down the device completely.
- in detach, halt midi callouts before destroying them
- re-check sc->dying after sleeping in midiread()
- in real_writebytes(), make sure we're open and not dying
- make sure we drop the interrupt lock before calling any code
  that may want to check thread locks.  this is now safe due to
  the above changes.
sequencer specific:
- avoid caching the midi softc in the sequencer softc.  instead,
  every time we want to use it, look it up again and make sure
  it still exists.
this fixes various crashes i've seen in the usb midi code when
detaching the umidi while it is active.
use __func__ in some debug messages.
- check sc->dying after sleeping in several more places, and
  convert it into EIO error where necessary.
- remove a wrong additional mutex_exit() call.
- make sure to check sc->dying under the device lock.
- fix a confusion between midi(4) unit and connected to sequencer
  devices.
- minor comment/debug clean ups.
fixes problems attempting to read or write from the right midi(4)
device using the sequencer(4) device when one or more of the
non-final devices fails to open with midiseq_open().
fix !AUDIO_DEBUG build.
CID/1261465: Dereference after NULL check.
CID/1261467: Unreachable code
actually fix one of the previous:  don't test for NULL after deref.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jan 2 20:42:44 2015 UTC (8 years ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.67: +2 -4 lines
Diff to previous 1.67 (colored)

actually fix one of the previous:  don't test for NULL after deref.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 2 16:38:45 2015 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.66: +5 -4 lines
Diff to previous 1.66 (colored)

CID/1261465: Dereference after NULL check.
CID/1261467: Unreachable code

Revision 1.66 / (download) - annotate - [select for diffs], Sun Dec 21 23:00:35 2014 UTC (8 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.65: +292 -54 lines
Diff to previous 1.65 (colored)

various umidi clean ups:
- move the contents of umidi{reg,var}.h into umidi.c directly as they
  are not referenced by any other file.
- remove the useless include of umidi{reg,var}.h from umidi_quirks.c.
- add reference counting and wait/broadcast support to the IO paths.
- fix the error handling in midi_attach() and midi_open().
- sprinkle KASSERT() in several places.
- drop the local interrupt lock before calling into various parts of
  the USB code.  fixes lockdebug issues, and likely hangs.
- rename "binded" member as "bound".

with these most of the panics and problems i've seen are gone.  there
is still one lockdebug panic to deal with that happens when unplugging
umidi while midiplay(1) is running.

Revision 1.65.14.3 / (download) - annotate - [select for diffs], Tue Dec 2 09:00:34 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.2: +4 -4 lines
Diff to previous 1.65.14.2 (colored) to branchpoint 1.65 (colored)

Step #1 of memory allocation re-organisation.

Centralised the buffer allocation routine which now supports DMA
and non-DMA capable host controllers.  Remove the
ubm_{alloc,free}m methods from usbd_bus_methods.

The buffer allocation is only allowed in thread context and,
therefore, negates the usefulness of the reserve dma code which
is removed in this change.

USBD_NO_COPY is also no longer required as usbd_transfer and
usbd_transfer_complete now track buffer usage and handle any
copying.

Revision 1.65.14.2 / (download) - annotate - [select for diffs], Sun Nov 30 13:14:11 2014 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.14.1: +17 -17 lines
Diff to previous 1.65.14.1 (colored) to branchpoint 1.65 (colored)

Whitespace

Revision 1.65.14.1 / (download) - annotate - [select for diffs], Sun Nov 30 12:18:58 2014 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65: +35 -35 lines
Diff to previous 1.65 (colored)

Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.

No functional change.

Revision 1.44.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44.2.3: +4 -4 lines
Diff to previous 1.44.2.3 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:40 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

resync with head

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 22 21:29:53 2013 UTC (10 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base, netbsd-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb, netbsd-7
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

since umidi and sequencer are mpsafe, mark umidi softint with SOFTINT_MPSAFE

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jan 22 21:13:39 2013 UTC (10 years ago) by jmcneill
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

umidi is mpsafe

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:09 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.44.2.2: +2 -14 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored)

sync with head

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:54 2012 UTC (10 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.62: +2 -14 lines
Diff to previous 1.62 (colored)

merge the jmcneill-usbmp branch.  many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.

Revision 1.53.2.7 / (download) - annotate - [select for diffs], Sat Jun 2 21:19:02 2012 UTC (10 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.6: +2 -3 lines
Diff to previous 1.53.2.6 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

remove a no longer relevant XXX SMP comment.

Revision 1.53.2.6 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:30 2012 UTC (10 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.5: +3 -2 lines
Diff to previous 1.53.2.5 (colored) to branchpoint 1.53 (colored)

sync to latest -current.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:07 2012 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44.2.1: +3 -2 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Fri May 18 07:52:54 2012 UTC (10 years, 8 months ago) by jdc
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

Increase the number of frequencies in the usb_audio_streaming_type1_descriptor
to be the same number that we support elsewhere (AUFMT_MAX_FREQUENCIES).
Set frequency_type to be AUFMT_MAX_FREQUENCIES in the case where a uaudio
device reports more frequencies than we handle.
Fixes a crash in uaudio_chan_ptransfer() because we read uninitialised data
in uaudio_identify_as().

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:08 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44: +201 -143 lines
Diff to previous 1.44 (colored)

sync with head

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 11 01:06:07 2012 UTC (10 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7
Changes since 1.60: +6 -5 lines
Diff to previous 1.60 (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.53.2.5 / (download) - annotate - [select for diffs], Sat Feb 25 10:26:24 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.4: +6 -5 lines
Diff to previous 1.53.2.4 (colored) to branchpoint 1.53 (colored)

copyright maintenence.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Mon Feb 20 21:16:59 2012 UTC (10 years, 11 months ago) by sborrill
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.59: +6 -6 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up the following revisions(s) (requested by mrg in ticket #12):
	sys/dev/usb/umidi.c:	revision 1.60

Fix the reversed logic in several uses of the new 'closing' member
introduced in the previous change. From PR 45909.

Revision 1.53.2.4 / (download) - annotate - [select for diffs], Mon Feb 20 05:24:42 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.3: +2 -7 lines
Diff to previous 1.53.2.3 (colored) to branchpoint 1.53 (colored)

don't take the kernel lock when calling into the usb code anymore

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Sun Feb 19 21:01:52 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.2: +6 -6 lines
Diff to previous 1.53.2.2 (colored) to branchpoint 1.53 (colored)

pullup umidi.c 1.60:
>fix the reversed logic in several uses of the new 'closing' member
>introduced in the previous change.
>
>from Tom Ivar Helbekkmo <tih@hamartun.priv.no> in PR 45909.  thanks!

Revision 1.60 / (download) - annotate - [select for diffs], Sun Feb 19 20:20:31 2012 UTC (10 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.59: +6 -6 lines
Diff to previous 1.59 (colored)

fix the reversed logic in several uses of the new 'closing' member
introduced in the previous change.

from Tom Ivar Helbekkmo <tih@hamartun.priv.no> in PR 45909.  thanks!

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:10 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.53.2.1: +39 -18 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored)

merge to -current.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Feb 14 19:28:22 2012 UTC (10 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.58: +24 -14 lines
Diff to previous 1.58 (colored)

since we have to drop locks to call into the usb code, we need to make
sure that only one caller ends up doing something in close_out_jack().
add a "closing" member that is set when closing and error out in various
places.

with this in place i can read and write from umidi without triggering
any locking or other obvious issues, though the writing is currently
broken (it worked in 5.99.60-era.)  it runs the correct time, but no
output occurs no the synth itself.  more work needed here.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Feb 13 17:36:18 2012 UTC (10 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.57: +6 -15 lines
Diff to previous 1.57 (colored)

revert prior change to unbind_jacks_from_mididev(), it's wrong.
slightly clean up free_all_jacks().

Revision 1.57 / (download) - annotate - [select for diffs], Mon Feb 13 01:51:02 2012 UTC (10 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.56: +19 -2 lines
Diff to previous 1.56 (colored)

make sure we're holding the kernel lock when calling in to the usb code.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Feb 7 11:40:24 2012 UTC (10 years, 11 months ago) by plunky
Branch: MAIN
Changes since 1.55: +5 -2 lines
Diff to previous 1.55 (colored)

two locking fixes (from PR/45909)

- during attach, release kernel lock in error path
- during midiopen, take kernel lock for USB activity

(there are more problems with locking here, this does not fix the PR)

Revision 1.55 / (download) - annotate - [select for diffs], Fri Dec 23 00:51:47 2011 UTC (11 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.54: +30 -30 lines
Diff to previous 1.54 (colored)

Revert previous due to active usbmp branch(es).

Revision 1.54 / (download) - annotate - [select for diffs], Thu Dec 22 20:07:02 2011 UTC (11 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.53: +30 -30 lines
Diff to previous 1.53 (colored)

Adjust-away inconsistent and trailing whitespace.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Fri Dec 9 01:53:00 2011 UTC (11 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
CVS Tags: jmcneill-usbmp-pre-base2
Changes since 1.53: +2 -8 lines
Diff to previous 1.53 (colored)

- make pipe->close method take the thread lock

- convert usb_taskq to use mutex/cv

- convert needs_explore usage into a cv on the thread lock

- remove KERNEL_*LOCK from uaudio and umidi, since we're supposedly
  MPSAFE here now

- use IPL_SCHED instead of IPL_USB (aka biglocked) interrupts

- drop the audio thread lock when calling into usb when it may sleep,
  avoiding a deadlock between audiowrite and audioioctl.  this fixes
  mixerctl -a vs. playing hanging the system
  XXX probably need to check this in a bunch more places.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Nov 26 13:31:52 2011 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.52: +3 -5 lines
Diff to previous 1.52 (colored)

avoid taking the thread lock when the kernel lock is needed.
now umidi detaches successfully.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Nov 26 13:22:09 2011 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.51: +47 -49 lines
Diff to previous 1.51 (colored)

convert to kmem.  also, zero all contents properly.  now umidi begins
to work.  crashed when i unplugged the synth.  for a later time.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Nov 26 03:19:42 2011 UTC (11 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Move KASSERT down to the point where the endpoint is known to exist.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Nov 26 03:14:25 2011 UTC (11 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

More use of uninitialized memory

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 25 13:58:41 2011 UTC (11 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.48: +3 -4 lines
Diff to previous 1.48 (colored)

fix non-DIAGNOSTIC build

Revision 1.48 / (download) - annotate - [select for diffs], Fri Nov 25 13:45:09 2011 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.47: +3 -4 lines
Diff to previous 1.47 (colored)

fix non-DIAGNOSTIC build

Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 24 22:12:51 2011 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.46: +96 -80 lines
Diff to previous 1.46 (colored)

several steps towards making umidi appear to work:

- split out_solicit() into locked and unlocked front end, and use the
  unlocked version from the softintr

- kill sc_intr_lock, midi doesn't really use it (XXX finish this?
  change this? in the midi* code)

- convert tsleep()/wakeup() to cv

- move some free's out of the lock

- KASSERT() lock is held in a few more places


TODO:

- malloc -> kmem

- crashes in midiclose(), doesn't actually play things to the right
  device.  "midiplay -d midi1 -xv" plays out my midi@pcppi speaker,
  and then the above crash.  clearly something is calling the wrong
  sub-device callbacks!

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 23 23:50:46 2011 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.45: +33 -28 lines
Diff to previous 1.45 (colored)

complete the port to audiomp:  take kernel lock in a few places for
USB (like uaudio), kill most of the spl* uses.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:36 2011 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.44: +28 -7 lines
Diff to previous 1.44 (colored)

Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Tue Nov 22 07:56:15 2011 UTC (11 years, 2 months ago) by mrg
Branch: jmcneill-audiomp3
Changes since 1.44: +28 -7 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

port umidi to audiomp: get_locks support, take locks in interrupts.

untested, and midi in this branch has general problems still anyway.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 7 19:41:03 2011 UTC (11 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.43: +6 -3 lines
Diff to previous 1.43 (colored)

In umidi_attach(), adjust aprint functions match what uaudio(4) does,
so that '\n' is printed in the appropriate places.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:43 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.42: +16 -14 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.40.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:56 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40.4.1: +14 -12 lines
Diff to previous 1.40.4.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Mon May 30 13:55:27 2011 UTC (11 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.42: +16 -14 lines
Diff to previous 1.42 (colored)

Don't play format string tricks, use two calls with the correct number
of arguments for each.

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:15 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40: +29 -25 lines
Diff to previous 1.40 (colored)

sync with head

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:39 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.40.2.1: +28 -24 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (12 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.41: +28 -24 lines
Diff to previous 1.41 (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.40.2.1 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:19 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Sync with HEAD (-D20101022).

Revision 1.41 / (download) - annotate - [select for diffs], Fri Oct 15 05:26:09 2010 UTC (12 years, 3 months ago) by dholland
Branch: MAIN
CVS Tags: uebayasi-xip-base3
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Fix cut&paste code, from Henning Petersen in PR 43544.

Revision 1.35.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:07 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35.4.2: +14 -25 lines
Diff to previous 1.35.4.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 12 19:58:27 2009 UTC (13 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.39: +14 -25 lines
Diff to previous 1.39 (colored)

Simplify activation hooks.  (sc_dying must die!)

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35.4.1: +36 -33 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored)

sync with head.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:09 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.34.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:10 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.34.6.2: +4 -4 lines
Diff to previous 1.34.6.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 11 11:06:08 2009 UTC (14 years 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-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored)

make this compile

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:10 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD.

Revision 1.34.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:34 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.34.6.1: +3 -3 lines
Diff to previous 1.34.6.1 (colored) to branchpoint 1.34 (colored)

Sync with HEAD.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:12 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36.2.1: +5 -5 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:44 2008 UTC (14 years, 6 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jul 8 11:34:43 2008 UTC (14 years, 6 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, 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-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored)

Constify most umidi-quirk data.  Addresses PR#39017.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:37 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36: +29 -26 lines
Diff to previous 1.36 (colored)

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

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:21 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.35.2.1: +29 -26 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:55 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.34: +30 -34 lines
Diff to previous 1.34 (colored)

Sync with HEAD.

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

sync with head.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:11 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35: +2 -9 lines
Diff to previous 1.35 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:00 2008 UTC (14 years, 9 months 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.35: +2 -9 lines
Diff to previous 1.35 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.35 / (download) - annotate - [select for diffs], Sat Apr 5 16:35:35 2008 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

use aprint_*_dev and device_xname

Revision 1.31.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.31.8.2: +29 -6 lines
Diff to previous 1.31.8.2 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with HEAD

Revision 1.23.2.6 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:47 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23.2.5: +29 -6 lines
Diff to previous 1.23.2.5 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.32: +29 -7 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Feb 18 05:24:24 2008 UTC (14 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: 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, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.33: +29 -6 lines
Diff to previous 1.33 (colored)

Use device_t and its accessor functions.

Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().

Revision 1.23.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:49 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23.2.4: +2 -3 lines
Diff to previous 1.23.2.4 (colored) to branchpoint 1.23 (colored)

sync with head

Revision 1.31.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:44 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.31.8.1: +2 -3 lines
Diff to previous 1.31.8.1 (colored) to branchpoint 1.31 (colored)

sync with HEAD

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:22 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:06 2008 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.31.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:39 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.31: +6 -7 lines
Diff to previous 1.31 (colored)

sync with HEAD

Revision 1.23.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:38 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23.2.3: +6 -7 lines
Diff to previous 1.23.2.3 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.31.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:47:54 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.31: +6 -7 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.31.10.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:21 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.31: +6 -7 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Oct 8 16:18:04 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, bouyer-xeni386
Changes since 1.31: +6 -7 lines
Diff to previous 1.31 (colored)

Use the softint API.

Revision 1.23.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:18 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23.2.2: +18 -40 lines
Diff to previous 1.23.2.2 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jul 14 21:02:38 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.30: +2 -19 lines
Diff to previous 1.30 (colored)

Generic soft interrupts are mandatory.

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:43 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.29: +6 -12 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with head.

Revision 1.29.8.3 / (download) - annotate - [select for diffs], Mon Jun 18 13:56:23 2007 UTC (15 years, 7 months ago) by itohy
Branch: itohy-usb1
Changes since 1.29.8.2: +17 -2 lines
Diff to previous 1.29.8.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

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

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:03 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.29.4.1: +6 -24 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.29.8.2 / (download) - annotate - [select for diffs], Sat Jun 16 04:12:32 2007 UTC (15 years, 7 months ago) by itohy
Branch: itohy-usb1
Changes since 1.29.8.1: +1 -1 lines
Diff to previous 1.29.8.1 (colored) to branchpoint 1.29 (colored)

- Change order to fit current API: usbd_open_pipe() -> usbd_alloc_xfer;
  usbd_abort_pipe() -> usbd_free_xfer() -> usbd_close_pipe().

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:44 2007 UTC (15 years, 8 months ago) by itohy
Branch: itohy-usb1
Changes since 1.29: +7 -4 lines
Diff to previous 1.29 (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.28.4.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:52 2007 UTC (15 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.28.4.1: +6 -12 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:56 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.29: +6 -12 lines
Diff to previous 1.29 (colored)

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:56 2007 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, mjf-ufs-trans-base
Changes since 1.29: +6 -12 lines
Diff to previous 1.29 (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.28.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:08 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.28: +14 -13 lines
Diff to previous 1.28 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 26 13:14:11 2007 UTC (15 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.28: +14 -13 lines
Diff to previous 1.28 (colored)

Don't assume that usb_descriptor_t contains a bDescriptorSubtype field.
This is class specific and shouldn't be in a generic definition.

Revision 1.23.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:39 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23.2.1: +605 -253 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.26.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.26.6.1: +7 -7 lines
Diff to previous 1.26.6.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

sync with head.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:51 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.26: +8 -5 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:27 2006 UTC (16 years, 2 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
Branch point for: yamt-idlelwp
Changes since 1.27: +7 -7 lines
Diff to previous 1.27 (colored)

__unused removal on arguments; approved by core.

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

sync with head

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

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

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.24: +601 -251 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.24.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:20 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.24.8.1: +600 -251 lines
Diff to previous 1.24.8.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:44 2006 UTC (16 years, 6 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.25: +600 -251 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Merge from HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 30 13:56:25 2006 UTC (16 years, 7 months ago) by chap
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.25: +600 -251 lines
Diff to previous 1.25 (colored)

Ankh-Morpork, we have a MIDI driver....

Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:44 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

sync with head.

Revision 1.25.2.18 / (download) - annotate - [select for diffs], Wed May 31 03:17:06 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.17: +76 -13 lines
Diff to previous 1.25.2.17 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Allow getinfo (and therefore midiplay -l) to reveal something useful for
umidi devices.

Annotate devices that lack output interrupts in the dmesg with (cpu-
intensive output) so users can easily tell which ones to prefer for
bulk output.

Revision 1.25.2.17 / (download) - annotate - [select for diffs], Tue May 30 23:15:05 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.16: +12 -4 lines
Diff to previous 1.25.2.16 (colored) to branchpoint 1.25 (colored)

A flag is added to the midi_hw_if_ext struct for the hardware to specify
that it would like compression of data to be transmitted. It will still
receive a message at a time, with the status and channel passed as
arguments, but the message buffer will omit the status byte when possible.
umidi now uses this flag when talking to Midiman devices, which do not do
their own compression, so as to make best use of the MIDI 1.0 bandwidth on
the far side.

Revision 1.25.2.16 / (download) - annotate - [select for diffs], Mon May 29 20:36:09 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.15: +52 -10 lines
Diff to previous 1.25.2.15 (colored) to branchpoint 1.25 (colored)

The native protocol of a quirk-Midiman device does not require a packet
per message, but allows messages to be packed in and across packets.
This can save a bit of USB bandwidth, but the real benefit of this change
will come when the hw_if_ext is updated to allow midi(4) to pass down
compressed messages. The Midiman device doesn't do its own compression,
so that will be a win when the data rate on the far side is limited
to MIDI 1.0.

Revision 1.25.2.15 / (download) - annotate - [select for diffs], Mon May 29 16:54:05 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.14: +7 -5 lines
Diff to previous 1.25.2.14 (colored) to branchpoint 1.25 (colored)

PR kern/33590.

Input on a jack that is not open for reading was discarded without
rearming the input transfer, so subsequent input would cease on other
jacks sharing the same endpoint. I thought I must have broken this, but
actually it broke five years ago in r1.4.

The breakage in the dump_ep() debug function was mine, though.

Revision 1.24.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:30 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:25 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

sync with head.

Revision 1.25.2.14 / (download) - annotate - [select for diffs], Sun May 21 17:28:48 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.13: +3 -3 lines
Diff to previous 1.25.2.13 (colored) to branchpoint 1.25 (colored)

@.n.o e-mail address, and a couple of corrections to the mechanical
merge, found by eyeball. Now to see how many gcc will catch....

Revision 1.25.2.13 / (download) - annotate - [select for diffs], Sat May 20 04:32:00 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.12: +8 -6 lines
Diff to previous 1.25.2.12 (colored) to branchpoint 1.25 (colored)

Now for Phase Two. The patched files have been rolled forward again, with
a naive mechanical resolution of conflicts. Now to compare the diffs and
make sure the resolutions made sense. Sleep first.

Revision 1.25.2.12 / (download) - annotate - [select for diffs], Sat May 20 03:43:58 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
CVS Tags: chap-midi-ph2
Changes since 1.25.2.11: +0 -0 lines
Diff to previous 1.25.2.11 (colored) to branchpoint 1.25 (colored)

Learned of two ugly corners in MIDI protocol that made the state machine
overly pedantic. Both have to do with the End SysEx byte, 0xf7. First, it
is allowed not only at the end of a SysEx message, but anywhere else any
status byte can appear (and in that case has no meaning). Second, it is
not even required at the end of a SysEx message - any subsequent status
byte implicitly ends the SysEx, and this is not considered an error.

I don't like these provisions because they make it even harder to detect
errors in a corrupted MIDI stream, but as MIDI gets sent increasingly over
error-correcting transports I suppose that is less of a concern. In any
case, though midi(4) will accept data (input from device or data from
write(2)) with stray or dropped End SysEx bytes, it will always ensure
that output to the device, and data for read(2), has End SysEx only and
always at the ends of SysEx messages.

Revision 1.25.2.11 / (download) - annotate - [select for diffs], Sat May 20 03:41:28 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.10: +2 -2 lines
Diff to previous 1.25.2.10 (colored) to branchpoint 1.25 (colored)

Spotted a bug in a buffer condition. Never saw any symptom, but it's a
bug nonetheless.

Revision 1.25.2.10 / (download) - annotate - [select for diffs], Sat May 20 03:34:22 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.9: +233 -73 lines
Diff to previous 1.25.2.9 (colored) to branchpoint 1.25 (colored)

Using full wMaxPacketSize transfers on receive (earlier patch, kern/32441)
was a substantial performance improvement, so it made sense to do so with
transmit buffers also (this patch).  A little benchmarking....

Before this patch:

$ </dev/zero tr '\0' '\376' | dd bs=3125 count=10 of=/dev/rmidi2
10+0 records in
10+0 records out
31250 bytes transferred in 62.544 secs (499 bytes/sec)

...transmitting to one port only of a Midisport 2x4, achieving barely 16%
of the original 1983 MIDI spec data rate.

After this patch:

$ exec 3>/dev/rmidi2 4>/dev/rmidi3 5>/dev/rmidi4 6>/dev/rmidi5
$ for i in 3 4 5 6
> do </dev/zero tr '\0' '\376' | dd bs=3125 count=60 >&$i &
> done
[1] 430 1076
[2] 484 1208
[3] 794 1115
[4] 990 1046
$ 59+1 records in
59+1 records out
185399 bytes transferred in 59.183 secs (3132 bytes/sec)
60+0 records in
60+0 records out
187500 bytes transferred in 59.817 secs (3134 bytes/sec)
60+0 records in
60+0 records out
187500 bytes transferred in 59.824 secs (3134 bytes/sec)
60+0 records in
60+0 records out
187500 bytes transferred in 59.836 secs (3133 bytes/sec)

...sustained simultaneous transmission to all four ports at full MIDI
data rate.

This patch should be fuzz-free on 2.0 sources after application of the
kern/32441, 32442, and 32567 patches. There has been little cvs activity
on the affected files since 2.0, so applying to current sources should
be straightforward.

Revision 1.25.2.9 / (download) - annotate - [select for diffs], Sat May 20 03:32:45 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.8: +43 -18 lines
Diff to previous 1.25.2.8 (colored) to branchpoint 1.25 (colored)

The two choices CN_SEQ_GLOBAL and CN_SEQ_PER_EP cannot cover all devices,
some are wired arbitrarily oddly and need a CN_FIXED quirk to specify
the cable number mappings explicitly.  But then as a result of those
mappings, the automatically bound mididevice unit numbers might not match
the order of the device's physical jacks or blinkenlights, so an MD_FIXED
quirk is needed to specify that order as well.  It turns out the cn_base
field added earlier was neither necessary (at the time) nor sufficient
(to handle CN_FIXED), so it's gone now.

Q: How do you tell when you've got the cable number associations wrong on
   a Midisport 2x4?
A: Everything works right except data-rate throttling - you'll be able to
   send data to certain ports at rates far in excess of the MIDI data rate
   (and lose most of it). If you never transmit that fast, you'll never
   notice.

So testing for a sane data transfer rate (use dd to blast a stream of MIDI
data at the rmidi device, it'll report the rate on completion) is probably
a wise testing step when adding support for a new umidi device.

Revision 1.25.2.8 / (download) - annotate - [select for diffs], Sat May 20 03:31:22 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.7: +42 -9 lines
Diff to previous 1.25.2.7 (colored) to branchpoint 1.25 (colored)

Patch to account explicitly for the prior inconsistency in the treatment of
cable numbers. Also contains a (functionally insignificant) change to the
declaration of endpoint buffers introduced in kern/32441, which will be
useful in a forthcoming patch.  This patch should be fuzz-free on 2.0
source after the 32441 and 32442 patches.

Revision 1.25.2.7 / (download) - annotate - [select for diffs], Sat May 20 03:27:32 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.6: +0 -0 lines
Diff to previous 1.25.2.6 (colored) to branchpoint 1.25 (colored)

Active Sense now handled for receive as well as for transmit. Following the
spec, if no Active Sense is seen on receive, no special behavior applies,
but if an Active Sense is seen then any absence of received data exceeding
300ms thereafter will be signalled as a read EOF on the rmidi device.
Receipt of any further data will clear the EOF condition, and operation
resumes as if no Active Sense has been seen.

Also moved some selnotify's out of locks so they don't deadlock against
the corresponding kevent filters.

This concludes this round of midi hacking (except for possibly improving
the safety of how pending callouts and interrupts are canceled on device
detach. Other fixes/enhancements to the midi subsystems will get their
own patches.

Revision 1.25.2.6 / (download) - annotate - [select for diffs], Sat May 20 03:24:33 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.5: +0 -0 lines
Diff to previous 1.25.2.5 (colored) to branchpoint 1.25 (colored)

The FST now handles the equivalence between NoteOn (velocity 0) and a
NoteOff with velocity 64, both for canonicalizing (always produce NoteOff)
and compressing (produce whichever allows a current running status to be
exploited). The code from sequencer that attempted to model this behavior
and running status has been superseded and removed. Also removed the
EBADF checks I added to sequencer earlier, as they're handled in a layer
above.

Revision 1.25.2.5 / (download) - annotate - [select for diffs], Sat May 20 03:22:31 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.4: +96 -212 lines
Diff to previous 1.25.2.4 (colored) to branchpoint 1.25 (colored)

umidi now uses hw_if_ext and no longer has its own approximate midi state
machine.  This patch is relative to umidi.c and umidivar.h already patched
by midiman.pat (kern/32441).

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Sat May 20 03:05:05 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.3: +103 -34 lines
Diff to previous 1.25.2.3 (colored) to branchpoint 1.25 (colored)

Changing the input logic to use wMaxPacketSize transfers instead of
4 bytes may have nailed the input data loss problem; it seems rock
solid now. This patch is against 2.0 sources but there's been so
little CVS activity on those files it should be easy to apply.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Sat May 20 03:02:50 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.2: +8 -4 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (colored)

Had output and input working in 1.6.2, but managed to lose input in
adapting the patch to 2.0.  Now it's back.  TODO: find out if there's
a way to improve input response (size of simultaneous chords that can
be played without dropping data) - perhaps by increasing the size of
the endpoint's xfer buffer, or learning something more about the usb
interrupt transfers.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Sat May 20 02:59:19 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.25.2.1: +71 -12 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored)

Applies fuzz-free to 2.0 sources; adds support for Midiman Midisport 2x4.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Sat May 20 02:15:21 2006 UTC (16 years, 8 months ago) by chap
Branch: chap-midi
CVS Tags: chap-midi-ph1
Changes since 1.25: +6 -8 lines
Diff to previous 1.25 (colored)

Now for Phase One. The patches to be applied in sequence were created
and tested against 2.0 sources. To begin, let CVS roll the affected files
back to that historic state. The reverse operation will be used (and
will involve some manual merging) after the patches have been applied.
Naturally, intermediate stages on this branch will not be directly
compilable (unless merged into a 2.0 checkout).

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:38 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with head.

Revision 1.24.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:30 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 14 22:25:42 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart, chap-midi
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Coverity CID 1356: Add KASSERT for NULL deref.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

merge ktrace-lwp.

Revision 1.16.6.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:06 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.16.6.4: +6 -5 lines
Diff to previous 1.16.6.4 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with HEAD. Here we go again...

Revision 1.23 / (download) - annotate - [select for diffs], Wed May 11 10:02:28 2005 UTC (17 years, 8 months ago) by augustss
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.22: +6 -5 lines
Diff to previous 1.22 (colored)

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

Revision 1.16.6.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:03 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.16.6.3: +3 -3 lines
Diff to previous 1.16.6.3 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:26 2004 UTC (18 years, 3 months ago) by yamt
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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:48 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.16.6.2: +2 -2 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:38 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.16: +17 -14 lines
Diff to previous 1.16 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:25 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 19 07:36:35 2004 UTC (19 years ago) by gson
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.19: +10 -10 lines
Diff to previous 1.19 (colored)

In alloc_all_endpoints_genuine(), search for the endpoint descriptors
within the configuration descriptor, not the class specific interface
descriptor. The Edirol UM-1SX now successfully attaches and works as
a standard USB MIDI interface when the "advanced driver" switch is set
to "off".

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 6 05:42:47 2004 UTC (19 years ago) by gson
Branch: MAIN
Changes since 1.18: +5 -3 lines
Diff to previous 1.18 (colored)

Abort the USB transfer on an endpoint when the last midi device
referencing it is closed.  Fixes kern/23987.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 5 06:01:59 2003 UTC (19 years, 1 month ago) by gson
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Opening umidi read-only failed to increment ep->num_open because
open_in_jack() treated USBD_IN_PROGRESS as a failure return.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 4 13:57:31 2003 UTC (19 years, 2 months ago) by keihan
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (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.8.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:06 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.3: +18 -12 lines
Diff to previous 1.8.2.3 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

sync kqueue branch with HEAD

Revision 1.5.2.9 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:02 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.5.2.8: +16 -10 lines
Diff to previous 1.5.2.8 (colored) next main 1.6 (colored)

Catch up to -current.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:12 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.14: +18 -12 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

catch up with -current.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:32 2002 UTC (20 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Branch point for: ktrace-lwp
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

Get rid of trailing white space.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 19 13:51:34 2002 UTC (20 years, 7 months ago) by tshiozak
Branch: MAIN
Changes since 1.14: +15 -9 lines
Diff to previous 1.14 (colored)

fix some bugs (by kay@kaynet.or.jp):
  - compile error with debug option,
  - miss of cut and paste, and
  - logical error on resource freeing.

Revision 1.5.2.8 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:37 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.7: +4 -3 lines
Diff to previous 1.5.2.7 (colored)

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

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:39 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.2: +4 -3 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored)

Catch up with -current.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 8 17:24:06 2002 UTC (20 years, 10 months ago) by kent
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, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

free_all_endpoints(): Fix a problem with disabled device.

Revision 1.5.2.7 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:33 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.6: +3 -4 lines
Diff to previous 1.5.2.6 (colored)

Catch up to -current.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:17 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.1: +3 -4 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)

Sync w/ -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 12 17:11:03 2002 UTC (21 years ago) by tsutsui
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

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

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:36 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.5: +4 -6 lines
Diff to previous 1.5.2.5 (colored)

More catchup.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:03 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.8: +12 -10 lines
Diff to previous 1.8 (colored)

Sync kqueue branch with -current.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:15 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.4: +6 -6 lines
Diff to previous 1.5.2.4 (colored)

Catch up to -current.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 2 17:20:09 2002 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.11: +4 -6 lines
Diff to previous 1.11 (colored)

Get rid of a few stray __P().

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 12 15:44:47 2001 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

Use USBD_NO_COPY in for some transfers where it was missing.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:19 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.3: +4 -1 lines
Diff to previous 1.5.2.3 (colored)

Catch up to -current.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:56 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

add RCSIDs

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:38 2001 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.2: +3 -2 lines
Diff to previous 1.5.2.2 (colored)

Catch up to -current.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:34 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Catch up with -current.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 29 22:00:47 2001 UTC (21 years, 4 months ago) by tshiozak
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

fix for Roland/EDIROL UM-880.
  - add NULL check to UMQ_ISTYPE; sc_quirk is NULL for genuine umidi, but
    forgotten to check.  Thus, kernel will panic after connect the device.
  - fix how to count the number of endpoints in alloc_all_endpoints_genuine().
  - add a quirk for the native mode of UM-880.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:25 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5.2.1: +34 -29 lines
Diff to previous 1.5.2.1 (colored)

Catch up to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Mon May 28 20:52:06 2001 UTC (21 years, 8 months ago) by tshiozak
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.7: +31 -28 lines
Diff to previous 1.7 (colored)

fix for UX96 (and all Yamaha specific devices, hopefully).
  - fix how to get endpoint addresses.
  - fix allocate count of pipes.
  - add necessary null checks for asymmetry jacks.

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 25 19:33:36 2001 UTC (21 years, 8 months ago) by tshiozak
Branch: MAIN
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

fix forgotten/malformed initialization of some variables.
(pointed out by Krister Walfridsson.)

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sat Apr 21 17:50:05 2001 UTC (21 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.3: +8 -2 lines
Diff to previous 1.4.2.3 (colored) next main 1.5 (colored)

Sync with HEAD

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:38 2001 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.5: +8 -2 lines
Diff to previous 1.5 (colored)

Catch up with -current.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 7 22:01:34 2001 UTC (21 years, 9 months ago) by tshiozak
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.5: +8 -2 lines
Diff to previous 1.5 (colored)

support "running status" handling.  midiplay via umidi is working now.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:29 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.2: +3 -3 lines
Diff to previous 1.4.2.2 (colored)

Sync with HEAD.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 21 21:40:00 2001 UTC (21 years, 11 months ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

make some more constant arrays 'const'

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:27 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.1: +1363 -0 lines
Diff to previous 1.4.2.1 (colored)

Sync with HEAD.

Revision 1.4.2.1, Sat Feb 3 18:50:31 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4: +0 -1363 lines
FILE REMOVED

file umidi.c was added on branch thorpej_scsipi on 2001-02-11 19:16:27 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 3 18:50:31 2001 UTC (22 years ago) by tshiozak
Branch: MAIN
Branch point for: thorpej_scsipi
Changes since 1.3: +198 -165 lines
Diff to previous 1.3 (colored)

separate mididev and jack logically.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 3 16:49:06 2001 UTC (22 years ago) by tshiozak
Branch: MAIN
Changes since 1.2: +153 -103 lines
Diff to previous 1.2 (colored)

change how to allocate xfer; alloc xfer when attach and free xfer when detach.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 31 16:02:38 2001 UTC (22 years ago) by tshiozak
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

correct MUX-MIDI state machine. (EXCL_2 state)

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jan 30 23:26:47 2001 UTC (22 years ago) by tshiozak
Branch: MAIN

initial commit of USB midi driver.
  - I tested only ROLAND UM-1 and YAMAHA UX256.
    These are not conforming to USB-MIDI spec, however these are
    similar to USB-MIDI.
  - Since I've not yet seen the "genuine" USB-MIDI device,
    I cannot test such devices although I wrote the codes for it.
TODO:
  - clean up the codes.
  - umidi(4) manpage.
  - /dev/rmidi? is working well, but /dev/music seems not working correctly.

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>