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>
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.
Add a couple new UUIDs, plus add AH_UUID to AcpiSrc utility.

More UUIDs.
Windows table OSL: Fix windows status code regression.

Fixes a regression introduced in 74e80e335a68b442df69ff35771bafdfca43ca0c
where the windows error code was incorrectly compared.
ACPICA BZ 1096. Sasha Wildner.
AcpiHelp: Add UUID support, restructure some existing files, 3 new files.

This adds a -u option to AcpiHelp to display all known ACPI UUIDs.
Some existing files in the core code have been restructured.
Three new files.
Makefiles/ProjectFiles: Update for new files.

Update for new files created in the previous commit.
Debug object: Add current value of Timer() to debug line prefix.

Simplifies timing of things like control method execution.
GPEs: Do not allow enable for GPEs that have no handler(s).

There is no point in enabling a GPE that has no handler or
GPE method. At worst, it can cause GPE floods.
Rafael Wysocki.
AcpiHelp: Fix a problem with the UUID list termination.

Some compilers demand full initializers.