summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
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
2012-08-25Better detection of the st16650 v1 (with the broken fifo). Gets rid ofMark Kettenis
false positives like the DUART on the MPC8347 as found on socppc. ok deraadt@
2012-08-25Turns out the v445 isn't happy at all if we touch the registers that dealMark Kettenis
with sleep mode. So skip the wakeup code as well if we are a serial console. The port on the v445 almost certainly isn't a real st16650 and probably doesn't implement sleep mode (perhaps someone cut the soft core down a bit too much?). But it is indistinguishable from it, so we have to deal with it. ok deraadt@
2012-08-25Add support for power saving in Host AP mode.Mark Kettenis
ok stsp@, deraadt@
2012-08-23Fix a race in rt2661 Tx interrupt processing which can cause Tx processingStefan Sperling
to get stuck with OACTIVE set, requiring 'ifconfig ral0 down up' to unwedge. Make space in the Tx queue from the rt2661_tx_dma_intr() handler, rather than waiting until rt2661_tx_intr() is run. The latter function now collects AMRR statistics only. AMRR node allocation is now separated from ieee80211_node allocation to make this possible. This commit also brings back the separation of OACTIVE flags for management and data Tx queues which I reverted in the previous commit. Inspired by ral commits by sephe@dragonflybsd and patch submission to misc@ by Roland Dreier http://marc.info/?l=openbsd-misc&m=125895269930106&w=2 Tested by myself, edd, jsg, Tobias Ulmer, Pieter Verberne, Tim van der Molen.
2012-08-19Skip putting a port in sleep mode when it is used as serial console. In thatMark Kettenis
case the kernel will still be using the port even after the last process closes it. And on machines like the v445 the firmware won't be happy if the console port is in sleep mode when the kernel reboots or halts. ok miod@
2012-08-17add support for "physical devices" on skinny controllers.David Gwynne
these controllers let you specify disks that should be accessed directly rather than be part of logical volumes. apparently you can plug in things like tape drives too. anyway, physical devices are exposed via a separate scsibus attached to mfi. ok mikeb@
2012-08-16fix mfi_poll by having it do delays between loops, and breaking onDavid Gwynne
timeouts. how embarrassment. implement mfi_exec for doing sync executions of commands in process contexts and cut mfi_mgmt over to it.
2012-08-16rework mfi_poll so it will do all the completions on a ccb includingDavid Gwynne
calling the done handler. this makes it consistently complete scsi io with all the proper error checking.
2012-08-16stop passing mfi_softc around as a member of the ccb, consistently give itDavid Gwynne
as the first argument to functions. like mfii.
2012-08-16scrub ccbs when we're about to use them, not when we put them backDavid Gwynne
on the free list. ccbs can be reused, so we dont want old state screwing up new commands.
2012-08-16move the dma syncs for the ccb data into ccb_done, so we can do it onceDavid Gwynne
rather than put the code everywhere.
2012-08-16fix up the dma sync for the command frame in mfi_done.David Gwynne
2012-08-15Remove the old ioctl interface which has been disabled for overJonathan Gray
six years (since bioctl support was added). ok krw@ dlg@
2012-08-14use scsi_get_link to find out the name of a child device for bioctl ratherDavid Gwynne
than snoop scsi commands and copy it in an io path. no functional change, but the code has one less XXX now.
2012-08-14expose the max number of logical volumes the hardware supports as the widthDavid Gwynne
of its scsibus. only advertise 1 lun on logical volumes instead of letting the midlayer fix it up to 8. give every target on the bus max_cmds openings. iopools means they will properly share access to them. this in particular is useful on skinny controllers which only advertise 31 command slots. if you have 16 volumes, theyll only get 1 opening each with the old maths. this way round the ones that are busy will share the slots. tested on a perc5 with two volumes and hard workloads.
2012-08-14print the boards name (eg, perc 5/i) according to the firmware like mfii.David Gwynne
ok deraadt@
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-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-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@