summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
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
2011-07-07use IF_LEN/IFQ_LEN to access and ifqueue's length field. ryan okHenning Brauer
with this nothing in the tree fiddles if ifqueue internals any more, of course except if.c and if.h (and some altq)
2011-07-05Call bzero(&saa, sizeof(saa)) each time we use saa to attachMatthew Dempsky
something. Doesn't matter right now because scsibus_attach_args only has one field and it's mandatory, but I'm planning to move some more fields from scsi_link to scsibus_attach_args+scsibus_softc. ok dlg@
2011-07-05Replace last remaining users of link->scsibus withMatthew Dempsky
link->bus->sc_dev.dv_unit.
2011-07-05When the kernel runs out of mbuf clusters, the hme receive ring mayAlexander Bluhm
become empty. In that case, the hme driver could not recover as the ring was only filled after receiving data. Check and potentially fill an empty receive ring every second in hme_tick(). ok kettenis@
2011-07-04Use the SDEV_2NDBUS flag like isp(4) instead of the currentMatthew Dempsky
scsi_link::scsibus hack to determine which channel the link is associated with. "looks sane" dlg@, but haven't found any testers yet; committing so further SCSI refactorings can go in. dlg@ or I will back out or fix if anything breaks.
2011-07-04Remove orphaned splbios that have no matching splx,Jonathan Gray
this has been a problem since internal xfer queues got removed back in 2008. ok matthew@ krw@
2011-07-04remove unneeded cast.David Hill
no binary change. ok jmatthew@
2011-07-03avoid void * pointer arithmetic.David Hill
ok claudio@
2011-07-03change void * to a caddr_tDavid Hill
no change in binary OK claudio@
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-06-27Unbreak iopool conversion by putting the implicit yet missing importantMiod Vallat
initialization statements. Found the hard way by Sebastiaan Indesteege
2011-06-23ansiTheo de Raadt
2011-06-23a bit more ansi; ok teduTheo de Raadt
2011-06-21Two dpt(4) fixes:Matthew Dempsky
1. Change adapter_softc to point to a per-channel intermediary object instead of pointing to the dpt_softc directly. This removes dpt(4) dependency on scsibus unit numbers. 2. Fix dpt(4) to use a struct scsibus_attach_args instead of a struct scsi_link for attaching the scsibus. (Evidently no one has tried using dpt(4) since Nov 2006...) ok krw@, miod@
2011-06-21remove some unnecessary casts. ok blambert deraadt kettenis matthewTed Unangst
2011-06-19Fix a typo: change "!(reg >> pin) & 1" to "!((reg >> pin) & 1)" asMatthew Dempsky
intended. ok damien@