Commit Graph

309 Commits

Author SHA1 Message Date
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
kochi beb4a7fe16 specify static where appropriate. 2004-05-01 12:03:27 +00:00
yamt 4a3c33632a EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.
2004-04-24 09:07:50 +00:00
simonb 9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
itojun aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
kochi 01e95b11cc fix compilation when ACPI_DEBUG is not set.
pointed out by Sverre Froyen.
2004-04-12 15:11:04 +00:00
kochi 1d26507180 minor space nit from Alexander Yurchenko. 2004-04-12 15:09:46 +00:00
kochi d742fdc844 - don't evaluate _UID, reuse ACPI_DEVINFO
- move acpi_resources from acpi_ec_softc to stack
2004-04-11 15:41:50 +00:00
kochi 1055d5f701 split power button and sleep button HIDs so that they can be matched
against compatibility IDs.
2004-04-11 11:25:34 +00:00
kochi 193c08b383 Clean up memory allocated during autoconfiguration 2004-04-11 10:36:35 +00:00
kochi 23f6ddb8d9 change acpi_resource_parse API to support _PRS parsing as well as _CRS 2004-04-11 09:38:19 +00:00
kochi 0dd2fcbaed + add prototype
+ designated initializers
+ call callback functions only when defined
2004-04-11 09:25:28 +00:00
kochi e0945a0006 change acpi_resource_parse API to support _PRS parsing as well as _CRS 2004-04-11 08:56:48 +00:00
kochi b547a6d28f change acpi_resource_parse API to support _PRS parsing as well as _CRS 2004-04-11 08:36:19 +00:00
kochi 9a5dc2e233 return (x) -> return x 2004-04-11 06:52:38 +00:00
kochi 2bde9b6026 return (x) -> return x
use consitent variable name for ACPI_STATUS
2004-04-11 06:48:25 +00:00
kochi db7198d645 whitespace nit 2004-04-10 11:48:10 +00:00
kochi fa6f52f090 A bugfix for Mutex handling.
Originally reported by Takahiro Kambe and this fixed
powerdown on his Panasonic CF-R1N.
This fix is already reported to Intel ACPI-CA team, and will be
included in future releases of ACPI-CA.
2004-04-07 18:19:33 +00:00
tron d44cf8f504 Only call acpiec_early_attach() in "acpi.c" if the kernel is configured
to include the "acpiec" device.
2004-03-31 11:19:39 +00:00
wiz 700791bc6c Fix date in previous (shouldn't the entry just be removed?). 2004-03-30 16:46:58 +00:00
kochi 3f81329e9c ECDT support is complete. 2004-03-30 15:51:53 +00:00
kochi bd130aba8f Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.
2004-03-30 15:18:55 +00:00
kochi bd173d33bf Fix 16bit-wide access to PCI configuration space. 2004-03-30 11:12:32 +00:00
kanaoka b7bbe36649 Set sc->sc_glk,if acpi_eval_integer() evaluate _GLK in acpiec_attach. 2004-03-24 14:47:19 +00:00
kochi 601c8f6d64 Don't include unnecessary header (acpi_osd.h) 2004-03-24 13:02:23 +00:00
kochi 7afcffbeb7 - Don't use ACPI CA internal functions
- make MADT table pointer static
2004-03-24 12:49:45 +00:00
kanaoka 5886bca6f0 Make it compile (int -> ACPI_INTEGER) 2004-03-24 11:26:46 +00:00
martin f87286c8e4 Make it compile (int -> ACPI_INTEGER) 2004-03-24 09:14:58 +00:00
drochner d81255df54 some int->ACPI_INTEGER to make it compile on amd64 again 2004-03-23 19:00:03 +00:00
kochi 2b5897d796 Don't use ACPI CA internal functions 2004-03-23 14:07:42 +00:00
kochi 93ec3b2720 Merge ACPI-CA 20040211. 2004-02-14 16:57:24 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
soren 12e7c81811 As pointed out by Dave Huang, revert back to using 273.15 rather than 273.16
when converting between kelvin and celsius.
2004-02-02 10:36:19 +00:00
soren e8492b62f8 Log message from FreeBSD:
When creating a package element via "Store(0xXXX, Index(ArgX, 0xXXX))",
  be sure to increment the refcount of the argument so it is not
  prematurely deleted.  This is a workaround and may appear in a different
  form in ACPI-CA.  This fixes battery evaluation on Thinkpads that was
  broken by fixing the Dell battery state.

  Submitted by:   Luming Yu <luming.yu at intel.com>
2004-02-02 08:00:56 +00:00
soren 0a0ed6029c Within the scope of the ACPI spec, K = C + 273.2; correct for it. 2004-02-02 07:58:11 +00:00
jdolecek 5ecaa7ecee add dependency on isadma for atppc attachments
add atppc_isadma.c for atppc@isapnp and atppc@ofisa, too
2004-01-31 13:59:20 +00:00
jdolecek fea475b595 add ACPI atppc(4) attachment; probes properly, DMA and actual transfer
not tested yet
2004-01-25 11:46:49 +00:00
gendalia 710460b874 Apply http://bugme.osdl.org/attachment.cgi?id=1777&action=view from
http://bugme.osdl.org/show_bug.cgi?id=1766

makes acpi work on my Dell Latitude D600, and should fix PR i386/23868.

Approved by gimpy, thanks to soren for finding it.
2004-01-04 22:03:34 +00:00