Debugger: Reformat output from "tables" command.

Make output prettier.
Utilities: Fix a typo issue in AcpiUtValidInternalObject().

No functional changes.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Utilities: Cleanup obsoleted global variables.

This patch deletes global variable declarations that are no longer used by
ACPICA.  No functional changes.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Utilities: Deploy ACPI_DEBUGGER_EXEC for ACPI_DEBUGGER enabled code in utglobal.c.

This patch deploys ACPI_DEBUGGER_EXEC usage to utglobal.c to reduce "ifdef"
of ACPI_DEBUGGER.  No functional changes.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
AcpiDump: Fix code issue in invoking fread in the loop.

This patch fixes an issue that the while loop is not needed as fread()
should return exact the bytes of expected.

The patch is tested by runing diff against the output of "-c" mode and
the normal mode, and only finds the following differences:
1. table addresses: the "-c" mode will always fill 0x0000000000000000 for
                    the address.
2. RSDP/RSDT/XSDT: there is no generation of such tables for "-c" mode.
So the test result shows the fix is valid.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Merge pull request #22 from zetalog/acpica-fixes

Acpica fixes
Unix OSL: Update line-editing support.

Add additional error checking.
Take care not to reset attributes if they were never set.
Makefiles: Add additional automatic host detection.

Adds auto-detect for FreeBSD and MacOSx.
Ronnie Dilli, Jung-uk Kim.
Update global variable definitions. No functional change.

Move all of the public globals to acpixf.h for the convenience
of users. Also:

Adds #ifndef/#endif conditions arround ACPI_GLOBAL and
ACPI_INIT_GLOBAL definition so that OSPMs might be able to:
1. Redefine ACPI_GLOBAL/ACPI_INIT_GLOBAL into no-op, and
2. Redefine external global variables into immediates to implement stubs
   for them.
Lv Zheng.
Linux header: Add support for stubbed externals.

Linux wants to include all header files but leave empty inline
stub variables for a feature that is not configured during build.

This patch configures ACPICA external globals/macros/functions out and
defines them into no-op when CONFIG_ACPI is not enabled.  Lv Zheng.
Update AcpiBufferToResource interface.

1) Add standard trace mechanism.
2) Add ACPI_EXPORT_SYMBOL macro.
Add support for LPIT table.

Adds header, disassembler, table compiler, and template support
for the Low Power Idle Table (LPIT).
Add support for _LPD and _PRP methods.

AcpiHelp and iASL.
iASL: Add check for predefined packages that are too large.

For predefined names that contain subpackages, check if each
subpackage is too large. (check for too small already exists.)
Update handling of PCI ID lists.

More of a style cleanup. if HwBuildPciList is to return a non-zero
status, it now deletes any partial ID list that has been constructed.
if it returns AE_OK, the caller is responsible for list deletion.
David Box.
Comment updates - no functional change.

Change all instances of "sub-table" to "subtable" for
consistency.
Update/fix some source file permissions, no functional change.

Fix some incorrect file permissions. Reported by Richard Palo.
iASL/Templates: Update LPIT template.

Update revision to 1.
Use zero-based unique IDs for subtables.
acpidump: Update new structures and add missing file.

This patch updates release automation with new structures and files that
are used by the newly released acpidump.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
OSL: Move external globals from utglobal.c to acpixf.h using ACPI_INIT_GLOBAL/ACPI_GLOBAL.

OSPMs like Linux trend to include all header files but leave empty stub
macros for a feature that is not configured during build.

This patch cleans up global variables that are defined in utglobal.c using
ACPI_INIT_GLOBAL mechanism.
This patch also cleans up global variables that are defined in utglobal.c
using ACPI_GLOBAL mechanism.  Such global variables are not used or should
not be used by Linux.
Such external global variables can be redefined by OSPMs using
ACPI_INIT_GLOBAL/ACPI_GLOBAL macros.  Thus the ACPI_GLOBAL/ACPI_INIT_GLOBAL
mechanisms can be used by OSPM to implement stubs for such external
globals.

No functional changes.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>