summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2006-05-23according to the Linux 8139cp driver the TTTech MC322 adapter usesBrad Smith
the 8139C+ chipset, so attach with re(4) instead of rl(4). ok dlg@
2006-05-22Check for NULL cookies before calling hook_disestablish(). Just in caseKenneth R Westerback
the establish calls were bypassed or failed. ok mpf@
2006-05-22- fix and prettify SIOP_DEBUGMartin Reindl
- print device name on request sense failure ok krw@
2006-05-22Attach routines can fail before calling *hook_establish(), and theyKenneth R Westerback
often rely on the detach routine for cleanup. So be consistant and careful by checking for a NULL hook before calling *hook_disestablish in detach routines. ok mickey@ brad@ dlg@
2006-05-22Add support for raid 50 and 10 in bio.Marco Peereboom
2006-05-22Warn the user if the powerhook could not be established during attach. ForDavid Gwynne
extra correctness check that it is set before trying to disestablish it at detach. Whether you can detach a pci ohci controller is a separate issue. Inspired by krw@'s change in ohci.c 1.67 for PR #5128. ok krw@
2006-05-22Don't call powerhook_disestablish if there is no powerhook to disestablish.David Gwynne
This is possible if ohci_init fails in attach. Similar to krw@'s fix in ohci.c 1.67 for PR #5128. ok krw@
2006-05-22Expunge all #if defined(__NetBSD__) and #if defined(__FreeBSD__) crud.Kenneth R Westerback
Misused in many cases anyway. ok dlg@
2006-05-22move VM_NFREELIST out of ifdef kernel for nowTheo de Raadt
2006-05-22Don't call shutdownhook_disestablish() unless there is a shutdownhookKenneth R Westerback
established. Should fix PR #5128. ok dlg@
2006-05-22In wdcprobe(), directly invoke wdc_do_reset() instead of using the resetMiod Vallat
reset function pointer, as this can cause a NULL pointer dereference on some systems.
2006-05-22Add mail box to mfi_mgmt to handle sub commands more gracefully.Marco Peereboom
Remove some debug crud that snuck in the TEST_UNIT_READY case. Finish other half of BIOCVOL primitive. Add several structures to fill out the BIOCVOL primitive.
2006-05-22Add first half of BIOCVOL primitive.Marco Peereboom
2006-05-21Do a giant flush of disk and raid-card memory when SYNCHONIZE_CACHE is called.Marco Peereboom
2006-05-21Fix AV_IEN() computation for cpu #2 and #3.Miod Vallat
2006-05-21pretty up some debug statements.Marco Peereboom
2006-05-21Add bio alarm function.Marco Peereboom
Redo mfi_mgmt to deal with zero data commands.
2006-05-21kvtopte() is not used anymore.Miod Vallat
2006-05-21Replace lockmgr with rwlock; help and ok marco@Aleksander Piotrowski
2006-05-21Add generic management function.Marco Peereboom
Redo ccb_state flags so that we can actually sleep on it. Redo mfi_get_info to use new mgmt function. Add rw_locks for mgmt interface. Make BIOCINQ dynamic.
2006-05-21move the allocation of ccb out of ami_attach into a function of its ownDavid Gwynne
(aptly called ami_alloc_ccbs). allocate the ccbs after the firmware has been queried, but still for the full number of AMI_MAXCMDS. ok krw@
2006-05-21some diskless pointers; ok deraadtJason McIntyre
2006-05-21move variable declarations at the start of a block in ami_attach to the topDavid Gwynne
of the function and unindent that block. ok krw@
2006-05-21during attach use a static, spartan ccb with ami_poll to query to firmareDavid Gwynne
for its params. this means we can ask it how many ccbs it can deal with before we allocate them. ok krw@
2006-05-21the maximum possible number of ccbs that a megaraid can use (126 of them)David Gwynne
is preallocated in the softc, even if the driver is only ever going to use one of them when running. this allocates them separately during attach as a first step toward having the driver only allocate as many ccbs as the firmware can support. ok krw@
2006-05-21Add alarm function opcodes.Marco Peereboom
2006-05-21Move common definitions shared by the various 88100-based designs to theirMiod Vallat
own header file, and slowly make most of the code board-independent. No functional change.
2006-05-21account for the size of a 802.11 header in ieee80211_getmbuf().Damien Bergamini
fix some typos while i'm here. ok reyk@ brad@
2006-05-21Oops, helps to use the right structure field.Marco Peereboom
Use actual nr of physical disks present.
2006-05-21Add first BIOCINQ primitive.Marco Peereboom
2006-05-21remove a chunk of code that was ifdefed out due to compat issues withDavid Gwynne
older firmwares. it was stagnating and now completely broken. if we need it back then we can poke around in cvs for it.
2006-05-21replace lockmgr with rwlock.David Gwynne
2006-05-21The SCSI command on the passthrough bus is handed to the firmware via aDavid Gwynne
structure not included in the MegaRAID command, so it needs to be synced before we submit it. Previously this was done only when the SCSI command had an associated data buffer. The syncing of the passthrough command is now done unconditionally. ok krw@ marco@
2006-05-21Check for stale flags in the DMA map.Brad Smith
From thorpej NetBSD
2006-05-21- _bus_dmamap_load_buffer_direct_common -> _bus_dmamap_load_buffer_directBrad Smith
- fix _bus_dmamap_load_(uio/mbuf)_direct panic messages. - s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. From NetBSD
2006-05-21Fix a couple of comments.Brad Smith
From NetBSD
2006-05-21Pay attention to BUS_DMA_READ; don't need to allocate a spillBrad Smith
page if it is set. From NetBSD
2006-05-21Implement dmamap_load_uio for SGMAPs.Brad Smith
From NetBSD
2006-05-21recognise the perc4/dc firmwareDavid Gwynne
2006-05-20also attach to Broadcom BCM5706C and BCM5708C PHY.Brad Smith
2006-05-20It is possible for a sensor to be detached and freed while it is beingDavid Gwynne
copied out to userland. If this happens we get a use after free and things blow up. Prevent this by making a local copy of the sensor that cannot be freed elsewhere in the kernel and copying that out instead. found by mbalmer@ ok deraadt@ krw@
2006-05-20Let the bootloader pass esym to the kernel, and let the kernel make good useMiod Vallat
of this if it finds out it has not been directly loaded by the PROM; not tested yet.
2006-05-20Detect BOOTARG_BOOTMAC coming from PXE; search for interface and attemptTheo de Raadt
to boot from it. At the same time add -a support for network interface selection; tested by reyk, mk, deraadt on i386, cloned code applied to amd64 and tested a little bit less
2006-05-20handle BOOTARG_BOOTMAC from boot block; tested by reykTheo de Raadt
2006-05-20Lower load address 128KB, to cope with the PROM data area on 8MB machines.Miod Vallat
2006-05-20push a BOOTARG_BOOTMAC (what PXE says is the MAC address of the interfaceTheo de Raadt
we are booting from) out towards the kernel; tested by reyk crank the version too
2006-05-20add bios_bootmac_t and BOOTARG_BOOTMACTheo de Raadt
2006-05-20No need to define two page freelists since we'll only populate one; testedMiod Vallat
by robert@
2006-05-20Crank VM_MAX_ADDRESS to 4GB minus one page now that pmap will accept it.Miod Vallat
2006-05-20Make sure pmap copes with address wraparounds when operating on ranges.Miod Vallat
This removes the dependency for VM_MAX_ADDRESS to be aligned on a segment boundary. While there, remove a few internal pmap macros from mmu.h.