summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-07-13Reenable accelerated text console primitives on pnozz if running with aMiod Vallat
800x600 panel, and document the acceleration code as currently broken on 640x480 panels.
2007-07-13properly check ieee80211_setup_rates() return code.Damien Bergamini
some cleanup while i'm here.
2007-07-13remove obsolete pfi_statehead and pfik_w_states; ok henning@Markus Friedl
2007-07-11Use the full 64 bits available when reporting sizes; now bioctl showsOtto Moerbeek
the correct size for my 4.TB volume. Original diff from dlg@ with some tweaks by me; ok dlg@
2007-07-11Remove unused shpcic_intr_establish() and friends.Miod Vallat
2007-07-11endiannessDamien Bergamini
2007-07-11Bring back the change in rev 1.70, it is safe now:Todd C. Miller
Propagate the wait flag from fsync down to softdep_fsync_mountdev() and do not perform synchronous sync there is no wait requested by skipping the drain_output() call. This fixes a problem where update kthread would sleep forever on some vnode since work is created faster than it can be flushed. OK deraadt@
2007-07-11Try reading a native label in the first sector, before trying to findMiod Vallat
MBR-like partitions.
2007-07-11Do not divide by zero in DISKLABELV1_FFS_FSIZE if the argument value is bogus;Miod Vallat
ok otto@ millert@ krw@
2007-07-10emu(4) incorrectly overrides the requested recoding format, settingJacob Meuser
it to 16-bit slinear_le. this appears to be the result of a mistake in porting the driver from NetBSD. when this driver was ported, NetBSD had some members in it's 'audio_params' structure that OpenBSD doesn't have. in particular, NetBSD had 'hw_encoding' and 'hw_precision', which store what the hardware is presenting. the 'encoding' and 'precision' members store what the audio layer is presenting (both in NetBSD and OpenBSD) and can be different than what the hardware is presenting. the original NetBSD code was setting 'hw_encoding' and 'hw_precision', and in porting was changed to 'encoding' and 'precision'. with this change the hardware is still presenting 16-bit slinear_le; having the variable 'b16' set to '1' is enough to ensure this. however now the audio layer will convert it to the requested format, instead of always outputting 16-bit slinear_le.
2007-07-10change firmware loading code to adopt the new 2.14.4 firmware layout.Damien Bergamini
while i'm here, fix allocation of the Rx ring descriptors so we don't waste memory. IMPORTANT: you must upgrade your wpi-firmware package to rev. 2.14.4 or the driver will stop working.
2007-07-10Don't trust the privilige level in the sigcontext passed to sigreturn(2).Mark Kettenis
ok miod@
2007-07-10adjust pf_find_state_all() so that it works correctly for the new globalKurt Miller
table/state tail queue design. corrects ftp-proxy errors "server lookup failed (no rdr?)" okay henning@
2007-07-10Don't brelse() a buf we don't own in readsgilabel() by mistake.Miod Vallat
2007-07-10fix the bug rev 1.56 uncovered and rev 1.62 worked around.Jacob Meuser
data is expanded before it goes in the buffer. all sizes and offsets used internally are of this expanded data. there's no need to compensate for this fact except when showing information to the user in case their actions depend on how many bytes are in the buffer.
2007-07-10Revert previous commit, it probably was intended to come with matchingMiod Vallat
changes to uipc_mbuf.c, but right now all it causes is infinite recursion.
2007-07-09change the behaviour of the LED on the O2 so that it's red in user modeJasper Lievisse Adriaanse
and green when idling. from Joel Sing <joel at ionix.com.au> ok miod@
2007-07-09Replace the huge MFREE macro with a simple call to m_free(). On today'sClaudio Jeker
computer the resulting code is smaller and faster. Also remove the _MEXTREMOVE macro which was only used by MFREE. OK markus@ long time ago
2007-07-09Do not allow clustering read for filesystems which block size is smallerMiod Vallat
than the hardware page size, as was the case in the old clustering code. This fixes vnd reads on alpha and sparc64 On behalf of pedro@, ok art@
2007-07-09take into account possible expansion and be more careful not toJacob Meuser
try to go past the end of the buffer. this and the last commit allow ffplay and gnash to work properly on devices that may need to do mono to stereo conversion, like auich(4). problem reported by and much debugging deanna@
2007-07-09give the user what they expect instead of what we're working withJacob Meuser
by taking into account expansion we may have done in cases such as playing monoaural media on a device that only plays stereo, like auich(4).
2007-07-09don't always spew massive debug messages just because AUDIO_DEBUG isJacob Meuser
defined.
2007-07-08ansify/de-registerJasper Lievisse Adriaanse
ok krw@
2007-07-08Process scan command results. Enable 'ifconfig -M'.Marcus Glocker
2007-07-08As pointed out by Mickey, "-I/usr/includes" is not required forKenneth R Westerback
successful compilation of assembler or generating microcode.
2007-07-07Restore missing '(' to allow successful compilation. Bad pyr@.Kenneth R Westerback
2007-07-07Make the scan command work, finally.Marcus Glocker
2007-07-07Add support for Realtek ALC883. This is the "value" edition of theDeanna Phillips
ALC882, and differs only by lacking an ADC and a mixer, so have it use ALC882's get_port(), set_port() and a slightly modified version of its mixer init. This also works around a problem where the generic mixer init creates truncated mixer item names which can't be manipulated (noticed by steven@). Tested by steven@, ckuethe@ and jmc@.
2007-07-07Match VIA VT8237A; from "Christoph Egger" <Christoph_Egger@gmx.de>.Alexander Yurchenko
2007-07-06have ieee80211_parse_rsn() return a reason code so that we canDamien Bergamini
deauth associating stations with bad RSN IEs. cleanup parsing of vendor-specific IEs.
2007-07-06cleanup the computation of mgmt frames sizes.Damien Bergamini
still very ugly but hopefully correct.
2007-07-06remove remaining bits for pre-RSNA shared authmode support.Damien Bergamini
it has been #if 0'd since 3.9 and we have never supported this mode (no ifconfig option etc...).
2007-07-06typo in an error message.Damien Bergamini
reported a while back by Laurence Tratt, reminded more recently by brad@
2007-07-06don't check the IEEE80211_CAPINFO_PRIVACY bit in (re)association requests.Damien Bergamini
the spec says that "APs ignore the Privacy subfield within received Association and Reassociation Request managements frames". if the IEEE80211_CAPINFO_ESS bit is not set, reply with the correct status code (IEEE80211_STATUS_CAPINFO instead of IEEE80211_STATUS_BASIC_RATE). indent things a bit while i'm here.
2007-07-06initialize an unitialized variable.Damien Bergamini
2007-07-06btintrq has been removed from bt_input.c, don't reference it here.Christian Weisgerber
Makes bluetooth build again. ok uwe@
2007-07-06Fix a misleading comment.Artur Grabowski
noted by Constantine Kousoulos <wuwei@freemail.gr>
2007-07-06- enable full-duplex mode by default if a device is openedJacob Meuser
read-write and it supports full-duplex operation. - update documentation to match this behaviour. see http://marc.info/?l=openbsd-tech&m=118310788926431&w=2 for more background on this change "patches look correct to me" marc@
2007-07-06the AUDIO_WSEEK ioctl should return the number of bytes in the playJacob Meuser
buffer, not the record buffer. inspired by recent similar change in NetBSD. "patches look correct to me" marc@
2007-07-06be sure to respect the pause attributeJacob Meuser
originally from Alexandre Ratchov "patches look correct to me" marco@
2007-07-06- there is no need for audio_init_ringbuffer() to always set the "pause"Jacob Meuser
attribute to '0'. this function may be called when executing an AUDIO_SETINFO ioctl where the pause attribute was set to '1', and setting it to '0' in this function will cause unexpected bahaviour. - according to audio(4), the AUDIO_FLUSH ioctl "restarts recording and playback". therefor, it should set the pause attributes to '0'. this was previously accomplished indirectly, because it calls audio_init_ringbuffer(), which was setting pause to '0'. - the pause attribute must be set to '0' in audio_open() so that recording and playback buffers can be "activated" when the device is opened. this was apparently forgotten when audiosetinfo() was split off of audio_open() and the logic in audiosetinfo() was changed to accomodate being run at times other than open(). also, this only really affects read() with poll(), which may explain why the problem was not noticed for some time. originally part of a patch Alexandre Ratchov sent to tech@ a while back fixes PR 3813 "patches look correct to me" marco@
2007-07-06net80211 growth eats another ethernet driver (which is super rare on laptops)Theo de Raadt
2007-07-06The poll(2) syscall doesn't work correctly on audio(4) devices.Jacob Meuser
For instance, it may not set POLLIN when samples become available, or may set POLLOUT when write(2) will block. Fix this by making conditions used by poll (FILTREAD and FILTWRITE macros) match the blocking conditions in audio_read() and audio_write(). originally from Alexandre Ratchov, with a small tweak by me. "patches look correct to me" marco@
2007-07-06sha1 is needed by wlan now, tooTheo de Raadt
2007-07-05Report actual faulting address (if we can) instead of the mmu tag word forMark Kettenis
SIGSEGV. tested by jasper@
2007-07-05fixes my previous commit.Damien Bergamini
the ESS bit must be set in (re)assocation requests.
2007-07-05always set the IEEE80211_CAPINFO_ESS bit in association requests.Damien Bergamini
fixes my 1.36 commit (the bit should not be set for non-AP STA only in Probe Responses and Beacons).
2007-07-05some HT frames may have an additional HT Control field.Damien Bergamini
remove two comments that were misplaced while I'm here (addr4 is always located after the i_seq field, not at the end of the header).
2007-07-05don't set IEEE80211_CAPINFO_ESS bit since we're not operating as an AP.Damien Bergamini
2007-07-05move the logic of determining whether an extended supported rates IE isDamien Bergamini
needed or not to the callers (instead of doing nothing in add_xrates).