The NetBSD Project

CVS log for src/sys/dev/midi.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 9 10:18:16 2012 UTC (13 months, 1 week ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver, HEAD
Changes since 1.77: +6 -10 lines
Diff to previous 1.77 (colored)

Tidy up a little, the way that midi attachment code works

- change midi_attach() to omit the 'parent' arg (there are
  only two callers of this and it is not used)

- change midisyn_attach() to midisyn_init(), so not needing a midi_softc,
  and fix the midi_pcppi driver to set hw_if and hw_hdl directly in
  its midi_softc before calling midi_attach()

- add a device_t to opl_softc structure, change opl drivers to store
  the device 'self' in opl_softc and fix opl_attach() to use this
  opl_softc->dev field directly rather than a field in an otherwise
  unused midi_softc

- remove unnecessary midi_softc from opl and cms drivers (child device
  provides that)

reviewed by mrg

Revision 1.77 / (download) - annotate - [select for diffs], Thu Apr 5 20:25:53 2012 UTC (13 months, 2 weeks ago) by plunky
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8
Changes since 1.76: +2 -3 lines
Diff to previous 1.76 (colored)

midi_attach() does not actually ever use the parent device
pointer, so no need to store it in sc_dev. Further, remove
the sc_dev field entirely since it is easily confused with
the dev field, which is the 'self' device pointer. Fix the
comment.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 5 20:13:34 2012 UTC (13 months, 2 weeks ago) by plunky
Branch: MAIN
Changes since 1.75: +5 -6 lines
Diff to previous 1.75 (colored)

move the pmf_device_register() for midi.c and midi_pcppi.c to midi_attach()
for symmetry, since it is removed in midi detach code

and don't need to call device_pmf_is_registered() before registering it

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jan 10 17:53:51 2012 UTC (16 months, 1 week ago) by njoly
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

Call aprint_naive for quiet boot message.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Nov 24 02:54:32 2011 UTC (17 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.73: +13 -2 lines
Diff to previous 1.73 (colored)

set hwif_softc around midi_attach()s call to ->getinfo(), like the old
code, so that midi_register_hw_if_ext() works.  add a mutex for this
to avoid multiple midi_attach()s fighting over it.

XXX: this is an ugly interface

Revision 1.73 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:31 2011 UTC (17 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.72: +461 -498 lines
Diff to previous 1.72 (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.72 / (download) - annotate - [select for diffs], Tue Jul 27 14:34:33 2010 UTC (2 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

printf() size_t with 'z' format modifier in debug code.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Dec 6 22:42:48 2009 UTC (3 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.70: +5 -7 lines
Diff to previous 1.70 (colored)

Simplify these device-activation hooks using the following semantic
patch.

XXX sc_dying must die.

@@
type device_t;

identifier act, midi_softc, midiactivate, sc, self;
@@

int
midiactivate(device_t self, enum devact act)
{
(
	struct midi_softc *sc = device_private(self);
|
-	struct midi_softc *sc;
+	struct midi_softc *sc = device_private(self);
...
-	sc = device_private(self);
)
...
	switch (act) {
-	case DVACT_ACTIVATE:
-		return (EOPNOTSUPP);
-
	case DVACT_DEACTIVATE:
(
	sc->dying
|
	sc->sc_dying
)
		=
(
	1
|
	true
)
		;
-		break;
+		return 0;
+	default:
+		return EOPNOTSUPP;
	}
-	return (0);
}

Revision 1.70 / (download) - annotate - [select for diffs], Sun Aug 23 15:56:07 2009 UTC (3 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.69: +3 -5 lines
Diff to previous 1.69 (colored)

I'm not so sure this is actually CPU-intensive in 2009, so don't print it.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Apr 7 17:54:58 2009 UTC (4 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Cosmetic: in a debug statement, use "%s", __func__ instead of a
misspelling of the detach routine's name.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 12 22:29:41 2008 UTC (4 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base
Branch point for: nick-hppapmap, jym-xensuspend, ad-audiomp2
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

use device_lookup to get device_t

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jun 10 22:53:08 2008 UTC (4 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.66: +11 -11 lines
Diff to previous 1.66 (colored)

device_private(device_lookup()) -> device_lookup_private()
ok cube@

Revision 1.66 / (download) - annotate - [select for diffs], Wed Apr 30 14:07:13 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Make various bits of debug code compile again.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:47 2008 UTC (5 years ago) by martin
Branch: MAIN
Changes since 1.64: +2 -9 lines
Diff to previous 1.64 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.64 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:28 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 5 10:48:48 2008 UTC (5 years, 2 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored)

Fix fallout from midi(4)'s softc split.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 5 00:45:40 2008 UTC (5 years, 2 months ago) by tnn
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

Include sys/device.h for device_t

Revision 1.61 / (download) - annotate - [select for diffs], Tue Mar 4 21:56:11 2008 UTC (5 years, 2 months ago) by cube
Branch: MAIN
Changes since 1.60: +40 -41 lines
Diff to previous 1.60 (colored)

Split device_t/softc for midi(4), and other related cosmetic changes.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:50 2008 UTC (5 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.59 / (download) - annotate - [select for diffs], Sun Dec 16 19:01:35 2007 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.58: +8 -2 lines
Diff to previous 1.58 (colored)

add null pmf handlers.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Dec 5 17:19:47 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Do not "return 1" from kqfilter for errors.  That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Dec 1 23:40:28 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.56: +5 -3 lines
Diff to previous 1.56 (colored)

aprintify, on behalf of xtraeme

Revision 1.56 / (download) - annotate - [select for diffs], Mon Oct 8 16:18:02 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.55: +10 -9 lines
Diff to previous 1.55 (colored)

Use the softint API.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:29 2007 UTC (5 years, 10 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, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 16 10:25:03 2007 UTC (5 years, 11 months ago) by pavel
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Correct format strings for ptrdiff_t and size_t arguments in DPRINTFs,
so that a kernel with AUDIO_DEBUG builds.

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

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

Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 15 18:12:05 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-audiomp-base
Branch point for: yamt-idlelwp, ad-audiomp
Changes since 1.51: +4 -5 lines
Diff to previous 1.51 (colored)

Defer wakeup() to the soft interrupt also.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:26 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.50: +51 -13 lines
Diff to previous 1.50 (colored)

Merge newlock2 to head.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:45 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.49: +10 -10 lines
Diff to previous 1.49 (colored)

__unused removal on arguments; approved by core.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Oct 12 04:32:34 2006 UTC (6 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Add __unused as necessary.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:51 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.47: +10 -8 lines
Diff to previous 1.47 (colored)

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

Revision 1.47 / (download) - annotate - [select for diffs], Sat Sep 2 07:04:46 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

add missing initializer

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jul 2 01:33:55 2006 UTC (6 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Uppercase CPU.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jul 1 15:22:06 2006 UTC (6 years, 10 months ago) by chap
Branch: MAIN
Changes since 1.44: +5 -0 lines
Diff to previous 1.44 (colored)

Correct build failures when MIDI is not enabled (the idea!).

Specifically eap but no midi, which makes sense if you want sound,
and umidi but no midi, which makes little sense but shouldn't fail the
build.

Suggest changing the evbarm conf files containing umidi but #midi
to comment out umidi as well (even though this fix should let them build).

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jun 30 13:56:25 2006 UTC (6 years, 10 months ago) by chap
Branch: MAIN
Changes since 1.43: +1181 -309 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:29 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, 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.42: +3 -3 lines
Diff to previous 1.42 (colored)

Use device_unit().

Revision 1.42 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:53 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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.41: +11 -11 lines
Diff to previous 1.41 (colored)

merge ktrace-lwp.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:11 2005 UTC (7 years, 11 months ago) by ws
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.40: +3 -3 lines
Diff to previous 1.40 (colored)

PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.40 / (download) - annotate - [select for diffs], Sun May 29 22:18:25 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.39: +10 -10 lines
Diff to previous 1.39 (colored)

- add const
- avoid variable shadowing.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Feb 27 00:26:58 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.38: +10 -10 lines
Diff to previous 1.38 (colored)

nuke trailing whitespace

Revision 1.38 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:16 2004 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored)

constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Dec 4 13:57:30 2003 UTC (9 years, 5 months ago) by keihan
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.36: +3 -3 lines
Diff to previous 1.36 (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.36 / (download) - annotate - [select for diffs], Sun Nov 23 01:25:59 2003 UTC (9 years, 5 months ago) by gson
Branch: MAIN
Changes since 1.35: +11 -5 lines
Diff to previous 1.35 (colored)

Make the raw midi device pass through received system exclusive
messages rather than discard them.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Nov 2 11:56:36 2003 UTC (9 years, 6 months ago) by gson
Branch: MAIN
Changes since 1.34: +7 -3 lines
Diff to previous 1.34 (colored)

Some possible MIDI input byte streams could cause sc->in_msg[]
to be overrun, causing a crash.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:00 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.33: +9 -9 lines
Diff to previous 1.33 (colored)

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

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

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

Bump the kernel rev up to 1.6V

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 31 02:16:23 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Use aprint_*().

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 26 18:49:41 2002 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

si_ -> sel_

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:03 2002 UTC (10 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.29: +88 -5 lines
Diff to previous 1.29 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 2 16:33:30 2002 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 30 21:19:38 2002 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +4 -6 lines
Diff to previous 1.27 (colored)

Use CFATTACH_DECL().

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 27 20:37:30 2002 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Declare all cfattach structures const.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:10 2002 UTC (10 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 6 13:23:00 2002 UTC (10 years, 8 months ago) by gehenna
Branch: MAIN
Changes since 1.24: +15 -5 lines
Diff to previous 1.24 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 1 17:54:21 2002 UTC (10 years, 11 months ago) by gson
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.23: +5 -3 lines
Diff to previous 1.23 (colored)

spl botch in midipoll() when sc->dying

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 13 05:32:50 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

add RCSIDs

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 2 22:41:22 2001 UTC (11 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.21: +39 -91 lines
Diff to previous 1.21 (colored)

ANSIfy.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 31 16:19:35 2001 UTC (12 years, 3 months ago) by tshiozak
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.20: +12 -13 lines
Diff to previous 1.20 (colored)

solve the race condition while output for umidi.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jan 30 23:02:18 2001 UTC (12 years, 3 months ago) by tshiozak
Branch: MAIN
Changes since 1.19: +24 -16 lines
Diff to previous 1.19 (colored)

some changes for midi_start_output() under PROP_OUT_INTR devices.
  - protect the buffer even though ointr occur until exiting
    from hw_if->output().
  - allow this function to send multiple bytes to hw_if->output()
    at the same time.  it's necessary for umidi.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 13 16:16:12 2001 UTC (12 years, 4 months ago) by tshiozak
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

add missing sc->dying initializer at midiattach.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 13 16:09:04 2001 UTC (12 years, 4 months ago) by tshiozak
Branch: MAIN
Changes since 1.17: +79 -2 lines
Diff to previous 1.17 (colored)

add detaching/deactivation code to midi driver.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 6 00:43:04 2000 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored)

Use device_lookup().

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 6 14:35:28 2000 UTC (13 years ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Simplify an expression.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:26 2000 UTC (13 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 18 18:49:35 2000 UTC (13 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.13: +6 -4 lines
Diff to previous 1.13 (colored)

Add a little more debug printing.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 19 16:04:52 1999 UTC (13 years, 7 months ago) by soren
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

'<Device>' usually means the string comes from outside the kernel.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 9 10:24:45 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Add support for detaching audio devices.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 26 01:18:09 1999 UTC (14 years, 2 months ago) by nathanw
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.10: +5 -4 lines
Diff to previous 1.10 (colored)

Make these compile on the alpha when AUDIO_DEBUG is defined.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 20 14:26:44 1998 UTC (14 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.9: +8 -4 lines
Diff to previous 1.9 (colored)

Make midi_attach_mi() and audioprint() available also if MIDIBUS
(but not necessarily MIDI) is defined.
Fixes PR port-i386/6615 (Krister Walfridsson <cato@ulysses.df.lth.se>).
(XXX this should probably go into a separate file to get rid of
the #ifdef mess)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 15 18:03:07 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.8: +10 -7 lines
Diff to previous 1.8 (colored)

Fix a MIDI buffer overflow problem.  Fixes PR 6583.
Patch from Ales Krenek <ljocha@ics.muni.cz>

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 25 22:17:07 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 5 09:21:42 1998 UTC (14 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

Make MIDI input work again.
Fix from Torsten Duwe <duwe@ns.lst.de>.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 13 06:30:25 1998 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored)

Make sure the buffers are synchronized on open.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 24 17:59:25 1998 UTC (14 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.4: +40 -1 lines
Diff to previous 1.4 (colored)

Write MIDI data from the sequencer to the device in a more sane way.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 17 21:16:11 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.3: +52 -1 lines
Diff to previous 1.3 (colored)

* Redo the way the way the MIDI driver attaches to audio devices.
* Improve the midisyn layer a little.
* Add a driver for the Yamaha OPL[23] FM synths.
  The opl driver is not finished yet; it sounds pretty awful.

For some strange reason I cannot get any FM sound from my SB64 cards,
but a regular SB16 works fine.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 13 00:13:56 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.2: +8 -3 lines
Diff to previous 1.2 (colored)

Remove some leftover fluff.
Make sure there is no outstanding timeout when the sequencer is closed.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 12 18:11:53 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.1: +28 -20 lines
Diff to previous 1.1 (colored)

Tidy up and rename some functions in the MIDI driver.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 7 00:00:58 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN

Add MIDI support.  The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).

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>