summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2012-03-07reisters -> registersMiod Vallat
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
2012-02-12use the barrier before the inb; not instead ofTheo de Raadt
prompted by kettenis, ok miod, tested on the troublesome machine
2012-02-11This code used to do a register read to force a barrier -- that is notTheo de Raadt
sufficient. Now, use bus_space_barrier explicitly. This was exposed by newer gcc on DS20 alpha with ahc(4) controllers using any drives other than Seagates. During initial probe the drive vendor/product string would be empty. diff from miod; tested by myself and henning
2012-02-04Close races where timer is started on a command and then an splbio()Kenneth R Westerback
is called before the command is started. This might have resulted in the timeout firing and invalidating the command before it is started. Move the timeout_add_* inside the relevant splbio()/splx(). ok miod@ tedu@
2012-02-04Since sili_get_ccb() can return NULL if there are no ccb's available,Kenneth R Westerback
check for the result in sili_pmp_softreset() as is done for all other invocations of sili_get_ccb(). While here disambiguate the printf's being emitted when sili_get_ccb() returns NULL.
2012-02-02disable the polling timeout when we suspend; discovered by some codeTheo de Raadt
guenther is working on ok miod
2012-01-29Fix another instance of the 11a->11b switch panic (see previous commit).Stefan Sperling
It could also trigger during a scan. Moving the fix into ath_setcurmode() should fix the problem for good. Pointed out by ml@extensibl.com; ok mikeb
2012-01-28Don't panic when switching an ath interface in hostap mode from 11a to 11b.Stefan Sperling
The driver forgot to reconfigure the ic_bss' rate table during the switch. This triggered an assertion in ieee80211_newstate() which is present to prevent an out-of-bounds array access (11a has more rates than 11b). Problem reported by ml@extensibl.com; ok mikeb deraadt
2012-01-28Fix ar5k_rt_copy() to copy all fields of the HAL_RATE_TABLE struct.Stefan Sperling
ok mikeb deraadt
2012-01-28Fix dot11Rate for 11b entries in the 11g rates table.Stefan Sperling
ok mikeb deraadt
2012-01-16mpi_get_ccb and mpi_put_ccb are only called via iopools now, so changeDavid Gwynne
their types to fit the iopools api rather than doing awful typecasts to shove them into iopool_init.
2012-01-12add support for skinny variants.David Gwynne
from Alexey Suslikov reviewed by marco
2012-01-11ansify and de'register some prototypesDavid Hill
ok miod@
2012-01-09repair errors paths for dma_alloc; spotted by dhillTheo de Raadt
2012-01-09another set of missing dma_alloc's for talking to a device. hit byTheo de Raadt
henning. ok krw dlg
2012-01-02Do not advertize this device as full-duplex. While I believe the Siemens chipMiod Vallat
itself is, the FIFO engine around doesn't seem to be.
2011-12-25Fix the documented CAVEAT by forcing the TX gain to minus infinity whenMiod Vallat
the user asks to only keep the input source enabled, and remember this to keep reporting the previously configured volume values in mixerctl. While there, document the supported encodings and the supported mixer items in the manual page, and the fact that all output sources share the same volume (GX gain) setting.
2011-12-24Default to a much smaller input gain on the MIC line, to improve recordingMiod Vallat
quality. While there, use a better gain table.
2011-12-22Add 16-bit modes to arcofi(4). Big-endian signed is native, others require someMiod Vallat
bit or byte flipping. Trivial, and would have been part of the initial commit, had I not made the mistake of testing a big-endian chip with 16-bit audio data in little-endian format (``oops'').
2011-12-21Work-in-progress driver for the HP ``Audio1'' device found on the HP 9000/425eMiod Vallat
(hp300) and the HP9000/705 and 9000/710 (hppa). 8-bit mono, 8KHz, no surprise since it is based upon a digital phone chip. Tested on 425e only so far, and playback only; configured in, but disabled, on hppa kernels until there are positive test reports (I am not sure the interrupt assignment on hppa is correct). And now people no longer can joke about audio on hp300.
2011-12-19fxp_init could bail out on errors without calling slpx.Marco Pfatschbacher
Change fxp_resume to avoid the nested splnet call inside fxp_init altogether. Initial diff by Jan Klemkow; Tested and OK bluhm.
2011-12-06Add support for Nuvoton NCT6776F fan, voltage and temperature sensors.Marco Pfatschbacher
Tested on a Supermicro X9SCL/X9SCM board. With help from kettenis to make the part that works around a chip ID collision less ugly. OK kettenis
2011-12-03Make sure splx() is called before exiting trm_StartWaitingSRB().Kenneth R Westerback
Found by Jan Klemkow. Thanks!
2011-12-01Be sure to splx() before return in pgt_media_status(); from Jan Klemkow onMiod Vallat
tech@
2011-11-10Death to inappropriate whitespace. First one pointed out by Brad.Kenneth R Westerback
2011-11-08ncr53c9x (a.k.a. esp on sparc64) does not like 16-byte SCSI commandsKenneth R Westerback
such as READ_CAPACITY_16. So plugging SCSI-3 devices onto such a bus can be problematic. Cap the acceptable xs->cmdlen at 12 in ncr53c9x.c. Problem noted and fix tested by Kurt Mosiejczuk. Thanks! Diff mostly from miod@ with kibitzing from me. ok miod@
2011-10-27Initialize variables before use. From Pedro Martelletto, tweaked byKenneth R Westerback
me to add more paranoia.
2011-10-25Initialize variables before use. And if initializing, use the correctKenneth R Westerback
source! From Pedro Martelletto.
2011-10-22Comment out ISP_{T,}DEBUG[0-3] traces if option SMALL_KERNEL; allows alphaMiod Vallat
floppyB to fit again. ok deraadt@
2011-10-14Make ath(4) send multicast frames once, not multiple times.Stefan Sperling
Fixes TKIP replays seen by STAs connecting to an ath(4) hostap and matches the FreeBSD driver. Tested with several cards by Theo and myself. Thanks mikeb for providing some cards, your next beer in Berlin is on me. ok deraadt
2011-10-13Fix definition of XL_PME_EN.Mark Kettenis
ok stsp@
2011-10-05It is not safe to call sensor_task_unregister() from inside theTheo de Raadt
refresh function. sensor_task_work() is incomprehensively complex. Work around this by using a workq to deactive the i2c alias when the isa interface is preffered. Problem of dead sensors reported by henning, fix tested by Nigel Taylor ok kettenis
2011-10-05ami_drv_inq bus_dmamap_loads the inquiry buffer, so that buffer has to beDavid Gwynne
under 4g now. this moves the inqbufs off the stack to dma_alloc/dma_free. reported by and fix tested by henning@ ok henning@
2011-09-23Make sure siop_xfer is a multiple of 128 bytes as intended (and as told byMiod Vallat
the comments); this makes hppa64 much happier according to jsing@. ok krw@ exactly two years ago, it was about time to commit this.
2011-09-19Missing argument in STIDEBUG printfMiod Vallat
2011-09-17Don't bother keeping a {u,}lptioctl function which is a duplicate ofMiod Vallat
enodev(). ok jsing@ krw@ deraadt@
2011-09-04Add the possibility for a MD attachment to stack a stream filter (sw_code)Miod Vallat
if it needs to rewrite the audio stream; adapted from NetBSD
2011-09-04Add emulation support for slinear:8, ulinear:8 and alaw. Written by jason@Miod Vallat
more than 8 years ago; allows aucat (and sndio users) to happily use amd7930-based audio devices. Verified by playing an mp3 file on vax.
2011-09-03MI driver for AMD79C30 audio chip; from NetBSDMiod Vallat
2011-08-29protect sc->sc_state access and ncr53c9x_sched() call with splbio inMiod Vallat
ncr53c9x_poll(). Fixes a race causing *some* drives to trigger a panic in ncr53c9x_sched() at attach time on vax. ok dlg@ krw@
2011-08-18So, it turns out that models 362 and 382 built-in frame buffer only shows upMiod Vallat
in DIO-II space, as a fat device spanning four select codes (i.e. 16MB of memory). This is way too much for an at-most 2 Mpixel 8bit frame buffer, and it turns out that this is because the device provides both a regular DIO-II frame buffer (spanning two select codes) and a regular STI frame buffer (spanning the other two select codes). This commit introduces a straightforward sti@dio attachment to get a working sti(4) and wsdisplay(4) in a ridiculously small number of lines; however the console code needs some changes to avoid duplicating globals. While there, add sti@dio support for the bootblocks, and I couldn't help myself but clean the most rotten parts of them, and try to have them reuse various files in sys/arch/hp300/dev instead of rolling their outdated ones. Tested on a real 382 with the low-resolution frame buffer: sti0 at dio0 scode 132: rev 8.02;129, ID 0x27134CB440A00499 sti0: 382V, 2048x512 frame buffer, 640x480x8 display sti0: 8x16 font type 1, 16 bpc, charset 0-255 wsdisplay0 at sti0 mux 1: console (std, vt100 emulation) Boot blocks updates tested on DIO-II 425t (serial/glass console), SGC 425e (serial/glass console) and 382 (serial/glass console). And will be tested on SGC 425t soon as well.
2011-07-26Calling a detach function from an attach function is no longer legal (Theo de Raadt
see a recent subr_autoconf.c commit). To resolve this problem, mark the other attachment dead, and clean it up when the first servicing timeout gets run. ok kettenis
2011-07-17Backout a bunch of my SCSI commits from c2k11. At least one of theseMatthew Dempsky
is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
2011-07-15Cope with the start-dma-before-init errata and some other register setupTheo de Raadt
errata for the Serverworks SATA chipset found on the macppc xserve G5. ok jmc
2011-07-14We must not call xl_wol_power() from xl_stop(). If we do the deviceStefan Sperling
can be set into D3 sleep state at the wrong time. Fixes lock-up issues reported by Thomas Gerlach. Also, the interface needs to be running for WOL to work, so set it up from within xl_wol() if it's not running yet. "you don't need an ok for this" deraadt
2011-07-09Fix fallout from my previous SCSI refactoring diff (movingMatthew Dempsky
adapter_buswidth to sc_targets): gdt(4) and atascsi(4) still used it in other ways. Apply appropriate fixes; tested on ahci(4). ok krw@
2011-07-08First batch of converting SCSI HBAs from setting saa_targets andMatthew Dempsky
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
2011-07-08Fix WoL support in xl(4). Now works with my hardware (3Com 3c905C).Stefan Sperling
ok deraadt
2011-07-08ansi, no binary changeJonathan Gray