summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-05-08use the number of channels rather than the number of stereo dacs/adcs,Alexandre Ratchov
because there will support for non-stereo dacs/adcs soon.
2009-05-08Remove static qualifier of functions that are not inline.Ariane van der Steldt
Makes trace in ddb useful. ok oga
2009-05-08hide controls corresponding to missing dacs, adcs or spdifs.Alexandre Ratchov
2009-05-08Initial effort on a port to the omap35xx platform specifically beagleboard,Dale Rahn
however other omap system may be supportable. Not functional until armv7 core changes are complete.
2009-05-08Pieces of arm11 and armv7 support for newer cpus. This is work in progressDale Rahn
and not complete.
2009-05-07Missed removing a printf argument.Ariane van der Steldt
Spotted and ok sthen
2009-05-07Make amas less chatty in debug mode by not mentioning unused ranges andAriane van der Steldt
writing 'interleaved' instead of 'interleaved across 4 nodes'. ok deraadt
2009-05-07Amas(4) on some machines has ranges with base > limit. Treat this asAriane van der Steldt
an empty range. ok kettenis@
2009-05-07KNFMichael Knudsen
2009-05-07Move amas device from arch/amd64 to dev/pci and enable it in i386 as well.Ariane van der Steldt
amas defaults to disabled on both amd64 and i386. "Go for it!" kettenis@
2009-05-06configure the input and output ports in trigger_{input,output} insteadJacob Meuser
of set_params so they only get configured when necessary.
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-06Workaround a bridge deadlock, as advised by comments found in the linux sn1Miod Vallat
code.
2009-05-06IP27 and IP35 do not layout physical memory the same way, IP35 is muchMiod Vallat
simpler; use two different routines to register memory depending on the system type.
2009-05-06Fix typo in a comment, and remove 20st-century mention of optionMiod Vallat
MACHINE_NONCONTIG (not even MACHINE_NEWNONCONTIG!)
2009-05-06Fix signedness of comparison used to know whether we have already reachedMiod Vallat
the next scheduled clock interrupt; the comparison would before always be true, causing the clock to really run at hz/2. While there, remove unused nanodelay() and attempt to clean clock initialization a bit.
2009-05-06When computing output result for jump scroll purposes, do not count LFMiod Vallat
as moving the cursor one charcell right before scrolling.
2009-05-06endrun(4) - EndRun Technologies native time-of-day message timedeltaKevin Steves
sensor. Based on msts(4). Tested with Praecis Ct (http://www.endruntechnologies.com/network-time-source.htm). help and feedback mbalmer 'no problem with this sensor going in' deraadt
2009-05-06remove erroneous fldcnt test. fldcnt can never be 13 here. this isKevin Steves
apparently a leftover from tty_nmea.c
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-05Second step of PG_RELEASED cleanup.Owain Ainsworth
uvm_km deals with kernel memory which is either part of one of the kernel maps, or the main kernel object (a uao). If on km_pgremove we hit a busy page, just sleep on it, if so there's some async io (and that is unlikely). we can remove the check for uvm_km_alloc1() for a released page since now we will never end up with a removed but released page in the kernel map (due to the other chunk and the last diff). ok ariane@. Diff survived several make builds, on amd64 and sparc64, also forced paging with ariane's evil program.
2009-05-05The first step in cleaning up the use of PG_RELEASED for uvm objects.Owain Ainsworth
Now, the PG_ RELEASED flag currently has two (maybe three) uses. The valid one is for use with async io where we want to free the page after we've paged it out. The other ones are "oh i'd like to free this, but someone else is playing with it". It's simpler to just sleep on the damned page instead and stop the fiddling. First step does uao's: in uao_detach, sleep on the object and free it when we're clean, instead of setting a flag so it's freed after. In uao_flush, do the same. Change the interation over the object in flush so that we don't have to add marker pages or other such voodoo to the list when we sleep (netbsd did that when they had a similar diff), just use the hash always. We can now change uao_releasepg() to just free the page, and not bother with the KILLME stuff. When the other objects are fixed this hook will vanish. Much discussion with art@ over the idea, and ariane@ over this specific diff. As mentioned, this one is based loosely on a similar idea in netbsd. Been in my tree for a while, survived many make builds, etc, and forcing paging using ariane's evil program. ok ariane@, beck@.
2009-05-04Instead of keeping two ints in the uvm structure specifically just toOwain Ainsworth
sleep on them (and otherwise ignore them) sleep on the pointer to the {aiodoned,pagedaemon}_proc members, and nuke the two extra words. "no objections" art@, ok beck@.
2009-05-04type pedantry.Owain Ainsworth
the type we bind to an iommu or a GART is paddr_t, by definition, on the other hand, the type we get out of it is not a vaddr_t, it's bus_addr_t. fix up sparc64 iommu, amd64 iommu and the sg_dma backedn that uses it to realise this. ok kettenis@
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-03Get rid of pci_addr_fixup machinery; set up the appropriate extents and passMark Kettenis
them along when we attach pci(4). Simplify the rbus code by using extents too.
2009-05-03On the UltraBook the PROM privides two interrupts for its ccb(4)'s. HandleMark Kettenis
this case by choosing the interrupt that corresponds to the PCI function. Makes the second PCMCIA slot work.
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-03Complete overhaul of the PCI bridge initialization. It will now allocateMiod Vallat
resources to cards not configured by the PROM. There are still some shortcomings, but this is a good start. Tested on IP35 with an fxp(4).
2009-05-03Pass 0 as base offset, not -1, for child devices which ignore the value.Miod Vallat
2009-05-03Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@. While there, also unwrap a line that isn't long enough to need wrapping.
2009-05-03Make sure pckbd_scancode_translate() returns a scancode with the break/releaseMiod Vallat
bit set if needed, in all cases. This fixes rawkbd operation on controllers which require the kernel to perform scancode translation. Found by and ok kettenis@
2009-05-03Discovering an extended MBR partition and setting 'wander' to 1Kenneth R Westerback
should not stop the spoofing process. Setting 'wander' means when we are done with this MBR, read the next one. Problem noted and fix tested by Nick Guenther. ok weingart@ (I think), deraadt@
2009-05-02Let ioc(4) decide which child devices to attach depending on its identificationMiod Vallat
information, instead of trying to attach whatever is defined in the kernel configuration file.
2009-05-02More progress taming the xbow and the pci bridge; still needs code to write,Miod Vallat
but (currently commented out) code makes isp happier on IP27 and IP35, to the point of seeing disks (but considering them offline so far).
2009-05-02Explain why the short window of widget #0 needs to be accessed through aMiod Vallat
large window IOTTE.
2009-05-02More KL configuration structures.Miod Vallat
2009-05-02Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@.
2009-05-02Drop the pm_cpus bitmask field from struct pmap, and instead remember theMiod Vallat
currently active userland pmap in each processors struct cpu_info. This thus skips the complete tlb flush if idle switches back to the proc previously running on this processor.
2009-05-02a few more memset changes.Owain Ainsworth
two cases of pool_get() + memset(0) -> pool_get(,,,PR_ZERO) 1.5 cases of global variables are already zeroed, so don't zero them. ok ariane@, comments on stuff i'd missed from blambert@ and cnst@.
2009-05-01Add option USER_PCICONF.Miod Vallat
2009-05-01uvm_page_alloc() + memset -> uvm_page_zalloc()Owain Ainsworth
nothing uses this code yet, but might as well do it the right way. "if you can't live without commiting this." miod@
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-30Oga changed apm ioctls and forgot to grep. Temporary work around by hittingMarco Peereboom
the sleep button when we get any request. This interface will chnage at some point. ok oga
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@