OpenBSD CVS

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


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57 / (download) - annotate - [select for diffs], Mon May 13 01:15:50 2024 UTC (4 weeks, 1 day ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +1 -2 lines
Diff to previous 1.56 (colored)

remove prototypes with no matching function
ok mpi@

Revision 1.56 / (download) - annotate - [select for diffs], Tue Sep 26 19:55:24 2023 UTC (8 months, 2 weeks ago) by mvs
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.55: +51 -86 lines
Diff to previous 1.55 (colored)

Use existing `audio_lock' mutex(9) to make `midi{read,write}_filtops' MP
safe. knote_locked(9) will not grab kernel lock, so call it directly from
interrupt handlers instead of scheduling software interrupts.

feedback and ok ratchov

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jul 2 08:50:41 2022 UTC (23 months, 1 week ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.54: +1 -33 lines
Diff to previous 1.54 (colored)

Remove unused device poll functions.

Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.

Some addenda from jsg@.

OK miod@ mpi@

Revision 1.54 / (download) - annotate - [select for diffs], Wed Apr 6 18:59:27 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

constify struct cfattach

Revision 1.53 / (download) - annotate - [select for diffs], Mon Mar 21 19:22:40 2022 UTC (2 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Constify struct {audio,midi,radio,video}_hw_if. No functional change.

ok mpi@ ratchov@ "More const is good" deraadt@

Revision 1.52 / (download) - annotate - [select for diffs], Sat Oct 30 12:48:11 2021 UTC (2 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Fix build break caused by accidental keystroke during last commit

Revision 1.51 / (download) - annotate - [select for diffs], Sat Oct 30 12:40:55 2021 UTC (2 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.50: +21 -4 lines
Diff to previous 1.50 (colored)

Disestablish softintrs upon detach (missed in last commit)

During detach, we can't rely on softintrs to signal processes blocked
in read, write or poll, so we need to explicitely call wakeup
functions in the detach method, as other drivers do.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 30 12:26:26 2021 UTC (2 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.49: +74 -39 lines
Diff to previous 1.49 (colored)

Defer selwakeup() calls to a softintr

selwakeup() needs to be protected by KERNEL_LOCK, but we're not
allowed to grab KERNEL_LOCK on interrupt context because midi runs at
IPL_AUDIO with the audio_lock held. Furthermore, doing so is a locking
order bug: syscall code-path grabs KERNEL_LOCK first while interrupt
code-path does the opposite when calling selwakeup().

ok visa

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 29 13:24:50 2021 UTC (2 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.48: +9 -5 lines
Diff to previous 1.48 (colored)

Don't grab audio_lock in filt_midi{read,write} if NOTE_SUBMIT is set.

Fixes panics caused by attempts to grab audio_lock twice in the
interrupt code path: once in the low-lever interrupt handler and once
in selwakeup()

This is exactly how audio(4) handles this problem.

ok mpi

Revision 1.48 / (download) - annotate - [select for diffs], Fri Dec 25 12:59:52 2020 UTC (3 years, 5 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Refactor klist insertion and removal

Rename klist_{insert,remove}() to klist_{insert,remove}_locked().
These functions assume that the caller has locked the klist. The current
state of locking remains intact because the kernel lock is still used
with all klists.

Add new functions klist_insert() and klist_remove() that lock the klist
internally. This allows some code simplification.

OK mpi@

Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 7 13:27:51 2020 UTC (4 years, 2 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Abstract the head of knote lists. This allows extending the lists,
for example, with locking assertions.

OK mpi@, anton@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 20 16:56:52 2020 UTC (4 years, 3 months ago) by visa
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Replace field f_isfd with field f_flags in struct filterops to allow
adding more filter properties without cluttering the struct.

OK mpi@, anton@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Dec 31 13:48:31 2019 UTC (4 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.44: +11 -5 lines
Diff to previous 1.44 (colored)

Use C99 designated initializers with struct filterops. In addition,
make the structs const so that the data are put in .rodata.

OK mpi@, deraadt@, anton@, bluhm@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 22 19:11:45 2019 UTC (4 years, 5 months ago) by cheloha
Branch: MAIN
Changes since 1.43: +8 -7 lines
Diff to previous 1.43 (colored)

midi(4): *sleep(9) -> *sleep_nsec(9)

These are straightforward except for the tsleep(9) conversion.  ratchov@
had a bit to say about that code:

https://marc.info/?l=openbsd-tech&m=157665936017373&w=2

> The problem is that close(2) may reset the transmitter before the few
> bytes of its internal buffer is sent on the wire; there's no "wait for
> completion" feature in such simple hardware, so we just wait few
> milliseconds.
>
> The transmitter buffer size is around 16 bytes, the byte rate is 3125
> bytes/second.  So if we wait at least 16B / 3125B/s = 5.12ms, we're
> safe. Waiting 10ms-20ms is enough and is unnoticeable.

Hence, in this diff we wait a flat 20ms in that situation.

ok ratchov@

Revision 1.40.6.1 / (download) - annotate - [select for diffs], Wed Aug 2 16:53:30 2017 UTC (6 years, 10 months ago) by deraadt
Branch: OPENBSD_6_0
Changes since 1.40: +1 -17 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Remove SIGIO support.  The audio(4) driver doesn't implement it either and
the preferred method to access MIDI hardware is through sndiod(8) which
doesn't use it.
Fixes a potential issue with a stale struct proc pointer found by Ilja van
Sprundel.
errata 015

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Tue Aug 1 21:54:34 2017 UTC (6 years, 10 months ago) by bluhm
Branch: OPENBSD_6_1
Changes since 1.42: +1 -17 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Remove SIGIO support.  The audio(4) driver doesn't implement it either and
the preferred method to access MIDI hardware is through sndiod(8) which
doesn't use it.
Fixes a potential issue with a stale struct proc pointer found by Ilja van
Sprundel.
errata 015

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jul 19 22:23:54 2017 UTC (6 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.42: +1 -17 lines
Diff to previous 1.42 (colored)

Remove SIGIO support.  The audio(4) driver doesn't implement it either and
the preferred method to access MIDI hardware is through sndiod(8) which
doesn't use it.

Fixes a potential issue with a stale struct proc pointer found by Ilja van
Sprundel.

ok deraadt@, ratchov@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jan 3 06:39:44 2017 UTC (7 years, 5 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE
Branch point for: OPENBSD_6_1
Changes since 1.41: +1 -2 lines
Diff to previous 1.41 (colored)

No need to include sys/malloc.h. From Michael W. Bombardieri. Thanks.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Dec 20 16:03:39 2016 UTC (7 years, 5 months ago) by ratchov
Branch: MAIN
Changes since 1.40: +12 -15 lines
Diff to previous 1.40 (colored)

In midiread() and midiwrite(), add a second goto label to
factor calls to mtx_leave() before returning. From Michael
W. Bombardieri <mb at ii.net>. Thanks!

Revision 1.40 / (download) - annotate - [select for diffs], Fri May 22 12:52:00 2015 UTC (9 years ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Branch point for: OPENBSD_6_0
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored)

Don't use an uninitialised softc pointer in midiread/midiwrite.
ok ratchov@

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 16 09:56:10 2015 UTC (9 years ago) by ratchov
Branch: MAIN
Changes since 1.38: +132 -91 lines
Diff to previous 1.38 (colored)

Use device_lookup() instead of digging into midi_cd.cd_devs[] and
maintaining a "dying" flag which is already present in the device
structure. As a side-effect, this adds the missing refcounting
that mididetach() was missing. With from mpi@ and dlg@

ok mpi

Revision 1.38 / (download) - annotate - [select for diffs], Tue May 12 18:39:30 2015 UTC (9 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.37: +8 -8 lines
Diff to previous 1.37 (colored)

remove the sc->isopen flag, as sc->flags already hold the
same information.

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 12 18:32:49 2015 UTC (9 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

store byte count in a size_t and switch from uiomovei() to uiomove()

Revision 1.36 / (download) - annotate - [select for diffs], Tue May 12 18:23:38 2015 UTC (9 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.35: +7 -35 lines
Diff to previous 1.35 (colored)

Remove unused code & definitions: midi_attach(), midi_unit_count(),
midi_getinfo(), midi_writebytes(). They were "used" by the sequencer
interface which we removed years ago.

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 12 18:05:43 2015 UTC (9 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.34: +12 -11 lines
Diff to previous 1.34 (colored)

Don't hold the audio mutex when calling uiomove(), as uiomove()
may sleep in case of a page fault

Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:46 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.33: +1 -2 lines
Diff to previous 1.33 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 10 21:56:09 2015 UTC (9 years, 4 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Oct 9 04:04:46 2014 UTC (9 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

no need for lkm

Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 14 14:17:24 2014 UTC (9 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored)

remove uneeded proc.h includes
ok mpi@ kspillner@

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 15 08:29:24 2013 UTC (11 years ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.29: +53 -71 lines
Diff to previous 1.29 (colored)

Introduce a global interrupt-aware mutex protecting data
structures (including sound-card registers) from concurent
access by syscall and interrupt code-paths. Since critical
sections remain the same, calls to splraise/spllower can be
safely replaced by calls to mtx_enter/mtx_leave with two
exceptions: (1) mutexes are not reentrant (the inner splraise
is thus removed), and (2) we're not allowed to sleep with a
mutex (either msleep is used or the mutex is released before
sleeping).

ok and help from kettenis, a lot of work from armani

Revision 1.29 / (download) - annotate - [select for diffs], Fri Mar 15 09:10:52 2013 UTC (11 years, 2 months ago) by ratchov
Branch: MAIN
Changes since 1.28: +1 -100 lines
Diff to previous 1.28 (colored)

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 17 07:58:47 2012 UTC (12 years, 1 month ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.27: +9 -9 lines
Diff to previous 1.27 (colored)

Output interrupts are raised when the uart is ready for output, which
obviously can occur after the transfer complete. In this case, don't
print a warning (if MIDI_DEBUG defined) and don't attempt to stop the
transfer twice.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 30 08:18:19 2012 UTC (12 years, 2 months ago) by ratchov
Branch: MAIN
Changes since 1.26: +12 -54 lines
Diff to previous 1.26 (colored)

If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;
just return and make the midi(4) driver retry later. UART buffers
are large enough for this, except eap(4) which uses interrupts for
output.
help from and ok jsg@

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 2 22:20:07 2011 UTC (12 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO.

ok tedu deraadt

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jan 27 20:37:19 2011 UTC (13 years, 4 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

while closing the device, don't sleep with the PCATCH flag, otherwise
a signal (like SIGALRM) may cause the output buffer to not be drained
and causing for instance stale notes.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 1 16:34:42 2011 UTC (13 years, 5 months ago) by ratchov
Branch: MAIN
Changes since 1.23: +73 -73 lines
Diff to previous 1.23 (colored)

fix spacing

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 18 21:15:14 2010 UTC (13 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.22: +1 -4 lines
Diff to previous 1.22 (colored)

Don't
  #include "foo.h"
  #if NFOO > 0
  (whole file)
  #endif
since config(8) file inclusion rules already do it for you.
ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 8 01:48:24 2010 UTC (14 years, 2 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

remove unneeded variable. ratchov@ ok

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 9 17:53:39 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored)

Every selwakeup() should have a matching KNOTE() (even if kqueue isn't
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and
remove it from any occurences where both are used, except one for kqueue itself
and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag).

Based on a diff from tedu.

ok deraadt

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 1 20:14:12 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.19: +102 -4 lines
Diff to previous 1.19 (colored)

kqueue support for midi(4).

ok ratchov

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 30 18:12:30 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

KNOTE() after selwakeup()
ok ratchov

Revision 1.18 / (download) - annotate - [select for diffs], Mon Aug 17 10:27:42 2009 UTC (14 years, 9 months ago) by ratchov
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

remove prototype of non-existent midi_get_hwif()
suggested by jsg@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 18 10:58:41 2009 UTC (14 years, 10 months ago) by ratchov
Branch: MAIN
Changes since 1.16: +8 -9 lines
Diff to previous 1.16 (colored)

While detatching the device, workaround the case when a midi
entry is missing in cdevsw[], in which case vdevgone() is called
with out of bounds argument.
requested by dlg@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 21 02:28:47 2006 UTC (17 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

'tranfer' -> 'transfer' in comments.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 1 03:37:23 2006 UTC (17 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

poll errors should be POLLERR, not some random E value
from alexandre ratchov.  ok claudio

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 16 03:24:27 2006 UTC (18 years, 2 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.13: +10 -13 lines
Diff to previous 1.13 (colored)

Handle input interrupts in a better manner.
It is only necessary to notify reading processes when the buffer is
empty rather than on every input byte.

From Alexandre Ratchov.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 7 22:41:32 2006 UTC (18 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.12: +32 -12 lines
Diff to previous 1.12 (colored)

Add optional flush method to MIDI hardware interface.
Allow umidi(4) to send multiple events in a single USB transfer.
This greatly improves the number of interrupts umidi is able to generate.

From Alexandre Ratchov.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 22 22:17:44 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored)

the following patch fixes a bug preventing midi uarts that do
not support interrupts on output, from writing blocks larger than
MIDI_MAXWRITE bytes. tested on both kinds of devices
from alex-contact@caoua.org

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 21 06:03:15 2004 UTC (19 years, 8 months ago) by brad
Branch: MAIN
Changes since 1.10: +2 -0 lines
Diff to previous 1.10 (colored)

re-add RCS id after last commit

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 27 19:44:48 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.9: +507 -637 lines
Diff to previous 1.9 (colored)

better midi stuff from alex@caoua.org

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Thu Feb 19 10:56:13 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.3.2.3: +18 -21 lines
Diff to previous 1.3.2.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 23 16:51:12 2003 UTC (20 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.8: +19 -22 lines
Diff to previous 1.8 (colored)

Replace select backends with poll backends.  selscan() and pollscan()
now call the poll backend.  With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK

Revision 1.6.6.2 / (download) - annotate - [select for diffs], Tue Jun 11 03:42:15 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.6.6.1: +14 -14 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync UBC branch to -current

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Thu Mar 28 12:29:44 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.3.2.2: +13 -13 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored)

Merge in -current from about a week ago

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 14 01:26:52 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.7: +14 -14 lines
Diff to previous 1.7 (colored)

First round of __P removal in sys

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Mar 6 02:11:42 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.3.2.1: +2 -2 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Merge in trunk

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Thu Jan 31 22:55:29 2002 UTC (22 years, 4 months ago) by niklas
Branch: UBC
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Merge in -current, builds on i386, otherwise untested

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 10 18:49:07 2002 UTC (22 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

return ENOTTY not EINVAL in default: in *ioctl()

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Mon May 14 22:23:01 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.3: +8 -6 lines
Diff to previous 1.3 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 23 00:13:23 2001 UTC (23 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Branch point for: UBC
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

fix compiling in audio-less configs

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 26 22:43:21 2000 UTC (23 years, 11 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

Convert to new timeouts.

Revision 1.4 / (download) - annotate - [select for diffs], Wed May 24 13:44:18 2000 UTC (24 years ago) by ho
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Permit detach of audio devices, such as uaudio. Selected code
from NetBSD/Lennart Augustsson. (niklas@ ok)

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 3 19:38:13 2000 UTC (24 years, 5 months ago) by fgsch
Branch: MAIN
CVS Tags: SMP_BASE, OPENBSD_2_7_BASE, OPENBSD_2_7
Branch point for: SMP
Changes since 1.2: +13 -3 lines
Diff to previous 1.2 (colored)

Remove dependencies between midi & audio. midi now will compile on
speaker only systems.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 2 00:59:08 1999 UTC (25 years, 5 months ago) by niklas
Branch: MAIN
CVS Tags: kame_19991208, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

Remove unnecessary extern

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 2 00:02:32 1999 UTC (25 years, 5 months ago) by niklas
Branch: MAIN

Midi & sequencer support from NetBSD, mostly by Lennart Augustsson

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.