Linuxize scripts: Add an ACPICA release library.

This patch removes deprecated generate/linux/patches folder, moves useful
release scripts to the generate/linux folder, reduces code redundancy by
creating a script library libacpica.sh file under generate/linux folder.
Lv Zheng.
AcpiDump: Cleanup directory/mapping functions.

This patch splits file mapping implementation from AcpiDump to form a new
OSL osunixmap.c.
The invocations of AcpiOsMap/UnmapMemory are split into the table related
mappings and the memory related mappings in this patch.
This patch also cleans up opendir/readdir/closedir in AcpiDump by replacing
them with OSL directory iteration implementation.  Lv Zheng.
AcpiDump: Cleanup code for extraction of "customized" tables.

The following error message is fixed after applying this cleanup.
  Could not get ACPI table at index 8, AE_NOT_FOUND

This patch reduces code redundancy by combining 2 pieces of the customized
table extraction codes into one single function - OslGetCustomizedTable() -
for Linux.
This patch also cleans up OslReadTableFromFile() which is called by
OslGetCustomizedTable().  A loop around fread() can help to reduce error
messages on Linux where the size of the file containing the customized
table are limitted to 4KB due to sysfs limitation.  Lv Zheng.
AcpiDump: Fix a possible buffer overflow.

This patch fixes buffer overflows detected around sscanf invocations by
using ACPI_MOVE_NAME().  Lv Zheng.
AcpiDump: Fix errors caused by an empty internal list head.

This patch cleans up the empty head entry of Gbl_TableListHead which is
only used to hold the count of the list entries.  The empty signature name
will cause program error messages where a valid table signature is
expected.
This patch also moves the table entry insertion logic into one single
function and appends multiple table instances handling codes in the new
function.  Lv Zheng.
AcpiDump: Cleanup Linux-specific initialization code.

This patch cleans up Linux specific AcpiDump initialization code to make
sure it is called by all external interfaces.  A redundant flag that
indicates the completion of the initialization is deleted.
This patch also deletes the wrong usage of returning tables used for
initialization from AcpiOsGetTableByName().  Lv Zheng.
Tables: Cleanup table checksum verification code.

This patch reduces code redundancy by moving the FACS/S3PT checksum
verification skip logic into AcpiTbVerifyChecksum().
This patch also adds ApIsValidChecksum() to be called by AcpiDump OSL codes
to verify the checksum of RSDP and tables.  Lv Zheng.
AcpiDump: Add RSDP/RSDT/XSDT table extraction support.

This patch adds full support of RSDP/RSDT/XSDT support for Linux to make it
compatible with the wide used original one, it includes a UEFI RSDP search
support using /sys/firmware/efi/systab and a '-r' option.

On hardware reduced platforms running Linux, there might only be UEFI boot
service enabled, no UEFI runtime service is available.  Thus when the RSDP
is not located in the EBDA window, it is not possible for AcpiDump to find
the RSDP through UEFI sysfs interfaces.  This patch also adds '-r' option
to allow RSDP to be extracted from a user specified position to work around
this issue.  Lv Zheng.
AcpiDump: Add option to extract "customized" ACPI tables.

This patch adds option to extract customized tables on Linux.  Lv Zheng.
AcpiDump: Add multiple table instances support.

This patch adds multiple table instances support for Unix versions.

For AcpiDump, only "-b" options need to handle multiple table instances,
other modes do not need to worry about this as it is handled by external
programs (for example, AcpiXtract).
The call path for "-b" option is:
    ApDumpAllTables()
        AcpiOsGetTableByIndex()
        ApDumpTableBuffer()
            ApWriteToBinaryFile()
It is hard for apdump.c to achieve same "instance ID" that used in the OSL
codes, this patch enhances AcpiOsGetTableByIndex() to obtain table
"instance ID" from OSL layer.  ACPICA BZ 1027.  Lv Zheng.
AcpiDump: Cleanup exception codes in the Linux OSL.

This patch cleans up ACPI_STATUS returned in the Linux version of AcpiDump.

These changes include:
1. AE_ACCESS is added to reflect requirement of root priviledge.
2. AE_BAD_ADDRESS is used where address is 0.
3. AE_BAD_SIGNATURE is returned where root cause of the error is the
   signature.
4. AE_BAD_HEADER is returned especially on a failure of ApGetTableLength().
5. AE_INVALID_TABLE_LENGTH is returned when reading table content fails
   while reading table header succeeds.
6. AE_ERROR is no longer used for the Linux version.
Some error prompts are also cleaned up in this patch.  Lv Zheng.
AcpiDump: Update for windows OSL and project file.

Port windows version to the recent AcpiDump changes.
AcpiDump: Code cleanup, no functional change.

Fix some indenting and whitespace issues.