xtraeme
4a09170d84
Use __unused in function arguments where appropiate. (hi christos)
2006-10-12 06:56:47 +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
gdt
ac02696458
Aggregate discharge rate over all batteries. Makes time remaining
...
reasonable when battery 0 is in use and battery 1 is fully discharged.
2006-10-11 19:14:29 +00:00
gdt
cf2f8187a8
Aggregate current charge level and lastcap over all batteries, rather
...
than taking values from the last battery checked. Solves problem of
apm showing status of 2nd battery in a 2-battery system.
2006-10-11 19:00:12 +00:00
jmcneill
466af2f141
When resuming from S1 standby, don't try to release a mutex that we hadn't
...
previously acquired.
2006-09-26 01:50:43 +00:00
dogcow
a3fae2e5b9
blah blah discard pointer qualifier blah.
2006-09-24 06:03:20 +00:00
jmcneill
f135e0d607
Add "name" parameter to powerhook_establish, to aid debugging. No objections
...
on tech-kern@
2006-09-24 03:53:07 +00:00
fvdl
5f5c640d2e
In acpi_pci_link_dump, print out polarity and trigger for the link device
...
properties.
2006-09-23 17:05:33 +00:00
fvdl
e1d75075c5
Define the "broken IRQ0 override" quirk, and add it for one type of ACPI
...
BIOS.
2006-09-23 17:04:26 +00:00
christos
ec7d898cf1
Complete the declaration.
2006-08-27 23:13:47 +00:00
christos
7e11d29fc2
Delete unsigned comparison with < 0
2006-08-27 22:33:49 +00:00
christos
9d18036adc
PR/34241: Dave Sainty: Bound a memcpy to the sizeof the buffer where we
...
are trying to save the contents, instead of trying to copy what the lenght
of the acpi resource tells us.
2006-08-20 15:10:59 +00:00
itohy
cdb1835aff
ACPI frontend for Yamaha OPL3-SA[23].
...
Derived from PR kern/33991 by jasper at pointless dot net.
2006-08-14 09:34:43 +00:00
christos
dfb16d34c3
PR/34117: Takuya SHIOZAKI: enhancement for acpiapm(4)
...
- make sleep state corresponding to standby/suspend changeable by using sysctl,
- make sure to generate APM events appropriately.
- arrange the code for getting power status.
2006-08-06 15:47:51 +00:00
christos
0fe2e6efc3
PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
...
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.
2006-08-06 15:46:54 +00:00
xtraeme
911aafad9f
Make this build again and fix the bus_space_tag_t member of the softc,
...
it's defined in the com_regs struct now.
2006-07-14 05:02:00 +00:00
gdamore
34537908ab
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
...
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.
Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.
This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.
Approved by core@. Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
hira
7c54838d63
Fix typo (discarge -> discharge).
2006-07-12 13:16:36 +00:00
christos
2fbd5d820a
Prevent zerodivide (from Kouichirou Hiratsuka)
2006-07-12 11:31:39 +00:00
fvdl
6bde80fce7
Do not try to disable link devices (using _DIS) at startup. This causes
...
problems on some systems. Leave the code commented out, we might want
to revisit this at some point in the future.
2006-07-10 09:18:36 +00:00
christos
bb97a3d660
url for M$ file changed.
2006-07-09 19:25:18 +00:00
christos
4998e59f23
Add acpi apm attachment based on sysmon hooks.
2006-07-08 20:23:53 +00:00
xtraeme
9c392ba6f4
Repeat after me, use __KERNEL_RCSID.
2006-07-05 18:17:59 +00:00
christos
01158ea892
Apply fvdl's acpi pci interrupt configuration code.
...
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI
2006-07-04 00:30:21 +00:00
bouyer
0692f212b3
Move acpi_timer.h outside of __HAVE_TIMECOUNTER, as we need acpitimer_init()
...
for the non-timecounter case too.
2006-07-02 18:53:33 +00:00
christos
46e62b977f
- use aprint instead of printf.
...
- centralize all the suspend/resume glue in one function.
2006-07-01 21:44:13 +00:00
xtraeme
8ad8d8401b
Add __KERNEL_RCSID().
2006-06-30 23:21:19 +00:00
xtraeme
1f14228ee9
Remove a debug printf.
2006-06-30 23:19:40 +00:00
drochner
3ce3b9b485
test the PM timer for glitches (using the algorithm from FreeBSD)
...
and use a single read if the timer looks good,
patch from Juan RP, with minor simplification by me
2006-06-26 12:29:36 +00:00
tsarna
d0e9109021
fix typo: idicator -> indicator
2006-06-24 23:40:50 +00:00
drochner
c14d23ac86
First cut on an implementation of an ACPI power management counter
...
backend for timecounters.
Due to known bugs in some chipsets, always read until we get 3 successive
samples which are monotonic, as FreeBSD does in its "safe" variant.
This can be refined later, either by chipset quirks or by a test (as
FreeBSD does).
2006-06-21 17:47:23 +00:00
cube
8b8d583b02
When we consume a resource definition from _PRS, advance to the next one.
...
Otherwise, if there are two resources definitions of the same type in _CRS,
the same one from _PRS will be used twice, which of course leads to errors.
Note: _PRS is Possible Resources Set
_CRS is Current Resources Set
XXX acpi_allocate_resources is still very weak, e.g. it completely ignores
StartDependentFn entries which are kind of a switch. But at least it's
slightly better that way.
Tested by jmcneill@.
2006-06-20 12:31:19 +00:00
jmcneill
a3f69214b6
acpi_pci_fixup didn't work as well as I had hoped; don't bother for now.
2006-06-19 10:18:08 +00:00
jmcneill
3aa64055a0
Fixup PCI interrupt routing using ACPI tables on return from S3 sleep.
...
Requires options PCI_INTR_FIXUP in your kernel.
2006-06-19 02:32:12 +00:00
jmcneill
66bdce4546
EXPERIMENTAL: Add sysctl for triggering ACPI sleep. This interface is not
...
stable, so do not depend on it!
To trigger sleep:
# sysctl -w machdep.sleep_state=<n>
Where <n> is typically 1 (standby), 3 (suspend), or 4 (hibernate).
2006-06-15 18:05:08 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
dogcow
12d973491c
gcc4: 'Data' may be used uninitialized in this function
2006-05-14 03:02:14 +00:00
rpaulo
5cd433e986
My laptop sends DeviceCheck instead of PowerSourceStatusChanged.
2006-04-30 20:44:35 +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
046e0fba2e
Change header location in accordance with moving ACPI-CA to sys/dist/acpica
2006-03-23 13:46:13 +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
cube
20468175d2
Regen.
2006-03-01 09:30:22 +00:00
cube
687f061948
Add INT0800 (Intel FWH RNG). Make tabulation consistent.
2006-03-01 09:29:47 +00:00
cube
2d6c09f7a7
Resource lists end with END_TAG, not END_DEPENDENT. Makes the
...
PCI_INTR_FIXUP code "work" again.
Most of the time it will produce a warning about a misaligned resource
pointer, but it's harmless, and the warning was removed in the next version
of the ACPI-CA code.
2006-02-26 18:46:04 +00:00
wiz
078081c6ad
Fix typo in aprint argument.
2006-02-23 17:38:03 +00:00