summaryrefslogtreecommitdiff
path: root/sys/dev/isa
AgeCommit message (Collapse)Author
2013-01-06acknowlege -> acknowledgeMartynas Venckus
compatability -> compatibility OK jmc@.
2012-12-14Support IT8772F; from form@, ok kettenisMike Belopuhov
2012-11-10use boolean_t not bool for a local boolean type so this won'tJonathan Gray
clash with a c99 style bool type. ok millert@ deraadt@
2012-10-17Swap arguments to wdog_register() since it is nicer, and prepareTheo de Raadt
wdog_shutdown() for external usage.
2012-10-05Point an interface directly to its bridgeport configuration, insteadCamiel Dobbelaar
of to the bridge itself. This is ok, since an interface can only be part of one bridge, and the parent bridge is easy to find from the bridgeport. This way we can get rid of a lot of list walks, improving performance and shortening the code. ok henning stsp sthen reyk
2012-07-01Add support for the Winbond W83627UHG chip.Lawrence Teo
Ported from a DragonFly BSD commit by Constantine A. Murenin: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/245ec76bc1613b22cf282526fa9931e4c16e4237 Tested on a Lanner FW-7539 appliance. ok mlarkin mikeb haesbaert henning
2012-05-24exlusive -> exclusiveMiod Vallat
2012-03-30If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;Alexandre Ratchov
just return and make the midi(4) driver retry later. UART buffers are large enough for this, except eap(4) which uses interrupts for output. help from and ok jsg@
2012-03-07reisters -> registersMiod Vallat
2012-02-26Fix NULL fallout, spotted by naddyMiod Vallat
2012-02-25regenMiod Vallat
2012-02-25Enable GUS PnPMiod Vallat
2012-02-25Don't tinker with the MIDI registers if they aren't mapped; necessary for theMiod Vallat
GUS PnP.
2012-02-02disable the polling timeout when we suspend; discovered by some codeTheo de Raadt
guenther is working on ok miod
2011-12-07Add copyright and fix RCS ID.Marco Pfatschbacher
OK kettenis.
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-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-09-16Fix a bunch of typos: manaul, monnitor, machiune, autload.Miod Vallat
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-08ansi, no binary changeJonathan Gray
2011-07-07remove mvmeppc; it is really rough shape. ok drahn miodTheo de Raadt
2011-07-04Convert to ANSI.Matthew Dempsky
ok md5
2011-06-29dmesg@ says pss has never been seen in the wild and the manpage says itTed Unangst
doesn't work. goodbye. ok miod
2011-06-29notyet, notever. delete a bunch of code we won't be using.Ted Unangst
2011-06-28Remove the ega driver which is not referenced by any GENERIC kernel.Matthieu Herrb
ok tedu@, "I won't mourn it" miod@, "no objection" oga@, "I won't cry" todd@, "fine, even happy" nick@
2011-06-26kill mcd dead. ok krw matthew millert thibTed Unangst
2011-06-26I see you hiding, scdTed Unangst
2011-06-23a bit more ansi; ok teduTheo de Raadt
2011-06-20Update mcd(4) to use disk_lock, etc. instead of its own tsleep(9)Matthew Dempsky
based locking. ok gcc
2011-06-20isa(4) is an indirect bus, which means that drivers that attach to itMatthew Dempsky
need to provide an xxxprobe() method instead of an xxxmatch() method. The critical difference is xxxprobe() is given a device softc for the second argument, whereas a xxxmatch() is given the cfdata as the second argument. This commit fixes the handful of ISA device drivers that incorrectly cast the second argument to a "struct cfdata *" instead of a "struct device *". (Minor complication: unlike isa(4), isapnp(4) is a direct bus, and if_we.c used the same probe/match code for both; now separate we_probe and we_match methods are used as appropriate.) "makes sense to me" krw@; ok miod@
2011-06-17M_WAITOK cleanup of two cases:Michael Knudsen
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
2011-06-05fix mpu attachment at isapnp which resulted in amd64 (no isapnp) gettingTheo de Raadt
a file compiled. spotted by guenther, but this is the right fix ok miod
2011-06-05Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotMatthew Dempsky
of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'sMatthew Dempsky
never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
2011-06-03Fix two compile errors in mcd(4) due to bitrot:Matthew Dempsky
1. Need to include <sys/dkio.h> since <sys/ioctl.h> no longer includes it. 2. readdisklabel() returns an int, not an error string, so update mcdgetdisklabel() accordingly. The return value is just ignored currently, but that's no worse than cdgetdisklabel() in cd(4)... Apparently no one has needed mcd(4) in the last two years.
2011-05-09Refactor queue allocation and initialization into a wdc_alloc_queue()Matthew Dempsky
function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-07Iopoolification of another once common bus/device.Kenneth R Westerback
2011-04-05- use nitems() no binary change on amd64Jasper Lievisse Adriaanse
"reads OK" claudio@
2011-04-04Hit this code with a big hammer. It now works on the X201/T510 seriesTheo de Raadt
machines after warm boot or resume. Some of the checks being made were nonsense. Also tested by claudio and guenther. ok jsg
2011-04-03Iopoolification of some less common scsi drivers.Kenneth R Westerback
ok dlg@ ("miod will not object" dlg@)
2011-01-20add IT8721 supportOleg Safiullin
2011-01-05remove debug codeTheo de Raadt
2011-01-04Support machdep.lidsuspend support in apm(4) land, at least on thinkpadsTheo de Raadt
which have aps(4). You can now turn off the BIOS option for lid suspends, and control it with sysctl.
2010-11-18Do not #include <sys/dkstat.h> if you don't need anything from it.Miod Vallat
ok krw@ deraadt@
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventJoel Sing
automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
traversal code to suspend/resume ok oga kettenis blambert
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod. (missed file)