summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-03-19ANSI and KNF.Brad Smith
2006-03-19Change BLKDEV_IOSIZE down to 2KB like on all other platforms; ok kettenis@Miod Vallat
2006-03-19Do not compile misaligned access recovery code if option SMALL_KERNEL;Miod Vallat
ok deraadt@
2006-03-19mountroot for disk devices shall be dk_mountroot(), not ffs_mountroot().Miod Vallat
2006-03-19ANSI and fix commentsBrad Smith
2006-03-19- check HDRTYPE early, and ignore if it is not supported (n > 2).Brad Smith
- defer access to interrupt configuration register, as its existence depends on HDRTYPE. From itojun NetBSD
2006-03-19regenBrad Smith
2006-03-19add a few more Intel devices as found on a Acer Travelmate 3012WTMi laptop.Brad Smith
dmesgs from damien@
2006-03-19Fix a mem leak and a potential NULL deref; from NetBSD's coverity analysis.Otto Moerbeek
ok millert@
2006-03-19Remove case '?': from getopt example.Ray Lai
OK otto@
2006-03-19use getopt(3)Robert Nagy
from Jasper Lievisse Adriaanse <jasper@nedbsd.nl>; ok otto@
2006-03-19please lintTheo de Raadt
2006-03-19spacingTheo de Raadt
2006-03-19whoever thought that break after return was a good idea needs to get their ↵Theo de Raadt
head examimed
2006-03-19ARGSUSED for signal handlersTheo de Raadt
2006-03-19spacingTheo de Raadt
2006-03-19spacingTheo de Raadt
2006-03-19RCSID() can dieTheo de Raadt
2006-03-19Fix mem leaks in error path. From NetBSD's coverity analysis. ok pat@Otto Moerbeek
deraadt@
2006-03-19sis950 has 0x5b missing, so it looks more like an it8712f-aTheo de Raadt
2006-03-19more sane calloc(3) usage; from adobriyan@gmail.com, ok millertPeter Valchev
2006-03-19sync someMartin Reindl
2006-03-19Partial revert of previous changes, nasty regexps not greedy the way they ↵Marc Espie
should. Broke md5.
2006-03-19this is a really large reworking of how ami works in terms of submittingDavid Gwynne
commands to the hardware and completing them. previously the driver was very engineered toward moving io from the logical disks scsi commands onto the hardware and off. as we built extra functionality into the driver, this path grew more and more hairy as bits were tacked on to cope. this strips it back to dealing with getting the command onto the hardware and off again. each path that submits commands now has to do all its work before submitting the ccb, and supply a function for completing the ccb. both the async and polled paths call the completion routines for commands now. async commands that fail to get onto the hardware first go are stuck on a queue and retried out of a timeout. previously this was only done for scsi commands, now all paths take advantage of it.
2006-03-19Correct strdelim null test; ok djm@Darren Tucker
2006-03-19memory leaks detected by Coverity via elad AT netbsd.org;Damien Miller
deraadt@ ok
2006-03-19Remove extraneous cast to malloc call in fgetln example.Ray Lai
OK otto@
2006-03-19ok, what i thought was sis950 is actually likely the it8712f-aTheo de Raadt
2006-03-19recognize the 976 and 978Brad Smith
2006-03-19rev 1.86Brad Smith
make the "generic" PCI bus enumeration code the standard case which gets used if nothing else is defined in MD headers, introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can be used by MD headers (just 1 port atm) to plug in special code rev 1.62 * Implement a machine-dependent pci_enumerate_bus() for sparc64 which uses OFW device nodes to enumerate the bus. When a PCI bus that is behind a bridge is attached, pci_attach_hook() allocates a new PCI chipset tag for the new bus and sets it's "curnode" to the OFW node of the bridge. This is used as a starting point when enumerating that bus. Root busses get the OFW node of the host bridge (psycho). rev 1.59 Split the code that enumerates the PCI bus and that actually probes for a device into two functions: * pci_probe_device() actually probes/attaches the device specified by the provide pcitag_t. * pci_enumerate_bus() enumerates the bus, and calls pci_probe_device() for each device on the bus. A pci_enumerate_bus_generic() is provided which implements the old method of doing this: If something found at dev0/func0, determine number of functions and probe each one. From NetBSD ok kettenis@ Tested on a good number of amd64/i386/macppc/sparc64 systems
2006-03-19potential NULL pointer dereferences detected by CoverityDamien Miller
via elad AT netbsd.org; ok deraadt@
2006-03-19FILE* leak detected by Coverity via elad AT netbsd.org;Damien Miller
ok deraadt@
2006-03-19more memory leaks detected by Coverity via elad AT netbsd.org;Damien Miller
deraadt@ ok
2006-03-19memory leaks detected by Coverity via elad AT netbsd.org;Damien Miller
ok deraadt@ dtucker@
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-19New amd64 exp(3).Mark Kettenis
tested by steven@, ok otto@
2006-03-18Remove amd64 code.Mark Kettenis
ok otto@
2006-03-18do not leak on re-insert; ok pvalchevTheo de Raadt
2006-03-18syncTheo de Raadt
2006-03-18probe for it8712 and sis950 (somewhat of a clone)Theo de Raadt
2006-03-18No need to keep pointers to cfdriver structs in potential boot devices structMiod Vallat
array, also make it const; tested drahn@
2006-03-18Forgotten part in previous commit; having multiple source trees is aOtto Moerbeek
dangerous hobbby.
2006-03-18Interchange roles: bc becomes parent, dc child. This leads to sanerOtto Moerbeek
tty handling (try bc | grep foo followed by ^C, as noted by deraadt@). To make it all work, bc now waits for dc to exit after giving it a quit command. ok deraadt@ jaredy@
2006-03-18- limit the amount of data bufferevents are going to consume to somethingBrad Smith
reasonable; in some circumstances it could happen that libevent happily allocated 100MB in read buffers without telling the user; found by christopher maxwell - parts of these changes are from his patch. - allow setting an event base for bufferevents; from phil oleson - improved manpage from Phil Oleson From libevent CVS
2006-03-18add some more C99 functions: trunc(3) and truncf(3).Brad Smith
From FreeBSD ok deraadt@ millert@ otto@ jmc@
2006-03-18fix problems found by Coverity via NetBSD:Robert Nagy
- systrace.c: Don't try to dereference pw when it's NULL. Coverity CID 900 - parse.y: free allocated space on failure Coverity CID 1661 - policy.c: Change a return to "goto out" so that fclose will be called. Coverity CID 1881 ok sturm@, ray@
2006-03-18In _bus_dmamem_alloc_range(), do not ignore the caller's ``high'' parameter.Miod Vallat
Makes isadma much happier. From NetBSD
2006-03-18Switch to a rpcc-based delay() implementation. From NetBSD.Miod Vallat
2006-03-18typoBrad Smith
2006-03-18scsi completions never go via the generic done path now. xs is always setDavid Gwynne
in the scis done path