Commit Graph

57 Commits

Author SHA1 Message Date
augustss 9ae405a13b Add code to activate devices that are no active. 2002-07-29 03:26:20 +00:00
augustss 91282a0226 Another part of the PCI fixup change. 2002-07-29 03:25:18 +00:00
augustss 9891751782 Only be very verbose with ACPI_EXTRA_DEBUG set. 2002-07-29 03:10:16 +00:00
augustss 290fa82ceb Add code to perform PCI interrupt routing fixup. 2002-07-29 03:06:56 +00:00
augustss 1394e1ce1a A resource with 0 interrupts is not illegal; it occurs before interrupts
have been allocated.
2002-07-29 03:05:52 +00:00
augustss 1d1e817466 Fix typo in macro. 2002-07-28 15:22:06 +00:00
kanaoka 69c8929084 - Disable Interrput before execute AcpiEnterSleepState().
- Add acpi_md_OsDisableInterrupt() for this.
2002-07-18 12:05:11 +00:00
drochner 93755862ca make it compile with ACPI_DEBUG 2002-06-18 10:26:15 +00:00
tshiozak 368090887b add MI part of ACPI sleep state transition code.
However, we have no interface to use it, and we also need device driver
support. (e.g. D2/D3 support for PCI)
2002-06-18 08:09:21 +00:00
christos 8bb4772dd8 move spic_acpi to arch/i386/acpi 2002-06-17 22:39:25 +00:00
christos 4b396d8f13 AcpiUtGetObjectTypeName is not defined if we are not debugging. 2002-06-17 22:30:07 +00:00
kanaoka 23508069b7 - Show SCI interrupt information.
- Remove ACPI_STA_DEV_SHOW from device check in acpi_build_tree().
2002-06-17 08:18:51 +00:00
thorpej 5dfc880fdd * #if 0 ACPI_DISABLE_IRQS() and ACPI_ENABLE_IRQS(); they're not used.
* Fill in ACPI_ACQUIRE_GLOBAL_LOCK() and ACPI_RELEASE_GLOBAL_LOCK()
  (copied from FreeBSD just to get it working -- room for improvement,
  here).
2002-06-15 18:59:03 +00:00
thorpej 17848b05a8 Update for acpica-unix-20020612. From Takayoshi Kochi. 2002-06-15 18:01:05 +00:00
thorpej 1b7848b55b Remove a locally-added static from several functions, now that
the master sources have added extern prototypes for them.
2002-06-15 17:59:50 +00:00
thorpej aed30267cd Update for acpica-unix-20020612. 2002-06-15 17:58:34 +00:00
thorpej d24f2ef86a Don't define DEBUGGER_THREADING if it's already defined. 2002-06-15 17:56:48 +00:00
thorpej d1da74ff06 Delete files not present in acpica-unix-20020612. 2002-06-15 01:59:29 +00:00
thorpej 932e9074c8 Update for acpica-unix-20020612. 2002-06-15 01:58:23 +00:00
thorpej bd5d00a47f Add RCS IDs. 2002-06-15 01:52:19 +00:00
thorpej c510528ce7 Resolve conflicts from acpica-unix-20020612 import. 2002-06-15 01:47:07 +00:00
thorpej 3b40046c9a Import the Intel ACPICA Unix 20020612 release. 2002-06-14 23:36:27 +00:00
augustss b6c5332498 Add copyright notice (thanks itojun). 2002-06-13 16:48:34 +00:00
drochner 7a79aa5e02 usability fixes for the debugger:
-cut yhe trailing '\r' from input lines so that commands are recognized
-use db_vprintf() for output in interactive mode to get the "|more" effect
-do the same setjmp() game as ddb, so we can return to the prompt
2002-06-05 17:58:33 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
augustss 5b899ef99d Attach the spic driver via ACPI. 2002-04-22 12:42:56 +00:00
sommerfeld b8de140e4e Prototype ACPI Control Method Battery driver.
ACPI defines two different battery device interfaces: "Control Method"
batteries, in which AML methods are defined in order to get battery
status and set battery alarm thresholds, and a "Smart Battery" device,
which is an SMbus device accessed through the ACPI Embedded Controller
device; this driver knows how to attach to the former sort of device.

As a total kludge, since we haven't wired things up to sysmon/envsys
yet, we report battery status through a once-per-minute kernel printf,
so don't use this driver yet if you want your disk to spin down.

Motivated by and tested on Sony PCG-R505TL laptop, which has
nonfunctional APM.

configure as:

acpibat* at acpi ?

Sample output:

acpibat0 at acpi0: ACPI Battery
acpibat0: Sony Corp. LION
acpibat0: Design 38480mWh, Predicted 38480mWh Warn 120mWh Low 0mWh
acpibat0: discharging: 15112mV cap 25480mWh (66%) rate 16849mW
...
acpibat0: discharging: 15224mV cap 25070mWh (65%) rate 18405mW
...
acpibat0: discharging: 15200mV cap 24310mWh (63%) rate 13771mW
...
acpibat0: charging: 15768mV cap 23330mWh (60%) rate 20388mW
2002-03-24 03:46:10 +00:00
sommerfeld 44ede71657 Add acpi_eval_struct, to evaluate a complex data structure.
#if 0-out a half-fixed acpi_eval_string() and #if 0 the only call to it.
(Previous code referenced an uninitialized local variable and couldn't
have possibly worked).
2002-03-24 03:32:14 +00:00
augustss 101cc60a48 Don't define ACPI_BUT_DEBUG here. 2002-03-10 19:55:01 +00:00
augustss 7cf6202cca Fix a typo. 2002-03-10 18:46:35 +00:00
tsutsui c12b5c180d Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:41:02 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem 13ac430285 add RCSID 2001-11-13 13:01:57 +00:00
enami de085459c1 Fix printf format. 2001-10-12 07:30:23 +00:00
thorpej fa591d48c0 - Add an acpi_evaluate_string() to evaluate string objects.
- In acpi_print(), try to evaluate the _STR object, and print
  it if the device is not configured.
- Make this compile without ACPI_DEBUG, from Masanori Kanaoka.
2001-09-29 18:13:48 +00:00
thorpej 84b2da1b5c Don't install a single system notify handler. 2001-09-29 05:39:14 +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 533c169276 Build acpi_resource.c, add "acpiec" and "acpiacad". 2001-09-29 05:36:03 +00:00
thorpej 2945805ff3 Skeleton ACPI AC Adapter driver. 2001-09-29 05:35:06 +00:00
thorpej b41a7fd4de ACPI Embedded Controller driver. 2001-09-29 05:34:23 +00:00
thorpej 6179b9baef Add code to parse ACPI bus resources. 2001-09-29 05:34:00 +00:00
thorpej 391ff9e86d Flesh out w/ some comments from the spec, and add some _ADR decoding
macros.
2001-09-29 05:33:00 +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
thorpej 69f30a1104 Add some basic ACPI probing framework. This is far from complete,
it is merely a work in progress.
2001-09-28 02:09:22 +00:00
thorpej bad233b1df config(8) files declaration for ACPICA. 2001-09-28 02:05:47 +00:00
thorpej 7fb46a1597 Minor changes to get ACPICA to compile with our kernel warning levels. 2001-09-28 01:59:43 +00:00
thorpej 5b5d892cd5 Add __attribute__((__unused__)) to _THIS_MODULE. 2001-09-28 01:52:52 +00:00
thorpej 46f84eb8d0 Fix include file mishap. 2001-09-28 01:37:03 +00:00
thorpej 6e9086bf0b Glue header file to pull in the ACPICA headers. 2001-09-28 01:25:55 +00:00