summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-24Fix the superio irq discovery heuristic to work on systems where there isMiod Vallat
an empty slot before the ioc card (such as on Fuel).
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-24Change format strings to allow 64 bit addresses to display properly,Jonathan Gray
and add a missing argument to one of the printf calls. ok art@
2009-04-24Add support for ICH10 SATA devices not operating in AHCI mode.Jonathan Gray
Tested by Christian Stuermer.
2009-04-23Clear IFF_RUNNING and IFF_OACTIVE flags and cancel watchdog timer inMark Kettenis
hme_stop(). From Brad.
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-23-v was printing some information which is irrelevant or duplicate. ThisTheo de Raadt
shrinks the output of installboot by a few lines.
2009-04-23Make pmap_deactivate a NOP.Artur Grabowski
Instead of keeping a bitmask of on which cpu the pmap might be active which we clear in pmap_deactivate, always keep a pointer to the currently loaded pmap in cpu_info. We can now optimize a context switch to the kernel pmap (idle and kernel threads) to keep the previously loaded pmap still loaded and then reuse that pmap if we context switch back to the same process. Introduce a new IPI to force a pmap reload before the pmap is destroyed. Clean up cpu_switchto. toby@ ok
2009-04-23add missing newline in the unknown model caseJonathan Gray
2009-04-23print the type of the icmp message we're bitching about when debugging isDavid Gwynne
turned up in pf_icmp_state_lookup. ok sthen@
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-22this rwlock conversion breaks procfs (in linux compat), as found outTheo de Raadt
by Antoine Jacoutot. back out for oga to look at when he gets back in touch with earth.
2009-04-22sync to MECANIQUE change, and add a uftdi found there, spotted by Henrik ↵Theo de Raadt
Hellerstedt
2009-04-22vendor 0x1781 is MECANIQUE, or was, and now people who don't want to payTheo de Raadt
for an ID uses that space. It is better to name it by that name to be more clear what is going on. shrug. this story dug out by sthen
2009-04-22Make the interactions in allocating buffers less confusing.Artur Grabowski
- getnewbuf dies. instead of having getnewbuf, buf_get, buf_stub and buf_init we now have buf_get that is smaller than some of those functions were before. - Instead of allocating anonymous buffers and then freeing them if we happened to lose the race to the hash, always allocate a buffer knowing which <vnode, block> it will belong to. - In cluster read, instead of allocating an anonymous buffer to cover the whole read and then stubs for every buffer under it, make the first buffer in the cluster cover the whole range and then shrink it in the callback. now, all buffers are always on the correct hash and we always know their identity. discussed with many, kettenis@ ok
2009-04-22When starting up idle, explicitly set p_cpu and the peg flag for theArtur Grabowski
idle proc. p_cpu might be necessary in the future and pegging is just to be extra safe (although we'll be horribly broken if the idle proc ever ends up where that flag is checked).
2009-04-22Only report the IP number in sysctl hw.model; vendor and machine name areMiod Vallat
now reported in hw.vendor and hw.product.
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-22initialise the constructor and destructor function pointers to NULLDavid Gwynne
in pool_init so you the pool struct doesn't have to be zeroed before you init it.
2009-04-22remove a meaningless sensor.desc; ok deraadtConstantine A. Murenin
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-21Switch aps(4) to use timeout_add_msec() instead of timeout_add() with aMichael Knudsen
calculation of ticks. Saves 26 bytes. ok oga `fine' deraadt
2009-04-21Simplify PCI config space access code. There is no way we're ever going toMark Kettenis
see the ancient mode 2 on machines capable of running OpenBSD/amd64. ok deraadt@, toby@, oga@
2009-04-21add a sg_dma backend for amd64 bus_dma. This is a lot more clever aboutOwain Ainsworth
mapping to the gart than the old code, and shouldn't conflict with bouncebuffers when they're added. This is essentially the sparc64 iommu code that's been modularised a bit so I can eventually use the same code for agp-based dma for memory managed drm drivers. Now, this would overflow ramdiskA, so iommu and sg_dma are now #ifndef SMALL_KERNEL. ok kettenis@, marco@. SMALL_KERNEL discussions with deraadt.
2009-04-21tweak the whitespace in the softc a bit to make it easier to read.David Gwynne
2009-04-21syncTheo de Raadt
2009-04-21new ftdi; 8U232AM4; Takanori Watanabe spotted itTheo de Raadt
2009-04-20Some recent IOC3 do not have Dallas timekeepers, so perform a few more testsMiod Vallat
before deciding to attach dsrtc.
2009-04-20fixed style, no binary changeAriane van der Steldt
2009-04-20bigmem is not tweakable by config(8), it never was.Reyk Floeter
ok oga@
2009-04-20unbreak EHCI_DEBUG - usbd_dump_pipe() is only defined if USB_DEBUG isReyk Floeter
also true. no binary change without EHCI_DEBUG. ok jsg@
2009-04-20amas device for amd64, describes the physical memory layout on AMD64 CPU.Ariane van der Steldt
Replaces pchb with amas for the AMD64 address map. amas0 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00 Currently disabled (causing pchb to attach instead). ok art@
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@