Age | Commit message (Collapse) | Author |
|
|
|
sysctl.
|
|
|
|
based systems.
|
|
requested by miod@
|
|
also brings kernel sha1 more in line with userland;
discussed with miod@ and millert@;
|
|
Charles Longeau, thanks.
Fix an indentation nit while there.
ok toby
|
|
because interfaces may disappear without notice causing use after free bugs.
Instead use the inm_ia->ia_ifp as a hint, struct in_ifaddr correctly tracks
removals of interfaces and invalidates ia_ifp in such cases.
looks good henning@ markus@
|
|
if (cpu_class != CPUCLASS_386) {
Since we don't support 386 now, unconditionally execute the block.
ok tom toby
|
|
From Marc Winiger <mw@msys.ch>
ok dlg, claudio.
|
|
Also remove the _MEXTREMOVE macro which was only used by MFREE.
This time with the uipc_mbuf.c change that I missed last time.
|
|
|
|
and the r5000 errata workaround made them non-relocatable, so always copy
trampolines. This will be revisited when the tlb refill code will be selected
at runtime (soon).
|
|
space, either cache coherent for regular mappings and uncached for
BUS_DMA_COHERENT mappings, as done on all other platforms with direct mappings.
|
|
explicitly use ovbcopy() even if our kernel memcpy() supports
overlapping buffers.
|
|
the mixer layer to the audio layer, differentiate between the
'monitor' class and the 'outputs' class instead of lumping them
together. not all mixers have a monitor class entry which was
causing the outputs class to be ignored.
- look for monitor port in the monitor class, but if the monitor
port is not found in the monitor class look in the outputs class
as well. the code was effectively looking in both the monitor and
outputs classes before, so this is no real change.
sets up audio_info.play.[gain|balance] correctly on at least emu(4),
auich(4), auvia(4) and snapper(4) ... probably most other AC'97 devices
as well. as a result, audioctl(1) works much better and the overall
volume can be set with /dev/audio instead of needing to go through
/dev/mixer.
from deanna@
thanks again to those who tested this change
|
|
pointed out by mglocker@
|
|
to allow buffer sizes and pointer to the buffer to be set to reasonable
values for the sample size of the data to be read/written.
fixes kernel corruption seen with azalia and probably other drivers
that are using something other than 8kHz monaural mulaw as the default
encoding when doing 'dd if=/dev/audio of=foo' as the first audio
operation after boot.
problem reported by deanna@
|
|
|
|
|
|
this will be used to encrypt/decrypt EAPOL-Key frames payload.
|
|
one that can be used with other ciphers than WEP.
|
|
|
|
OK markus@, mcbride@, "sounds reasonable" henning@
|
|
|
|
and the userland sample size matters.
there may be different sample size factors for play and record,
so use the appropriate factor when userland sets the blocksize.
the reported blocksize, hiwat and lowat are only for the play buffer.
IMO, it would be good to report the record blocksize, hiwat and lowat
as well, but that is another issue.
tested with emu(4) and an auvia(4) modified to only do stereo in
hardware.
|
|
requested by jsg@
the digital out port is obscured by the small PCI card access slot
on the moosehead case, but we don't support the digital ports anyway
|
|
and modulo. generates smaller code and circumvents bugs seen on macppc
and mac68k. ok deraadt@ art@ miod@
|
|
|
|
may not be the same sample size as what userland is to receive.
account for the discrepency between the sample sizes when comparing
how much to copy out with what userland expects.
- only copy out the part of the buffer that is in the format userland
expects.
emu(4) can now record with all encodings it claims to be able to.
that is, dd if=/dev/audio of=foo does as audio(4) says (monaural
mu-law) and does it correctly.
AFAIKS, the only other driver that sets a read factor is uaudio(4),
and that depends on what the hardware supports.
tested on i386, amd64 and sgi with 3 different emu(4) cards
|
|
2x on each loop, only loop .5x times
fixes hard hangs on i386 and "hiccups" on sgi when these functions are
used through e.g. dd if=/dev/audio of=foo, since mulaw is the default
encoding.
the commit history wrt this code is interesting. I am responsible for
introducing this braindamage to OpenBSD ... and note that
linear16_to_linear8_[lb]e had it right ...
|
|
|
|
nops unless we compile for early RM7000 flavours, which we usually don't do.
|
|
jump into the scheduler loop.
|
|
happen; from NetBSD
|
|
shifted, instead of the other way around; this shaves a few instructions.
|
|
eeproms was backwards. This resulted in a bogus MAC address being
read from the eeprom on certain cards. From FreeBSD. OK pvalchev@
|
|
B/C/J-class workstations, and many server systems.
This is still work in progress; for now it only displays that the machine
is running OpenBSD. Not enabled yet.
|
|
|
|
The variety of different serial devices is just too big to make a decision up
front. This should make the second serial port on four-digit B/C/J-class
workstation work as a serial console too.
ok miod@
|
|
a few more pthreads regression tests.
ok miod@
|
|
|
|
add a parameter to ieee80211_decap() to handle different 802.11
header sizes.
cleanup and clarify ieee80211_classify().
|
|
This fixes infrequent hangs on reboot due to the ethernet interface interrupting
on machines configured to use A/UX style interrupts.
|
|
|
|
- remove argument names from function prototypes
OK jasper@, ray@, "Didn't notice any errors" marc@
|
|
|
|
ieee80211_get_cts_to_self() if mbuf allocation fails.
|
|
|
|
structure until the frame has been fully validated.
|