Commit Graph

280 Commits

Author SHA1 Message Date
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
kochi 392db58804 correct handling of _SI.SST method as it is described in ACPI spec. 2003-12-21 10:27:23 +00:00
kochi 503ef186e1 Make ACPI interpreter a bit permissive:
* emulate ReturnOp where expected but not existing
     (which is found in some buggy firmwares)
from FreeBSD's local changes
2003-12-21 07:53:57 +00:00
kochi 2bd0af644b Give up unresponding hardware when entering sleep state.
from FreeBSD's local changes.
2003-12-21 07:51:18 +00:00
kochi d4eea31ad8 Make ACPI interpreter a bit permissive:
* allow access beyond limit of a region
     (which is found in some buggy firmwares)
from FreeBSD's local changes
2003-12-21 07:50:26 +00:00
jmc 43bf89bfc6 Fixes from PR#23177. Various lint/logic fixes:
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing

Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
kochi c2adc9e9b9 Merge ACPI-CA 20031203 2003-12-13 18:10:59 +00:00
jmc 867ec2f3a6 Just use the default field separator 2003-12-12 06:51:47 +00:00
jmc fde398f9ce Regen (picks up PNP8389 after devlist2h.awk changes 2003-12-12 06:51:36 +00:00
jmc 6125716f79 Fix from PR#23177. Pass lint and while here use a regular field separator
and shift off the first entry to get the description. This fixes one that
was getting missed and prevents future errors
2003-12-12 06:50:54 +00:00
christos 165834b297 make this compile again. 2003-12-11 17:46:23 +00:00
keihan b8702f530b netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
kochi 26cac303c7 Remove unused file. 2003-11-26 16:06:12 +00:00
kochi 9e86672dce convert tab -> space (pointed out by Kanaoka-san) 2003-11-20 16:15:59 +00:00
kochi e712db964a fix for ThinkPad 'large reference count' problem.
from shaohua.li at intel.com
2003-11-20 15:42:16 +00:00
yamt 9a34eb3d5a - fix deadlocks due to using lock_status() from interrupt context.
- process pending queries in EcUnlock() to close a race window.
  now there's no need to do polling for EcQuery().
- reorder inline functions and other prototypes so that
  the formers can get needed prototypes.
- add missing prototypes.
2003-11-12 13:59:23 +00:00
yamt 5980449814 use snprintf("%X") instead of "%x" + strupr(). 2003-11-12 13:18:24 +00:00
kochi ca17019a08 * Preserve original $Revision$
* add __KERNEL_RCSID
2003-11-09 11:50:59 +00:00
mycroft 64bd03aa66 Remove acpiec locking from the list. 2003-11-03 20:16:46 +00:00
mycroft 823720b33d Rework slightly so we use acpi_match_hid() in pckbc_acpi_attach() too. 2003-11-03 19:11:41 +00:00
mycroft 3ee522bd34 Match all PNP03?? IDs.
Also match more PNP0F?? IDs (e.g. the one the HP OmniBook reports).  There's
also no need to check IBM3780 any more, as the IBM and Acer machines which
returned it also return a CID of PNP0F13.
2003-11-03 19:04:56 +00:00
mycroft cec77f23d6 Match all PNP04?? IDs. 2003-11-03 19:03:54 +00:00
mycroft c992c0b1e9 Match all PNP07?? IDs. 2003-11-03 19:03:40 +00:00
mycroft 8a8efa0ccf Use pmatch() so that we can use patterns. 2003-11-03 18:51:31 +00:00
mycroft d4f7d52915 Add a SMC ID. 2003-11-03 18:25:56 +00:00
mycroft 4ac0e3e5c6 More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.
2003-11-03 18:07:10 +00:00
mycroft 01558f7ee2 Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
2003-11-03 17:24:22 +00:00
mycroft 72ae89b69a Fix locking protocol, and use _GLK appropriately. From kochi, with some
modifications.
2003-11-03 17:23:38 +00:00
kochi 84795bd3fd * now the size of ACPI_DEVICE_INFO is variable:
it can now accomodate multiple _CIDs
  sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
  _CIDs are also taken into account now as well as _HID
2003-11-03 06:03:47 +00:00
mycroft 21978e6e0a Add another item, and some comments on particular machines affected. 2003-11-03 05:41:06 +00:00