summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
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@
2012-10-17Narrow the spltty/splx pair in com_activate to only enclose the minimumTheo de Raadt
operation which requires it.
2012-10-17cleanup more of the driver soft-state when suspending; in certainTheo de Raadt
async operational modes a timeout and some requests on a queue were still active helps a machine mlarkin has ok miod shadchin mlarkin
2012-10-17AH_BYTE_ORDER and AH_BIG_ENDIAN are holdovers from the old FreeBSDJonathan Gray
code, we test but don't define them. Replace with _BYTE_ORDER and _BIG_ENDIAN to make the iv show up properly for big endian bpf consumers. ok stsp@ reyk@
2012-10-13Move WOL activation to DVACT_POWERDOWN (instead of doing it twice, atTheo de Raadt
DVACT_QUIESCE and DVACT_SUSPEND time). Tested by stsp.
2012-10-12Cleanup false positives for uninitialized uses.Christiano F. Haesbaert
Part of the work to remove -Wno-uninitialized. ok blambert jsg
2012-10-11Enable Host AP power saving support for the RT2700, RT2800 and RT3090 chipsets.Mark Kettenis
Tested by Nathanael Rensen.
2012-10-10Avoid potential uninitialized variable access in fxp driver.Bret Lambert
Found by haesbaert@. ok haesbaert@ deraadt@
2012-10-04Clean up uninitialized warnings from ar9003.Christiano F. Haesbaert
Part of the work to remove -Wno-uninitialized. ok kettenis@
2012-09-18several tweaks to make mpi(4) work for vmware emulated sas adapters.David Gwynne
1. vmware advertises more scsi targets than command slots, so the maths we did for openings gave each target 0 openings. always advertise at least 16 openings. 2. if we cant configure the ATA queue depth, dont fail to attach the controller whole. finally, improve the error reporting during attach so its more obvious where things fail. mostly figured out by jmatthew@
2012-09-12Use sg_addr instead of sg_lo_addr, leftovers from last commit.Christiano F. Haesbaert
ok dlg
2012-09-12Make sure we don't sleep on autoconf.Christiano F. Haesbaert
ok mikeb
2012-09-04The powerlevel is an unsigned int, there is no need to check for negativeClaudio Jeker
values and even if this would make more sense. Found by brad some time ago.
2012-08-30make a variable that can take a value of -1 signed to match what theJonathan Gray
rest of the code expects. from brad
2012-08-26htole64 works as good as htole32 twice for dma virtual addresses.David Gwynne