summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-04-09Improve support for shared libs linked at non-zero addreses:Kurt Miller
- rename private values in struct elf_object to better describe their meaning: s/load_offs/obj_base/ "object's address '0' base" s/load_addr/load_base/ "The base address of the loadable segments" - gdb needs the obj_base value so swap positions with load_base in struct elf_object - fix a few occurrences of where load_base was used instead of obj_base. With help and okay drahn@
2008-04-09Add OpenBSD cvs id.Marcus Glocker
2008-04-09Increase buffer size sent to the fifo, and clamp the size correctly.Theo de Raadt
Scrub the buffer afterwards, too
2008-04-09Initial import for uvideo(4) and video(4):Robert Nagy
uvideo(4) is a driver for USB video device class devices including webcams, camcorders and other cameras. video(4) is a device-independent layer that implements the V4L2 (Video for Linux Two) API. These drivers are *really* work in progress so don't even try to use them just yet, because the driver still has some issues, even if it can be used to capture simple MJPEG videos. ok mglocker@, deraadt@
2008-04-09from freebsd; tested in snaps for weeksTheo de Raadt
date: 2008/03/12 20:57:17; author: jhb; state: Exp; lines: +4 -1 Relax the BIOS/OS sempahore handoff code to workaround different hard hangs (one at boot, one at shutdown) in recent machines. First, only try to take ownership of the EHCI controller if the BIOS currently owns the controller. On a HP DL160 G5, the machine hangs when we try to take ownership. Second, don't bother trying to give up ownership of the controller during shutdown. It's not strictly required and a Dell DCS S29 hangs on shutdown after the config write. Both of these changes match the behavior of the Linux EHCI driver. I also think both of these hangs are caused by bugs in the BIOS' SMM handler causing it to get stuck in an infinite loop in SMM.
2008-04-09device_lookup() increments the reference count for the device, and weOwain Ainsworth
never decrement it. Since kernel mappings aren't touched if the device is closed, just grab the softc manually instead on these functions, this means close will be called after the kernel api has been used. ok kettenis@.
2008-04-09Add new stub uvm_shutdown() and call it from the right place in MD boot()Theo de Raadt
2008-04-09Don't grab the kernel biglock for syscalls marked SY_NOLOCK;Thordur I. Bjornsson
matches what amd64 and sparc64 do. tested by johan@ and laurent@ ok toby@,dlg@
2008-04-09dma sync the tx ring and post new packets to the chip once per call toDavid Gwynne
the start routine instead of once per packet. tested on various archs including amd64, i386, and sparc64.
2008-04-08- Count excess and late collisions as output errors.Brad Smith
- Count receive errors as input errors. ok kettenis@
2008-04-08For some reason access to io space using ASI_PHYS_NON_CACHED_LITTLE doesn'tMark Kettenis
work, so go through the MMU just like we do for mem space. Makes puc(4) work on the t1k, and hopefully fixes the problems on the t2k.
2008-04-08unp_internalize() repaired wrong file structs on error. ok deraadt@, kettenis@Stefan Kempf
2008-04-08pci_chipset_tag_t already_t is_t a_t pointer_tMark Kettenis
2008-04-08should not call setpwent(); millert agreesTheo de Raadt
2008-04-08Fix dmesg printing in the case that no device attaches.Mark Kettenis
ok miod@, deraadt@
2008-04-08document "make install" for the kernel; requested by Girish VenkatachalamJason McIntyre
arm twisting from henning (and an ok)
2008-04-08bring cloning up too date; Munge it so it will work with atleastThordur I. Bjornsson
oga@'s upcoming DRM changes and too some degree ratchov@'s audio work. It still works for bpf's though. Parts from ratchov@; fstat(1) parts from Pedro Martelletto; tested by many, ok'ed by a few; "get going with cloning" deraadt@
2008-04-08Split the cdev makro for bpftun into two seperate definitions. tun(4) andClaudio Jeker
bpf(4) are different enough so that the split makes sense -- this is necessary to make bpf(4) cloneable. requested deraadt@, OK thib@
2008-04-08Make ahci detachable. Not tested as the ppb on my shitty nvidiaJonathan Gray
board doesn't seem to properly propagate expresscard interrupts. Incoporating suggestions from dlg and kettenis, ok dlg.
2008-04-08syncTheo de Raadt
2008-04-07Since Alpha is NUMBOOT=0, no need for #ifdef __alpha__ code inside aKenneth R Westerback
#if NUMBOOT > 0 section.
2008-04-07Restore boot block (-B) support that was incorrectly deleted duringKenneth R Westerback
the -r removal. Found by drahn@ when attempting a landisk install. ok deraadt@ drahn@
2008-04-07Compare device names consistantly in parsedisk().Kenneth R Westerback
ok deraadt@
2008-04-07SGI 1-Wire Number-In-a-Can drivers. These are regular Dallas/Maxim append-onlyMiod Vallat
EEPROM, with knowledge of how SGI formats their contents. They are needed by IOC to figure out the Ethernet address of its Ethernet subdevice (yes, verily).
2008-04-07Simple com@ioc (with interrupt handling disabled until ioc interrupt code isMiod Vallat
written). Joint work with jsing@
2008-04-07Preliminary IOC3 multi-function chip driver, from jsing@ and I. CurrentlyMiod Vallat
missing a driver for the ethernet part, and interrupt handling is not written yet.
2008-04-07Allow a 1-Wire controller to request an immediate scan, and also to preventMiod Vallat
periodic scans. ok grange@ (until this gets replaced with a proper notification mechanism to avoid unnecessary bus polling).
2008-04-07RegenMiod Vallat
2008-04-07A first cut at XBow bus support, very minimal, limited to a local bus only;Miod Vallat
HUB driver (for IP27) is a stub, and interrupt support is a shoot in the dark and will need some serious debugging until it is sane, but I want to reduce the weight of these diffs first. Based on a lot of tinkering and experiments, as well as knowledge extracted from the Linux source code.
2008-04-07Platform-specific bits for IP30 (Octane). Based on knowledge extracted fromMiod Vallat
Linux source code.
2008-04-07Allow for up to 32 memory segments.Miod Vallat
2008-04-07Add a freelist member to the ARCBios memory information. For now, all ARCBiosMiod Vallat
available memory regions will be reported to be in VM_FREELIST_DEFAULT. Add a few quirks to cope with (some) IP27 and IP30 weirdness.
2008-04-07Add ``guarded'' word read and write routines, to be used by machine-dependentMiod Vallat
code soon. Similar to what ddb does, but does not need ddb to be compiled in.
2008-04-07Split clock attachment in two parts: a timecounter attachment (at mainbus),Miod Vallat
and a time-of-day chip (wherever it gets found).
2008-04-07Since uncached virtual addresses will depend upon space identifiers on R1xkMiod Vallat
systems, switch to the PHYS_TO_UNCACHED macro to compute proper addresses. Not really necessary for the O2 which does not implement spaces, but can't hurt either.
2008-04-07Unclutter machdep.c by moving the IP32-specific initialization code to itsMiod Vallat
own file. While there, more dead beef removal in struct sys_rec.
2008-04-07Use CCA_CACHED as the default CCA for all cached mappings and addresses.Miod Vallat
2008-04-07Define the pte cacheability bits from the cpu.h cache coherency constants.Miod Vallat
2008-04-07Define more cache coherency attributes, as well as R10k space identifiers.Miod Vallat
Define a symbolic ``cached'' attribute, to be used for cached mappings regardless of the system's cache coherency.
2008-04-07Hardware monitor address should be 8-byte aligned.Mark Kettenis
ok deraadt@
2008-04-07typo, fix fragmentsMarc Espie
2008-04-07snprintf "%s" -> strlcpyOleg Safiullin
2008-04-07fix snprintf usageOleg Safiullin
2008-04-07In _dmamem_map(), be sure to convert the address from the device view toMiod Vallat
a real physical address in the single-segment short-circuit code.
2008-04-07Don't grab the kernel biglock for syscalls marked SY_NOLOCK;Thordur I. Bjornsson
make the amd64 code a bit nicer and make the sparc64 match that. tested by a few; OK toby@, dlg@, kettenis@ (for the sparc64 part).
2008-04-07deprecate -c, we've been using -DCOMMENT=value more or less forever by now.Marc Espie
2008-04-07tweak a bit, allow ^ to occur at beginning of variable nameMarc Espie
2008-04-07pretty print the BARsDavid Gwynne
2008-04-07likewise for the hash itselfMarc Espie
2008-04-07I should know better... reuse methods internally as much as I can, toMarc Espie
facilitate further changes.