summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2013-05-07fix a double free in an error pathJonathan Gray
reminded of this diff by a report from Arto Jonsson ok krw@ fgsch@
2013-05-03break out the battery status into excruciating detail. makes it harder forDavid Gwynne
$VENDOR to complain about a lack of diagnostic material from their crappy mgmt tools if you're not running an operating system they support.
2013-05-02always attach the battery sensor if the adapter lets us query it.David Gwynne
newly replaced batteries dont show up immediately.
2013-05-01provide a sensor for the battery backup unit (bbu) on mfi boards thatDavid Gwynne
support it. now i can tell (a bit better) why io might be slow on some of my boxes.
2013-05-01there's some extra bits for the bbu status that freebsd dont have. provideDavid Gwynne
a %b thing for them too. now i just have to figure out how to represent this nicely: mfi0: fw_status 0xc00<REPLACE_PACK,CAPACITY_LOW> :(
2013-05-01provide a couple of %b things for mfi_hw_present and mfi_adapter_ops cosDavid Gwynne
im somehow too lazy to read a %x and look for a couple of bits set, but not lazy enough to not write a %b thing.
2013-05-01dont need to walk alldevs during sensor creation looking for the logicalDavid Gwynne
disk scsibus when we record that in mfi_attach. also happens to get rid of a logic error that let it come out of the loop on alldevs with a reference to something that wasnt the logical disk scsibus and use that.
2013-04-30white space tweakDavid Gwynne
2013-04-30white space fixesDavid Gwynne
2013-04-30use MR_DCMD consistently. some MD_DCMD was in there somehow.David Gwynne
2013-04-30pull in BBU bits from freebsdDavid Gwynne
2013-04-21Unify the zs tty driver.Sebastian Reitenbach
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-04-20In ahc_reset(), use SELxxx constants instead of magic values. No functionalMiod Vallat
change.
2013-04-20correct handling of t_apmverTheo de Raadt
2013-04-20Enable active PS/2 multiplexing if available.Tobias Stoeckmann
Supported for i386 and amd64 except SMALL_KERNEL. Based on Miod's former work on this subject. ok mpi
2013-04-13Perform a warm reset instead of putting the hardware into full sleep modeStefan Sperling
to avoid system hangs upon 'ifconfig down up' with some AR5212 hardware. Linux uses the same workaround. Diff from Dinar Talypov (t.dinar.m at gmail).
2013-04-07david imhoff points out that the error handling in mfi_init_ccb gets theDavid Gwynne
index to which ccb to free wrong. this takes the logic from mpi/mpii/mfii which pulls the ready ccbs off the free list rather than rely on the current index from the for loop that we failed inside of. thanks to david for finding this out.
2013-03-28Prevent a panic during rtsx(4) attachment. If a card is inserted while bootingStefan Sperling
the interrupt handler can be triggered before sdmmc(4) is attached. In which case the interrupt handler's futile attempt to handle the newly inserted card would crash the kernel. ok miod@
2013-03-24Use ieee80211_set_tim() directly now that it is available.Claudio Jeker
2013-03-18Provide a way for *drm(4) to prevent the VGA text console wsdisplay(4) instanceMark Kettenis
from attaching after it has taken over control of the VGA hardware. ok mpi@
2013-03-17- Remove the reserved number of TX descriptors. No limitation is mentioned inBrad Smith
the 8139C+/8169/8110/8168/8101/8111 datasheets and it seems to work ok without reserving the descriptors. - Change allowable number of TX DMA segments to 32. From FreeBSD ok chris@
2013-03-14Cosmetic tweaking. No functional change.Brad Smith
2013-03-11Separate out the common capabilities flags from the switch statementBrad Smith
added in the last commit. No functional change. ok sthen@
2013-03-09Always use the internal PHY on Apple variants, from FreeBSD. This unbreaksMartin Pieuchot
gem(4) on some PowerMac G5. tested by kirby@, ok deraadt@
2013-03-09Calculating the IP header checksum on Realtek 8168 is broken if theAlexander Bluhm
packet has IP options. Disable IP checksum offloading for the affected revisions. From FreeBSD; OK sthen@ brad@
2013-03-07XL_DMACTL is a 32bit register, use the 32bit write macro.Brad Smith
From FreeBSD ok chris@
2013-03-07Fix and simplify determining whether we're using a 8129 or 8139 chipset. OnlyBrad Smith
the 8129 PCI id is a 8129, everything else is a 8139. Allows the D-Link DFE-520TX board to work and would ensure proper determination of the chipset for at least the 8138 based boards (PCI/CardBus). Tested by kirby@ Ok kirby@ sthen@ chris@
2013-03-04replace the LIST_ENTRY in scsi_xfer with a SIMPLEQ_ENTRY. the things thatDavid Gwynne
use it want something they can add to the end of they do horrible things to be able to do that with the LIST_ENTRY. this makes those horrible things a bit less horrible, and makes it easier to use lists of scsi_xfers in other things.
2013-02-15More DPRINTF use, no object change.Martin Pieuchot
2013-02-15Do not loop forever if the keyboard send a BAT (Basic Assurance Test)Martin Pieuchot
fault code, but handle this code like ``Resend'' or ``BAT success'' instead. Fix a problem reported by Kent Fritz and analyzed by stsp@. ok shadchin@
2013-02-14No need to treat amd64 specially; always return CN_HIGHPRI.Mark Kettenis
ok miod@
2013-01-21Split AHCI in order to support devices which are not attached via pci.Patrick Wildt
Tested on a few machines, including JMicron and Intel AHCIs. ok dlg@ jmatthew@
2013-01-18data transfers suit STREAMING dma maps.David Gwynne
2013-01-17forgot this file when committing the 64bit dva diff.David Gwynne
2013-01-17mikeb pointed at that the interrupt status register read in mpi_intr wasDavid Gwynne
important, as per r1.167.
2013-01-17we dont need to read the interrupt status register to know if we haveDavid Gwynne
any work to do in the interrupt handler, or to clear it. the relevant bits indicate whether there's work on the doorbell and clear when there isnt. we need to read the doorbell if there is work to do, so lets just go that straight away anyway. get rid of bus_space_barriers in the io path. barriers are for enforcing ordering. the doorbell reads and writes dont depend on any other register values so ordering isnt applicable here.
2013-01-17treat DVAs as 64bits all the time so we can avoid ugly casts and shifts inDavid Gwynne
the code.
2013-01-14Fix the sotfware.Joel Sing
2013-01-06acknowlege -> acknowledgeMartynas Venckus
compatability -> compatibility OK jmc@.
2012-12-31Spell `calculation' correctly.Miod Vallat
2012-12-07Remove support for waiting for an interrupt within hostcmd_send(), since onlyStefan Sperling
one of the two callers of hostcmd_send() needs to wait for an interrupt. Make the single caller which needs it wait instead. No functional change; ok phessler
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-12-01Add RX TCP/UDP checksum offload support.Brad Smith
ok naddy@ sthen@
2012-11-29Add rtsx(4), a new driver for the Realtek RTS5209 card reader.Stefan Sperling
This card reader does not comply to the standard SDHC interface supported by sdhc(4) and hence requires a custom driver. With help from uwe and mikeb. Useful hints were also provided by the author of the corresponding Linux driver (wwang at realsil com cn), thanks a lot! Tested by myself and weerd on i386 and amd64.
2012-11-29Remove setting an initial assumed baudrate upon driver attach which is notBrad Smith
necessarily correct, there might not even be a link when attaching. ok mikeb@ reyk@
2012-10-27Implememnt AP side power saving for acx(4). Tested on acx11.Claudio Jeker
With some input and OK from kettenis@ and OK sthen@
2012-10-22Add flow control support.Brad Smith
Tested with Apple/Sun gem(4) with and without flow control (Sun ERI/Apple GEM with FastE PHY). ok kettenis@
2012-10-20Init values for the AR9485 were for version 1.0 of this chip, which accordingStefan Sperling
to Atheros Linux developers was never sold. So update initvals to what Linux is using for the 1.1 generation. Because the serdes values are written to different registers on the AR9485 this involves tweaking the serdes init code for all athn(4) chip families. This commit doesn't make AR9485 devices work yet but is a step in the right direction. Tested by krw, kettenis, and Andrew Ngo. ok kettenis@
2012-10-20Fix hardware kill switch detection for the ar9300 chip family. The driver wasStefan Sperling
checking the wrong bits of eeprom to determine rfkill switch pin and polarity, and was reading the wrong register to determine rfkill gpio pin state. ok kettenis@
2012-10-19Simplify xl_iff_90x() a bit and only check ac->ac_multicnt since ac_multicntBrad Smith
is also bumped for multicast ranges. ok mikeb@