Commit Graph

254 Commits

Author SHA1 Message Date
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
mycroft d94e36f311 Add another one. 2003-11-02 19:42:03 +00:00
matt 0c6f824d5a Fix LP64 bug. 2003-11-02 18:29:46 +00:00
jdolecek 076f4674a8 acpi_res_parse_ioport(): if the added entry is next to a previous I/O port
entry, just expand the previous entry instead of adding separate mapping

apparently some BIOSes make separate I/O port entries like this, and
some drivers then fail to attach; this change fixes mappings like

	fdc0: io 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2

to

	fdc0: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2

change tested by Bernd Ernesti
2003-11-02 11:12:53 +00:00
mycroft e45065a344 Dropped a word... 2003-11-01 23:22:54 +00:00
mycroft c4330d824f A small list of things needed here. 2003-11-01 23:22:21 +00:00
mycroft 4b29327094 Don't bothering reinitializing the sensor name strings when the battery info
is updated.  Do print out the battery manufacturer info, though.  (It's too
bad we can't return this through envsys........)
2003-11-01 22:55:53 +00:00
mycroft 31806f9f22 One more spot for a structure change. 2003-11-01 20:58:33 +00:00
yamt 64f5a4d263 make this compilable again with ACPI_DEBUG. 2003-11-01 19:24:42 +00:00
mycroft efe8779bb3 Provide percentages for the threshold values too. 2003-11-01 10:55:12 +00:00
mycroft 7be875cdd8 Whoops, made a typo there. 2003-11-01 10:25:35 +00:00
mycroft cf1951c350 Split "load" into "charge rate" and "discharge rate", depending on the state
of the battery.
2003-11-01 10:24:17 +00:00
mycroft 5c001506f5 Small change to use the "last full capacity" as the capacity maximum. 2003-11-01 09:49:45 +00:00
mycroft 007e2cd3b4 There's no need to clear the data_s fields now that the VALID bits are correct. 2003-11-01 09:41:25 +00:00
mycroft be8e41d93a sc_lockhandle is garbage. 2003-11-01 08:34:54 +00:00
mycroft 10e36668fc Remove an unnecessary call to AcpiGlearGpe(). 2003-11-01 08:27:37 +00:00
mycroft b596969039 Correct arguments to AcpiClearGpe(). 2003-11-01 08:14:39 +00:00
mycroft ff9f7d764c Do not install address handlers before calling AcpiEnableSubsystem() -- this
is done by AcpiInitializeObjects() anyway.
2003-11-01 08:03:24 +00:00
mycroft 6831bfd482 Remove some unused #defines. 2003-11-01 03:45:58 +00:00
mycroft 8dc2532a4f Update copyright. 2003-11-01 03:45:48 +00:00
mycroft 63bc27bf55 Correct arguments to AcpiInstallGpeHandler, as per Linux and FreeBSD. 2003-11-01 01:38:25 +00:00
mycroft 8632b558b7 Move a declaration. 2003-11-01 01:03:23 +00:00
mycroft 0ec2bd2926 Whoops, forgot the /10 in the default case. 2003-10-31 21:52:11 +00:00
mycroft 3c3855c148 Print out the polling interval, and display a less confusing message if _TZP
is not defined.
2003-10-31 21:44:50 +00:00
mycroft fbd3c995b1 Remove an outdated comment. 2003-10-31 21:39:51 +00:00
mycroft fec4c11f9e Catch up with ABI changes in ACPI-CA. Some additional changes to acpi_bat to
set the VALID bits correctly, so we don't report garbage for missing batteries.
2003-10-31 20:54:18 +00:00
mycroft 3970401fd9 Add a file. 2003-10-31 20:52:47 +00:00