summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-06-21s/IEEE80211_ELEMID_EDCA_PARAMS/IEEE80211_ELEMID_EDCAPARMS/ for consistency.Damien Bergamini
2007-06-21split ieee80211_recv_mgmt() into smaller functions:Damien Bergamini
- ieee80211_recv_probe_resp - ieee80211_recv_probe_req - ieee80211_recv_auth - ieee80211_recv_assoc_req - ieee80211_recv_assoc_resp - ieee80211_recv_deauth - ieee80211_recv_disassoc "reads ok" jsg@ claudio@ mglocker@
2007-06-21english, okay jmc@Pedro Martelletto
2007-06-21reimplement interface bound states in a non-retarded way.Henning Brauer
previously, we had a set of state tables attached to each interface. so for every packet we had to do a lookup in the tables for the interface, and afterwards in the global tables. since we split state keys and states now, use only the global tables, and put the actual states in a tail queue attached to the state key. sort the list so that ifbound states come before global ones. on lookup, we only have to compare the interface pointer on the actual states and use the first one where either the interface matches or the state is not interface bound. thus, if you don't actually use ifbound states, and there is only one state per state key, the overhead is close to zero, where we had extra lookups before. in addition to a much cleaner design (that'll allow for more goodies later) this gives us ~12.5% more forwarding performance. mostly hacked at c2k7, lots of help, testing and ok mcbride & markus
2007-06-21Fix microtime to not lose clocik ticks, gives us among other things, realMiod Vallat
ping times on slow links; from mickey
2007-06-21Simple optimizations:Miod Vallat
- in __pmap_pv_enter, only walk the pv list to search for writeable mappings if we are ading a readonly mapping. - im pmap_protect, do not invoke pmap_extract(), instead directly extract the paddr from the pte we have already computed a few lines above.
2007-06-21Attach interrupt counters to intc interrupt sources too, so that clockMiod Vallat
interrupts get counted; from mickey
2007-06-21rework how the IFF_PROMISC and IFF_ALLMULTI flags are dealt with, and howDavid Gwynne
the multicast filter is programmed. IFF_ALLMULTI is for use by the driver and only the driver, meaning that we have to clear it when its not needed anymore. now that the ethernet layer counts the number of multicast address ranges we can check that early to determine if ALLMULTI is needed, rather than doing the stupid goto allmulti dance as we iterate over the multicast address list. the imperfect multicast filter is a 16 byte wide bitfield, so we can use the "setbit" macro to build it in memory, and then write it to the hardware as a bus_space region. this simplifies the code a lot and avoids confusing bitshifts on u_int32_ts to get the bits in the right place. tested by krw on amd64, naddy on alpha, deraadt on sparc64, and beck on various bits. ok beck
2007-06-20Do not hardcode imask[] size when intializing it.Miod Vallat
2007-06-20These drivers were abusing b_cylinder to store device-specific informationMiod Vallat
in strategy(), and were reusing it in start(). I first considered introducing a b_rawblkno field in struct buf, as has been done in NetBSD, to stop this abuse. However, it does not cost more to simply move the device-specific ``was-b_cylinder'' computation to the start() routine. Plus we get type fixes (daddr64_t) for free, although this does not really matter for these pedro-sized devices. Thus we do not need to grow struct buf for these devices which really ought to live in your Attic (and my machineroom, of course). hp300 HP-IB tested, vax mfm not, but the logic is the same.
2007-06-20alpha kernel have wsmux but not the actual devices; PR #5469 from janjaapMiod Vallat
2007-06-20Add file such that a kernel with lpt at ssio actually compiles.Mark Kettenis
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it.. except these two drivers. knock out that code for now to let it compile while miod gets his fix ready for these drivers.
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20Better recovery when osiop goes nuts and spitsMiod Vallat
osiop0: osiop_select while connected? in loops. Before returning from the interrupt handler, whack the chip. Unfortunately, this causes the few i/o which were queued to time out, but this is better than spinning and eventually panicing.
2007-06-20lpt at ssioMark Kettenis
2007-06-20In vunmapbuf(), explicitely remove mappings before invoking uvm_km_free().Miod Vallat
Even if the latter would end up removing the mappings by itself, it would do so using pmap_remove() because phys_map is not intrsafe; but some platforms use pmap_kenter_pa() in vmapbuf(). By removing the mappings ourselves, we can ensure the remove function used matches the enter function which has been used. Discussed and theoretical ok art@
2007-06-20Protect pool operations with splvm.Miod Vallat
2007-06-20Make sure IPL_CLOCK blocks device interrupts.Miod Vallat
2007-06-20remove an XXX comment;Thordur I. Bjornsson
Basically the reason why we dont do VOP_ABORTOP()'s in NFS is that sys_rename() actually handles the garbage collection of the pathname buffers, the calls in ufs are actually fluff too, but will be delt with later. ok pedro@
2007-06-20READDIRPLUS is v3 only, bail out if the mount isnt a v3.Thordur I. Bjornsson
Prevents weird things from happening. ok tedu@,pedro@
2007-06-20Allow "log" for nat rules without "pass".Marco Pfatschbacher
OK henning@, ``passt scho'' markus@
2007-06-20Add support for VIA CX700/VX700 IDE.Jonathan Gray
Tested by jcs@ on a model 2 oqo.
2007-06-20regenJonathan Gray
2007-06-20Add a few VIA devices found in jcs' model 2 oqo.Jonathan Gray
2007-06-19attach to the novatel ES620 found in the oqo model 2 w/sprint cardjoshua stein
2007-06-19regenjoshua stein
2007-06-19novatel ES620 CDMA modem found in the oqo model 2joshua stein
2007-06-19com at ssioMark Kettenis
2007-06-19Add ssio(4), a driver for the castrated National Semiconductor PC87560Mark Kettenis
Sucky SuperIO chip. For now it only provides support for the i8259-compatible PICs on the chip, but that support is necessary to make USB interrupts work.
2007-06-19Empty another cpu_disklabel. In this case read in the bootKenneth R Westerback
block/native label as needed rather than keeping it in cpu_disklabel. Also a number of assorted minor tweaks to reduce the delta to sparc64 disksubr.c. 'get this in' deraadt@
2007-06-19KNF after the recent macro expansion, mostly prototype indendation.Marc Balmer
No binary change. ok uwe.
2007-06-19Mark PDE entries with PG_U and PG_M. We never need that information from theArtur Grabowski
mmu, it slightly speeds up tlb misses and according to an errata from AMD it can actually work around a bug in the mmu. toby@ ok
2007-06-19Abort all pending ACL connections when we get an HCI command parameterUwe Stuehler
error in response to a HCI_CMD_CREATE_CON command instead of waiting that the user aborts due to boredom. Unfortunately, the command status event does not include a hint to tells us which connection failed.
2007-06-19Pass the correct flag to sbt_start() in sbt_start_cmd()Uwe Stuehler
2007-06-19better debug outputUwe Stuehler
2007-06-19Add a dac group init, mixer table and mixer init for the SigmatelDeanna Phillips
codec ID 83847661 found in some Sony VAIO FE and SZ laptops. No regressions noticed by jasper@, steven@ or Will Backman. I've been using it for months.
2007-06-19Handle interrupts for the record stream as well. Recording now works.Deanna Phillips
Tested by ajacoutot@, steven@ and Will Backman.
2007-06-18Lookup interrupt routing info based on elroy(4) bus number.Mark Kettenis
Fix and simplify debug code that prints the interrupt routing info while I'm there.
2007-06-18Calculate the disklabel checksum *after* filling in all the fields inKenneth R Westerback
the disklabel. ok deraadt@
2007-06-18Bring back Mickey's UVM anon change. Testing by thib@, beck@ andPedro Martelletto
ckuethe@ for a while. Okay beck@, "it is good timing" deraadt@.
2007-06-18this is the sgi disklabel, mips64 is not the sameTheo de Raadt
2007-06-18this is the sgi disksubr, not some mythical "all mips64 architectures can ↵Theo de Raadt
use it" balony
2007-06-18Don't use cpu_disklabel as local storage. Use local variables and discardKenneth R Westerback
the unneeded info when done with it. Another empty struct cpu_disklabel. ok deraadt@
2007-06-18Don't use cpu_disklabel as local storage. Use local variables and discardKenneth R Westerback
the unneeded info when done with it. Another empty struct cpu_disklabel. ok deraadt@
2007-06-18fix pasto'sJasper Lievisse Adriaanse
from janjaap@stack.nl
2007-06-18avoid modification race in DIOCRLDINFO; ok krw miodTheo de Raadt
2007-06-18Implement DIOCRLDINFO, DIOCGPDINFO and DIOCGPART. Tweak DIOCGDINFO toKenneth R Westerback
avoid unnecessary rdgetdisklabel() call. requested by & ok deraadt@
2007-06-18Use a shorter form to load XKPHYS constants in .S code, shaves a few textMiod Vallat
bytes, no functional change.