summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2006-03-20switch the mgmt ioctl path to use the ioctl completion function.David Gwynne
2006-03-20move the drv_inq ioctl path to its own completion routine. all the cleanupDavid Gwynne
of the dmammem is now done in the ioctl, the completion routing simply wakes it up.
2006-03-20get rid of the CCB_READY check in ami_start, it is subtly broken and slowsDavid Gwynne
things down. this path is easy to verify without this code so im just dropping it.
2006-03-20the command queues are important so wrap them up in splbioDavid Gwynne
2006-03-20shorten the setup of the xs timeoutDavid Gwynne
2006-03-20de-register.Brad Smith
2006-03-20factorize SGMAP-mapped DMA map creation and destroy codeMartin Reindl
ok miod@, additional testing jsg@ from NetBSD
2006-03-19ANSIfyBrad Smith
2006-03-19ANSIfyBrad Smith
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-19sis950 has 0x5b missing, so it looks more like an it8712f-aTheo de Raadt
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-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-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
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-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
2006-03-18use polling for the synchronise command while i move the xs setup andDavid Gwynne
completion stuff around.
2006-03-18rename ami_cmd to ami_start_xsDavid Gwynne
2006-03-17Fix single-stepping via ptrace(2); ok art@ kettenis@Miod Vallat
2006-03-17Do not print the result of pci_devinfo() when attaching pcib, since thisMiod Vallat
has already be printed by the pci code.
2006-03-17create a completion path for scsi commands without the cruft for wakingDavid Gwynne
up ioctl paths.
2006-03-17split the completion path up. its now the responsibility of the the pathDavid Gwynne
that sets the command up to say how its should be completed. this means we dont have to complicate a generic handler to cope with all the different setup paths. however, at the moment we're using the generic complicated one :)
2006-03-17remove the last remnants of AMI_POLLINGDavid Gwynne
2006-03-17rev 1.77Brad Smith
m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf is M_EXT mbuf. rev 1.72 clarify comment on m_cat(). From itojun NetBSD ok claudio@ mcbride@
2006-03-17In m_pulldown avoid a prepend to the next mbuf in the chain if the resultBrad Smith
would still not have all data we want continous. From martin NetBSD ok claudio@ mcbride@
2006-03-16Get rid of specific softc structure for pci host bridges, as it is neverMiod Vallat
used. No functional change.
2006-03-16Get rid of redundant check in tcasicmatch() - we will only request "tcasic"Miod Vallat
as platform.iobus on tc-capable machines.
2006-03-16spacesTheo de Raadt
2006-03-16Fix for PR 4966: Only disregard bit 27 of MSR_EBL_CR_POWERON forDimitry Andric
specific Pentium III models (early stepping 1 Coppermines). "go for it" deraadt@
2006-03-16Turn EXTENT_ALIGN into an inline function; shaves about 50 to 100 bytesMiod Vallat
on RISC arches, but m68k loses a few bytes; ok deraadt@
2006-03-16Comment out tekram_sync_table and only degine {,dt_}scf_period[] forMiod Vallat
siop_common.c; shaves half a KB.
2006-03-16In sys_mincore(), pass a size in bytes, not pages, to uvm_vslock() andMiod Vallat
uvm_vsunlock(). ok mickey@
2006-03-16Move lmc_system_errors[] so that there is only one instance of it in theMiod Vallat
code instead of four; shaves more than 1KB off GENERIC.
2006-03-16Move the agpgart handling code to a separate file.Matthieu Herrb
Ansify some remaining function declarations in vga_pci.c. ok miod@, dim@.
2006-03-16Switch tun(4) from encapsualting packets into a long mbuf chain over to useClaudio Jeker
mbuf clusters if the packet is big enough. This should speed up tun(4) and may help in other cases where long mbuf chains hurt. Additionally switch the default tun(4) MTU to a more sane 1500 bytes. TUNMTU is kept because it is used in userland. Input and OK from brad@ and djm@
2006-03-16ventical -> verticalMiod Vallat
2006-03-16remove useless powernow cruft from dmesg. we're interested in theDavid Gwynne
available speed states (which is output separately), not if the cpu can support them even if the speedstates are not provided. from gwk, ok deraadt@