summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2009-09-30Need to scsi_done() before returning COMPLETE for untranslated commands,Miod Vallat
such a Test Unit Ready; found the hard way by jbg@, and inexplicably missed during dlg@ and I audit of hba drivers behaviour.
2009-09-24In trm_scsi_cmd(), in an splbio() protected block, don't bother doing splx()Miod Vallat
and splbio() around a simple timeout_set() call, it won't gain us anything. ok dlg@ krw@
2009-09-23do not attach the AR5416 and AR5418 (AR5416 PCIe) to the ath(4)Damien Bergamini
driver as these chipsets are not currently supported. noticed by ian@ "makes sense" millert@ ok jsg@
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-04Missing scsi_done() in some error path returning COMPLETE; ok dlg@Miod Vallat
2009-09-03call scsi_done before returning COMPLETEDavid Gwynne
2009-09-03must call scsi_done before returning complete.David Gwynne
2009-08-29Add forward declaration for struct to_softc such that the firmware builderMark Kettenis
compiles without warnings again.
2009-08-29Split the ti(4) driver into mostly bus-agnostic code and PCI-specificMark Kettenis
attachment. Add SBus support to the bus-agnostic code.
2009-08-29remove more unneeded Debugger() calls from dev/Jasper Lievisse Adriaanse
agreed by deraadt@ ok jsing@
2009-08-28remove a bunch of unused Debugger()s.Jasper Lievisse Adriaanse
ok krw@ miod@
2009-08-27Bring in NetBSD's rev 1.45 by Matthias DrochnerJonathan Gray
'Reduce polling of the keyboard controller status by a factor of 1000. While on real hardware hardware a poll cycle takes time in the microsecond order of magnitude, a "legacy-free" system which emulates the KBC in BIOS code takes milliseconds -- I'm seeing a multi-minute delay in booting where the KBC is probed. So poll less and use delay() to compensate so that the total wait time stays about the same.' Noticeably helps some machines that do SMM based pckbc. Tested by miod on alpha glass console. ok miod@
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-25Don't setup multicast when in promiscuous mode. From Brad.Stuart Henderson
This was in the diff Brad sent to tech@ and had tested by others and should have been in my previous commit, but I was working from and testing an earlier version of the diff. I've retested with multicast/promisc on my dual 82550.
2009-08-16remove use of BITS and BIT macrosJonathan Gray
2009-08-16tweak a switch statement to appease lintJonathan Gray
2009-08-16remove use of BITS and BIT macros.Jonathan Gray
2009-08-16start getting rid of some of these horrific bit macros, removeJonathan Gray
usage of BITS(). There is a binary change due to the way these macros are further used in the MASK_AND_RSHIFT specifically for ATW_SR_RFTYPE_MASK and ATW_SR_BBPTYPE_MASK.
2009-08-13Rewrite part of the promiscuous/multicast handling; tested by myself,Stuart Henderson
naddy@ and several tech@ readers. From Brad.
2009-08-12Let this work with C99 compilers that do not define __GNUC__Jonathan Gray
ok niklas@
2009-08-12Backing store for ega and vga virtual console is not allocated until theMiod Vallat
second vc is created. However, it was allocated using the geometry of the second vc to allocate backing store for the first. Be sure to use the proper values in case geometries differ.
2009-08-12always mark an xs complete if we're about to return COMPLETE to theDavid Gwynne
midlayer. always call scsi_done on the xs too.
2009-08-12though shalt complete the xs (ie, call scsi_done with it) before returningDavid Gwynne
COMPLETE in a scsi_cmd handler. found by thib when testing my midlayer changes.
2009-08-10hook no longer neededTheo de Raadt
2009-08-10This does not need a shutdown function either (though the equilevantTheo de Raadt
to stop is not called because the ioctl function is a masterpiece)
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10three more shutdown hooks bite the dust.Damien Bergamini
2009-08-09Make ami(4) use NO_CCB at least some of the time.Kenneth R Westerback
"Should never happen but I like it" marco@
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-03Comment fixes and code tidy-up (whitespace and more consistentStuart Henderson
numeric values) from Brad. No binary change.
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok mglocker@ jsg@
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok miod@
2009-07-31timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-07-29timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-28timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-07-28timeout_add -> timout_add_msecBret Lambert
ok jsg@ claudio@
2009-07-25Fix crash in bwi on armish by properly aligning a 32-bit value. NotKenneth R Westerback
to say it works great yet. Might fix bwi on any other alignment sensitive archs we have. My original hack generalized and made sane by jsg@. Didn't affect operation on my macppc. Problem first noted by ian@ a long time ago. ok jsg@ (whose tree is currently unavailable to commit from)
2009-07-24wrap the kernel specific parts in an _KERNEL ifdef.Jonathan Gray
ok reyk@
2009-07-24Don't include systm.h as it isn't needed and pulls in libkern headers,Jonathan Gray
and as ar5xxx.h is included from athvar.h this made referencing the SIOCGATHSTATS ioctl from userland impossible. ok reyk@
2009-07-23Switch re(4) over to MCLGETI.Mark Kettenis
ok deraadt@
2009-07-23If we initialize miicapabilities, we might as well pass it on when callingMark Kettenis
mii_attach. Spotted by chl@. Fix inspired by looking at the current NetBSD code. Repeated calls for testing went unanswered.
2009-07-21Call timeout_set() from rl_attach, not rl_init(). From Brad.Stuart Henderson
2009-07-19Include 0x4402 in the bbp id mapping table used on olderJonathan Gray
devices. http://bcm-specs.sipsolutions.net/BackPlane agrees.
2009-07-18Remove redundant code for setting the maximum frame receive sizeStuart Henderson
and fix the appropriate code in gem_init_regs(). From Brad, tested by Brad (sparc64), todd@ (macppc).
2009-07-18reorder a switch block, no functional change but reduces the diffStuart Henderson
with FreeBSD. From Brad.
2009-07-18Simplify receive filter handling, from Brad.Stuart Henderson
Tested by Brad on sparc64, todd@ on macppc.