summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-05-04Initialize the sis_timeout early in attach instead of sis_init.Artur Grabowski
Sometimes we can can call timeout_del on it before we call sis_init. From mickey. art@ ok.
2007-05-04Skip the kernel pmap when accounting for executability range changes.Artur Grabowski
This could lead to some heavy problems if called from kernel threads (which is the only way to get past the next test with the kernel pmap). From mickey. art@ toby@ ok.
2007-05-04when it does not compile we KNOW it was not tested. come onTheo de Raadt
2007-05-04swap the port register table arrays to make it better readble and fix someReyk Floeter
register typos... on init, wait for the receive engine to be ready before setting up the descriptor rings.
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)
2007-05-04do not call vic_init() on ENETRESET in the ioctl handler, useReyk Floeter
vic_iff() instead. vic_init() calls vic_init_data() which sets up the rings and allocates the dma maps. it could happen that vic_init() was called for multiple times without releasing them first by calling vic_uninit_data(). ouch! this may have caused some problems related to dmamap corruption but we'll do further investigation. ok dlg@
2007-05-03Add monitor mode. Add fast channel switching. Do some simplificationsMarcus Glocker
while there. Comments, tested, and OK claudio@
2007-05-03Config file for MULTIPROCESSOR kernel.Mark Kettenis
2007-05-03allocate DMA memory for the per-port Rx, Tx (command), and Status ringReyk Floeter
context.
2007-05-03Use if_flags instead of ifr_flags.Marco Pfatschbacher
It shouldn't make a difference, but some ioctl-callers don't initialize the ifreq properly. Fixes a panic w/ tun(4) on trunk(4). OK reyk@, claudio@
2007-05-03Add dummy functions to make MULTIPROCESSOR kernels compile.Mark Kettenis
2007-05-03a nxb NIC can have up to 4 nx ports and the latest firmware uses someReyk Floeter
port-specific registers, for the NIU (phy) and the CRB (~mac). fine. but i have to use an ugly mapping table for the port-specific crb registers because their offsets are not consistent and do not allow to use a subregion per port. ugh.
2007-05-03Update CGSIZE macro so that it is no longer based on fs_cpg.Todd C. Miller
This was part of the ffs2 changes but was not committed earlier in order to make the userland and kernel changes independent. NOTE: the change to newfs require an updated fs.h; building an updated newfs with the old fs.h may result in a broken filesystem. OK otto@
2007-05-03Enable support for > 512MB of physical memory on mips64 systems, by usingMiod Vallat
XKPHYS instead of KSEG[01] for direct mappings. Then, detect memory above 256MB on O2 by poking at the CRIME registers (ARCbios will not report memory above 256MB, which is mapped above 1GB physical, to the system), and add it to the UVM managed memory. Tested on r5k, rm5200 and r10k with and without more than 256MB, matching hinv reports in all cases. CRIME memory decoding based on a diff from kettenis@ in december 2005.
2007-05-03Remove MCA ghosts, no changes in .o files.Alexander Yurchenko
Free commit ticket from miod@.
2007-05-03Implement pmap_steal_memory() on powerpc. With some help from art@.Miod Vallat
2007-05-03sensible version strings; ok miodTheo de Raadt
2007-05-03Reduce ip6_hdrnestlimit from 50 to 10. Normal IPv6 packets should not haveClaudio Jeker
more then 10 headers nested. OK deraadt@ henning@ mcbride@
2007-05-03Enable fast channel switching in monitor mode, which makes apps likeMarcus Glocker
kismet happy. Previously system got very slow because at every channel switch an ENETRESET was issued. Reported and diff by Steffen Schuetz <st.sch@gmx.net>. Closes PR 5452. OK claudio@
2007-05-03Fix a typo that was preventing the full device name from being printed.Deanna Phillips
ok deraadt@
2007-05-03missed an struct lock to struct rwlock in the softc.David Gwynne
found by and ok claudio@
2007-05-03regenJonathan Gray
2007-05-03Philips/NXP ISP156x USB controllers as found in ONDA Communication H600.Jonathan Gray
2007-05-03The ring replenish threshold change needed to work around a hardwareTom Cosgrove
problem also appears to be required on the BCM5754/5787 in the Dell PowerEdge SC440 and OptiPlex GX745. dlg identified the problem and came up with the fix. Tested by dlg@, ckuethe@, reyk@; thanks. ok dlg@ beck@ reyk@
2007-05-03Support ONDA Communication H600.Jonathan Gray
Tested by Massimo Lusetti <massimo@cedoc.mo.it>
2007-05-03regenJonathan Gray
2007-05-03ONDA Communication H600Jonathan Gray
2007-05-03convert lockmgr style locks to rwlocks.David Gwynne
input from art@
2007-05-03Remove the pv stealing code. Other than being dangerous, it's alsoArtur Grabowski
slightly incorrect and didn't actually do much until a week ago or so when I fixed it when doing VM_PAGE_MD. deraadt@, miod@ ok
2007-05-03convert lockmgr to rwlocksDavid Gwynne
2007-05-03some shorter code is better codeTheo de Raadt
2007-05-02supply the real devicename to sio_intr_establish() instead a genericMartin Reindl
platform interrupt string when establishing pciide interrupts
2007-05-02carefully set the correct memory windows (crb/pci) and add a dummyReyk Floeter
read after changing the windows to make sure that the value has been set. also change the code to automatically set the correct window which is less error-prone than the manual approach. these changes finally fix the problems with reset and firmware loading. this commit also includes some unrelated changes like register updates, port-specific register mapping, rx/tx pause status etc.
2007-05-02Support for mtrr on AMD opteron CPUs. Patch by Mickey and bluhm@, tweaksMatthieu Herrb
by dim@, ok deraadt@ and myself. (miod@ also found it sane).
2007-05-02Move sparc64 to __HAVE_CPUINFO.Mark Kettenis
ok miod@, deraadt@
2007-05-02- Add support for handling unsolicited events (based on NetBSD).Deanna Phillips
- The STAC9200 codec was mistakenly referred to as STAC9220. Change this to STAC9200 and add a link to the datasheet. - Add a new target, MI_TARGET_PINCTRL, to azalia_generic_mixer_set() that allows us to turn pins on and off. - Add an unsolicited event handler for STAC9200 that will toggle the headphone and speaker pins. This means the speaker will now mute and unmute based on headphone presence. - Spelling: PRESENSE -> PRESENCE Tested by ajacoutot@, tedu@ and krw@, ok krw@.
2007-05-02Fix typo. ok miod@.Tom Cosgrove
2007-05-02the 5754 and 5787 share the same ASIC ID, make the crazy strings list bothDavid Gwynne
so its obvious to people working on the code
2007-05-02do { } while (0) for the debug macrosDavid Gwynne
2007-05-02Make meta_read use the metadata memory that is provided in the discipline.Marco Peereboom
2007-05-02Add a function to free all discipline members and the discipline itself.Marco Peereboom
Move allocation of "in memory copy" of metadata into the new function.
2007-05-02Eliminate unused inline functions and replace ahc_lock() whichKenneth R Westerback
resolves to s = splbio() and ahc_unlock() which resolves to splx(s) with splbio/splx calls. ok marco@ dlg@
2007-05-02Another VIA VT8237A SATA.Jonathan Gray
Tested by Graeme Lee <graeme@omni.net.au>
2007-05-01Refactor metadata code; this is the first step to be able to bringupMarco Peereboom
devices at boot time. Reset the metadata versions to 1 until this solidifies we wont change these.
2007-05-01some fixesReyk Floeter
- fix the reset path and remove the '#if 0'. firmware loading makes me cry - update the SW (CRB) register offsets to match the upcoming 3.4.31 firmware - the link state and ifmedia should work now with a register and code fix - ...
2007-05-01ELF symbol type fixes, no code changeMiod Vallat
2007-05-01Don't rely on the PROM to have configured the interrupts. Make Simics bootMark Kettenis
a but further and doesn't hurt a real E4500. tested by miod@
2007-05-01Simple monoprocessor mutex implementation, faster than the MI code, four leftMiod Vallat
to go.
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-05-01similar exit support for -a, to what i386 doesTheo de Raadt