summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-14put ieee80211_dump_pkt() under #ifdef IEEE80211_DEBUGDamien Bergamini
2008-08-14fix comments suggested by eric@, remove stupid DPRINTF()Alexandre Ratchov
2008-08-14add missing semicolon; ok mbalmer@, marco@Robert Nagy
2008-08-14let's make this half useful to recover from crashed disks with wrong info.Marc Espie
2008-08-14convert the last traces of btoc/ctob macrosMartin Reindl
ok miod@
2008-08-14simplify S definition to just srcdir, since it appears there's no specialMarc Espie
case anymore. Note that you can always override it from the command line if you need it. after discussion with deraadt@ and tedu@
2008-08-14in abuf_rgetblk() the ``start'' pointer may take a value beyond theAlexandre Ratchov
end of the buffer because periodic boundary conditions of the FIFO are not met ok jakemsr
2008-08-14move all device related stuff from aucat.c to a new dev.c file.Alexandre Ratchov
The new dev_xxx() routines expose a "high level" self-contained interface to the device. At initialization, the device is opened and two chains of aproc structures are created: * a playback chain that exposes a (initially) empty mix aproc to which the rest of the code can attach new streams to be played * record chain that exposes a (initially) empty sub aproc to which the rest of the code can attach new stream to to record The rest of the code, has just to use dev_attach() routine to attach streams. While we're at it, add a ``devops'' structure containing pointers to the device-specific routines. This will allow later to add support for other type of device than the Sun API. Also, write the .wav headers in file_del(), so put all header related data in the file strucuture. This allows to close() the file, as soon as wpipe_xxx() aproc terminates. This will be useful for the server, because it will need to close() descripts of closed connections immediately. add mix_pushzero() routine to fill the mixer with silence. It will be used to avoid the mixer to underrun when there are no input streams. Since we always have at least one input stream there's no behaviour change. ok jakemsr
2008-08-14in file.c, before dereferencing pointers to in(), out(), eof(),Alexandre Ratchov
hup() routines of the aproc strucure check that the aproc structure has not desappeared. This never happens currently, but will be allowed later. No behaviour change. ok jakemsr
2008-08-14add an "AUTOQUIT" flag to mix and sub aprocs. If the flag isAlexandre Ratchov
set, the mix aproc will exit once there are no more input streams, similarly the sub aproc will exit once there are no more ouput streams. If the flag is not set, the mix aproc will generate silence, and the sub aproc will drop samples. By default this flag is set, so no behaviour change. ok jakemsr
2008-08-14add a bytes counter to abuf structures to count the number ofAlexandre Ratchov
bytes that entered the FIFO. The counter may overflow, so it should be used with "modulo 2^32" arithmetic. The counter will be used later to synchronize playback to record. No behaviour change. ok jakemsr
2008-08-14add a xxx_done() method to aproc structures, that cleans up justAlexandre Ratchov
before free()ing the aproc structure, this is cleaner and will allow to reuse wpipe_xxx() and rpipe_xxx() when defining new aprocs. No behaviour change. ok jakemsr
2008-08-14move mix/sub underrun/overrun handling code and data in theAlexandre Ratchov
generic abuf structure, so it can reused. Required for an audio server. No behaviour change. ok jakemsr
2008-08-14factor code that discards data from abuf strucure into a singleAlexandre Ratchov
abuf_rdiscard() routine. Similarly add abuf_wcommit() routine for writing. The purpose is to stop manupulating FIFO pointers in various places outiside abuf.c, its too error prone. No behaviour change. ok jakemsr
2008-08-14Match libpthread's behavior and make pthread_join(NULL, whatever) failPhilip Guenthe
instead of crashing ok kurt@ first observed by Jung <moorang at gmail.com>
2008-08-14Fix 5771/library: in pthread_exit(), delay the call to _sem_post() thatPhilip Guenthe
unblocks the pthread_join() for this thread until the exiting thread is completely done with its thread structure, as the joining thread will free it once unblocked. Also, don't bother to call _sem_post() if the thread is detached. ok kurt@
2008-08-14If the initial thread calls pthread_exit(), don't overwrite its threadPhilip Guenthe
structure, as the 'tid' member there is used by other parts of librthread to determine whether the current thread is the initial thread
2008-08-14Tools from /usr may not be used in netstart since it may be NFS-mountedStuart Henderson
and not available at that time. Rewrite the hostname.if permission check to use only /bin/ls and the shell. Requested by deraadt. ok todd, "Twisted." deraadt
2008-08-13Make sure that we don't sleep with a lock held, some small cleanup whileOwain Ainsworth
i'm here.
2008-08-13Check for zero in drm_calloc() to prevent divide-by-zero. Also rearrangeOwain Ainsworth
the two calls to drm_calloc() that had nmemb and size the wrong way around.
2008-08-13Kill file_priv->refs, it is always 1. Also move two things from theOwain Ainsworth
softc into file_priv since otherwise the wrong value could rarely be used.
2008-08-13Add VIDIOC_ENUM_FRAMESIZES ioctl. This permits applications to query theMarcus Glocker
available formats and resolutions of a device (e.g. "luvcview -L").
2008-08-13Change the drm_lock*() api to take a pointer to the struct as aOwain Ainsworth
parameter, this makes things a little cleaner and removes the need to pass in the softc for some functions.
2008-08-13idgen32 wasn't really right here. Change back to how it was, butOwain Ainsworth
done a little nicer. Advice from deraadt@.
2008-08-13Generate the magic id using idgen32(). While i'm here fix the locking aOwain Ainsworth
bit so we don't sleep with a spinlock. ok djm@.
2008-08-13Kill a bunch of the drm context code that nothing uses anymore, theOwain Ainsworth
xserver only actually uses a small part of it nowadays. Kill a few other dead bits from the drmP.h while i'm here.
2008-08-13Initial stab at a driver for the integrated random number generator of theMark Kettenis
UltraSPARC T2.
2008-08-13one should never use sizeof(struct llc) since 802.2 LLC headersDamien Bergamini
have a variable length. use LLC_SNAPFRAMELEN instead (which happen to be equal to sizeof(struct llc)) as we only deal with LLC+SNAP headers. some indentation tweaks while i'm here. no binary change.
2008-08-13do not increment is_rx_eapol_key twice for each frame.Damien Bergamini
fix a test on the mbuf length and one on the descriptor version. remove redundant checking of GTK KDE length.
2008-08-13sync synopsis/usage; fix double "usage:"; KNF.Igor Sobrado
2008-08-13This tab had bugged me forever.Tobias Weingartner
2008-08-13Disable the fantastics mis-feature on some newer Turion CPUs called C1E.Artur Grabowski
This "power saving" disables the apic when both cpu cores hit the hlt instruction which kills our timer. From FreeBSD. (poked by kettenis)
2008-08-13remove a bunch of bogus ARGSUSEDThordur I. Bjornsson
2008-08-13Disable the fantastics mis-feature on some newer Turion CPUs called C1E.Artur Grabowski
This "power saving" disables the apic when both cpu cores hit the hlt instruction which kills our timer. From FreeBSD.
2008-08-13Old drives (reported Giovanni Bechis <bigionews@snb.it>) don't report CD-RWav
write feature. Add additional check for media type before blanking. The patch fixes problem for Giovanni. ok fgsch
2008-08-13-S currently does nothing useful, so remove it fromJason McIntyre
SYNOPSIS and usage(); after some discussion with canacar
2008-08-13Add more Config mode registers.Brad Smith
From FreeBSD
2008-08-13Add the 8139D PCI id.Brad Smith
2008-08-13regenBrad Smith
2008-08-13Add another PCI id for the Realtek 8139D chipset.Brad Smith
From FreeBSD
2008-08-13Replace the use of a separate softc field to track the linkBrad Smith
state with the newly minted link flag in the softc's rl_flags field. Tested by fkr@
2008-08-12Kill dmesg spam. Since we can't guarantee that a device is capable ofOwain Ainsworth
having a drm driver, don't print when we fail to attach one. stops the "drm at vga? not supported" spam people are seeing.
2008-08-12Fix multiple addition error recently introduced for when extended partitionsTheo de Raadt
are just before an OpenBSD partition in a MBR; done with kettenis & otto ok reyk
2008-08-12adopt the integrity group cipher of the AP at association time.Damien Bergamini
2008-08-12nuke unused fields.Damien Bergamini
2008-08-12add the code to encrypt/decrypt management frames, retrieve key idDamien Bergamini
from MMIE etc... this code can't be triggered as no drivers claim MFP capability yet.
2008-08-12reserves the correct number of bytes in ieee80211_send_4way_msg2().Damien Bergamini
2008-08-12clear Tx_Rx protection bits properly.Damien Bergamini
2008-08-12do not drop frames that have an invalid IE, just stop processingDamien Bergamini
more IEs.
2008-08-12populate ieee80211_recv_action(), does nothing yet.Damien Bergamini