Commit Graph

154 Commits

Author SHA1 Message Date
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
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
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
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
654c1f0ad2 Add support for OS X in the Unix OSL.
OS X needs to use named semaphores. Conditional on __APPLE__
2010-06-08 12:22:20 -07:00
Robert Moore
1af8b94914 iASL/Tools: Replace all %d format specifiers with %u (unsigned).
With only a few exceptions, ACPICA does not use signed integers.
Therefore, %d is incorrect.
2010-05-20 12:12:23 -07:00
Robert Moore
ecff2c8ed5 Update/clarify some parameter names associated with ACPI_HANDLE.
Simple rename of some parameters to standardize them.
2010-04-23 10:00:16 -07:00
Robert Moore
96a1c010a3 iASL: Update -g option (get local tables) for Windows 7.
Changed requested permissions for registry access.
Updated error messages to format/display windows exception code.
2010-03-30 08:09:10 -07:00
Robert Moore
9dff111362 Automated cleanup.
Some extra spaces removed.
2010-03-12 08:21:14 -08:00
Robert Moore
0012dfcd02 Add local cache interfaces for testing purposes only.
Optional code for windows interface only.
2010-03-03 10:05:14 -08:00
Robert Moore
23367dc568 Standardize integer output for ACPICA warnings/errors.
Always use 0x prefix for hex output, use %u for integer output (all
integers are unsigned.)

Affects ACPI_INFO, ACPI_ERROR, ACPI_WARNING, and ACPI_EXCEPTION.
ACPICA BZ 835.
2010-03-02 15:09:46 -08:00
Robert Moore
bce1fbe326 Remove obsolete ACPI_INTEGER (acpi_integer) type.
This type was introduced as the code was migrated from ACPI 1.0 (with 32-bit
AML integers) to ACPI 2.0 (with 64-bit integers). It is now obsolete and
this change removes it from the ACPICA code base, replaced by UINT64.
The original typedef has been retained for now for compatibility with
existing device driver code.
2010-01-19 13:39:26 -08:00
Robert Moore
c7dd20b0d7 Update all ACPICA copyrights and signons to 2010.
Add 2010 copyright to all module headers and signons, including the Linux
header. This affects virtually every file in the ACPICA core subsystem,
iASL compiler, and all utilities.
2010-01-08 08:49:11 -08:00
Robert Moore
cdfcc7cfce Update for new gcc-4 warning options.
Added several new options for the gcc-4 generation, and updated the source
accordingly. This includes some code restructuring to eliminate unreachable
code, elimination of some gotos, elimination of unused return values, and
some additional casting.
2010-01-08 08:14:05 -08:00
Robert Moore
75165fd655 Win OSL: comment update.
Fix non-ansi comment.
2009-04-15 13:48:59 -07:00
Robert Moore
90412706a2 Unix OSL: Fix return value for ALTERNATE_TIMEOUT.
Was using break improperly.
2009-04-15 13:45:45 -07:00
Robert Moore
3afe4f6545 Unix OSL: cleanup AcpiOsGetThreadId function.
Also add implemenation note about ACPI_THREAD_ID type.
2009-04-14 14:22:28 -07:00
Robert Moore
fb0ccef1ea Unix OSL: add alternate implementation for sem_timedwait.
This primitive is apparently buggy on cygwin.
2009-04-14 14:14:51 -07:00
Robert Moore
ef30c37591 Fix implementation of AML BreakPoint operator (break to debugger).
The AML BreakPoint opcode will now cause a break into the AML debugger
if it is present/configured. This matches the expected behavior per
the ACPI specification. Previously, only a message was output.
2009-04-14 10:50:38 -07:00
Robert Moore
97078cb239 Cleanup unix OSL - no functional change.
Fixed multiple coding styles.
2009-03-27 12:48:22 -07:00
Robert Moore
7db238d714 acpiexec: Add option for debug semaphore timeout (-z).
This option will cause all semaphores/mutexes to timeout after
30 seconds with an error message. Used to help diagnose hang conditions.
2009-03-26 13:47:29 -07:00
Robert Moore
2f55581d17 Increase max sempahores for windows OSL.
Increase tracking array size to 256 in order to run the large
ASLTS test suite.
2009-03-25 12:54:05 -07:00
Robert Moore
4df59faf08 Remove obsolete AcpiOsValidateAddress interface.
This interface is no longer necessary. Requests should be validated
on a per-field basis, not on the entire operation region.
2009-03-13 08:49:59 -07:00
Robert Moore
52485728be Update Windows OSL.
Cleanup the AcpiOsTableOverride function.
2009-01-21 14:04:01 -08:00
Robert Moore
382b7a021d iASL: Split windows table access to new file (-g).
Split the acpi table access (in registry) to a new file.
Prepares for integrating acpidump utility into acpica.
2009-01-20 15:12:24 -08:00
Robert Moore
416eb5461f Update all copyrights and signons to 2009.
Add 2009 copyright to all module headers and signons, including the Linux
header. This affects virtually every file in the ACPICA core subsystem,
iASL compiler, and all utilities.
2009-01-08 13:17:27 -08:00
Robert Moore
2d8f95c694 Allow OS override of all ACPI tables.
Previously, the table override mechanism was implemented for the
DSDT only. Now, any table in the RSDT/XSDT can be replaced by the
host OS. (including the DSDT).
2008-12-09 09:37:48 -08:00
Robert Moore
186aaca9a7 Add semaphores to Linux/Unix application OSL.
Use libsemaphore and libpthread to implement OSL synchronization
interfaces for Linux/Unix.
2008-11-12 13:03:01 -08:00
Robert Moore
085ae7362c Restructure includes into public/private.
acpi.h now includes only the "public" acpica headers. All other
acpica headers are "private" and should not be included by acpica
users. One new file, accommon.h is used to include the commonly
used private headers for acpica code generation. Future plans are
to move all private headers to a new subdirectory.
2008-10-22 14:31:40 -07:00
Robert Moore
0b09da4ebd Remove obsolete version number in module headers.
Removed the "$Revision" number that appeared in each module header.
This version number was useful under SourceSafe and CVS, but has no
meaning under git. It is not only incorrect, it could also be
misleading.
2008-09-25 12:56:30 -07:00
Robert Moore
87292344c7 Automated cleanup; no functional changes. 2008-05-21 12:17:51 -07:00
Robert Moore
10e9550130 Eliminate ACPI_NATIVE_UINT type.
No longer needed; replaced mostly with UINT32, but also ACPI_SIZE where a
type that changes 32/64 bit on 32/64-bit platforms is required.
2008-05-08 13:22:20 -07:00
Robert Moore
bf8ca28f3f Eliminate warnings for Windows generation.
Fix for AcpiBin utility.
2008-05-07 14:08:25 -07:00
rmoore1
a417391ec6 Update copyright to 2008.
Added 2008 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and the utilities.
2008-01-09 21:27:10 +00:00
rmoore1
dceba6cbd1 Automated cleanup.
Cleanup via acpisrc.
2007-08-30 23:03:19 +00:00
rmoore1
9e05a90a02 Support for iASL - multiple files and wildcards.
Implemented support to allow multiple files to be compiled/disassembled in a single invocation. This includes command line wildcard support for both the Windows and Unix versions of the compiler. This feature simplifies the disassembly and compilation of multiple ACPI tables in a single directory.
2007-08-30 22:28:35 +00:00
rmoore1
6e075f8871 Update copyright to 2007.
Added 2007 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and the utilities.
2007-01-09 20:01:19 +00:00
rmoore1
c48c3a0657 Ensure returned Thread ID is never zero 2006-09-26 17:14:04 +00:00
rmoore1
62300dae19 The Table Manager component has been completely redesigned and reimplemented. The new design is much simpler, and reduces the overall code and data size of the kernel-resident ACPICA by approximately 5%. Also, it is now possible to obtain the ACPI tables very early during kernel initialization, even before dynamic memory management is initialized. 2006-08-23 19:55:36 +00:00
rmoore1
aefbccd47d Cleanup debug statement 2006-06-21 20:54:40 +00:00
rmoore1
6e1b7b3d1a Major update for locking.
1) Use new types ACPI_SPINLOCK, ACPI_MUTEX,ACPI_SEMAPHORE
2) Deploy new OSL interfaces for mutex objects
3) Use mutex for serialized methods, fix incorrect use of method SyncLevel
2006-06-20 15:37:18 +00:00
rmoore1
1ee90e7361 Replace OsQueueForExecution with OsExecute 2006-05-11 20:52:45 +00:00
rmoore1
a989d8587d Replace OsQueueForExecution with OsExecute 2006-05-11 20:52:45 +00:00
rmoore1
d0bd171bda Rename AcpiOsInterfaceSupport to final name, AcpiOsValidateInterface 2006-04-20 21:23:32 +00:00
rmoore1
65d5c688ce Update ACPI_FUNCTION_* macros, no longer require quotes. Allows source conversion to convert the function names. 2006-04-19 21:49:06 +00:00
rmoore1
a6201199b6 Deployment and support for new AcpiOsInterfaceSupport OSL interface 2006-04-19 16:34:31 +00:00
rmoore1
79e8b916e5 Deployment and support for new AcpiOsValidateAddress interface 2006-04-19 14:52:22 +00:00
rmoore1
bb44b2fbee Deploy ACPI_COMPARE_NAME 2006-03-31 23:25:59 +00:00
rmoore1
18e56ac420 Fall back to original signature defines for now. 2006-03-28 16:31:11 +00:00
rmoore1
770e8ec2c2 Reorganized table headers 2006-03-27 20:38:46 +00:00