CVS log for src/sys/dev/midi.c
Up to [cvs.NetBSD.org] / src / sys / dev
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Oct 23 23:03:30 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -6
lines
midi(4): No need to take lock just for callout_halt.
Lock is relevant only if we're doing something _else_ under the lock
that must be serialized with the callout's own action.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Oct 23 23:03:13 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +6 -2
lines
midi(4): Explain what's about to happen when refcnt drain fails.
This should really be an unconditional cv_wait loop, but for now
let's just give fair warning when the driver is about to puke its
guts out in case the I/O paths I haven't audited yet are buggy.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Oct 23 23:02:50 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -5
lines
midi(4): Wake waiters _before_ waiting for them.
Otherwise we may deadlock waiting for them to give up while they're
waiting for I/O, not knowing they need to give up.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Jun 4 03:31:10 2022 UTC (2 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -45
lines
Combine the midi and sequencer modules into a single midi_seq module
to avoid a circular dependency as noted in kern/56772. Retain minimal
modules of the original names to accomodate auto-loading upon access
to the /dev/xxx nodes.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun May 22 11:27:35 2022 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3
lines
fix various small typos, mainly in comments.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:15 2022 UTC (2 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -6
lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:
devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()
While here, add a few missing calls to some of the detach
routines.
Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.
No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!
XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:08 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4
lines
Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.
This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.
NetBSD 9.99.89
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:08 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -4
lines
Merge thorpej-cfargs2.
Revision 1.93.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 23:24:57 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93: +3 -4
lines
Adapt to CFARGS().
Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:29 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92: +5 -3
lines
Sync with HEAD.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Apr 26 21:54:56 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -3
lines
midi_attach_mi(): Be explicit about using the "midibus" interface attribute,
as the caller may be a device that carries more than one.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:52 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3
lines
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.
Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)
Remove unnecessary or redundant interface attributes where they're not
needed.
There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:09 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +3 -3
lines
Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
Revision 1.90.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:57 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +14 -13
lines
Sync w/ HEAD.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Dec 19 01:18:58 2020 UTC (3 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +14 -13
lines
Use sel{record,remove}_knote().
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat May 23 23:42:42 2020 UTC (4 years, 6 months ago) by ad
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +6 -6
lines
Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
Revision 1.88.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:04 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +3 -3
lines
Sync with HEAD
Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:17 2019 UTC (5 years, 7 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
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
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3
lines
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.88.8.1: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:09 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +3 -3
lines
Move dev/audio_if.h -> dev/audio/audio_if.h
Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +202 -59
lines
update from HEAD
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat Oct 28 03:47:24 2017 UTC (7 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
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,
pgoyette-compat,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes,
isaki-audio2-base
Branch point for: phil-wifi,
isaki-audio2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +4 -5
lines
Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:38 2017 UTC (7 years, 1 month ago) by maya
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +14 -6
lines
Use C99 initializer for filterops
Mostly done with spatch with touchups for indentation
@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- { a, b, c, d
+ {
+ .f_isfd = a,
+ .f_attach = b,
+ .f_detach = c,
+ .f_event = d,
};
Revision 1.81.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:00 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.81.4.3: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.4.3: +50 -2
lines
Sync with HEAD
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jun 1 09:44:30 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +50 -2
lines
Add infrastructure for modularization of audio, midi, and sequencer
Revision 1.85.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:35 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +72 -16
lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
Revision 1.81.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:40 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.81.4.2: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.2: +32 -32
lines
Sync with HEAD
Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 26 07:42:39 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +3 -4
lines
Fix botched edit.
Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:20 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +73 -16
lines
Sync with HEAD
Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Jul 14 10:19:05 2016 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: prg-localcount2,
pgoyette-localcount
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +32 -32
lines
- Use aprint*() more in xxx_attach().
- Add missing aprint_naive("\n").
- Remove extra spaces and tabs.
- KNF.
Revision 1.81.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:01 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.81.4.1: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.1: +3 -3
lines
Sync with HEAD
Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:41 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20160907
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3
lines
KNF. Remove extra spaces. No functional change.
Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +113 -25
lines
Sync with HEAD
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 11 14:13:25 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
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
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +113 -25
lines
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.83: download - view: text, markup, annotated - select for diffs
Tue Dec 30 07:28:34 2014 UTC (9 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +21 -12
lines
- 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.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Dec 22 07:02:22 2014 UTC (9 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +95 -16
lines
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.
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +19 -4
lines
Rebase to HEAD as of a few days ago.
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +3 -2
lines
Rebase.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:35 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-base
Branch point for: nick-nhusb,
netbsd-7
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2
lines
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
Revision 1.72.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.72.8.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.8.1: +18 -4
lines
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.78.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +18 -4
lines
sync with head
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:26 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +13 -4
lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Sep 14 21:02:36 2013 UTC (11 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +7 -2
lines
Quell a few "unused variable" warnings (where the variables are generated
by macros)
Revision 1.74.2.3: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:47 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.74.2.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.2: +6 -10
lines
sync to latest -current.
Revision 1.72.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:25 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +472 -503
lines
sync with head
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Apr 9 10:18:16 2012 UTC (12 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys,
rmind-smpnet
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -10
lines
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.74.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:24 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.74.2.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.1: +5 -7
lines
sync to latest -current.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Apr 5 20:25:53 2012 UTC (12 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: jmcneill-usbmp-base8
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 5 20:13:34 2012 UTC (12 years, 8 months ago) by plunky
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -6
lines
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.74.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:05 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -2
lines
merge to -current.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Jan 10 17:53:51 2012 UTC (12 years, 11 months ago) by njoly
Branches: 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-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,
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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -2
lines
Call aprint_naive for quiet boot message.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Nov 24 02:54:32 2011 UTC (13 years ago) by mrg
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +13 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:31 2011 UTC (13 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +461 -498
lines
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.10.2: download - view: text, markup, annotated - select for diffs
Tue Nov 22 07:54:45 2011 UTC (13 years ago) by mrg
Branches: jmcneill-audiomp3
Diff to: previous 1.72.10.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.10.1: +14 -13
lines
adjust some DPRINTF*() calls so that they compile now.
Revision 1.72.10.1: download - view: text, markup, annotated - select for diffs
Sat Nov 19 21:49:35 2011 UTC (13 years ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +458 -496
lines
port ad-audiomp2 branch changes to 5.99.56
todo:
- port ad-audiomp2 pcppi changes
- these drivers need to be fixed:
- emuxki
- gcscaudio
- hdafg
- uaudio
- umidi
- MD audio drivers
Revision 1.71.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:00 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +3 -3
lines
sync with head
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:57 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +3 -3
lines
Sync with HEAD.
Revision 1.64.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:14 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.2.4: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.4: +3 -3
lines
sync with head.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Jul 27 14:34:33 2010 UTC (14 years, 4 months ago) by jakllsch
Branches: 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
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
printf() size_t with 'z' format modifier in debug code.
Revision 1.64.2.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:21 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.2.3: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.2.3: +5 -7
lines
sync with head
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Dec 6 22:42:48 2009 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base,
matt-premerge-20091211
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -7
lines
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.64.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:45 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.2.2: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.2.2: +3 -5
lines
sync with head
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Aug 23 15:56:07 2009 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
jym-xensuspend-nbase
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -5
lines
I'm not so sure this is actually CPU-intensive in 2009, so don't print it.
Revision 1.68.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:05 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +3 -3
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.64.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:33 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.2.1: +13 -13
lines
sync with head.
Revision 1.68.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:13 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +3 -3
lines
Sync with HEAD.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Apr 7 17:54:58 2009 UTC (15 years, 8 months ago) by dyoung
Branches: 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
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Cosmetic: in a debug statement, use "%s", __func__ instead of a
misspelling of the detach routine's name.
Revision 1.68.8.2: download - view: text, markup, annotated - select for diffs
Fri Dec 12 23:06:56 2008 UTC (16 years ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.68.8.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.8.1: +4 -7
lines
Checkpoint work in progress.
Revision 1.68.8.1: download - view: text, markup, annotated - select for diffs
Tue Dec 9 13:09:12 2008 UTC (16 years ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +465 -503
lines
Checkpoint work on MIDI.
Revision 1.59.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:05 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.59.6.4: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.6.4: +10 -10
lines
Sync with HEAD.
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:58 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +12 -12
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.66.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:03 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +12 -12
lines
Sync with head.
Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:24 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.1: +12 -12
lines
sync with head.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Jun 12 22:29:41 2008 UTC (16 years, 6 months ago) by cegger
Branches: 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-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,
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
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
use device_lookup to get device_t
Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Jun 10 22:53:08 2008 UTC (16 years, 6 months ago) by cegger
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +11 -11
lines
device_private(device_lookup()) -> device_lookup_private()
ok cube@
Revision 1.59.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:11 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.59.6.3: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.6.3: +7 -14
lines
Sync with HEAD.
Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:30 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -14
lines
sync with head.
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:49 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -10
lines
sync with head.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Apr 30 14:07:13 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3
lines
Make various bits of debug code compile again.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:47 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:28 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -6
lines
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.59.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:50 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.59.6.2: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.6.2: +3 -3
lines
- after some discussion with agc@ i agreed it would be a good idea to move
device_unregister_* to device_deregister_* to be more like the pmf(9)
functions, especially since a lot of the time the function calls are next
to each other.
- add device_register_name() support for dk(4).
Revision 1.59.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:21 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.59.6.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.6.1: +10 -2
lines
- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
as these are always needed.
- convert many, many drivers over to the New Devfs World Order. For a
list of device drivers yet to be converted see,
http://www.netbsd.org/~mjf/devfs-todo.html.
- add a new device_unregister_all(device_t) function to remove all device
names associated with a device_t, which saves us having to construct
device names when the driver is detached.
- add a DEV_AUDIO type for devices.
Revision 1.59.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:36 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +44 -43
lines
Sync with HEAD.
Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:11 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +44 -43
lines
sync with head.
Revision 1.55.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.55.8.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.8.2: +44 -43
lines
sync with HEAD
Revision 1.41.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:37 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.7: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.7: +44 -43
lines
sync with head.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Mar 5 10:48:48 2008 UTC (16 years, 9 months ago) by cube
Branches: 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
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -2
lines
Fix fallout from midi(4)'s softc split.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Mar 5 00:45:40 2008 UTC (16 years, 9 months ago) by tnn
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2
lines
Include sys/device.h for device_t
Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Mar 4 21:56:11 2008 UTC (16 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +40 -41
lines
Split device_t/softc for midi(4), and other related cosmetic changes.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:50 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4
lines
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.41.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:27 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.6: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.6: +8 -2
lines
sync with head
Revision 1.55.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:14 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.55.8.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.8.1: +12 -4
lines
sync with HEAD
Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:47 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +8 -2
lines
Sync with HEAD
Revision 1.56.4.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:46 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.56.4.1: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.4.1: +8 -2
lines
Sync with HEAD.
Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:20 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +8 -2
lines
Sync with head.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Dec 16 19:01:35 2007 UTC (16 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +8 -2
lines
add null pmf handlers.
Revision 1.55.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:42 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.55.6.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.6.2: +3 -3
lines
Sync with HEAD.
Revision 1.56.4.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:19 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -4
lines
Sync with HEAD.
Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:17 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
Sync with head.
Revision 1.41.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:17 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.5: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.5: +6 -4
lines
sync with head
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:19:47 2007 UTC (17 years ago) by pooka
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
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.55.6.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:31 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.55.6.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.6.1: +5 -3
lines
Sync with HEAD.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Dec 1 23:40:28 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: vmlocking2-base1,
vmlocking-nbase
Branch point for: vmlocking2
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -3
lines
aprintify, on behalf of xtraeme
Revision 1.55.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:29 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -9
lines
sync with HEAD
Revision 1.41.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:29:58 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.4: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.4: +10 -9
lines
sync with head.
Revision 1.55.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:10 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -9
lines
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.55.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:01 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +10 -9
lines
sync with head.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:18:02 2007 UTC (17 years, 2 months ago) by ad
Branches: 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
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -9
lines
Use the softint API.
Revision 1.41.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:14 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.3: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.3: +8 -8
lines
sync with head.
Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:19 2007 UTC (17 years, 3 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +5 -5
lines
Sync w/ NetBSD-4-RC_1
Revision 1.53.2.3: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:40 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.53.2.2: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.2: +5 -5
lines
Sync with head.
Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:02 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +7 -7
lines
Sync with head.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:29 2007 UTC (17 years, 5 months ago) by ad
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -4
lines
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.53.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:40 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.1: +4 -4
lines
Adapt to callout API change.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 18 08:23:20 2007 UTC (17 years, 5 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-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,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +5 -5
lines
Pull up following revision(s) (requested by pavel in ticket #726):
sys/dev/midi.c: revision 1.54
Correct format strings for ptrdiff_t and size_t arguments in DPRINTFs,
so that a kernel with AUDIO_DEBUG builds.
Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:30:51 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +10 -9
lines
- 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.54: download - view: text, markup, annotated - select for diffs
Sat Jun 16 10:25:03 2007 UTC (17 years, 6 months ago) by pavel
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5
lines
Correct format strings for ptrdiff_t and size_t arguments in DPRINTFs,
so that a kernel with AUDIO_DEBUG builds.
Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:04 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +3 -3
lines
Sync with HEAD.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:42 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 14:15:58 2007 UTC (17 years, 9 months ago) by ad
Branches: ad-audiomp
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +154 -120
lines
Add MP locking for audio drivers.
Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:55 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.2: +53 -16
lines
sync with head.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Feb 15 18:12:05 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: ad-audiomp-base
Branch point for: yamt-idlelwp,
ad-audiomp
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -5
lines
Defer wakeup() to the soft interrupt also.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:26 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +51 -13
lines
Merge newlock2 to head.
Revision 1.47.2.5: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:51:39 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47.2.4: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.4: +3 -3
lines
Remove support for SA. Ok core@.
Revision 1.47.2.4: download - view: text, markup, annotated - select for diffs
Sat Jan 27 00:24:52 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47.2.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.3: +50 -21
lines
Don't call selnotify() or psignal() while above IPL_VM: defer them to a
soft interrupt.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 19 10:35:48 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.2: +3 -3
lines
Put back arg to preempt() for nwo.
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 19 09:39:58 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +15 -6
lines
Acquire proclist_mutex before sending signals.
Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:50 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +1191 -312
lines
sync with head.
Revision 1.47.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:53 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47.4.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.4.1: +10 -10
lines
sync with head.
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:03 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -4
lines
Sync with head.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:45 2006 UTC (18 years ago) by christos
Branches: 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +10 -10
lines
__unused removal on arguments; approved by core.
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:28 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +11 -9
lines
sync with head
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Oct 12 04:32:34 2006 UTC (18 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
Add __unused as necessary.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:51 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +10 -8
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:09 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +1188 -311
lines
sync with head
Revision 1.42.8.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:55 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.42.8.2: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.8.2: +3 -3
lines
sync with head.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Sep 2 07:04:46 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
add missing initializer
Revision 1.42.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:52 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.42.8.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.8.1: +1186 -309
lines
sync with head
Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:17 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +1186 -309
lines
Merge from HEAD.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jul 2 01:33:55 2006 UTC (18 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Uppercase CPU.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Jul 1 15:22:06 2006 UTC (18 years, 5 months ago) by chap
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -0
lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 30 13:56:25 2006 UTC (18 years, 5 months ago) by chap
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1181 -309
lines
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.2.20: download - view: text, markup, annotated - select for diffs
Wed Jun 28 23:34:53 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.19: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.19: +23 -17
lines
Handle error counters for devices with no output capability symmetrically
w.r.t. those with no input. Some preparation for a stats-returning ioctl
TBD.
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:12 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +12 -12
lines
sync with head.
Revision 1.43.2.19: download - view: text, markup, annotated - select for diffs
Wed May 31 03:17:06 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.18: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.18: +5 -3
lines
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.43.2.18: download - view: text, markup, annotated - select for diffs
Tue May 30 23:15:05 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.17: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.17: +68 -31
lines
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.43.2.17: download - view: text, markup, annotated - select for diffs
Sun May 21 17:28:47 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.16: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.16: +5 -5
lines
@.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.43.2.16: download - view: text, markup, annotated - select for diffs
Sat May 20 04:31:59 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.15: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.15: +26 -26
lines
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.43.2.15: download - view: text, markup, annotated - select for diffs
Sat May 20 03:43:58 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
CVS tags: chap-midi-ph2
Diff to: previous 1.43.2.14: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.14: +55 -13
lines
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.43.2.14: download - view: text, markup, annotated - select for diffs
Sat May 20 03:41:28 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.13: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.13: +2 -1
lines
Spotted a bug in a buffer condition. Never saw any symptom, but it's a
bug nonetheless.
Revision 1.43.2.13: download - view: text, markup, annotated - select for diffs
Sat May 20 03:32:45 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.12: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.12: +0 -0
lines
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.43.2.12: download - view: text, markup, annotated - select for diffs
Sat May 20 03:31:22 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.11: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.11: +0 -0
lines
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.43.2.11: download - view: text, markup, annotated - select for diffs
Sat May 20 03:27:31 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.10: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.10: +68 -27
lines
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.43.2.10: download - view: text, markup, annotated - select for diffs
Sat May 20 03:24:33 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.9: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.9: +59 -5
lines
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.43.2.9: download - view: text, markup, annotated - select for diffs
Sat May 20 03:22:31 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.8: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.8: +1 -3
lines
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.43.2.8: download - view: text, markup, annotated - select for diffs
Sat May 20 03:19:02 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.7: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.7: +99 -6
lines
Added hw_if_ext for hw drivers that want their messages intact rather than
byte by byte. Works with midisyn - must still integrate and test with
umidi.
Revision 1.43.2.7: download - view: text, markup, annotated - select for diffs
Sat May 20 03:17:43 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.6: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.6: +576 -357
lines
The DFA (well, technically it's really a FST - a DFA with output) is now
used for transmit as well as receive; it's run at the upstream end of
each pipe (the receive interrupt for receive, the write call for transmit)
so that protocol errors can be detected as soon as possible, and erroneous
data won't fill the buffer. Implemented a guarantee that read(2) on the
raw device returns as many complete messages as will fit in the read
request, so the user program does not have to parse around read boundaries
(except for SysEx). Required a new buffer scheme that preserves message
boundaries. (A little like reinventing STREAMS, hmm...) Implemented
FIONREAD. New approach to sharing the cpu during output to interrupt-
challenged devices.
umidi happens to work now even in the presence of Active Sense, as the
transmit FST ensures the Active Sense doesn't appear in the midst of
another message, and right now the FST is always in canonicalizing mode
so there is no running status to disturb. That's half accident though, and
doesn't work for midisyn (which treats any System Common message as SysEx,
argh). The right solution will be to allow message-based drivers like umidi
and midisyn to get their data via a message-at-a-time interface, rather
than splitting the messages into bytes for lower drivers to reassemble
wrong.
Revision 1.43.2.6: download - view: text, markup, annotated - select for diffs
Sat May 20 03:16:48 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.5: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.5: +258 -126
lines
Receive dfa factored out and made usable for both receive and transmit.
So far so good. Now to rewire transmit to use it.
Revision 1.43.2.5: download - view: text, markup, annotated - select for diffs
Sat May 20 03:15:32 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.4: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.4: +182 -47
lines
Implement Active Sense on transmit. The same callout used by
midi_start_output for brief delays in output is now also scheduled
for 285 ms if there is nothing to transmit, and will send an Active Sense
at that time if there is nothing else to go; this will keep the receiving
equipment expecting our Active Sense and ensure that notes will stop
sounding when it ceases (either because we close normally, or we hang,
or someone trips over a cable). Sounds simple enough but involved a new
locking strategy, because we used to block out user_incurred start_output
whenever the device interrupt or callout was pending, but in the case of
the 285ms callout we /want/ to let a user write through and cancel the
callout (and avoid races, etc). Also moved the callout_init into
midi_attach because midiattach was not called in all cases, and added
a callout_stop in detach (though it is not yet quite up to all cases where
the callout may have been fired but not yet run at the time of detach -
nothing is easy.)
Surprisingly, the Active Sense works almost right over umidi: umidi's
state machine isn't smart enough to pass it through a packet being built,
and makes garbage instead, but a Yamaha keyboard at least is happy to
accept a bit of garbage within 300 ms as a sign we're still alive. :)
Now to go do a better state machine for output. :/ It shouldn't be in
umidi; it should be in midi, done once and done right; there should be
no need to have slightly different replicas of the midi state machine
all over the kernel ... I think there's one in sequencer too.
Revision 1.43.2.4: download - view: text, markup, annotated - select for diffs
Sat May 20 03:14:12 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.3: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.3: +10 -4
lines
Take open modes seriously: do not write if not open for writing, or read
if not open for reading, or if the midi device cannot read. In sequencer,
open only the midi devices that support at least one of the open modes
wanted; so, if the sequencer is opened for reading only, do not bother
opening midi devices that cannot input. Do not write anything to the
midi devices if opened for reading only; seq_reset previously wrote a
bunch of initial settings, which could lead to long timeouts in seq_drain
on close because of data in the output buffer that could not go anywhere.
TODO: sending initial settings is the less important thing for seq_reset
to do; the most important is to reset the buffers so the playing stops!
At present, it doesn't do that at all.
Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Sat May 20 03:13:11 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.2: +33 -12
lines
Fixes a bug in midi_unit_count.
Dropped byte and message counters now use evcnt.
My state machine could treat an invalid SystemCommon message or out-of-
sequence EndSysex (all protocol errors anyway) as /mishandled/ protocol
errors if encountered in certain states. Fixed.
Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Sat May 20 03:09:12 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.1: +182 -97
lines
Replaces the state machine in midi.c with a full, pedantically correct,
error detecting one. Rearranges some DPRINTFN debug levels to make it
easier to get the level of debug information wanted. Applies to 2.0.
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Sat May 20 02:15:21 2006 UTC (18 years, 6 months ago) by chap
Branches: chap-midi
CVS tags: chap-midi-ph1
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +34 -34
lines
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.42.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:45 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -3
lines
Sync with head.
Revision 1.42.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:24 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -3
lines
sync with head.
Revision 1.42.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:43 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
sync with head.
Revision 1.42.12.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:17 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -3
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:29 2006 UTC (18 years, 8 months ago) by thorpej
Branches: 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
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
Use device_unit().
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (19 years ago) by christos
Branches: 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
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +11 -11
lines
merge ktrace-lwp.
Revision 1.34.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:00 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.6: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.6: +11 -11
lines
Sync with HEAD. Here we go again...
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:01:11 2005 UTC (19 years, 5 months ago) by ws
Branches: 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
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun May 29 22:18:25 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +10 -10
lines
- add const
- avoid variable shadowing.
Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:44 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +10 -10
lines
sync with -current
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:53 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +10 -10
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.34.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:53 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.5: preferred, colored
Changes since revision 1.34.2.5: +10 -10
lines
Sync with HEAD.
Hi Perry!
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:58 2005 UTC (19 years, 9 months ago) by perry
Branches: 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
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +10 -10
lines
nuke trailing whitespace
Revision 1.34.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:19 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.4: preferred, colored
Changes since revision 1.34.2.4: +7 -7
lines
Sync with HEAD.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Oct 29 12:57:16 2004 UTC (20 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +7 -7
lines
constify audio_hw_if, midi_hw_if, and radio_hw_if.
Revision 1.34.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:25 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.3: preferred, colored
Changes since revision 1.34.2.3: +11 -11
lines
Fix the sync with head I botched.
Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.2: preferred, colored
Changes since revision 1.34.2.2: +11 -11
lines
Sync with HEAD.
Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:44:54 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.34.2.1: preferred, colored
Changes since revision 1.34.2.1: +17 -7
lines
Sync with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Dec 4 13:57:30 2003 UTC (21 years ago) by keihan
Branches: 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
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 23 01:25:59 2003 UTC (21 years ago) by gson
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +11 -5
lines
Make the raw midi device pass through received system exclusive
messages rather than discard them.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Nov 2 11:56:36 2003 UTC (21 years, 1 month ago) by gson
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -3
lines
Some possible MIDI input byte streams could cause sc->in_msg[]
to be overrun, causing a crash.
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:00 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +11 -11
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:00 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -9
lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:31 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +11 -11
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 31 02:16:23 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
Use aprint_*().
Revision 1.21.2.7: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:37:48 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.21.2.6: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.6: +4 -4
lines
Sync with HEAD.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Nov 26 18:49:41 2002 UTC (22 years ago) by christos
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -6
lines
si_ -> sel_
Revision 1.21.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:08:48 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.2.5: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.5: +86 -3
lines
Catch up to -current
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:03 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +88 -5
lines
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.21.2.5: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:28 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.2.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.4: +2 -5
lines
Catch up to -current.
Revision 1.21.4.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:20 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.4.5: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.5: +17 -9
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.21.4.5: download - view: text, markup, annotated - select for diffs
Wed Oct 2 22:02:29 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.4.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.4: +7 -7
lines
do not need the (void *) cast for kn_hook anymore
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Oct 2 16:33:30 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
Add trailing ; to CFATTACH_DECL.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Sep 30 21:19:38 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -6
lines
Use CFATTACH_DECL().
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Sep 27 20:37:30 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Declare all cfattach structures const.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Sep 23 05:51:10 2002 UTC (22 years, 2 months ago) by simonb
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -3
lines
Remove breaks after returns, unreachable returns and returns after
returns(!).
Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:21 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.2.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.3: +15 -5
lines
Catch up to -current.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 3 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +15 -5
lines
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.21.4.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:45:00 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.3: +5 -3
lines
catch up with -current on kqueue branch
Revision 1.23.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:31:22 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.23.8.1: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.8.1: +5 -3
lines
catch up with -current.
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:43:24 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.2: +5 -3
lines
Catch up to -current.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 1 17:54:21 2002 UTC (22 years, 6 months ago) by gson
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -3
lines
spl botch in midipoll() when sc->dying
Revision 1.23.8.1: download - view: text, markup, annotated - select for diffs
Thu May 16 04:52:05 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +15 -5
lines
Add the character device switch.
Replace the direct-access to devsw table with calling devsw API.
Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:48 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +42 -91
lines
Sync kqueue branch with -current.
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:13:41 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +4 -1
lines
Catch up to -current.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Nov 13 05:32:50 2001 UTC (23 years, 1 month ago) by lukem
Branches: 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,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -1
lines
add RCSIDs
Revision 1.21.6.3: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:01 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.21.6.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.6.2: +40 -91
lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:10:55 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +39 -91
lines
Catch up to -current.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Oct 2 22:41:22 2001 UTC (23 years, 2 months ago) by augustss
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +39 -91
lines
ANSIfy.
Revision 1.21.6.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:10 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.21.6.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.6.1: +32 -15
lines
* add a VCLONED vnode flag that indicates a vnode representing a cloned
device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
to the specinfo of a cloned vnode. could possibly redirect getattr to
the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
original device, and reassociates it with the specified dev_t. to be
used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
when debugging race conditions that still exist wrt. locking and
revoking vnodes.
* make the locking state of a vnode consistent when passed to
d_open and d_close (unlocked). locked would be better, but has
some deadlock issues
Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sat Sep 8 20:51:21 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +3 -3
lines
Oops, selwakeup -> selnotify
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 8 20:24:58 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +83 -1
lines
Add kqueue support (someone who understands the midi code should
make sure this is correct).
Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:23 2001 UTC (23 years, 3 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +24 -24
lines
Commit my "devvp" changes to the thorpej-devvp branch. This
replaces the use of dev_t in most places with a struct vnode *.
This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).
Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:15:16 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.12.2.3: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.3: +31 -24
lines
Sync with HEAD.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jan 31 16:19:35 2001 UTC (23 years, 10 months ago) by tshiozak
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +12 -13
lines
solve the race condition while output for umidi.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Jan 30 23:02:18 2001 UTC (23 years, 10 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +24 -16
lines
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.12.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:15 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.12.2.2: preferred, colored
Changes since revision 1.12.2.2: +80 -2
lines
Sync with head (for UBC+NFS fixes, mostly).
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jan 13 16:16:12 2001 UTC (23 years, 11 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1
lines
add missing sc->dying initializer at midiattach.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jan 13 16:09:04 2001 UTC (23 years, 11 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +79 -2
lines
add detaching/deactivation code to midi driver.
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:39:47 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +20 -13
lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Jul 6 00:43:04 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -8
lines
Use device_lookup().
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 6 14:35:28 2000 UTC (24 years, 7 months ago) by augustss
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
Simplify an expression.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 23 07:01:26 2000 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 18 18:49:35 2000 UTC (24 years, 10 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -4
lines
Add a little more debug printing.
Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:34 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2
lines
Pull up to last week's -current.
Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:11 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2
lines
Sync with -current
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 20 22:02:51 1999 UTC (25 years, 1 month ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Sync w/ trunk.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Oct 19 16:04:52 1999 UTC (25 years, 1 month ago) by soren
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
'<Device>' usually means the string comes from outside the kernel.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 9 10:24:45 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Add support for detaching audio devices.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Feb 26 01:18:09 1999 UTC (25 years, 9 months ago) by nathanw
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -4
lines
Make these compile on the alpha when AUDIO_DEBUG is defined.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 20 14:26:44 1998 UTC (25 years, 11 months ago) by drochner
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +8 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 15 18:03:07 1998 UTC (26 years ago) by augustss
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +10 -7
lines
Fix a MIDI buffer overflow problem. Fixes PR 6583.
Patch from Ales Krenek <ljocha@ics.muni.cz>
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Nov 25 22:17:07 1998 UTC (26 years ago) by augustss
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2
lines
Make the copyright header conform to the NetBSD template.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Oct 5 09:21:42 1998 UTC (26 years, 2 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc-base,
chs-ubc
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -3
lines
Make MIDI input work again.
Fix from Torsten Duwe <duwe@ns.lst.de>.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Sep 13 06:30:25 1998 UTC (26 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -5
lines
Make sure the buffers are synchronized on open.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Aug 24 17:59:25 1998 UTC (26 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +40 -1
lines
Write MIDI data from the sequencer to the device in a more sane way.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Aug 17 21:16:11 1998 UTC (26 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +52 -1
lines
* 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 - view: text, markup, annotated - select for diffs
Thu Aug 13 00:13:56 1998 UTC (26 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -3
lines
Remove some leftover fluff.
Make sure there is no outstanding timeout when the sequencer is closed.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 12 18:11:53 1998 UTC (26 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +28 -20
lines
Tidy up and rename some functions in the MIDI driver.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 7 00:00:58 1998 UTC (26 years, 4 months ago) by augustss
Branches: 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).
CVSweb <webmaster@jp.NetBSD.org>