summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add copyright and fix RCS ID.mpf2011-12-071-1/+16
| | | | OK kettenis.
* Add support for Nuvoton NCT6776F fan, voltage and temperature sensors.mpf2011-12-063-36/+102
| | | | | | | 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
* It is not safe to call sensor_task_unregister() from inside thederaadt2011-10-051-2/+23
| | | | | | | | 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
* Fix a bunch of typos: manaul, monnitor, machiune, autload.miod2011-09-161-2/+2
|
* Calling a detach function from an attach function is no longer legal (deraadt2011-07-261-2/+2
| | | | | | | 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
* ansi, no binary changejsg2011-07-081-8/+3
|
* remove mvmeppc; it is really rough shape. ok drahn miodderaadt2011-07-071-3/+1
|
* Convert to ANSI.matthew2011-07-042-98/+32
| | | | ok md5
* dmesg@ says pss has never been seen in the wild and the manpage says ittedu2011-06-294-1463/+2
| | | | doesn't work. goodbye. ok miod
* notyet, notever. delete a bunch of code we won't be using.tedu2011-06-295-491/+5
|
* Remove the ega driver which is not referenced by any GENERIC kernel.matthieu2011-06-283-1018/+1
| | | | | ok tedu@, "I won't mourn it" miod@, "no objection" oga@, "I won't cry" todd@, "fine, even happy" nick@
* kill mcd dead. ok krw matthew millert thibtedu2011-06-263-2020/+2
|
* I see you hiding, scdtedu2011-06-261-2/+2
|
* a bit more ansi; ok teduderaadt2011-06-232-4/+4
|
* Update mcd(4) to use disk_lock, etc. instead of its own tsleep(9)matthew2011-06-201-50/+8
| | | | | | based locking. ok gcc
* isa(4) is an indirect bus, which means that drivers that attach to itmatthew2011-06-205-10/+19
| | | | | | | | | | | | | | | 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@
* M_WAITOK cleanup of two cases:mk2011-06-171-2/+2
| | | | | | | | | | | | | | | | 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.
* fix mpu attachment at isapnp which resulted in amd64 (no isapnp) gettingderaadt2011-06-051-2/+2
| | | | | a file compiled. spotted by guenther, but this is the right fix ok miod
* Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew2011-06-052-15/+2
| | | | | | | | | 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.
* Get rid of the wlabel argument to bounds_check_with_label(). It'smatthew2011-06-031-3/+2
| | | | | | | | | never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
* Fix two compile errors in mcd(4) due to bitrot:matthew2011-06-031-10/+5
| | | | | | | | | | | 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.
* Refactor queue allocation and initialization into a wdc_alloc_queue()matthew2011-05-092-8/+6
| | | | | | | | | | | 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@
* Do not use NULL in integer comparisons. No functional change.miod2011-04-071-3/+3
| | | | ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
* Iopoolification of another once common bus/device.krw2011-04-071-65/+38
|
* - use nitems() no binary change on amd64jasper2011-04-051-2/+2
| | | | "reads OK" claudio@
* Hit this code with a big hammer. It now works on the X201/T510 seriesderaadt2011-04-041-35/+25
| | | | | | machines after warm boot or resume. Some of the checks being made were nonsense. Also tested by claudio and guenther. ok jsg
* Iopoolification of some less common scsi drivers.krw2011-04-032-159/+58
| | | | ok dlg@ ("miod will not object" dlg@)
* add IT8721 supportform2011-01-202-2/+4
|
* remove debug codederaadt2011-01-051-4/+2
|
* Support machdep.lidsuspend support in apm(4) land, at least on thinkpadsderaadt2011-01-041-1/+22
| | | | | which have aps(4). You can now turn off the BIOS option for lid suspends, and control it with sysctl.
* Do not #include <sys/dkstat.h> if you don't need anything from it.miod2010-11-182-4/+2
| | | | ok krw@ deraadt@
* Introduce a DKF_NOLABELREAD flag, which is used by a device to preventjsing2010-09-231-1/+2
| | | | | | automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
* All users of physio(9) now pass NULL as the buf pointer argument, somatthew2010-09-222-6/+6
| | | | | | | 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@
* Store a struct device pointer within struct disk and populate this whenjsing2010-09-082-4/+4
| | | | | | | disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-073-14/+3
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Add DVACT_QUIECE support. This is called before splhigh() and beforederaadt2010-08-311-1/+4
| | | | | | | | | 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)
* activate function should return result of config_activate_childrenderaadt2010-08-311-4/+5
|
* Garbage collect struct dkdriver.matthew2010-08-282-8/+2
| | | | ok miod@; "please go ahead" jsing@
* ansify function definitions, and constify a few arrays while there.miod2010-08-282-64/+22
| | | | no functional change.
* Remove dead code, ansify, and clean the match routine; adapted from a diffmiod2010-08-281-40/+25
| | | | by Alexandr Shadchin (firstname dot lastname at gmail) on tech@
* Mutilate the powerhook function into an activate function, then createderaadt2010-08-271-21/+31
| | | | a stub powerhook function to call it.
* fix an annoying indentation glitchderaadt2010-08-201-2/+3
|
* No "\n" needed at the end of panic() strings.krw2010-08-071-2/+2
| | | | | | | Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
* com@isa suspend and resume; logic cloned from ../puc/com_puc.cderaadt2010-08-061-2/+19
| | | | ok kettenis
* Factorization of the bluetooth and usb hid input driver logic, to reduce codemiod2010-07-311-8/+8
| | | | | duplication and divergence. Thanks to mlarkin@ for bluetooth devices tests.
* add SA3_XXX macros removed by mistake with opl, but used by ym mixerratchov2010-07-311-1/+213
| | | | from mk@
* unbreak ym.c, opl3sa3reg.h doesn't exist any longerratchov2010-07-311-2/+1
| | | | noticed by mk@
* remove the ``midisyn'' framework and anything using it, i.e., the oplratchov2010-07-315-455/+1
| | | | device and the midi interface to pcppi.
* fix typo preventing compilation with AUDIO_DEBUGratchov2010-07-311-2/+2
|
* missed a couple indents in previousjakemsr2010-07-241-5/+5
|