jmcneill
ef8922785d
Convert AcpiOsSleep from using tsleep to cv_timedwait_sig
2007-12-21 18:42:38 +00:00
jmcneill
dd0320ef8b
Fix comment before AcpiOsGetTimer, no functional change.
2007-12-17 15:02:31 +00:00
perry
9b2b412c19
__FUNCTION__ -> __func__
2007-12-15 00:39:14 +00:00
jmcneill
645fe8c342
Try not to pass garbage to pci_make_tag; workaround for odd ACPI DSDTs.
...
Fixes kern/37527.
2007-12-12 23:33:22 +00:00
jmcneill
4c1d81b2b5
Merge jmcneill-pm branch.
2007-12-09 20:27:42 +00:00
ad
598ab03ad0
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
...
for Solaris.
2007-12-05 07:06:50 +00:00
ad
a030fa3a9b
The ACPI locks need to run at IPL_VM, since they can be taken from
...
interrupt handlers.
2007-02-19 22:32:52 +00:00
ad
1d4a085a4a
Initialize acpi_interrupt_list_mtx in acpi_probe().
2007-02-19 22:31:05 +00:00
xtraeme
c661f78440
AcpiOsDelete{Lock,Semaphore}: don't forget to destroy the mutex,
...
otherwise mutex_init might be called multiple times.
Discussed with Andrew hours ago.
2007-02-19 12:29:24 +00:00
xtraeme
fe10a8bc01
Forgot to initialize the mutex.
2007-02-19 00:56:05 +00:00
xtraeme
9ece13126c
Replace ACPI_INTERRUPT_LIST_{LOCK,UNLOCK} mutex_{enter,exit}
2007-02-19 00:41:48 +00:00
xtraeme
8ef949e8d4
* Provide same description in cv_init as we had before.
...
* Use cv_timedwait.
Thanks to Andrew for information.
2007-02-19 00:01:23 +00:00
xtraeme
58398d7565
* Replace simple_locks and exclusive locks with adaptive mutexes.
...
* Replace ltsleep/wakeup pairs with condition variables
(cv_init/cv_wait/cv_broadcast).
Reviewed by ad@.
2007-02-18 23:41:07 +00:00
xtraeme
a50e1fb3a5
Replace simple_locks with mutexes, reviewed by ad@.
2007-02-18 23:40:07 +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
christos
7e11d29fc2
Delete unsigned comparison with < 0
2006-08-27 22:33:49 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
kochi
bde9af0a6f
NULL check for a parameter of AcpiOsSignal().
...
The upper layer (ACPI-CA) might call with NULL pointer.
This should resolve Coverity CID 1114.
2006-04-13 08:27:09 +00:00
kochi
143b386a80
change header location in accordance with moving ACPI-CA to sys/dist
2006-03-23 13:45:11 +00:00
kochi
31d00d1ca0
Move ACPI-CA to sys/dist/acpica.
...
also move ACPI-CA OS dependent sources from sys/dev/acpi/acpica/Osd to
sys/dev/acpi/acpica.
2006-03-23 13:44:10 +00:00
kochi
f0c5abbdc8
Move to sys/dev/acpi/acpica.
2006-03-23 13:43:05 +00:00
kochi
f4afd64ab0
Move to sys/dist/acpica.
...
suggested by cube.
2006-03-23 13:42:25 +00:00
kochi
cf31c67b37
Move from sys/dev/acpi/acpica/Osd.
2006-03-23 13:41:13 +00:00
kochi
90cb0d3a79
Merge ACPI-CA 20060217
2006-03-12 06:48:15 +00:00
kochi
5d63813b95
Merge ACPI-CA 20060113
2006-01-29 03:11:26 +00:00
kochi
86bf0f2eb2
Merge ACPI-CA 20060113 (new files)
...
CVg: Committing in .CPI-CA 20060113'
2006-01-29 03:10:55 +00:00
kochi
2564e681ae
Merge ACPI-CA 20060113
2006-01-29 03:05:46 +00:00
kochi
13bafec3c5
Import the INTEL ACPI-CA 20060113
2006-01-29 03:02:40 +00:00
rpaulo
69846c9381
More comments fixing.
2006-01-05 17:13:20 +00:00
rpaulo
e438cb4b93
* defflag ACPI_DSDT_OVERRIDE and defparam ACPI_DSDT_FILE.
...
* adjust comments to reality
2006-01-05 16:56:54 +00:00
perry
93124077ae
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:27:29 +00:00
cube
3de4cab6f7
Move the (one liner) logic of AcpiOsGetRootPointer() out of acpica/Osd to
...
acpi.c and take the opportunity to create a sysctl node that contains the
address of the main ACPI table.
The name of the node, "machdep.acpi_root", is questionable but matches the
one FreeBSD has, which will make it easier to port their acpidump(8)
program.
2005-12-12 15:04:50 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
kochi
1b13c5e5de
revive a piece of code for workaround for buggy BIOSes.
...
this code was accidentally dropped when the last merge of ACPI-CA.
(this code is one of NetBSD-local changes against original ACPI-CA)
2005-10-23 16:39:29 +00:00
drochner
3f6e0487d2
lots of cast-qual fallout
2005-05-31 21:08:37 +00:00
christos
85d43e7f3d
Sprinkle const freely and delete unnecessary casts.
2005-05-29 20:56:02 +00:00
kochi
a7c9d49c21
Merge changes for ACPI-CA 20050408
2005-05-02 14:53:04 +00:00
kochi
57d7792cce
Merge ACPI-CA 20050408
2005-05-02 14:52:09 +00:00
kochi
1b73770414
Import the INTEL ACPI-CA 20050408
2005-05-02 14:42:07 +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
beb4a7fe16
specify static where appropriate.
2004-05-01 12:03:27 +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
kochi
9a5dc2e233
return (x) -> return x
2004-04-11 06:52:38 +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
kochi
bd173d33bf
Fix 16bit-wide access to PCI configuration space.
2004-03-30 11:12:32 +00:00
drochner
d81255df54
some int->ACPI_INTEGER to make it compile on amd64 again
2004-03-23 19:00:03 +00:00
kochi
93ec3b2720
Merge ACPI-CA 20040211.
2004-02-14 16:57:24 +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