Work around an ancient GCC bug.

warning: cast from function call of type 'char *' to non-matching type 'long unsigned int'
Remove a redundant cast to ACPI_SIZE for ACPI_OFFSET() macro.

It is already casted to ACPI_SIZE by ACPI_PTR_DIFF() macro.
OSL: Cleanup conflict namings.

The "Register" will be converted into "register" by the ACPICA release
scripts. This triggers a build issue for Linux kernel, as "register" is a
C language keyword and cannot be used as C variables.
This patch fixes this issue by renaming "Register" to "PciRegister".
Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
ACPI: Clean up AcpiOsMap/UnmapMemory() to eliminate __iomem.

ACPICA doesn't include protections around address space checking, Linux
build tests always complain increased sparse warnings around ACPICA
internal AcpiOsMap/UnmapMemory() invocations.  This patch tries to fix
this issue permanently.

There are 2 choices left for us to solve this issue:
 1. Add __iomem address space awareness into ACPICA.
 2. Remove sparse checker of __iomem from ACPICA source code.

This patch chooses solution 2, because:
 1.  Most of the AcpiOsMap/UnmapMemory() invocations are used for ACPICA.
     table mappings, which in fact are not IO addresses.
 2.  The only IO addresses usage is for "system memory space" mapping code in:
      exregion.c
      evrgnini.c
      exregion.c
    The mapped address is accessed in the handler of "system memory space"
    - AcpiExSystemMemorySpaceHandler().  This function in fact can be
    changed to invoke AcpiOsRead/WriteMemory() so that __iomem can
    always be type-casted in the OSL layer.

According to the above investigation, we drew the following conclusion:
It is not a good idea to introduce __iomem address space awareness into
ACPICA mostly in order to protect non-IO addresses.

We can simply remove __iomem for AcpiOsMap/UnmapMemory() to remove
__iomem checker for ACPICA code. Then we need to enforce external usages
to invoke other APIs that are aware of __iomem address space.

This patch thus performs cleanups in this way:
 1. Add Linux specific acpi_os_map/unmap_iomem() to be invoked by
    non-ACPICA code. This function is not included in this ACPICA patch.
 2. Remove __iomem from AcpiOsMap/UnmapMemory().

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tables: Merge DMAR table structure updates.

This patch back ports the following Linux commit with sligh modification to
improve portability:
  Author: David Woodhouse <David.Woodhouse@intel.com>
  Subject: iommu/vt-d: Add ACPI namespace device reporting structures

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Events: Fix edge-triggered GPE by disabling before acknowledging it.

Due to ACPI specificiation 5, chapter 5.6.4 General-Purpose Event Hnadling,
OSPMs need to disable GPE before clearing the status bit for edge-triggered
GPEs. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Fix a regression for deletion of Alias() objects.

Fixes a regression introduced by commit 694dea6. In the case of
Alias namespace nodes, the node simply points to the aliased node via
the Object field; thus we cannot assume that the object is an
operand object.

Affects core ACPICA and the ACPICA tools including iASL and
acpiexec.
Merge branch 'master' of ssh://ssh.github.com/acpica/acpica
Disassembler: Add support for the ToUUID opererator (macro).

This change adds support to disassemble a UUID back to the original
ToUUID operator. It will detect a UUID within a standard AML Buffer.
Also, a description of the UUID is emitted for "known" UUIDs, defined
as UUIDs that are defined in the ACPI specification.
Update for comments/formatting. No functional changes.

Fix some issues detected by AcpiSrc utility.
Remove some extraneous printf arguments.

Arguments that have no associated % format specifier.
Apparently these are not caught by any current compilers.
ACPICA BZ 1090. Sascha Wildner.
AcpiSrc: Fix some false-positive errors.

1) When checking for the use of // comments, ignore // within
quoted strings and normal /* comments.

2) Improve detection of the use of if/else constructs without
corresponding braces.

There are still a few issues with (2), especially in the iASL
aslcompiler.l file.

ACPICA BZ 1091.
Merge branch 'master' of git://github.com/acpica/acpica
Merge pull request #43 from zetalog/acpica-1406

Acpica 1406
Disassembler: Add more UUIDs for ToUUID operator.

Adds additional UUIDs to the "known" UUID table. The new entries
are defined for the _DSM method.
iASL/Disassembler: Update for DMAR table changes.

Update table compiler and disassembler for new DMAR fields introduced
in Sept. 2013.
Merge pull request #42 from juikim/master

Fix couple of trivial problems
Merge branch 'master' of ssh://ssh.github.com/acpica/acpica
Utilities: Fix local printf issue.

The bug can be reproduced by using a format that do not have
the width.prec specified after a format that have the width.prec
specified. The second formatted output will be wrong.
The root cause is AcpiUtVsnprintf() doesn't reset the specifiers to the default values.

This patch fixes this issue. BZ 1094. Reported by Yizhe Wang, fixed by Lv Zheng.
Add some new IDs to the master _HID table.

Used for AcpiHelp and the disassembler.