summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2008-12-25- one "default" direction is enoughJacob Meuser
- be careful not to set a direction that the pin doesn't support - remove a workaround in the generic code which is more or less for a specific device, there are better ways to deal with such situations now
2008-12-24typo spotted by Alexey SuslikovJacob Meuser
2008-12-24Fix support for earlier i8XX chipsets (specifically the 830 and 840).Owain Ainsworth
Earlier changes meant that we were reading the wrong register, on the graphics card instead of the gmch (bus 0, device 0, function 0. it's the memory controller on all boards with intel chipsets). Later chipsets have a ``mirror'' register on the graphics card device, explaining why this didn't manifest on all chipsets. For simplicity, always find and read the register from the GMCH. While i'm here, fixup unaligned configuration space access (0x50 vs 0x52) Tested by several.
2008-12-23intagp support for Intel 4-series (e.g. GM45) chipsets.Owain Ainsworth
Tested by several x200 owners.
2008-12-23azalia_generic_mixer_pin_sense has nothing to do with pin sense anymore.Jacob Meuser
it is about codec gpio quirks. so rename it as azalia_codec_gpio_quirks, and move it to where the rest of the codec specific code is.
2008-12-23add gpio quirk for Dell e6400Jacob Meuser
2008-12-23enable beep and CD mixer controls on alc88x codecs if appropriateJacob Meuser
2008-12-23add small quirks for certain codecsJacob Meuser
2008-12-23remove static mixer configurations wholesale, to make next commitJacob Meuser
more clear.
2008-12-23- recognize some more codecsJacob Meuser
- remove the codec datasheet URLs. URLs change and these particular datasheets are all easy to find.
2008-12-23gather up most of the code for printing debug info in dmesgs andJacob Meuser
move it to one place, instead of scattered thoughout with #define and DPRINTF. my eyes are happier now.
2008-12-23line-in is now "line-in", line-out is still "line". S/PDIF-out isJacob Meuser
now "SPDIF", S/PDIF-in is still "SPDIF-in". line change because we need to differentiate. S/PDIF change because SPDIF-out is too long, and for consistency.
2008-12-23allow us to completely exhaust the rx ring now that we handle the RXO (rxDavid Gwynne
overflow) interrupt. Yes deraadt@
2008-12-23a) a widget's nid is always it's index in the codec's widget list.Jacob Meuser
b) members of the widget connection list may be invalid. so, - change azalia_nid_to_index to azalia_widget_enabled, and have it only check that the given nid is valid, and that the corresponding widget is enabled. - use azalia_widget_enabled every time members of the connection list are used.
2008-12-23backout previous. changing the index of valid nids breaks things.Jacob Meuser
2008-12-23sizeof(bge_devices) / sizeof(bge_devices[0]) -> nitems(bge_devices)David Gwynne
2008-12-23if we cant put enough packets on the rx ring then schedule a timeout toDavid Gwynne
try again later. tested by many
2008-12-23don't add invalid widgets to connection lists.Jacob Meuser
2008-12-22I swapped MGETHDR arguments in my m_defrag removal commit.Damien Bergamini
2008-12-22syncStuart Henderson
2008-12-22correct typo in ATI FireMV device id; Joe Malcolm on misc@Stuart Henderson
2008-12-22create "_source" mixer items for single connections, but be carefulJacob Meuser
to not be redundant. important for understanding how widgets are connected.
2008-12-22hex for unused widget namesJacob Meuser
2008-12-22set a default name for widgets (u-wid$NID) and don't try to giveJacob Meuser
disabled widgets any other name.
2008-12-22disable unusable convertersJacob Meuser
2008-12-22special case after general case. it's better to be named afterJacob Meuser
a converter than a selector.
2008-12-22new function azalia_pin_config_ov, used to override configurationJacob Meuser
values read from pin complex widgets.
2008-12-22- expand/add macros for pin configuration manipulationJacob Meuser
- use "beep" as pin device 0xe
2008-12-21rework the programming of the multicast addresses onto the chip to use theDavid Gwynne
"new" multicast address and address range counters in the ifp. shrinks and simplifies that code a lot. ive had this diff since may 2007.
2008-12-21use the RXO (rx overflow) interrupt to try to refill the rx ring. this letsDavid Gwynne
us cope if the rx ring empties completely and the hardware tells us we're still getting packets.
2008-12-21move the codec specific widget initialization out ofJacob Meuser
azalia_widget_label_widgets to right after the generic widget initialization. nothing uses this yet.
2008-12-21if a widget is the sole connection to another widget, name theJacob Meuser
widget for the widget it's connected to. but be a bit careful to not end up with duplicate mixer item names.
2008-12-21label converter widgets for their place in the converter group.Jacob Meuser
e.g. the first DAC in the converter group is now dac, the second is dac2, etc. unused converters (not in a converter group) will have a "u-" prefix. these will disappear completely in the near future, as they are useless. if there is more than one converter group, converters in the second group will have a "dig-" prefix, since they are digital converters.
2008-12-21a little rearranging:Jacob Meuser
- move the azalia_widget_init_connection call from azalia_widget_label_widgets to just after azalia_widget_init - move azalia_widget_label_widgets to after dacgroup initialization - move the widget info printing from azalia_widget_init_connection and azalia_widget_init to new function azalia_widget_dump_info - call azalia_widget_dump_info right after azalia_widget_init_connection - in functions that are ony used if AZALIA_DEBUG is defined, use printf instead of DPRINTF()
2008-12-21add mixer_class member to struct widget_t, and define the mixerJacob Meuser
classes in azalia.h instead of azalia_codec.c. this will allow the mixer class to be determined outside of azalia_generic_mixer_init.
2008-12-21add function azalia_widget_sole_conn, which determines if theJacob Meuser
given widget is the sole connection to an ADC, DAC or pin complex. not used just yet.
2008-12-21Undo m_defrag().Damien Bergamini
m_defrag() does not work. It seems to assume that if the length of the mbuf passed as parameter is less than MHLEN, then it is an mbuf header and not a cluster (or something like that.) It thus fails miserably in the bcopy path. I don't have the time to investigate further into this. Thanks to Okan Demirmen for reporting the issue on a ral(4) RT2560. The RT2560 chipset does not support TX scatter and thus m_defrag() was called much more often than in other drivers using m_defrag() where it was less noticeable.
2008-12-15revert 1.20 now that the new allocator is used to control the number ofBrad Smith
RX buffers allocated. ok dlg@
2008-12-13;5Anvidia mcp67 ahci controller also needs special handling.Mike Belopuhov
from Marko Pecic. thanks!
2008-12-12get rid of the ugly IWN_SET_DESC_SEG/NSEGS macros.Damien Bergamini
add "support" for physical addresses larger than 32-bit.
2008-12-12matthieu and reyk say that using 9k frames for rx breaks vic on esx. i canDavid Gwynne
sometimes reproduce this, but i cannot see why it would be a problem. tres weird. only put 4k frames on the jumbo ring to cope. i'll try to figure this out again later.
2008-12-11Don't do radeon_cp_dispatch flip on lastclose.Owain Ainsworth
Sometimes the sarea isn't there and screws us. The intention of this call was to set the scanout buffer back to being correct. On the other hand: If we're in lastclose the xserver is shutting and thus the scanout buffer is moot. Kernel modesetting will probably revising pageflipping, but that'll be a different interface anyway. Since all lastclose does not is call radeon_do_release() just rename radeon_do_release to lastclose and nuke the old one. Uwe@ has some crashes in here occasionally, this diff fixed them for him.
2008-12-10syncOwain Ainsworth
2008-12-10id for Radeon HD2600 PRO AGP; from johan.Owain Ainsworth
2008-12-09Non soundblaster-like devices must set AUDIO_PROP_INDEPENDENTAlexandre Ratchov
flag even if playback and record are not independent; otherwise AUDIO_GETINFO ioctl may return false parameters on devices like envy(4) that don't use the same number of channels for playback and recording.
2008-12-09Replace the sc_type/sc_details enum's in the softc struct with a sc_flagsBrad Smith
flags field and use the flags as appropriate. ok jakemsg@
2008-12-08Don't forget to map the pci interrupt.Owain Ainsworth
Noticed by kettenis@.
2008-12-08Make the various drm drivers print the interrupt they're using.Mark Kettenis
ok oga@
2008-12-07yet another one nvidia ahci controller that needs special handling.Mike Belopuhov
from form@. ok dlg, krw
2008-12-06uncount clusters taken off the rx ring immediately. if those clusters wereDavid Gwynne
being chained into a jumbo we would not replace them when filling the rx ring again until they were passed up the stack.