kochi
42ade8383d
check return value of AcpiEnterSleepStatePrep() to catch
...
any failure
2003-08-17 03:45:19 +00:00
kochi
e7df232658
'struct acpi_resources' will have references to malloc'ed memory.
...
So it's better to not to allocate on stack.
2003-08-15 17:22:23 +00:00
kochi
77db8900ab
Correct calculation of timeout.
2003-08-15 17:07:04 +00:00
kochi
645984364d
Workaround for AcpiOsGetThreadId: can be called with curlwp == NULL
2003-08-03 08:19:58 +00:00
kochi
28e9389fdb
Fix a wrong handling of clearing a flag
2003-08-03 08:16:07 +00:00
christos
ec3e43edf4
appease gcc-3 by adding ULL to constants that do not fit in longs
2003-08-03 03:49:29 +00:00
lukem
365cbd9428
add missing __KERNEL_RCSID()
2003-07-14 15:47:00 +00:00
kochi
61634e9a74
Don't compile db*.c & dm*.c unless ACPI_DEBUG and DDB are specified
2003-07-08 15:34:32 +00:00
itojun
a706d499a1
function prototype must not have variable name
2003-07-08 09:07:15 +00:00
kochi
473dc8a475
make bootup messages prettier
2003-07-06 05:24:18 +00:00
kochi
9ab543513d
o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
...
o delete usage of ENABLE_DEBUGGER
As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.
2003-07-06 04:03:21 +00:00
kochi
03c72d8b24
Fix typo.
2003-07-06 03:50:07 +00:00
kochi
3c3271accf
Cleanup usage of ENABLE_DEBUGGER/ACPI_DEBUGGER/DDB.
...
By this change, ACPI debugger/disassembler are only
compiled when both DDB and ACPI_DEBUG options are
specified. This change also reduces the kernel size
a little when ACPI_DEBUG is not specified.
2003-07-03 14:37:34 +00:00
kochi
7a37dbe54d
cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination
2003-07-02 12:23:25 +00:00
kochi
735150f269
print ACPI CA version
2003-07-02 11:54:43 +00:00
kochi
68dae3c110
Implement AcpiOsDerivePciId
2003-07-02 11:45:08 +00:00
kochi
862f80594c
Bugfix from FreeBSD tree:
...
>Fix a bug in register access. This should fix warning messages of:
> ACPI-0340: *** Error: Could not release ACPI Global Lock, AE_BAD_PARAMETER
Thanks for jhb@freebsd to find out this problem.
2003-07-01 17:49:57 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
drochner
1a03e79900
don't #include <sys/dkstat.h> where it is (appearently) unused
2003-06-18 08:58:34 +00:00
gson
f60f21cf0b
The remaining capacity percentage was incorrect for batteries larger than
...
21.47 Wh becaue of integer overflow.
2003-05-29 02:47:49 +00:00
kochi
0cb6714769
Backport a bugfix from the latest ACPI CA.
...
This will fix false AE_NOT_FOUND messages, reported in
port-i386/20897.
2003-05-25 10:08:24 +00:00
kochi
0d6c5a668c
* make use of NetBSD ACPI APIs (acpi_eval_{struct,integer})
...
* minor cleanups
2003-05-22 15:35:51 +00:00
christos
a2f80a1464
size_t != unsigned int all the time.
2003-05-21 17:23:55 +00:00
fvdl
c0b6986667
Add quirk handling to ACPI. First quirk entry is "PTLTD " rev 0x06040000,
...
which gives problems with PCI bus finding; the object hierarchy doesn't
match the real world for some systems, most notably SuperMicro boards.
Linux has this one blacklisted as well.
2003-05-15 21:29:49 +00:00
kochi
bf026fa41a
Fix a reference count problem that may cause unexpected memory free etc.
...
This is a backport of the latest ACPI CA that has a fix for this.
2003-05-13 13:29:00 +00:00
kochi
19e73853da
Fix parent-child loop problem found by Takashi Yamamoto.
2003-05-13 13:07:13 +00:00
fvdl
f0e810d923
Always use 32bit-wide header pointers for an RSDT (ACPI 1.0). The comment
...
in the code talks about "machine-dependent length", but my copy of
the spec clearly says "an array of 32-bit physical addresses".
2003-05-12 00:19:17 +00:00
fvdl
26f04d0979
Avoid a strict-alias warning.
2003-05-11 21:21:16 +00:00
fvdl
3d7030e668
Avoid some strict-alias warnings.
2003-05-11 21:20:23 +00:00
fvdl
c99f4a15ba
s/UINT32/ACPI_SIZE/ to match function prototypes.
2003-05-11 19:08:37 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
yamt
545cae513c
this doesn't need to include callout.h anymore.
2003-04-26 16:38:00 +00:00
thorpej
9dd2908b35
Use sysmon_taskq.
2003-04-20 20:21:29 +00:00
tron
6d26862b28
Fix for ACPI poweroff problem provided by Takayoshi Kochi. This resolves
...
PR kern/20614 by myself.
2003-04-19 16:09:16 +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
matt
062bcd3204
acpi.c needs sysmon_power too.
2003-04-17 20:56:29 +00:00
thorpej
b7394dfe47
Adapt to the sysmon_pswitch interface.
2003-04-17 01:34:14 +00:00
thorpej
ea45f2ccc1
Oops, remove a debugging define.
2003-04-17 01:26:41 +00:00
thorpej
59ea64b6f0
* Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
...
the kernel config file. That code makes a total mess of any
system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
and let it take the appropriate action. This lets us gracefully
shut down when the power button is pressed.
2003-04-17 01:22:21 +00:00
kanaoka
5c5aa9ba83
Make sure this compiles with ACPI_DEBUG.
...
Pointed out by Patrick Welche <prlw1@newn.cam.ac.uk>.
2003-03-07 15:17:44 +00:00
christos
1fbc199e4e
use M_ACPI where appropriate.
2003-03-05 23:00:56 +00:00
kochi
7629f23bb8
Fix a bug that affects machines which has non-zero base GPE blocks.
...
This bug is already reported to Intel ACPICA people.
2003-03-05 15:13:01 +00:00
kochi
b1b04fbfdf
Update for acpica-unix-20030228.
2003-03-04 17:28:00 +00:00
kochi
589c0d70ae
Resolve conflicts from acpica-20030228-2 import.
2003-03-04 17:25:09 +00:00
kochi
f874599c20
Import the Intel ACPICA 20030228 release.
2003-03-04 17:07:34 +00:00
kochi
f93b318be7
import the Intel ACPICA 20030228 release
2003-03-04 16:43:14 +00:00
kochi
e2b5c0723f
Remove unexpectedly imported ACPI CA files and obsolete files
2003-02-26 17:06:40 +00:00
christos
580397c542
back-out previous; it was wrong.
2003-02-24 20:03:02 +00:00
christos
29cd3b6180
fix memory leaks.
2003-02-24 19:58:09 +00:00