172 Commits

Author SHA1 Message Date
Robert Moore
24870bd9e7 Rename nameseg length macro/define for clarity
ACPI_NAME_SIZE changed to ACPI_NAMESEG_SIZE
This clarifies that this is the length of an individual
nameseg, not the length of a generic namestring/namepath.
Improves understanding of the code.
2019-02-22 07:46:57 -08:00
Robert Moore
92ec0935f2 Rename nameseg compare macro for clarity
ACPI_COMPARE_NAME changed to ACPI_COMPARE_NAMESEG
This clarifies (1) this is a compare on 4-byte namesegs, not
a generic compare. Improves understanding of the code.
2019-02-22 07:33:55 -08:00
Robert Moore
62f4f98e94 All acpica: Update copyrights to 2019
including tool signons.
2019-01-08 10:32:54 -08:00
Robert Moore
0e4638cfea iASL: Standardize names for all global variables
For consistency, all iASL global names forced to AslGbl*
2018-09-20 07:30:38 -07:00
Robert Moore
0d5f6f6845 All acpica: Update copyrights to 2018
including tool signons.
2018-01-04 10:06:38 -08:00
Robert Moore
5b16148558 iASL: Resolve some naming inconsistencies
Fix some confusion between "parse op" and "parse node".
Adds a new file, aslparseop.c
Consistently use "parse op" to describe the elements of the
parse tree data structure.
An "Op" is the primary data structure element, even though
it sounds odd.
2017-06-02 10:26:16 -07:00
Robert Moore
72452261ae Update legal header in all source modules
Adds the dual GNU/BSD dual license to the existing Intel license.
Provides all licensing information in each source module.
Affects all ACPICA source modules.
2017-03-02 13:21:13 -08:00
Robert Moore
16577e5265 Source tree: Update copyright notices to 2017
Affects all files.
2017-01-06 14:19:19 -08:00
Robert Moore
07a87d4b24 iASL: Enhance device _HID/_ADR detection
Help ensure that Device objects have a _HID or _ADR. This change
enhances the detection by looking under if and else blocks.
2016-04-13 12:58:54 -07:00
Robert Moore
64f7fecae3 iASL: Remove invalid error message
Remove NULL node error message, the case is actually OK.
2016-02-11 14:26:55 -08:00
Robert Moore
3de60f9ece iASL: Add support for option to create cross-reference file
-lx option: creates a large, multiple cross-reference file.
Intended mostly for BIOS developers.
2016-02-11 12:47:31 -08:00
Robert Moore
7264968d69 Source tree: Update copyright notices to 2016
Affects all files.
2016-01-06 08:57:09 -08:00
Robert Moore
5cdee2df86 iASL: Add support for multiple ACPI tables in a single ASL file.
Initial support to simply compile the file to a single AML file.
Probably mostly useful for testing/debugging purposes.
2015-10-23 10:38:30 -07:00
Robert Moore
68bb6b18de iASL: Update for code formatting, no functional changes
Mostly indentation inconsistencies across the code. Split
some long lines, etc.
2015-10-14 08:11:47 -07:00
Robert Moore
f849f5ebe7 Update source file permissions (2)
Reset user execute bit, set other permissions read-only.
2015-09-23 13:22:14 -07:00
Robert Moore
e33d51f822 Update source file permissions (1)
Set user execute bit to force git to commit the files.
2015-09-23 13:14:16 -07:00
Robert Moore
3b1026e0bd De-macroize calls to standard C library functions.
Across all of ACPICA. Replace C library macros such as ACPI_STRLEN
with the standard names such as strlen. The original purpose for
these macros is long since obsolete.
2015-06-09 12:11:26 -07:00
David E. Box
8990e73ab2 Update Copyright headers to 2015. 2015-01-27 11:55:38 -08:00
David E. Box
6a13235548 Revert "source and test: update copyright notices to 2015"
This reverts commit 28a95326289ca5ee7cd95f8e8e809dc5564d9509.

Commit mistakenly changes file format to CRLF from default LF.
2015-01-27 11:39:30 -08:00
David E. Box
28a9532628 source and test: update copyright notices to 2015 2015-01-23 14:44:06 -08:00
Robert Moore
5fcf78d7e3 Standardize one blank line after copyright header, no functional change.
From acpisrc execution -- the utility now ensures that there is
exactly one blank line after the header.
2014-08-14 10:47:13 -07:00
Robert Moore
bd1cd4f7c8 ACPI 5.1: Support for the _DSD predefined name.
Adds full support for _DSD. David Box.
2014-07-23 08:03:02 -07:00
Lv Zheng
943e3e34d7 Namespace: Remove _PRP method support.
The _PRP method is not going to be a part of the ACPI standard. This patch
removes its support code introduced by the following commits:
 1. Predefined names: Add support for the _PRP method.
 2. Update for _PRP predefined name.
 3. Add support for _LPD and _PRP methods.
 4. iASL: Add check for _PRP/_HID dependency, with error message.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2014-06-04 10:14:08 -07:00
Robert Moore
ca08504c56 iASL: Add check for _PRP/_HID dependency, with error message.
_PRP requires that a _HID appears in the same scope.
2014-04-10 14:21:33 -07:00
Robert Moore
4ca0698cbb Update ACPICA copyrights to 2014.
Update ACPICA copyrights to 2014. Includes all source headers and
signons for the various tools.
2014-01-06 09:10:08 -08:00
Robert Moore
6b0b8eedff Standardize all switch() blocks.
After many years, different formatting for switch() has crept in.
This change makes every switch block identical. Chao Guan.
ACPICA bugzilla 997.
2013-04-23 14:04:40 -07:00
Robert Moore
5b6ee00b56 Update ACPICA copyrights to 2013.
Includes all source headers and signons for the various tools.
2013-01-08 09:23:11 -08:00
Robert Moore
2406636978 Small fix for standard Intel legal header.
Remove an extraneous space after a comma, for consistency.
2012-09-27 09:36:49 -07:00
Robert Moore
a28a14bc42 Remove extra spaces after periods in the Intel license.
For consistency with the rest of the source code.
2012-09-26 13:17:19 -07:00
Robert Moore
7db43032db Update ACPICA copyrights to 2012.
Standard ACPICA source modules only.
2012-01-03 14:08:42 -08:00
Robert Moore
a553c1fe77 ACPI 5.0: Support for _HID string format extension.
Allows 8 char string with the format: NNNN#### where N is an uppercase
character or decimal digit, and # is a hex character.
2011-11-10 10:10:24 +08:00
Robert Moore
28839027ff iASL: Check if _REG has a corresponding Operation Region.
Adds a check for each _REG to ensure that there is in fact a
corresponding operation region declaration in the same scope. If
not, the _REG method is not very useful. ACPICA BZ 915.
2011-03-28 14:34:12 -07:00
Robert Moore
2e989b5ac1 iASL: Add detection of GPE method name conflicts.
Detects a conflict where there are two GPE methods of the form
_Lxy and _Exy in the same scope. ACPICA bugzilla 848.
(For example, _L1D and _E1D in the same scope.)
2011-02-01 13:37:31 -08:00
Robert Moore
25f99e9523 iASL: Split large file aslanalyze.c into three files.
Split into two new files, aslbtypes.c and aslwalks.c.
2011-02-01 13:10:47 -08:00
Robert Moore
d41344f1ec Update all ACPICA copyrights and signons to 2011.
Standard ACPICA source modules only.
2011-01-03 14:02:13 -08:00
Robert Moore
8cc0a33fe7 iASL: Relax alphanumeric restriction on _CID strings.
These strings are "bus-specific" per the ACPI specification, therefore
any characters are acceptable. The only checks that can be performed
are for a null string and perhaps for a leading asterisk.
2010-11-03 10:31:30 -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
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
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
63c14929ca iASL: Add typechecking for Return() values for predefined names.
Implements some typechecking for values returned by any ACPI
predefiend control methods. Only the direct return of static (unnamed)
values are checked. For example, Return(1). ACPICA BZ 786.
2010-03-24 08:40:58 -07:00
Robert Moore
eeb88574ee iASL: Add predefined name checking for static names.
Adds typechecking for static (non-control-method) predefined names.
Migrates compiler to use the common predefined name table (acpredef.h).
Adds a single new file, aslpredef.c. ACPICA BZ 832.
2010-03-02 13:43:56 -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
78c5f575d4 Add missing function prototypes.
Mostly local prototypes that were missing.
2009-04-15 09:56:33 -07: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
e747da4ccd iASL: Remove 'named object in loop' error.
Previously did not allow the creation of named objects within a while
loop. However, it is not possible to analyze the loop to determine if
a named object would actually be created twice. Also, compiling
disassembled code with switch statements would raise this error even
though the compiler-emitted while(one) loop only executed once (there
is a break statement at the bottom of the loop. Chalk this one up to
'a nice try'.
2008-11-12 12:40:17 -08: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
8432c08fc1 iASL: Allow multiple arg counts for _SCP method.
ACPI 1.0 defined _SCP to have one argument. In ACPI 3.0, this was
extended to three arguments. iASL now allows either 1 or 3.
2008-08-21 20:18:03 -07:00
Robert Moore
61565d738f iASL: named objects within loop, part two.
Restricted the error case to allow the use of the Scope, Buffer, and
Package operators within a loop since these operators do not actually
create new objects.
2008-07-29 09:14:18 -07:00