summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-07-10Switch away from using -traditional-cpp to iso/ansi cpp for asm files.Jonathan Gray
More architectures hopefully to follow. ok kettenis@
2009-07-10rework link state handling a bit. this reports missing link correctly. theDavid Gwynne
old code showed the nic as active all the time, which makes it suck as part of a trunk. testing and ok by reyk@
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok mglocker@
2009-07-10support onsemi's cat34ts02 and cat6095; ok deraadtConstantine A. Murenin
2009-07-10the temperature value is really a 13-bit 2's complement; ok deraadtConstantine A. Murenin
2009-07-10fix the mask for the sign bit and some comment; ok deraadtConstantine A. Murenin
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
2009-07-09regenJonathan Gray
2009-07-09Intel 55[02]0 and Matrox G200eWJonathan Gray
2009-07-09Be sure we don't hit a NULL deref. Pointed out byMarcus Glocker
remco at d-compu dot dyndns dot org. OK marco@
2009-07-09Use MAXTTL instead of the hardcoded value.Michele Marchetto
2009-07-09Remove commented variable.Michele Marchetto
2009-07-09unsigned -> unsigned intBret Lambert
ok claudio@, henning@
2009-07-08revert MCLGETI for sk(4) for now. commit requested by deraadt@Stuart Henderson
2009-07-08Add the same routing domain assignments and checks into the not so usedClaudio Jeker
protocols as it is currently in if_ethersubr.c. OK reyk@
2009-07-08remove redundant comment.Thordur I. Bjornsson
OK blambert@
2009-07-07When adding or changing a MPLS route, add RTF_MPLS flag toMichele Marchetto
routing message. We can then rely on that flag to spot out MPLS routes coming from routing socket. ok claudio@
2009-07-06Almost rewrite xbridge PCI resource allocation:Miod Vallat
- introduce an interface for widget drivers to ask the xbow to map arbitrary views of their address space, in addition to the low 16MB. This operation may fail or map a subset range of what the caller asked for, depending on the platform we're running on. - use this in xbridge to set up views on the direct memory and i/o spaces, to map devices resources when they don't fit in one of the devio small ranges (limited to 2MB anyway). These views are only allocated when devio can't do the job, so as not to consume too many resources on Origin family systems where such views are scarce resources (and shared accross the whole crossbow). This makes pci devices with large resource needs configure correctly. While there, fix programming of 64 bit memory BAR; this makes bge(4) work. Tested on Octane (with Bridge revision < 4 and >= 4), Origin 200 (Bridge >= 4) and Fuel (XBridge). ok deraadt@
2009-07-05take us to 4.6-currentDavid Gwynne
2009-07-05Buffer in RMD160_CTX is length RMD160_BLOCK_LENGTH not RMD160_DIGEST_LENGTH.Todd C. Miller
Userland version was already correct. From Jason Fritcher. OK deraadt@
2009-07-05Make sure the OpenBSD bounds exclude the first cylinder, which is usedMiod Vallat
to store the bootblocks. ok deraadt@
2009-07-05radeonfb(4), an accelerated framebuffer for Sun XVR-100 boards (which have anMark Kettenis
ATI Radeon 7000 chip on them). While there, make gfxp(4) depend on rasops32 just in case somebody removes other framebuffers that pull this in from their kernel config. ok deraadt@, miod@
2009-07-03Try to be smarter when allocating pci resources, and use unused devio slotsMiod Vallat
whenever possible for devices with both i/o and memory resources; still doesn't allow more than 2MB of mappings per device in each space, though.
2009-07-03Add a wsdisplay type for an upcoming driver for the Sun XVR-100 framebuffer.Mark Kettenis
ok deraadt@
2009-07-03Support RTL8103E and RTL8168DP which are starting to show up, from brad.Theo de Raadt
OK from kettenis and sthen after the diff was minimized to have no potential impact on other chips.
2009-07-03fix mac address for dual-port 8257[56] cards; ok claudio, kettenis, deraadtMarkus Friedl
2009-07-03fix a typo; from bradTheo de Raadt
2009-07-03this is a rather large change to add support for the BCM5709.David Gwynne
the 5709s use a the b09 firmwares, which is different to the b06 used by all the other chips supported by bnx. the majority of the diff comes from special handling for some indirect reads and writes, and because it needs more host memory to operate with. ive tried to keep the cosmetic changes to a minimum. "go for it" deraadt@
2009-07-03regenDavid Gwynne
2009-07-03add ids for the new phys on the bcm5709sDavid Gwynne
"go for it" deraadt@
2009-07-03newer bnx chips use a separate firmware to the "old" ones. this updatesDavid Gwynne
the b06 firmware for the older chips, and adds the b09 firmware. there are three variants of the rv2p code thats loaded onto the chips, so this has been split out into separate firmware files as well. the driver has been updated to handle the split firmwares, and to easily allow loading of the different versions. this change only supports the loading of the firmwares for the currently supported chips. after this change you must build the new firmwares and install them as well as your new kernel. "go to it" deraadt@
2009-07-02Revert the 'optimization' I attempted in r1.21 since it turns outKenneth R Westerback
that returning COMPLETE for non-SCSI_POLL commands is significant. Fixes double free of xs and subsequent crashes caused by pulling out USB media while i/o is active. Problem analyzed & fix discovered by hshoexer@. A more general fix may follow post-4.6. ok miod@ deraadt@.
2009-07-01The widget mapping code has been written back when I was only working onMiod Vallat
Octane support. The Octane being a single-node system, address space is ludicrous enough to allow the whole address space of every widget to be directly accessible in whole, using the address bits reserved to nasid. However, on IP27 and IP35, things do not work this way - while we still have the low 16MB address space of each widget available (the so-called ``short window''), access to other parts of the wiget address space is done through translation slots (IOTTE) at the Hub I/O space level, on a per-node basis. Given the imminent release lock, give up completely on ``large'' mappings of widgets, and restrict ourselves to short window operation, all the time (thus reinforcing the use of devio registers to map pci resources on xbridge). A proper interface to request mappings of specific widget areas, either directly on Octane, or through IOTTE if available on Origin, will appear post-release. No functional change (except from silently repairing Octane support which the previous xbridge commit silently broke).
2009-07-01Add a workaround for the fact that our clocks aren't running during autoconfMark Kettenis
(at least on some of our architectures, including hppa). Since isp(4) keeps track of elapsed time to determine if it should continue to wait for the FC link to come up it would wait very very long. Figured out by krw@. ok deraadt@, krw@
2009-07-01Crank bootblocks version for identification purposes.Miod Vallat
2009-07-01take us to 4.6, though there will still be some changesTheo de Raadt
2009-06-30Link the second stage bootblocks (and boot.net) 256KB higher to accomodateMiod Vallat
the GENERIC kernel growth; verified to not conflict with old prom on sun4. ok deraadt@
2009-06-29In sdmmc_intr_establish(), copy the entire name parameter instead ofMichael Knudsen
dumping the last byte. Input from otto@ and peter@. ok on an earlier diff from miod (and krw IIRC).
2009-06-29Zap isp_inline.h; it is no longer used.Mark Kettenis
ok deraadt@
2009-06-29Whack bridges that have conflicting windows. This prevents us from choosingMark Kettenis
address space that is already in use when reassigning BARs.
2009-06-29the data which is read is never used; ok krwTheo de Raadt
2009-06-29since we link in the 24xx firmware, might as well point to it; ok krw kettenisTheo de Raadt
2009-06-29Bring back rev 1.17, enable hardware vlan tagging/stripping.Jonathan Gray
ok deraadt@
2009-06-29enable isp(4)Theo de Raadt
2009-06-28Now the tx dma mapping problem it was exposing is fixedJonathan Gray
bring back rev 1.16, em style MCLGETI based on a diff from reyk with critical fixes by me.
2009-06-28Properly swap tx dma maps so we don't use invalid maps,Jonathan Gray
leak memory, lose maps or cause double frees. Problem courtesy of our good friends at Intel in the original FreeBSD driver. "awesome" dlg@
2009-06-28Attempt to map memory resources of unconfigured devices, if they do not haveMiod Vallat
I/O resources, via devio. Unfortunately it works as badly as when using the large window, so the bugs I am hunting must come from elsewhere.