summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-07-20Oh, look, code that begins like this:Michael Knudsen
if (cpu_class != CPUCLASS_386) { Since we don't support 386 now, unconditionally execute the block. ok tom toby
2007-07-20Don't show debug output when an interrupt is not for us.Marc Balmer
From Marc Winiger <mw@msys.ch> ok dlg, claudio.
2007-07-20big clean-up patch:Marc Espie
- rename a few functions in var.c to names that make more sense. - introduce Var_Deletei because it makes more sense. - rewrite .for loops to use a local LoopVar construct to avoid looking up more stuff. - reformat var.c to near K&R - rewrite most comments in var.c shown to a few people. millert@ gave me his okay since it passes through ports correctly.
2007-07-20reorder stuff in var.c so that the next patch is more readable.Marc Espie
2007-07-20Remove the MFREE() macro and replace it with a call to m_free().Claudio Jeker
Also remove the _MEXTREMOVE macro which was only used by MFREE. This time with the uipc_mbuf.c change that I missed last time.
2007-07-20- document the "play" default a little more clearlyJason McIntyre
- document the difference between "play" and "cdplay" more clearly ok mjc
2007-07-19syncPeter Valchev
2007-07-19kern.timecounter.timestepwarnings may be altered; from Kristaps DzonsonsJason McIntyre
2007-07-19Sync with cvs:Ray Lai
> xcalloc is unneeded here since i is always 0 and we always use the > memory after initializing it. > > Initial diff from Igor Zinovik. > > OK niallo and xsa.
2007-07-19xcalloc is unneeded here since i is always 0 and we always use theRay Lai
memory after initializing it. Initial diff from Igor Zinovik. OK niallo and xsa.
2007-07-18Prefer ``hit'' cache operations when flushing kernel memory.Miod Vallat
2007-07-18Do not bother trying to make the tlb handler fit - they are too largeMiod Vallat
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).
2007-07-18bus_dmamem_map() maps with a single segment in directly-translated XKPHYSMiod Vallat
space, either cache coherent for regular mappings and uncached for BUS_DMA_COHERENT mappings, as done on all other platforms with direct mappings.
2007-07-18modify ieee80211_aes_key_wrap() to support in-place encryption.Damien Bergamini
explicitly use ovbcopy() even if our kernel memcpy() supports overlapping buffers.
2007-07-18- when traversing mixer fields in the attach routine and connectingJacob Meuser
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
2007-07-18unbreak build.Damien Bergamini
pointed out by mglocker@
2007-07-18move the processing of the pause attribute to the end of audiosetinfo(),Jacob Meuser
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@
2007-07-18convert code under #if 0 to the new ieee80211_key structure.Damien Bergamini
2007-07-18net80211 requires AES too.Damien Bergamini
2007-07-18add AES Key Wrap algorithm (see RFC 3394).Damien Bergamini
this will be used to encrypt/decrypt EAPOL-Key frames payload.
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-07-18Indentation nit.Artur Grabowski
2007-07-18hw.sensors is a tree, so describe/expand it as such; 'put it in' jmc@Constantine A. Murenin
2007-07-18Don't drop outgoing packets in case of a congested input queue.Marco Pfatschbacher
OK markus@, mcbride@, "sounds reasonable" henning@
2007-07-18eliminate duplicate code to open lease file and just open atKevin Steves
startup; ok krw@ henning@
2007-07-18Fix uninitialised variable 'sum' in single-processor idle calculation.Ryan Thomas McBride
ok ckuethe, sturm
2007-07-18Support -r for the export command.Xavier Santolaria
2007-07-18- document the fact that mkfontscale is now run as well as mkfontdir andAntoine Jacoutot
fc-cache for @fontdir ok kili@ espie@
2007-07-17Add missing '};' to end struct declaration. Compiles again.Kenneth R Westerback
2007-07-17more places where the difference between the hardware sample sizeJacob Meuser
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.
2007-07-17emu(4) works on sgi.Jacob Meuser
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
2007-07-17Forgot this part about rlog not needing the Directory request to be sent.Xavier Santolaria
2007-07-17Correct function name in error string.Xavier Santolaria
2007-07-17Simplify the way we check wether the issued command is `log' or `rlog'.Xavier Santolaria
Input and OK ray@.
2007-07-17remove m68k gcc workaround now that the gcc fix is in; ok miod@Todd C. Miller
2007-07-17rmoev the macppc workaround, now that isset() and friends use expressionsOtto Moerbeek
that gcc likes better
2007-07-17rewrite isset() and friends to use shifts and masks instead of divideOtto Moerbeek
and modulo. generates smaller code and circumvents bugs seen on macppc and mac68k. ok deraadt@ art@ miod@
2007-07-17sync swapon usage(); from Igor ZinovikJason McIntyre
2007-07-17do not try to list which options go with -p: the list is currently out ofJason McIntyre
date, and even if i update it, it will obsolete itself if we add or remove options. it works when it makes sense, like it should. after a request from Igor Zinovik
2007-07-17ident/ansify/de-registerJasper Lievisse Adriaanse
2007-07-17document "pid"; based on a diff from Kristaps DzonsonsJason McIntyre
ok otto
2007-07-17typo; from Stephan A. RickauerJason McIntyre
2007-07-17Do not send the Directory request when using the rlog command.Xavier Santolaria
OK joris@.
2007-07-17comment snicky usage of strchrMarc Espie
2007-07-17- the data in the read buffer, that was put there by the hardware,Jacob Meuser
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
2007-07-17when looping through an array and advancing your pointer to the arrayJacob Meuser
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 ...
2007-07-17sync usage(); from Tobias StoeckmannJason McIntyre
2007-07-16HW_SENSORS was never really a 'struct', and nowadays it is definitely a 'node'Constantine A. Murenin
2007-07-16under HW_SENSORS, mention <sys/sensors.h>, similarly to KERN_SYSVIPC.*; ok jmcConstantine A. Murenin
2007-07-16sizeof long double == sizeof double, deal with it; ok kettenisJason Wright