summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2012-08-14gc sc_flags now that the iop struct can tell us where the different IDBsDavid Gwynne
are. noted by haesbaert@
2012-08-14oops, dont claim FUSION is an iop type we will support in mfi(4)David Gwynne
2012-08-14move knowledge of the location of the inbound doorbell out of code inDavid Gwynne
transition_firmware into a member of the iop structures. ok mikeb@ haesbaert@
2012-08-14wire in mfii(4)David Gwynne
ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-14introduce mfii(4), a driver for the generation of megaraid sas boardsDavid Gwynne
after the ones currently supported by mfi(4). mfii is to mfi what mpii is to mpi. it is also strange in that it reuses bits of both mfi(4) and mpii(4) hardware structures. the register layout is sort of like mfi, but the majority of the messaging (post and completion paths) are like mpii. the new logical disk io message is the same as the scsi io command in mpii with an extra raid context bit on the end. other operating systems have supported the new hardware in their existing megaraid sas drivers by cutting them in half and using a metric buttload of function pointers at pretty much every driver entry point to switch between the non-fusion behaviour and the fusion behavior. the only really common code seems to be the handling of the management commands before branching off into the chip specific message handling to move it on and off the hardware. i'll deal with abstracting the mgmt stuff out later. this is working so im getting it in now to polish further in the tree. ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-14split the definitions of the hardware out into a separate file so it canDavid Gwynne
be reused by a driver for the recent megaraid sas fusion boards. mikeb was also interested in doing this a while back to make working on mpii.c easier. ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-13sync a comment with reality and remove an error path duplicate; from bradMike Belopuhov
2012-08-13get rid of the last foo_lo and foo_hi bits i could find in the hardwareDavid Gwynne
structures and use htole64 instead of htole32(addr >> 32); htole32(addr); gets rid of "handy" stack variables to get the dva to 64bits. sprinkle some more byte swaps for things that should have it. tested on a perc5 (xscale)
2012-08-13do appropriate bus_dmamapy_syncs around the pcq/completion ring.David Gwynne
tested on a perc5 (xscale)
2012-08-13replace uint32_ts for hi and lo addresses in the mfi_init_ hardwareDavid Gwynne
descriptors with single uint64_ts. theyre not some weird middle endian thing. this makes the code more readable. add some missing htole32s to the code while here. tested on a perc5 (xscale).
2012-08-12Make sure snooping is enabled on Intel 7 Series HD Audio.Mark Kettenis
Tested by naddy@.
2012-08-11Fix state tracking for the error ccb, and pay attention when the READ_LOG_EXTJonathan Matthew
command used in ncq error recovery fails. Fixes 'ccb->ccb_xa.state == ATA_S_ONCHIP' assertion failures when talking to dying disks. broken disk supplied by Aidan Rowe ok dlg@
2012-08-11Add support for another 82599 SFP+ card. Original diff and tests byMike Belopuhov
Chris Maxwell <chris ! maxwell () hootsuite.com> ok jsg
2012-08-11regenMike Belopuhov
2012-08-11another 82599Mike Belopuhov
2012-08-11the producer/consumer values are used by the device, which is littleDavid Gwynne
endian. do appropriate byteswapping for when the host cpu uses them. tested on a perc5 (xscale) in an amd64.
2012-08-10simplify pckbc_xt_translation()Alexandr Shadchin
* call only for set translation on (once in /sys/dev/pckbd.c) therefore we can delete unused code. * change behavior (more standard) - return zero on success ok miod@
2012-08-10cleanup some #define's and #ifdef'sMike Belopuhov
2012-08-10regenDavid Coppa
2012-08-10Add O2 Micro OZ776 HubDavid Coppa
Ok jsg@
2012-08-10cleanup ixgbe_start routine; from brad, ok jsgMike Belopuhov
2012-08-09don't compile rss functions in unless OCE_RSS is specifiedMike Belopuhov
2012-08-09oops. missed these conflicts in the previous commitMike Belopuhov
2012-08-09try to make sense of the firmware statistics by counting rx and tx erorrsMike Belopuhov
2012-08-09schedule a rx refill if the ring is empty, sprinkle some dma syncsMike Belopuhov
2012-08-09more htole conversionsMike Belopuhov
2012-08-09remove internal queue stats, use if_* counters wherever possibleMike Belopuhov
2012-08-09respect the mtu value that ifconfig setsMike Belopuhov
2012-08-09set a timeout in case the chip goes out to lunchMike Belopuhov
2012-08-09remove oce_dmamap_sync wrapperMike Belopuhov
2012-08-09Add support for BCM5717/19/20C PHYs. From Brad.Mark Kettenis
2012-08-09regenMark Kettenis
2012-08-09Add BCM5717/19/20C PHYs. From Brad.Mark Kettenis
2012-08-08call m_cluncount to account correctly for cluster chains the driverMike Belopuhov
builds upon receiving a jumbo frame.
2012-08-08We're not going to loop in the rxeof refilling our ring as it wouldMike Belopuhov
work against the mclgeti algorithm and besides it doesn't make any difference if [repaired and] enabled since interrupt mitigation was fixed some time ago. So remove the leftovers altogether so that nobody would be tempted to use them. ok claudio, jsg
2012-08-08remove rx debugging codeMike Belopuhov
2012-08-08Convert from K&R to ISO function signatures.Matthew Dempsky
From Brad; no binary change on amd64.
2012-08-07Make all *_device_*_start() functions (e.g. ohci_device_intr_start())Kenneth R Westerback
wait for an interrupt when the bus is in polling mode. Otherwise some devices like my YE-Data USB Floppy take a short sharp trip to ddb> at 'halt -p'. Most of the functions were already doing the wait. ok miod@. With modification that printf's become DPRINTF's.
2012-08-07a bit of cleanup and a tx delay tweakMike Belopuhov
2012-08-07don't forget to set IFF_ALLMULTI; from bradMike Belopuhov
2012-08-06kill sc->promiscMike Belopuhov
2012-08-06Add support for 10Gb ethernet cards based on the Intel X540 chipset.Mike Belopuhov
The code was obtained from FreeBSD and tested on the hardware kindly donated by Tony Sarendal <tony () polarcap ! org>. Thanks a lot! ok jsg
2012-08-05Remove a self-assignment, from BradMartin Pieuchot
2012-08-04PCI_PRODUCT_ATI_RADEON_X1250 -> PCI_PRODUCT_ATI_RADEON_X1250_{1,2}Antoine Jacoutot
prodded by matthieu@
2012-08-04Regen.Antoine Jacoutot
2012-08-040x7942 is also a Radeon Xpress 1500Antoine Jacoutot
ok matthieu@
2012-08-03add HUAWEI E392, tested by Alexei MalininJonathan Gray
2012-08-03regenJonathan Gray
2012-08-03HUAWEI E392Jonathan Gray
2012-08-02get rid of some "capabilities" leftoversMike Belopuhov