summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-11-07wrap do/while construct around the function macro SESSRELE(); ok dlgTheo de Raadt
2008-11-07Replace the number of bits to shift with EVL_PRIO_BITS in theBrad Smith
EVL_PRIOFTAG macro. ok naddy@
2008-11-06Collapse all sanity checks of hids into one function.Marco Peereboom
Originaly from jordan
2008-11-06Some paranoia and deconfusion.Artur Grabowski
- setrunnable should never be run on SIDL processes. That's a bug and will cause all kinds of trouble. Change the switch statement to panic if that happens. - p->p_stat == SRUN implies that p != curproc since curproc will always be SONPROC. This is a leftover from before SONPROC. deraadt@ "commit"
2008-11-06remove a really stupid comment. Duh, of course it can blockTheo de Raadt
2008-11-06Fix a small bug which made it impossible to use more than oneMarcus Glocker
video control.
2008-11-06Introduced IPv6 support of uniform model for TTL handling.Michele Marchetto
OK claudio@ laurent@
2008-11-06oopsTheo de Raadt
2008-11-06Fix cvs id tag.Michele Marchetto
2008-11-06panic if cpu_switchto() returns from a dead processTheo de Raadt
2008-11-06correct commentTheo de Raadt
2008-11-06delete checks for impossible conditionsTheo de Raadt
2008-11-06queue the mountroot hooks to be run in the same orderTheo de Raadt
2008-11-06use PAGE_SIZE in FS_KERNMAXFILESIZE() use, note this is not the same as ↵Theo de Raadt
getpagesize() elsewhere. otto, please fix correctly after
2008-11-06Have called pass pagesize into FS_KERNMAXFILESIZE(), because there is noTheo de Raadt
automatic symbol that has this information. PAGE_SIZE is simply not portable, or even fixed on some systems. ok otto
2008-11-06The EEPROM is lying about antennas. Hardcode things based on the chipDamien Bergamini
ID which is also what the vendor driver happens to do. Fixes a firmware SYSASSERT on the 5100 when adding the broadcast node. Reported by Jean-Michel Bessot and Robert <robert at openbsd.pap.st>
2008-11-06Oops. Forgot to commit this chunk with the last commit.Owain Ainsworth
Remove softc members and prototypes related to the tasklet system.
2008-11-06Make sure we do not unlock twice.David Hill
nice catch, oga@
2008-11-06Remove the drm_locked_tasklet interface. The only consumer that used itOwain Ainsworth
was the i915 vblank swap ioctl, which just went kaput.
2008-11-06The i915 vblank swap ioctl is fundamentally racy.Owain Ainsworth
using it allowed rendering to continue while waiting for a vblank swap, and often this lead to flickering and rendering a new scene before the swap. this broke a lot of things. With the removal of this swap, userland falls back to the old way of waiting for the vblank then doing the swap itself, this is smooth enough. I decided independantly to kill this, but the intel guys recently concurred. Comment change comes from Eric Anholt at intel.
2008-11-06regenBrad Smith
2008-11-06Add the PCI id for the Broadcom BCM5903F Ethernet chipset.Brad Smith
2008-11-06input and volume twiddlesTodd T. Fries
o set init data to match snapper_set_foo* o set volume to 190 (audible compared to the default) o set input to mic (most common usage) ok jakemsr@
2008-11-06Set the IFCAP_VLAN_MTU capabilities flag so these interfaces are allowedBrad Smith
to transmit full sized VLAN tagged frames.
2008-11-05return an error when trying to get stereo values from a monoJacob Meuser
control. makes mixerctl(1) output more sensible. ok drahn, todd
2008-11-05wrap use of KNOTE macro arguments in () to prevent potential strangeDavid Gwynne
expansion. requested by otto@
2008-11-05wrap an if statement in a macro up with do { } while (0) so it is safe toDavid Gwynne
use in other if/else blocks. "yeah" deraadt@
2008-11-05since mmclose() is only called once for the final close,Matthieu Herrb
set ap_open_count = 0 in mmclose() instread of decrementing it. ok miod@, oga@.
2008-11-05Remove some PCI macros no longer being used.Brad Smith
2008-11-05remove unused macros, partly from Alexey SuslikovJacob Meuser
2008-11-05* use uint8_t instead of int to hold the value of an 8-bit register.Jacob Meuser
* for outputs.{bass,treble}, 0 dB corresponds to mixer value 128, not 0. * line-in is configured as the default recording source; set sc->sc_record_source accordingly. * add missing register to initialization code. from Marco (marco2z at arsystel com), thanks testing/ok drahn@
2008-11-05* remove two custom unsolicited event handlers in favor of genericJacob Meuser
jack sense handling. makes azalia_generic_mixer_pinctrl useless, so zap it. * azalia_generic_mixer_pin_sense works well enough to not need guessing of pin direction in azalia_generic_mixer_default. from Alexey Suslikov, thanks
2008-11-04Use defines for constants. Use __attribute__ bounded.Hans-Joerg Hoexer
ok markus@ (quite some time ago)
2008-11-04uvmspace_unshare() is never used; ok miodTheo de Raadt
2008-11-04implement azalia_create_encodings, which scans through the supportedJacob Meuser
formats and creates an array of unique encodings. use the array in azalia_query_encoding. in other words, no more duplicate encodings in `audioctl encodings`.
2008-11-04need to take mode into account when verifying/setting parametersJacob Meuser
2008-11-04fix potential null dereference.Charles Longeau
Found by LLVM/Clang Static Analyzer. initial patch from me, rewritten by jsing@ ok jsg@
2008-11-04syncTheo de Raadt
2008-11-04new devsTheo de Raadt
2008-11-04If we need to call the tasklet function on unlock, we don't need to holdOwain Ainsworth
tsk_lock (which blocks irqs) for the whole call of the function, just when we manipulate the function pointer.
2008-11-04missing setipl in the 'busy processing soft interrupts state'Dale Rahn
causes high priority interrupts to be delayed until that state is cleared.
2008-11-04Move the trunk port count check from trunk_lb_start() to trunk_start()Brad Smith
before the protocol start routine is called so as to cover all protocols with the same check. ok mpf@
2008-11-04volume scaling/setting cleanup:Jacob Meuser
* MAX_VOLUME_255 has been defined for ages. remove this define and the code that was only being used when this wasn't defined. * remove azalia_generic_mixer_{max,validate_value} since they are pointless. * when setting both stereo channels to the same level, just set the right channel level to the left channel level instead of calculating both separately. from Alexey Suslikov
2008-11-04regenBrad Smith
2008-11-04Add PCI ids for the Intel 7300 MCH and some more IDT PCI Express switches.Brad Smith
2008-11-04pcidevsTheo de Raadt
2008-11-04another intel g45 devTheo de Raadt
2008-11-04Kill some more ttm only defines. No binary change.Owain Ainsworth
2008-11-04The drawable spinlock is no longer ever held in interrupt context (andOwain Ainsworth
won't be). It doesn't need to block interrupts anymore so switch to IPL_NONE.
2008-11-04Enable IMR passthrough of vblank events before enabling it in theOwain Ainsworth
pipestat register. Fixes a nasty race where the bit would get set without being reflected in the interrupt register, so we'd never get another vblank interrupt. Also, use the user_irq_lock to also protect vblank register writes, since it covers the same register. From Eric Anholt and Keith Packard at Intel.