jmcneill
80adfeb08d
PR# kern/41179: Incorrect return values from AcpiOsExecute()
...
ACPICA functions return ACPI_STATUS instead of int, so use it for
consistency.
2009-08-25 10:34:08 +00:00
jmcneill
f5e82b659b
add hw.wake.* sysctl subtree for toggling which devices are allowed to
...
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.
by default, the following devices are enabled for wake:
- sleep/power buttons
- lid switch
- pc kbd controller
reviewed by: joerg
2009-08-04 14:20:40 +00:00
dyoung
2e4b9b5581
Make acpilid(4) detachable.
2008-07-15 16:19:37 +00:00
xtraeme
2be2546b16
Split device_t/softc and related cosmetic changes.
2008-03-26 15:31:59 +00:00
xtraeme
5a14ef4138
Add missing acpilid_wake_event() proto.
2008-03-23 14:20:15 +00:00
dyoung
61ad1dd43b
Use PMF_FN_ARGS, PMF_FN_PROTO.
2008-02-29 06:35:40 +00:00
jmcneill
4c1d81b2b5
Merge jmcneill-pm branch.
2007-12-09 20:27:42 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
kochi
6f20259365
use aprint_*
2006-02-20 12:17:49 +00:00
kochi
92d51ace0f
prototypes don't need argument names
2006-02-16 06:19:26 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
kochi
a7c9d49c21
Merge changes for ACPI-CA 20050408
2005-05-02 14:53:04 +00:00
kochi
beb4a7fe16
specify static where appropriate.
2004-05-01 12:03:27 +00:00
kochi
2bde9b6026
return (x) -> return x
...
use consitent variable name for ACPI_STATUS
2004-04-11 06:48:25 +00:00
kanaoka
5886bca6f0
Make it compile (int -> ACPI_INTEGER)
2004-03-24 11:26:46 +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
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
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
thorpej
5a20f4be3c
* Add a generic power management event API, defined in <sys/power.h>.
...
Right now, only power switch state change events are supported. This
is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.
This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
2003-04-18 01:31:34 +00:00
thorpej
b7394dfe47
Adapt to the sysmon_pswitch interface.
2003-04-17 01:34:14 +00:00
thorpej
c9b3657ce9
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:33:28 +00:00
thorpej
387fc6dc87
Use CFATTACH_DECL().
2002-09-30 20:37:04 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
lukem
13ac430285
add RCSID
2001-11-13 13:01:57 +00:00
thorpej
4ce1f116cf
Don't be DEBUG by default, but still be noisy about lid status
...
changes until such time as we actually do something with them.
2001-09-29 05:36:49 +00:00
thorpej
1a9d24bce1
Add stub drivers for ACPI buttons and lid switches. These don't
...
really do anything yet.
2001-09-28 02:30:13 +00:00