summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
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-06typo in an error message.Damien Bergamini
reported a while back by Laurence Tratt, reminded more recently by brad@
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-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-05fixes my previous commit.Damien Bergamini
the ESS bit must be set in (re)assocation requests.
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).
2007-07-04bye byeHenning Brauer
2007-07-04remove fe(4). hasn't been enabled in 10 years, doesn't compile, no manpage.Henning Brauer
from brad, ok millert beck miod krw igor deraadt
2007-07-04Revert r1.42 of if_bnx.c, "Enable IPv4 transmit TCP/UDP checksumKenneth R Westerback
offload", and associated man page change. To use IPv4 transmit TCP/UDP checksum offloading you must again define BNX_CSUM. As requested by mbalmer@ via deraadt@ on suggestion of reyk@ in response to PR #5437.
2007-07-03join ahci attach code back together into one function.David Gwynne
2007-07-03jmb pretends to be pci now, so i dont need to let it see ahci_softc so itDavid Gwynne
can provide its own attach glue to ahci.
2007-07-03do not blindly configure everything to sit on function 0. jmicron tell meDavid Gwynne
that some vendors will ship their chip with two functions enabled, so now the code will only configure the functionality that is enabled on the current function. two function setups will now work as the oem intended. requested by kettenis@
2007-07-02the jmb362 should work fineDavid Gwynne
2007-07-02regenDavid Gwynne
2007-07-02oops, i copied too much, fix jmb362 idDavid Gwynne
2007-07-02regenDavid Gwynne
2007-07-02jmicron have a 2 port sata chip called teh jmb362David Gwynne
2007-07-02syncDamien Bergamini
2007-07-02new 4965agn product Id.Damien Bergamini
2007-07-02only attach ahci or pciide if the chip can actually support them. deal withDavid Gwynne
the JMB368 while here.
2007-07-02kettenis suggested that i can use pci_intr_map twice on the same deviceDavid Gwynne
safely, so i tried it and it worked great. i can reuse the pci_attach_args to attach ahci and now pciide to jmb without really modifying either of them. lots of code shrinks. ok jsg@
2007-07-02dont force probing of high functions on jmicron controllers. we dont enableDavid Gwynne
function 1 anymore.
2007-07-02dont enable the second pci function for pciide support. we're going toDavid Gwynne
solve this problem a different way now.
2007-07-02dont attach on jmicron parts now that jmb(4) does that for us.David Gwynne
2007-07-02jmicron controllers are strange cos they provide both ide and sata supportDavid Gwynne
on the same pci function. they can be configured to put the different support on different pci functions after booting, but that is unreliable since the kernel doesnt know enough to be able to configure the interrupts properly on this new pci function. this adds a "nexus" driver called jmb that will allow two drivers to attach to the one pci device. this code already fixes things so ahci can attach to the sata stuff. this is more reliable than switch functions on since the interrupts on function 0 are configured by the firmware/bios/whatever.
2007-07-02move ahci_softc and the prototype for ahci_attach into a header so otherDavid Gwynne
code will be able to see it.
2007-07-02pull ahci_attach apart slightly to accommodate attaching ahci(4) to thingsDavid Gwynne
other than pci(4).
2007-07-01fix potential crash due to wrong ca_devsize; whilst here, also fix iobase ↵Constantine A. Murenin
type; ok grange, kettenis
2007-06-30regenJonathan Gray
2007-06-30Add a few devices found in submitted dmesgsJonathan Gray
2007-06-30Add 802.11d (domain info) command.Marcus Glocker
2007-06-29ansify/de-registerJasper Lievisse Adriaanse
no binary change
2007-06-29respect timeouts. prompted by freebsd pr110122, but also proplerlyHenning Brauer
calculate the timeout. help & ok jsg
2007-06-29force the pci bus probe routines to look for extra functions on jmicronDavid Gwynne
controllers. pciide on function 1 isnt enabled until ahci gets to touch it, which is too late for the probe routines to discover that there are high functions to look at.
2007-06-29when we attach to the jmicron controllers, whack their configuration aroundDavid Gwynne
a bit. this guarantees that the controller has its ahci stuff enabled for us to use (which was previously done with magic numbers). this also configs the controller to enable a second function for pciide to attach to.
2007-06-29demystify a little more of the jmicron pci control registersDavid Gwynne
2007-06-29define away some of the magic on jmicron controllersDavid Gwynne
2007-06-27Shrink code by not using __inline without static; like we did for sk(4).Mark Kettenis
From brad at comstyle dot com.
2007-06-26Make natsemi_pci_intr() use pciide_intr_flag(). Needed on the PC87415 partMark Kettenis
integrated on the PC87560 Legacy IO chip found on several hppa workstation models. ok jsg@
2007-06-26Implement bit swap for a byte in O(log(N)) rather than O(N), promptedTom Cosgrove
by an interview question I was asked. ok reyk@
2007-06-26Fix "the the"s. ok miod@.Tom Cosgrove
2007-06-26Alignment fixes from mickey.Jonathan Gray
2007-06-25support early W83627EHF-A; tested by Sam Fourman Jr; discussed with Gong ↵Constantine A. Murenin
Jun; ok kettenis@
2007-06-25Fix a couple of "of of"s in comments.Tom Cosgrove
2007-06-24Fix typo in (unused) #define.Mark Kettenis