summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-11-28add paranoia helper function, azalia_nid_to_index. the nid isJacob Meuser
assumed in places to be the index of the widget in the widget_t array of the codec_t, but I'm paranoid. use it to shrink/simplify/fortify some parts. will be used more soon.
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-27widget initialization cleanup:Jacob Meuser
* configure widgets all in one place * add a flag on the widget_t to let us know if the widget is not connected; shaves a lot of connection checking code * be sure not to add power widgets as connectable sources/sinks * configure unconnected pins as output pins. should help some MacBooks and be benign to other devices. the last change has been tested by several as a separate diff. no real functional changes otherwise. from Alexey Suslikov. thanks!
2008-11-27finally, generic converter grouping that fits our needs and worksJacob Meuser
on all (at least all tested) devices. briefly, it works like so: group together all converters that can be reached from or can reach a connected input or output pin. ordering in the converter groups correlates to the association and sequence of the input/output pin. remove lots of static converter groupings in favor of the generic grouping method. the only static groups left are for codecs that still have static mixer configurations. tested by many. thanks to all who tested; this wouldn't have happened without your support.
2008-11-27Needs explicit <sys/malloc.h> include; Georg SchwarzMiod Vallat
2008-11-27intrdoduce DPRINTFN macro so debug messages can be selectively enabled.Jacob Meuser
use it to quiet some debug messages by default, so people don't get scared when testing completely unrelated changes when AZALIA_DEBUG is defined. print out ADC groupings when AZALIA_DEBUG is defined like we do for DAC groupings.
2008-11-27initial import of Weongyo Jeon's FreeBSD driver for the RealTek RTL8187LKevin Lo
802.11 devices. currently it has issues scanning. ok jsg@
2008-11-27The Netgear WG1111v2 wifi dongle contains a RTL8187 chip,Kevin Lo
not a GW3887 chip. ok mglocker@
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers. "Please do so" deraadt@
2008-11-26Use m_defrag instead of collapsing mbufs ourselves.Mark Kettenis
ok dlg@
2008-11-26dont have bpf.h expose the kernel ticks variable wherever it is includeing.David Gwynne
it is very confusing like this. ok deraadt@ canacar@
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers.
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers.
2008-11-26Add my copyright here, too.Marc Balmer
2008-11-26Change the semantics of gpio(4) devices by locking down pinMarc Balmer
configuration and device attachment/detachment to securelevel 0. GPIO pins can now only be configured at securelevel 0. Once the securelevel is raised, only pins that have been configured and set for securelevel access using the GPIOPINSET ioctl are accessible. This also adds the possibility to give GPIO pins a name. ok uwe@
2008-11-26Add a missing device. Found by Alex Brodsky <abrodsky@acs.winnipeg.ca>.Marc Balmer
ok deraadt
2008-11-26Use bus_dmamap_load_mbuf instead of loading mbuf fragments ourselves, andMark Kettenis
use m_defrag to linearize packets that don't fit in 16 segments. ok claudio@
2008-11-26rework the filling of the rx ring. this switches us to having the clusterDavid Gwynne
allocation limited by per ifp statistics, ie, we're not guaranteed to have mbufs in every slot on the rx ring. instead of filling the ring with 256 mbufs all the time (about 512KB of kva) when em is brought up, we give it 4. as demand grows we increase the number of mbufs allowed on the ring. i will bet most users wont go above 50ish mbufs, so we're saving them 400KB of kva. tested by many, including one on sparc64 ok claudio@ deraadt@ henning@ krw@
2008-11-26Zero the surface when we free them. stops some state problems which causeOwain Ainsworth
corruption on second X start on some machines. This driver is really quite dumb.
2008-11-25Add generic sr_scsi_done function that does the spl danceMarco Peereboom
2008-11-25Halt scanning by returning proper sense for illegal LUN.Marco Peereboom
2008-11-25more sizeof->nitemsDamien Bergamini
2008-11-25use shiny new m_defrag() and nitems() instead of rolling our own.Damien Bergamini
2008-11-25move some generic PCIe register flags used in wpi(4) and iwn(4)Damien Bergamini
into common pcireg.h ok deraadt@, kettenis@, dlg@
2008-11-25fixes to build; thanks ratchov@Todd T. Fries
2008-11-25dontqueue is set but never used. garbage collect it.Kenneth R Westerback
2008-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-11-25Unbreak the treeOwain Ainsworth
*sigh*
2008-11-25fix: add output mixer classAlexandre Ratchov
2008-11-25set parameters to native ones; don't setup emulation for nowAlexandre Ratchov
to ease debugging ok uwe
2008-11-25add a shitload of bus_dmamap_sync() calls, even though they are no-opsDamien Bergamini
on i386 and amd64 (we do not implement bounce buffers) where this hardware is likely to be found. this is good programming practice.
2008-11-25Don't try and enable the vblank handler if irqs are disabled.Owain Ainsworth
This is the source of the radeon issues with seizing at X startup. I didn't see this since my test box in coimbra is a pcie amd64 machine running MP. i.e. it has a slightly less shitty interrupt controller.
2008-11-25backout large cluster allocators.David Gwynne
2008-11-25put 9k frames on the jumbo ringDavid Gwynne
2008-11-25spacingTheo de Raadt
2008-11-25Switch wb(4) from the insane ext buffer usage to a very simple m_devget()Claudio Jeker
call to copy the packet from the RX DMA ring to build a mbuf (it almost already did that but way more complex). OK brad@ dlg@ thib@ Tested by Tero Koskinen tero.koskinen (at) iki (dot) fi on a wb(4)
2008-11-25- add a quirk for the terratec uaudio device to stop uhidev(4)Jasper Lievisse Adriaanse
from attaching with a hint from mglocker@
2008-11-25regenJasper Lievisse Adriaanse
2008-11-25- add vender id for terratecJasper Lievisse Adriaanse
- add product id for their uaudio stick
2008-11-25upgt(4) doesn't use amrr, remove useless header net80211/ieee80211_amrr.hKevin Lo
ok mglocker@
2008-11-24add BTDEV_NONEUwe Stuehler
2008-11-24The Exsys EX-1372 uses a 8x clock.Mark Kettenis
ok deraadt@
2008-11-24More sanitizing for wrong bDefaultFrameIndex values. Fixes a panicMarcus Glocker
at attach time for devices which set bDefaultFrameIndex larger than the existing frame descriptors. Spotted, tested, and OK yuo@
2008-11-24Work around the stupidity of radeondrm by double checking that things areOwain Ainsworth
running before we play with things. Lots more cleanup needed, but now you can shut X without it crashing.
2008-11-24Import btsco(4) from NetBSD to work on itUwe Stuehler
2008-11-24Make sure we do not DRM_UNLOCK() twice.David Hill
ok oga@
2008-11-24no 9k cluster allocator yet, switch back to 4k.David Gwynne
2008-11-24extra decl not needed; spotted by djmTheo de Raadt
2008-11-24switch from 4k to 9k frames on the jumbo ring now the cluster allocator isDavid Gwynne
able to give them to me.
2008-11-24destatic radeondrm almost completely. I'm sick of ddb lying to me.Owain Ainsworth
shaves a few bytes, but that's just gravy.