10048 Commits

Author SHA1 Message Date
Robert Moore
14486424a2 Update file permissions.
No functional change.
2010-10-13 08:09:26 -07:00
Robert Moore
b66fd716e0 iASL: Add additional _HID/_CID string validation.
_HID strings must be 7 or 8 characters. Additional checks for
uppercase non-hex characters. ACPICA BZ 874.
2010-10-05 14:54:39 -07:00
Robert Moore
1fa54bc597 iASL: Enhance "null descriptor" error messages.
Message displays the first line of the descriptor.
2010-10-05 14:47:33 -07:00
Robert Moore
ab46514ffe iASL: Move all compiler messages to new file, aslmessages.h
All error/warning/remark messages (strings) and the numeric
definitions.
2010-10-01 14:32:20 -07:00
Robert Moore
f25ea48797 iASL: Allow certain "null" Resource Descriptors.
Fixes a problem where some resource descriptors are created with
most fields set to zero, because the intent is that these
descriptors will be updated at runtime via a BufferField.
These "null" resource desriptors are now allowed iff the desrcriptor
is created with a resource tag -- meaning that the descriptor
can be referenced by a BufferField. ACPICA BZ 873.
2010-10-01 14:14:50 -07:00
Robert Moore
16da8c8163 Deploy common signon/header for all ACPICA tools.
Common signon with version,32/64 width,date,copyright.
2010-09-30 14:47:37 -07:00
Robert Moore
d01d91a34c Add configuration for AcpiBin utility.
To acenv.h file.
2010-09-30 14:37:48 -07:00
Robert Moore
ae36fb6358 AcpiExec: Additional changes for 64-bit build support.
64-bit addresses for DSDT, FACS.
2010-09-30 14:15:57 -07:00
Robert Moore
28b20c5ca6 AcpiExec: Fix for 64-bit build (add XSDT support).
Now uses XSDT exclusively instead of RSDT.
Also, split AML data into new file, aetables.h
2010-09-30 09:59:55 -07:00
Robert Moore
40328a6612 Cleanup Unix OSL modules. No functional change.
Reformat to ACPICA common format.
2010-09-29 09:17:44 -07:00
Robert Moore
f0caebb16f Clear PCIEXP_WAKE_STS when clearing ACPI events.
When clearing status bits via HwClearAcpiStatus, also clear
the PCIEXP_WAKE_STS bit. Original change from Colin King.
ACPICA BZ 880.
2010-09-29 08:49:28 -07:00
Robert Moore
990324383c Add Vista SP2 to supported _OSI strings.
Added "Windows 2006 SP2" for Vista SP2.
2010-09-29 08:43:21 -07:00
Robert Moore
462f3611e7 Unix application OSL: Add single-thread support.
For single threads (like iASL), semaphore support is stubbed.
2010-09-24 14:58:41 -07:00
Robert Moore
48fbd5e14e Cleanup Windows OSL modules. No functional change.
Reformat to ACPICA common format.
2010-09-24 14:53:57 -07:00
Robert Moore
ecc57b86d9 Replace _MULTI_THREADED with ACPI_SINGLE_THREADED and cleanup.
Cleanup the optional multi/single threaded code for semaphores.
2010-09-24 14:32:44 -07:00
Robert Moore
32f46843f9 Eliminate duplicate code in AcpiUtExecute* functions.
Now that the nsrepair code automatically repairs _HID-related
strings, this type of code is no longer needed in Execute_HID,
Execute_CID, and Execute_UID. ACPICA BZ 878.
2010-09-23 12:58:57 -07:00
Robert Moore
1bce3b12a2 Change type of _TZ from ThermalZone to Device.
The type of ThermalZone was confusing hosts as they process the
various ThermalZone objects. ACPICA BZ 876.
2010-09-21 12:48:23 -07:00
Robert Moore
45b6f1fab0 Comment update; no functional change.
Add a usage note to InstallAddressSpaceHandler.
2010-09-21 10:27:35 -07:00
Robert Moore
184ee2428c Update acfreebsd.h for ACPI_THREAD_ID.
From FreeBsd, Jung-uk Kim.
2010-09-16 12:33:39 -07:00
Robert Moore
0581dd659e Update version to 20100915.
Version 20100915.
2010-09-15 10:11:11 -07:00
Robert Moore
2bb12adfab Increase configurability of error messages.
Update to utxferror.c
2010-09-15 09:58:52 -07:00
Robert Moore
b04d1ceeb3 Add repair for _HID and _CID strings.
This dynamic repair will fix these problems:
1) Remove a leading asterisk in the string
2) Uppercase the entire string

ACPICA BZ 871.
2010-09-10 13:25:47 -07:00
Robert Moore
e833f7b424 iASL/Disassembler: Write ACPI errors to stderr instead of output file.
This keeps the output files clean of random error messages that may
originate from within the namespace/interpreter code.

Used this opportunity to merge all ACPI:-style messages into a single
new module, utxferror.c. ACPICA bugzilla 866.
2010-09-10 12:48:36 -07:00
Robert Moore
028e11a944 Make AcpiGbl_SystemAwakeAndRunning publically available.
Added extern for this boolean in acpixf.h. Some hosts utilize
this value during suspend/restore operations.
2010-09-08 14:35:32 -07:00
Robert Moore
c8325d8510 Update math module; no functional change.
Move the 64-bit overlay structures to the utmath module since they
are used nowhere else. Update module comment. ACPICA BZ 829.
2010-09-08 09:50:36 -07:00
Robert Moore
8df5e1c4a2 Revert "Remove obsolete/unused AcpiGbl_SystemAwakeAndRunning global."
This reverts commit f3a6e65d76883eef89299039e20112cce83797b5.

This global is actually used by some hosts in the suspend/resume
code (FreeBSD for one.)
2010-09-03 14:38:49 -07:00
Robert Moore
5642c304e4 iASL/tools: Lint changes.
For acpiexec, also add additional error checking in the utility
itself.
2010-09-03 09:54:53 -07:00
Robert Moore
0845205248 Update header for Intel 64-bit C compiler.
Remove unused macros.
2010-08-26 10:05:19 -07:00
Robert Moore
b890ef7b6b Make ACPI_THREAD_ID no longer configurable, always UINT64.
Change definition of ACPI_THREAD_ID to always be a UINT64. This simplifies
the code, especially any printf output. UINT64 is the only common data
type for all thread_id types across all operating systems. We now force
the OSL to cast the native thread_id type to UINT64 before returning
the value to ACPICA (via AcpiOsGetThreadId). Lin Ming, Bob Moore.
2010-08-20 13:37:40 -07:00
Robert Moore
87bdbc7ec8 Tools: update some printfs for ansi warnings on size_t.
handle width change of size_t on 32 versus 64 bit.
Lin Ming.
2010-08-20 12:57:31 -07:00
Robert Moore
a598d63bbe Add ACPI_INLINE configuration parameter.
The C inline keyword is not standardized, ACPI_INLINE allows this
to be configured on a per-compiler basis. Lin Ming.
2010-08-20 12:25:54 -07:00
Robert Moore
f3a6e65d76 Remove obsolete/unused AcpiGbl_SystemAwakeAndRunning global.
No longer used or needed.
2010-08-19 15:11:58 -07:00
Robert Moore
efc2bd2b61 acpisrc: Add new struct for recent PCI changes.
PCI_DEVICE.
2010-08-19 09:30:38 -07:00
Robert Moore
08fd52445b Obsolete the AcpiOsDerivePciId OSL interface.
This function is not OS-dependent and has been replaced by
AcpiHwDerivePciId, which is now in the ACPICA core code.
Local implementations of AcpiOsDerivePciId are no longer
necessary and may be removed. ACPICA BZ 857.
2010-08-17 10:22:06 -07:00
Robert Moore
b2fcc4330a iASL: Reformat/cleanup error output.
Ensure a space is left between filename and line number.
2010-08-11 09:27:00 -07:00
Robert Moore
1b23040ed8 Update version to 20100806.
Version 20100806.
2010-08-06 09:27:54 -07:00
Robert Moore
8ad66eb93a Add new host interfaces for _OSI support.
Adds install/remove interfaces so that the host can dynamically
alter the global _OSI table. Also adds support for _OSI handlers.
Additional support: new debugger command (osi), and test support
in the acpiexec utility. Adds new file, utilities/utosi.c.
Lin Ming, Bob Moore. ACPICA bugzilla 836.
2010-08-05 14:18:28 -07:00
Robert Moore
a615f17bad Automated cleanup - no functional change.
acpisrc cleanup.
2010-08-05 13:58:20 -07:00
Robert Moore
89cfbf859b Revert "Revert "Enable multi-byte EC transfers.""
This reverts commit f23b9c7d4928dca89d0e93f0683caf094c4a74d0.
The problem with this change was determined to be a problem with
the FreeBSD host OSL (OS services layer), not with this patch
itself. Therefore, re-introducing this change into the main
ACPICA code. See ACPICA bugzilla 863.
2010-08-04 14:20:18 -07:00
Robert Moore
c59dd0a836 iASL: Update main help/usage message.
Add -da option.
2010-07-20 14:58:38 -07:00
Robert Moore
9b3dfcc9e0 iASL/Disassembler: Implement -da (disassemble all) option.
This option allows a group of ACPI tables to be loaded into a
common namespace and then disassembled. Useful for loading
all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
and disassembling with one simple command. ACPICA BZ 865.
Lin Ming.
2010-07-20 14:46:57 -07:00
Robert Moore
7782d737f3 iASL: Allow multiple invocations of -e option.
This change allows multiple uses of -e on the command line:
-e ssdt1.dat -e ssdt2.dat
ACPICA bugzilla 834. Lin Ming.
2010-07-20 14:34:32 -07:00
Robert Moore
450e9850a4 Fix AcpiOsReadPciConfiguration prototype.
Prototype in acpiosxf.h had the output value pointer as a (void *).
Should be a (UINT64 *).
2010-07-16 08:43:24 -07:00
Robert Moore
5815db2cec Update version to 20100702.
Version 20100702.
2010-07-02 09:09:12 -07:00
Robert Moore
3af3e5692d Fix for Alias references within Package objects.
This fixes a problem where a reference to an Alias within the definition
of a Package was not always resolved properly. Aliases to objects
like Processors, ThermalZones, etc. were resolved to the actual
object instead of a reference to the object as it should be.
Package objects are only allowed to contain integer, string, buffer,
package, and reference objects. Redhat bugzilla 608648.
2010-07-01 12:40:43 -07:00
Robert Moore
32543d6eab Fix lint warning for 64-bit constant.
cast to UINT64.
2010-06-30 14:22:45 -07:00
Robert Moore
8211930a35 Update GPE initialization.
The GPE block initialization code in acpi_ev_initialize_gpe_block()
uses acpi_set_gpe() to make sure that the GPEs with nonzero
runtime counter will remain enabled, but since it already has
a struct acpi_gpe_event_info object for each GPE, it might use
the low-level GPE enabling function, acpi_clear_and_enable_gpe(),
for this purpose.

Rename acpi_clear_and_enable_gpe() to acpi_ev_enable_gpe(),
modify the two existing users of it accordingly and modify
acpi_ev_initialize_gpe_block() to use it instead of acpi_set_gpe()
and to check its return value.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

he commit message for your changes. Lines starting
2010-06-29 13:54:46 -07:00
Robert Moore
837ccbd58d Additional GPE cleanup.
After the previous patch that introduced acpi_gpe_wakeup() and
modified the ACPI suspend and wakeup code to use it, the third
argument of acpi_{enable|disable}_gpe() and the GPE wakeup
reference counter are not necessary any more.  Remove them and
modify all of the users of acpi_{enable|disable}_gpe()
accordingly.  Also drop GPE type constants that aren't used
any more. Rafael J. Wysocki.
2010-06-29 13:35:07 -07:00
Robert Moore
5fd2f4c6d3 New GPE function, AcpiGpeWakeup.
ACPICA uses reference counters to avoid disabling GPEs too early in
case they have been enabled for many times.  This is done separately
for run time and for wakeup, but the wakeup GPE reference counter is
not really necessary, because GPEs are only enabled to wake up the
system at the hardware level by acpi_enter_sleep_state().  Thus it
only is necessary to set the corresponding bits in the wakeup enable
masks of these GPEs' registers right before the system enters a sleep
state.  Moreover, the GPE wakeup enable bits can only be set when the
target sleep state of the system is known and they need to be cleared
immediately after wakeup regardless of how many wakeup devices are
associated with a given GPE.

On the basis of the above observations, introduce function
acpi_gpe_wakeup() to be used for setting or clearing the enable bit
corresponding to a given GPE in its enable register's enable_for_wake
mask. Rafael J. Wysocki
2010-06-29 13:03:38 -07:00
Robert Moore
f6f6ae643e Do not disable GPE during handler install/remove.
This causes problems on some machines, in conjunction with the
new reference counting mechanism.
2010-06-22 14:05:53 -07:00