Commit Graph

346 Commits

Author SHA1 Message Date
perry 93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
sekiya 469147a42c I fixed the cardbus bus enumeration problem awhile back, but the interrupt
fixup problems remain.  Adjust TODO comments to match, and add a link to
cube's comments.
2005-12-21 08:48:25 +00:00
cube 9af385388e machdep.acpi_root -> hw.acpi.root, as discussed on source-changes. 2005-12-13 23:27:31 +00:00
cube 3de4cab6f7 Move the (one liner) logic of AcpiOsGetRootPointer() out of acpica/Osd to
acpi.c and take the opportunity to create a sysctl node that contains the
address of the main ACPI table.

The name of the node, "machdep.acpi_root", is questionable but matches the
one FreeBSD has, which will make it easier to port their acpidump(8)
program.
2005-12-12 15:04:50 +00:00
rpaulo c747cf7094 Add NSC (NSC6001) IRDA device. 2005-12-11 18:48:51 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
rpaulo 861d507d5b regen 2005-11-12 11:54:29 +00:00
rpaulo 645b6b622a Add ACPI Three-wire Device Bus. 2005-11-12 11:53:30 +00:00
kochi ec63345182 regen. 2005-11-11 02:11:07 +00:00
kochi 2d0bb278d1 add HPET timer PNP ID.
reported in PR32040 by  Nicolas Joly
2005-11-11 02:10:09 +00:00
rpaulo 07c827131f regen 2005-11-10 13:31:03 +00:00
rpaulo 7928f127e6 Add NSC IrDA Fast Infrared Port. 2005-11-10 13:30:46 +00:00
rpaulo f5602021b6 regen 2005-11-10 13:26:34 +00:00
rpaulo 066abf15d0 Add Synaptics PS/2-style Touchpad. 2005-11-10 13:25:59 +00:00
kochi 1b13c5e5de revive a piece of code for workaround for buggy BIOSes.
this code was accidentally dropped when the last merge of ACPI-CA.
(this code is one of NetBSD-local changes against original ACPI-CA)
2005-10-23 16:39:29 +00:00
drochner fbdec13c62 reduce the last commit to its essence; the rest was
not so helpful
2005-07-11 18:31:12 +00:00
christos 79de18714f PR/30720: Nicolas Joly: compilation failure with ACPI_FDC_DEBUG 2005-07-11 14:40:00 +00:00
sekiya 13e5f23389 Fix up interrupt line when line == 0. Discussed with christos@ 2005-06-30 22:28:03 +00:00
christos 66276ec095 There is an error when we return -1, not < 1. 2005-06-30 19:31:53 +00:00
sekiya b72e560799 Likewise, ACPI_PCI_FIXUP has been replaced by PCI_INTR_FIXUP, and we should
notify when an old kernel config is used.  Recommended by wiz@
2005-06-21 11:49:10 +00:00
sekiya 0919f4d283 Rework the configuration scheme for PCI fixups:
* bus enumeration fixups are not PCIBIOS-specific, interrupt fixups are done
  by both PCIBIOS and ACPI.  The redundancy is very redundant.  Therefore,
  rename PCIBIOS_*_FIXUP to PCI_*_FIXUP, use PCI_INTR_FIXUP in place of
  ACPI_PCI_FIXUP, and change code refences to match.

* move the fixup defines from opt_pcibios.h to opt_pcifixup.h to reflect
  the above.

* fix up the PCI bus numbering in mainbus_attach(), right after we detect the
  configuration mode.  This probably renders the fixup in pcibios.c
  redundant -- but it should be harmless.

These changes make cardbus work in ACPI-only machines, when PCI_BUS_FIXUP
and PCI_INTR_FIXUP are defined.
2005-06-21 08:19:25 +00:00
sekiya da1b13d741 Also fix up interrupt line if interrupt is zero, as well as 255. Fixes
interrupt issues on two of my laptops that lack PCIBIOS.
2005-06-20 12:21:36 +00:00
drochner a5c2eed454 kill the "busname" attach arg, it is not really needed 2005-06-01 16:44:38 +00:00
drochner 3f6e0487d2 lots of cast-qual fallout 2005-05-31 21:08:37 +00:00
christos 85d43e7f3d Sprinkle const freely and delete unnecessary casts. 2005-05-29 20:56:02 +00:00
kochi a7c9d49c21 Merge changes for ACPI-CA 20050408 2005-05-02 14:53:04 +00:00
kochi 57d7792cce Merge ACPI-CA 20050408 2005-05-02 14:52:09 +00:00
kochi 1b73770414 Import the INTEL ACPI-CA 20050408 2005-05-02 14:42:07 +00:00
cube 040e3b19e5 Add attimer(4) driver, with ISA and ACPI attachments.
attimer(4) is the new body of the part of pcppi(4) that mapped the TIMER1
register to set the pitch of the bell.  It was necessary to separate them
in order to have a working ACPI attachment (as the two appear as different
devices in the ACPI structures).
2005-03-25 23:06:19 +00:00
xtraeme 57218e5576 Add pcppi(4) ACPI attachment, which matches the "AT-style speaker
sound" ACPI device.

Reviewed by christos@.
2005-03-21 14:06:46 +00:00
perry f11b400470 regen 2005-02-27 05:18:58 +00:00
perry 23679f7026 remove trailing whitespace from the "generated from:" line 2005-02-27 05:18:32 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
jmcneill f697b3820f Fix typo (Capabiltites -> Capabilities). 2005-01-29 18:06:18 +00:00
xtraeme 76025558e1 Add ACPI joy(4) attachment, based on lpt_acpi.c by jmcneill@,
reviewed and ok'ed by cube@ and martin@.
2004-12-02 14:33:31 +00:00
xtraeme 347378fc9f Add ACPI mpu(4) attachment, based on lpt_acpi.c by jmcneill@,
reviewed by christos@, cube@ and martin@.

While here, remove a printf() in mpu_attach() (ic/mpu.c) to remove
an empty line in some frontends (mpu_isa.c, etc).
2004-12-02 09:50:41 +00:00
yamt 05f25dcc2a move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
drochner 46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
mycroft 33f3ac88e8 Handle a "device check" message by reloading battery information. 2004-06-25 13:47:04 +00:00
yamt c1c70ffbb9 don't rely on the value of hz. 2004-06-25 11:15:15 +00:00
kochi d639792bc2 The "implicit return" problem is already fixed since when I imported
ACPICA_PEDANTIC changes from FreeBSD.
Added one item (processor driver).
2004-06-09 16:48:49 +00:00
kochi 7322c3b561 Add code for replacing DSDT. See comments in the file.
Ideas from T.Shiozaki.
2004-06-07 17:35:14 +00:00
kochi 71dc5a9687 Add ACPI_DISABLE_ON_POWEROFF option.
Note: the default behavior is changed.  Now we don't disable the ACPI
subsystem on power off (halt -p) by default.
'options ACPI_DISABLE_ON_POWEROFF' in a kernel config file makes the kernel
behave the way we used to be.
2004-06-07 15:33:17 +00:00
kochi 248f79eb70 Remove the first one (split _REG initialization path into two phases;
which has been done since post-20031203 version of ACPI-CA).
Pointed out by mycroft.
2004-06-07 15:30:03 +00:00
martin 0db10bbadb In acpitz_get_zone only print verbose temperature thresholds when called
from acpitz_attach. This removes strange (and possibly scaring) messages
described in PR kern/25747.
2004-06-06 17:27:05 +00:00
mycroft 4713b8ea6e Remove a couple of items that are done now. XXX Is the first one also done? 2004-06-05 03:14:45 +00:00
kochi 951c6675f8 don't compile acpi_madt.c unless options MPACPI is specified. 2004-05-27 11:26:33 +00:00
kochi 2134725caf ThermalZone improvement work by lha at stacken.kth.se, inspired from
FreeBSD thermal zone code.  Minor style fixes and bugfixes by me.
2004-05-26 17:15:17 +00:00
kochi 660dc92018 Fix typo in variable name. 2004-05-16 07:14:17 +00:00
kochi e48192f908 Add sysmon pswitch hook so that powerd(8) can monitor
AC adapter online/offline events.
2004-05-03 07:44:36 +00:00