summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2009-05-06- explicitely disable some s/pdif features (ac3 passthrough, 24 and 32-bitJacob Meuser
modes, "double speed") - connect s/pdif output to the correct controller channels fixes s/pdif output, which I partly broke when adding multichannel support. problem reported and patches tested by Antti Harri, thanks.
2009-05-05Add extents for prefetchable memory mapped I/O. Should remove conflictMark Kettenis
messages for devices using prefetchable memory sitting behind bridges.
2009-05-04put codec-specific mixer bits in their own routines andAlexandre Ratchov
reference the code in global envy_card structures. Allows the same mixer code to be shared across differents cards. Will ease adding codec-specific knobs when adding support for new cards.
2009-05-03reorganize mixer bits to allow, supporting codec-dependent mixerAlexandre Ratchov
controls later. Also stop using ``next'' and ``prev'' pointers, since they make impossible exposing ``source'' knobs for streams that do not have ``gain'' knobs. This implies renaming ``xxx.source'' knobs to ``xxx_source''. Besides that, no behaviour change.
2009-05-01initialize the mic ADC index before possibly setting it.Jacob Meuser
2009-05-01recognize several more IDT/Sigmatel codecs. IDs taken from the codecs'Jacob Meuser
datasheets.
2009-05-01make mic ADC selection a little more like speaker DAC selectionJacob Meuser
2009-05-01allow jack sensing to mute the DAC the speaker is connected to byJacob Meuser
default, as long is the first output pin is not also connected to that DAC. cleanup a bit now that there are multiple muting methods.
2009-05-01try to get built-in speakers connected to a DAC no other output pinJacob Meuser
connects to be default. if that's not possible, try to make it so that the speaker and the first output pin do not connect to the same DAC by default. allows more configuration freedom.
2009-05-01fix a couple bugs when finding sole connectionsJacob Meuser
- if any pin can select both the target and other nids, it is not a sole connection - if there is more than a single selection but the other selections are disabled, that's a sole connection as well
2009-04-30The previous change did not always update vr_link on rlphy(4) basedMarco Pfatschbacher
interfaces. Therefore we now always start off with vr_link = 1. Bug found and feedback by Emilio Perea. OK sthen@
2009-04-29Apply the cleanup stick.Owain Ainsworth
make write_gatt actually readable, and a tad smaller. Don't use macros when we can just call the damned function. coalesce a few bits of code. as a bonus this actually fixes a bus in the i810/815 dcache case since we got the offset wrong (confirmed by looking at the datasheet).
2009-04-29Enable hardware vlan tagging/stripping and disable theJonathan Gray
vlan filter so it will work properly. ok reyk@
2009-04-29regenStuart Henderson
2009-04-29add some Attansic, Broadcom and a JMicron device. from Brad, ok reykStuart Henderson
2009-04-28The TX engine can get stuck if the interface went through a linkMarco Pfatschbacher
state change. Workaround by resetting the chip if necessary. Also do not try to send packets if our link is down, as this triggers watchdog timeouts. While there correct the VR_RXSTAT_RX_OK define (not used yet). Changes inspired from FreeBSDs overhauled vr(4). Testing, input and OK sthen@
2009-04-27it's easier to have the speaker dac in the converter group thanJacob Meuser
to special case the speaker dac ...
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2009-04-25Prefix wdt softc members with sc_ like other drivers.Michael Knudsen
2009-04-25add basic support for Envy24HT chips and for ``ESI Juli@''Alexandre Ratchov
cards using it. No mixer yet. ok jakemsr@
2009-04-25start splitting the driver in two parts: one specific to theAlexandre Ratchov
generic Envy24 chip common to all cards and another part specific to the cards. This will ease adding support for other card models. ok jakemsr@
2009-04-25KNF and prettify some dmesg strings.Michael Knudsen
2009-04-25explicitely enable the "audio function" widget. it can be a validJacob Meuser
source or endpoint.
2009-04-25beep generators are input endpoints. but ther are not supposedJacob Meuser
to be listed in other widgets' connection lists. if a beep generator is found in another widget's connection list, treat it as a dead end.
2009-04-24Fix two issues with resource accounting:Mark Kettenis
1. Simba, the UltraSPARC-IIi Advanced PCI Bridge doesn't support the standard address range registers. Skip resource accounting on these devices for now. 2. Some machines (for example sparc64) actually implement a 32-bit I/O space, so start parsing the registers that gives us the upper 16 bits and make sure the extent covers the entire 32-bit address range.
2009-04-24No more static functions, comment cleanup, and general pedantry.Michael Knudsen
2009-04-24Make the names in the softc look more like our other drivers.Michael Knudsen
2009-04-24Damn. Forgot to add protos when destaticing functions.Michael Knudsen
2009-04-24Add berkwdt(4), a driver for Berkshire Products PCI PC Watchdog writtenMichael Knudsen
by Wim Van Sebroeck. Commented out in GENERIC but Heriberto Molina is getting devices for developers so we can maintain this more easily. Many thanks to both! Man page will follow later. ``don't hold back for man page'' deraadt
2009-04-24syncMichael Knudsen
2009-04-24Add product id for Berkshire Products PCI PC Watchdog.Michael Knudsen
2009-04-24remove no longer needed workaroundJacob Meuser
2009-04-24make sure the internal/fixed mic is connected to an adc by defaultJacob Meuser
2009-04-24the internal/fixed speaker is special. the dac it connects toJacob Meuser
by default might not be in a converter group. make sure such a dac is not disabled and gets a meaningful name.
2009-04-24use the direction/association/sequence ordered lists of i/o pins toJacob Meuser
create the converter group lists. start with converters that are connected to pins by default, then add converters that can be connected to pins.
2009-04-24drop _generic from azalia_generic_codec_fnode(). there will notJacob Meuser
be a non-generic version. move the prototype to azalia.h so it can also be used in azalia.c in the future.
2009-04-24create lists of analog and digital input and output pins. storeJacob Meuser
the pin nids, the default converter the pin connects to and the pin's priority. priority is based on the pin's default direction and the association and sequence numbers from the vendor. according to the hda spec, lower association/priority means higher priority. sort the list in order of highest to lowest priority.
2009-04-24- a function to check if a node is connected to a particular adc byJacob Meuser
default - a function to find the first adc in the adc list that a node is connected to - use these functions to find which adc the internal mic is connected to by default
2009-04-24after all widgets have been initialized, loop through all widgetsJacob Meuser
and do some further initialization and information gathering: - disable mixer and selector widgets that don't have any enabled connections - create lists of analog and digital input and output converters - find the internal/fixed connection microphone and speaker, and which converters they are connected to by default - create a list of jack sensing capable pins some of this was already being done in other places, but moved here for simplification/better organization
2009-04-24"selected" connections don't mean much for mixer widgets. allJacob Meuser
connections to a mixer widget are enabled and unmuted by default. when finding a default connection through a mixer, check all connections, not just the "selected" connection.
2009-04-24Switch ix over to em flavoured MCLGETI.Jonathan Gray
Initial diff from reyk with a bunch of critical fixes from me. ok reyk@, 'put it in when you're confident with it' dlg@ on an earlier rev.
2009-04-24Add support for ICH10 SATA devices not operating in AHCI mode.Jonathan Gray
Tested by Christian Stuermer.
2009-04-23Start using extended buffer descriptors on the jumbo ring and use MCLGETI toMark Kettenis
allocate mbufs for it. Another jumbo allocator bites the dust! ok dlg@
2009-04-22Start doing resource accounting on non-root PCI busses by populating theMark Kettenis
extents based on address range forwarded by the bridge as indicated by the limit registers. Remove the now redundant BAR initialization code for type 0 devices. ok oga@
2009-04-22dont need to zero the tx pkt pool structure before initting it now thatDavid Gwynne
pool_init does its job properly.
2009-04-22replace arrays of dmamaps and mbuf pointers used to manage packetsDavid Gwynne
on the tx rings (one mbuf ptr/dmamap array entry was created for every tx descriptor slot at attach time) with a dynamically grown list of mbuf pointers and dmamaps. bnx used to have 512 dmamaps/mbuf pointers for the tx ring, now my system is running with 8 under moderate load. the big bonus from this is that the dmamap handling is greatly simplified. reyk@ likes this a lot
2009-04-21tweak the whitespace in the softc a bit to make it easier to read.David Gwynne
2009-04-20when transmitting packets, put the dmamap we used for the packet into theDavid Gwynne
last descriptor slot in the ring. the tx completion code expects the dmamap to be there so it can unload it. ok reyk@
2009-04-20fix dma map unmapping and unloading in the tx cleanup path.Reyk Floeter
ok dlg@
2009-04-20Don't map all agp memory we allocate.Owain Ainsworth
If we're just going to be making it available to userland (the X server), just use load_raw and make sure it's zeroed with BUS_DMA_ZERO. Should save $AMOUNT_BOUND_TO_GART kva. Most kernel users also write through the gart, so no mapping there either. tested by sthen and todd a while back.