acexcep.h revision 1.1.1.3
11.1Sjruoho/******************************************************************************
21.1Sjruoho *
31.1Sjruoho * Name: acexcep.h - Exception codes returned by the ACPI subsystem
41.1Sjruoho *
51.1Sjruoho *****************************************************************************/
61.1Sjruoho
71.1.1.2Sjruoho/*
81.1.1.3Schristos * Copyright (C) 2000 - 2013, Intel Corp.
91.1Sjruoho * All rights reserved.
101.1Sjruoho *
111.1.1.2Sjruoho * Redistribution and use in source and binary forms, with or without
121.1.1.2Sjruoho * modification, are permitted provided that the following conditions
131.1.1.2Sjruoho * are met:
141.1.1.2Sjruoho * 1. Redistributions of source code must retain the above copyright
151.1.1.2Sjruoho *    notice, this list of conditions, and the following disclaimer,
161.1.1.2Sjruoho *    without modification.
171.1.1.2Sjruoho * 2. Redistributions in binary form must reproduce at minimum a disclaimer
181.1.1.2Sjruoho *    substantially similar to the "NO WARRANTY" disclaimer below
191.1.1.2Sjruoho *    ("Disclaimer") and any redistribution must be conditioned upon
201.1.1.2Sjruoho *    including a substantially similar Disclaimer requirement for further
211.1.1.2Sjruoho *    binary redistribution.
221.1.1.2Sjruoho * 3. Neither the names of the above-listed copyright holders nor the names
231.1.1.2Sjruoho *    of any contributors may be used to endorse or promote products derived
241.1.1.2Sjruoho *    from this software without specific prior written permission.
251.1.1.2Sjruoho *
261.1.1.2Sjruoho * Alternatively, this software may be distributed under the terms of the
271.1.1.2Sjruoho * GNU General Public License ("GPL") version 2 as published by the Free
281.1.1.2Sjruoho * Software Foundation.
291.1.1.2Sjruoho *
301.1.1.2Sjruoho * NO WARRANTY
311.1.1.2Sjruoho * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
321.1.1.2Sjruoho * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
331.1.1.2Sjruoho * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
341.1.1.2Sjruoho * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
351.1.1.2Sjruoho * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
361.1.1.2Sjruoho * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
371.1.1.2Sjruoho * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
381.1.1.2Sjruoho * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
391.1.1.2Sjruoho * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
401.1.1.2Sjruoho * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
411.1.1.2Sjruoho * POSSIBILITY OF SUCH DAMAGES.
421.1.1.2Sjruoho */
431.1Sjruoho
441.1Sjruoho#ifndef __ACEXCEP_H__
451.1Sjruoho#define __ACEXCEP_H__
461.1Sjruoho
471.1Sjruoho
481.1.1.3Schristos/* This module contains all possible exception codes for ACPI_STATUS */
491.1.1.3Schristos
501.1Sjruoho/*
511.1.1.3Schristos * Exception code classes
521.1Sjruoho */
531.1.1.3Schristos#define AE_CODE_ENVIRONMENTAL           0x0000 /* General ACPICA environment */
541.1.1.3Schristos#define AE_CODE_PROGRAMMER              0x1000 /* External ACPICA interface caller */
551.1.1.3Schristos#define AE_CODE_ACPI_TABLES             0x2000 /* ACPI tables */
561.1.1.3Schristos#define AE_CODE_AML                     0x3000 /* From executing AML code */
571.1.1.3Schristos#define AE_CODE_CONTROL                 0x4000 /* Internal control codes */
581.1.1.3Schristos
591.1.1.3Schristos#define AE_CODE_MAX                     0x4000
601.1Sjruoho#define AE_CODE_MASK                    0xF000
611.1Sjruoho
621.1.1.3Schristos/*
631.1.1.3Schristos * Macros to insert the exception code classes
641.1.1.3Schristos */
651.1.1.3Schristos#define EXCEP_ENV(code)                 ((ACPI_STATUS) (code | AE_CODE_ENVIRONMENTAL))
661.1.1.3Schristos#define EXCEP_PGM(code)                 ((ACPI_STATUS) (code | AE_CODE_PROGRAMMER))
671.1.1.3Schristos#define EXCEP_TBL(code)                 ((ACPI_STATUS) (code | AE_CODE_ACPI_TABLES))
681.1.1.3Schristos#define EXCEP_AML(code)                 ((ACPI_STATUS) (code | AE_CODE_AML))
691.1.1.3Schristos#define EXCEP_CTL(code)                 ((ACPI_STATUS) (code | AE_CODE_CONTROL))
701.1Sjruoho
711.1.1.3Schristos/*
721.1.1.3Schristos * Exception info table. The "Description" field is used only by the
731.1.1.3Schristos * ACPICA help application (acpihelp).
741.1.1.3Schristos */
751.1.1.3Schristostypedef struct acpi_exception_info
761.1.1.3Schristos{
771.1.1.3Schristos    char                *Name;
781.1.1.3Schristos
791.1.1.3Schristos#ifdef ACPI_HELP_APP
801.1.1.3Schristos    char                *Description;
811.1.1.3Schristos#endif
821.1.1.3Schristos} ACPI_EXCEPTION_INFO;
831.1.1.3Schristos
841.1.1.3Schristos#ifdef ACPI_HELP_APP
851.1.1.3Schristos#define EXCEP_TXT(Name,Description)     {Name, Description}
861.1.1.3Schristos#else
871.1.1.3Schristos#define EXCEP_TXT(Name,Description)     {Name}
881.1.1.3Schristos#endif
891.1.1.3Schristos
901.1.1.3Schristos
911.1.1.3Schristos/*
921.1.1.3Schristos * Success is always zero, failure is non-zero
931.1.1.3Schristos */
941.1Sjruoho#define ACPI_SUCCESS(a)                 (!(a))
951.1Sjruoho#define ACPI_FAILURE(a)                 (a)
961.1Sjruoho
971.1Sjruoho#define AE_OK                           (ACPI_STATUS) 0x0000
981.1Sjruoho
991.1Sjruoho/*
1001.1Sjruoho * Environmental exceptions
1011.1Sjruoho */
1021.1.1.3Schristos#define AE_ERROR                        EXCEP_ENV (0x0001)
1031.1.1.3Schristos#define AE_NO_ACPI_TABLES               EXCEP_ENV (0x0002)
1041.1.1.3Schristos#define AE_NO_NAMESPACE                 EXCEP_ENV (0x0003)
1051.1.1.3Schristos#define AE_NO_MEMORY                    EXCEP_ENV (0x0004)
1061.1.1.3Schristos#define AE_NOT_FOUND                    EXCEP_ENV (0x0005)
1071.1.1.3Schristos#define AE_NOT_EXIST                    EXCEP_ENV (0x0006)
1081.1.1.3Schristos#define AE_ALREADY_EXISTS               EXCEP_ENV (0x0007)
1091.1.1.3Schristos#define AE_TYPE                         EXCEP_ENV (0x0008)
1101.1.1.3Schristos#define AE_NULL_OBJECT                  EXCEP_ENV (0x0009)
1111.1.1.3Schristos#define AE_NULL_ENTRY                   EXCEP_ENV (0x000A)
1121.1.1.3Schristos#define AE_BUFFER_OVERFLOW              EXCEP_ENV (0x000B)
1131.1.1.3Schristos#define AE_STACK_OVERFLOW               EXCEP_ENV (0x000C)
1141.1.1.3Schristos#define AE_STACK_UNDERFLOW              EXCEP_ENV (0x000D)
1151.1.1.3Schristos#define AE_NOT_IMPLEMENTED              EXCEP_ENV (0x000E)
1161.1.1.3Schristos#define AE_SUPPORT                      EXCEP_ENV (0x000F)
1171.1.1.3Schristos#define AE_LIMIT                        EXCEP_ENV (0x0010)
1181.1.1.3Schristos#define AE_TIME                         EXCEP_ENV (0x0011)
1191.1.1.3Schristos#define AE_ACQUIRE_DEADLOCK             EXCEP_ENV (0x0012)
1201.1.1.3Schristos#define AE_RELEASE_DEADLOCK             EXCEP_ENV (0x0013)
1211.1.1.3Schristos#define AE_NOT_ACQUIRED                 EXCEP_ENV (0x0014)
1221.1.1.3Schristos#define AE_ALREADY_ACQUIRED             EXCEP_ENV (0x0015)
1231.1.1.3Schristos#define AE_NO_HARDWARE_RESPONSE         EXCEP_ENV (0x0016)
1241.1.1.3Schristos#define AE_NO_GLOBAL_LOCK               EXCEP_ENV (0x0017)
1251.1.1.3Schristos#define AE_ABORT_METHOD                 EXCEP_ENV (0x0018)
1261.1.1.3Schristos#define AE_SAME_HANDLER                 EXCEP_ENV (0x0019)
1271.1.1.3Schristos#define AE_NO_HANDLER                   EXCEP_ENV (0x001A)
1281.1.1.3Schristos#define AE_OWNER_ID_LIMIT               EXCEP_ENV (0x001B)
1291.1.1.3Schristos#define AE_NOT_CONFIGURED               EXCEP_ENV (0x001C)
1301.1.1.3Schristos#define AE_ACCESS                       EXCEP_ENV (0x001D)
1311.1Sjruoho
1321.1.1.3Schristos#define AE_CODE_ENV_MAX                 0x001D
1331.1Sjruoho
1341.1Sjruoho
1351.1Sjruoho/*
1361.1Sjruoho * Programmer exceptions
1371.1Sjruoho */
1381.1.1.3Schristos#define AE_BAD_PARAMETER                EXCEP_PGM (0x0001)
1391.1.1.3Schristos#define AE_BAD_CHARACTER                EXCEP_PGM (0x0002)
1401.1.1.3Schristos#define AE_BAD_PATHNAME                 EXCEP_PGM (0x0003)
1411.1.1.3Schristos#define AE_BAD_DATA                     EXCEP_PGM (0x0004)
1421.1.1.3Schristos#define AE_BAD_HEX_CONSTANT             EXCEP_PGM (0x0005)
1431.1.1.3Schristos#define AE_BAD_OCTAL_CONSTANT           EXCEP_PGM (0x0006)
1441.1.1.3Schristos#define AE_BAD_DECIMAL_CONSTANT         EXCEP_PGM (0x0007)
1451.1.1.3Schristos#define AE_MISSING_ARGUMENTS            EXCEP_PGM (0x0008)
1461.1.1.3Schristos#define AE_BAD_ADDRESS                  EXCEP_PGM (0x0009)
1471.1Sjruoho
1481.1Sjruoho#define AE_CODE_PGM_MAX                 0x0009
1491.1Sjruoho
1501.1Sjruoho
1511.1Sjruoho/*
1521.1Sjruoho * Acpi table exceptions
1531.1Sjruoho */
1541.1.1.3Schristos#define AE_BAD_SIGNATURE                EXCEP_TBL (0x0001)
1551.1.1.3Schristos#define AE_BAD_HEADER                   EXCEP_TBL (0x0002)
1561.1.1.3Schristos#define AE_BAD_CHECKSUM                 EXCEP_TBL (0x0003)
1571.1.1.3Schristos#define AE_BAD_VALUE                    EXCEP_TBL (0x0004)
1581.1.1.3Schristos#define AE_INVALID_TABLE_LENGTH         EXCEP_TBL (0x0005)
1591.1Sjruoho
1601.1Sjruoho#define AE_CODE_TBL_MAX                 0x0005
1611.1Sjruoho
1621.1Sjruoho
1631.1Sjruoho/*
1641.1.1.3Schristos * AML exceptions. These are caused by problems with
1651.1Sjruoho * the actual AML byte stream
1661.1Sjruoho */
1671.1.1.3Schristos#define AE_AML_BAD_OPCODE               EXCEP_AML (0x0001)
1681.1.1.3Schristos#define AE_AML_NO_OPERAND               EXCEP_AML (0x0002)
1691.1.1.3Schristos#define AE_AML_OPERAND_TYPE             EXCEP_AML (0x0003)
1701.1.1.3Schristos#define AE_AML_OPERAND_VALUE            EXCEP_AML (0x0004)
1711.1.1.3Schristos#define AE_AML_UNINITIALIZED_LOCAL      EXCEP_AML (0x0005)
1721.1.1.3Schristos#define AE_AML_UNINITIALIZED_ARG        EXCEP_AML (0x0006)
1731.1.1.3Schristos#define AE_AML_UNINITIALIZED_ELEMENT    EXCEP_AML (0x0007)
1741.1.1.3Schristos#define AE_AML_NUMERIC_OVERFLOW         EXCEP_AML (0x0008)
1751.1.1.3Schristos#define AE_AML_REGION_LIMIT             EXCEP_AML (0x0009)
1761.1.1.3Schristos#define AE_AML_BUFFER_LIMIT             EXCEP_AML (0x000A)
1771.1.1.3Schristos#define AE_AML_PACKAGE_LIMIT            EXCEP_AML (0x000B)
1781.1.1.3Schristos#define AE_AML_DIVIDE_BY_ZERO           EXCEP_AML (0x000C)
1791.1.1.3Schristos#define AE_AML_BAD_NAME                 EXCEP_AML (0x000D)
1801.1.1.3Schristos#define AE_AML_NAME_NOT_FOUND           EXCEP_AML (0x000E)
1811.1.1.3Schristos#define AE_AML_INTERNAL                 EXCEP_AML (0x000F)
1821.1.1.3Schristos#define AE_AML_INVALID_SPACE_ID         EXCEP_AML (0x0010)
1831.1.1.3Schristos#define AE_AML_STRING_LIMIT             EXCEP_AML (0x0011)
1841.1.1.3Schristos#define AE_AML_NO_RETURN_VALUE          EXCEP_AML (0x0012)
1851.1.1.3Schristos#define AE_AML_METHOD_LIMIT             EXCEP_AML (0x0013)
1861.1.1.3Schristos#define AE_AML_NOT_OWNER                EXCEP_AML (0x0014)
1871.1.1.3Schristos#define AE_AML_MUTEX_ORDER              EXCEP_AML (0x0015)
1881.1.1.3Schristos#define AE_AML_MUTEX_NOT_ACQUIRED       EXCEP_AML (0x0016)
1891.1.1.3Schristos#define AE_AML_INVALID_RESOURCE_TYPE    EXCEP_AML (0x0017)
1901.1.1.3Schristos#define AE_AML_INVALID_INDEX            EXCEP_AML (0x0018)
1911.1.1.3Schristos#define AE_AML_REGISTER_LIMIT           EXCEP_AML (0x0019)
1921.1.1.3Schristos#define AE_AML_NO_WHILE                 EXCEP_AML (0x001A)
1931.1.1.3Schristos#define AE_AML_ALIGNMENT                EXCEP_AML (0x001B)
1941.1.1.3Schristos#define AE_AML_NO_RESOURCE_END_TAG      EXCEP_AML (0x001C)
1951.1.1.3Schristos#define AE_AML_BAD_RESOURCE_VALUE       EXCEP_AML (0x001D)
1961.1.1.3Schristos#define AE_AML_CIRCULAR_REFERENCE       EXCEP_AML (0x001E)
1971.1.1.3Schristos#define AE_AML_BAD_RESOURCE_LENGTH      EXCEP_AML (0x001F)
1981.1.1.3Schristos#define AE_AML_ILLEGAL_ADDRESS          EXCEP_AML (0x0020)
1991.1.1.3Schristos#define AE_AML_INFINITE_LOOP            EXCEP_AML (0x0021)
2001.1Sjruoho
2011.1Sjruoho#define AE_CODE_AML_MAX                 0x0021
2021.1Sjruoho
2031.1Sjruoho
2041.1Sjruoho/*
2051.1Sjruoho * Internal exceptions used for control
2061.1Sjruoho */
2071.1.1.3Schristos#define AE_CTRL_RETURN_VALUE            EXCEP_CTL (0x0001)
2081.1.1.3Schristos#define AE_CTRL_PENDING                 EXCEP_CTL (0x0002)
2091.1.1.3Schristos#define AE_CTRL_TERMINATE               EXCEP_CTL (0x0003)
2101.1.1.3Schristos#define AE_CTRL_TRUE                    EXCEP_CTL (0x0004)
2111.1.1.3Schristos#define AE_CTRL_FALSE                   EXCEP_CTL (0x0005)
2121.1.1.3Schristos#define AE_CTRL_DEPTH                   EXCEP_CTL (0x0006)
2131.1.1.3Schristos#define AE_CTRL_END                     EXCEP_CTL (0x0007)
2141.1.1.3Schristos#define AE_CTRL_TRANSFER                EXCEP_CTL (0x0008)
2151.1.1.3Schristos#define AE_CTRL_BREAK                   EXCEP_CTL (0x0009)
2161.1.1.3Schristos#define AE_CTRL_CONTINUE                EXCEP_CTL (0x000A)
2171.1.1.3Schristos#define AE_CTRL_SKIP                    EXCEP_CTL (0x000B)
2181.1.1.3Schristos#define AE_CTRL_PARSE_CONTINUE          EXCEP_CTL (0x000C)
2191.1.1.3Schristos#define AE_CTRL_PARSE_PENDING           EXCEP_CTL (0x000D)
2201.1Sjruoho
2211.1Sjruoho#define AE_CODE_CTRL_MAX                0x000D
2221.1Sjruoho
2231.1Sjruoho
2241.1Sjruoho/* Exception strings for AcpiFormatException */
2251.1Sjruoho
2261.1.1.3Schristos#ifdef ACPI_DEFINE_EXCEPTION_TABLE
2271.1Sjruoho
2281.1Sjruoho/*
2291.1Sjruoho * String versions of the exception codes above
2301.1Sjruoho * These strings must match the corresponding defines exactly
2311.1Sjruoho */
2321.1.1.3Schristosstatic const ACPI_EXCEPTION_INFO    AcpiGbl_ExceptionNames_Env[] =
2331.1Sjruoho{
2341.1.1.3Schristos    EXCEP_TXT ("AE_OK",                         "No error"),
2351.1.1.3Schristos    EXCEP_TXT ("AE_ERROR",                      "Unspecified error"),
2361.1.1.3Schristos    EXCEP_TXT ("AE_NO_ACPI_TABLES",             "ACPI tables could not be found"),
2371.1.1.3Schristos    EXCEP_TXT ("AE_NO_NAMESPACE",               "A namespace has not been loaded"),
2381.1.1.3Schristos    EXCEP_TXT ("AE_NO_MEMORY",                  "Insufficient dynamic memory"),
2391.1.1.3Schristos    EXCEP_TXT ("AE_NOT_FOUND",                  "A requested entity is not found"),
2401.1.1.3Schristos    EXCEP_TXT ("AE_NOT_EXIST",                  "A required entity does not exist"),
2411.1.1.3Schristos    EXCEP_TXT ("AE_ALREADY_EXISTS",             "An entity already exists"),
2421.1.1.3Schristos    EXCEP_TXT ("AE_TYPE",                       "The object type is incorrect"),
2431.1.1.3Schristos    EXCEP_TXT ("AE_NULL_OBJECT",                "A required object was missing"),
2441.1.1.3Schristos    EXCEP_TXT ("AE_NULL_ENTRY",                 "The requested object does not exist"),
2451.1.1.3Schristos    EXCEP_TXT ("AE_BUFFER_OVERFLOW",            "The buffer provided is too small"),
2461.1.1.3Schristos    EXCEP_TXT ("AE_STACK_OVERFLOW",             "An internal stack overflowed"),
2471.1.1.3Schristos    EXCEP_TXT ("AE_STACK_UNDERFLOW",            "An internal stack underflowed"),
2481.1.1.3Schristos    EXCEP_TXT ("AE_NOT_IMPLEMENTED",            "The feature is not implemented"),
2491.1.1.3Schristos    EXCEP_TXT ("AE_SUPPORT",                    "The feature is not supported"),
2501.1.1.3Schristos    EXCEP_TXT ("AE_LIMIT",                      "A predefined limit was exceeded"),
2511.1.1.3Schristos    EXCEP_TXT ("AE_TIME",                       "A time limit or timeout expired"),
2521.1.1.3Schristos    EXCEP_TXT ("AE_ACQUIRE_DEADLOCK",           "Internal error, attempt was made to acquire a mutex in improper order"),
2531.1.1.3Schristos    EXCEP_TXT ("AE_RELEASE_DEADLOCK",           "Internal error, attempt was made to release a mutex in improper order"),
2541.1.1.3Schristos    EXCEP_TXT ("AE_NOT_ACQUIRED",               "An attempt to release a mutex or Global Lock without a previous acquire"),
2551.1.1.3Schristos    EXCEP_TXT ("AE_ALREADY_ACQUIRED",           "Internal error, attempt was made to acquire a mutex twice"),
2561.1.1.3Schristos    EXCEP_TXT ("AE_NO_HARDWARE_RESPONSE",       "Hardware did not respond after an I/O operation"),
2571.1.1.3Schristos    EXCEP_TXT ("AE_NO_GLOBAL_LOCK",             "There is no FACS Global Lock"),
2581.1.1.3Schristos    EXCEP_TXT ("AE_ABORT_METHOD",               "A control method was aborted"),
2591.1.1.3Schristos    EXCEP_TXT ("AE_SAME_HANDLER",               "Attempt was made to install the same handler that is already installed"),
2601.1.1.3Schristos    EXCEP_TXT ("AE_NO_HANDLER",                 "A handler for the operation is not installed"),
2611.1.1.3Schristos    EXCEP_TXT ("AE_OWNER_ID_LIMIT",             "There are no more Owner IDs available for ACPI tables or control methods"),
2621.1.1.3Schristos    EXCEP_TXT ("AE_NOT_CONFIGURED",             "The interface is not part of the current subsystem configuration"),
2631.1.1.3Schristos    EXCEP_TXT ("AE_ACCESS",                     "Permission denied for the requested operation")
2641.1Sjruoho};
2651.1Sjruoho
2661.1.1.3Schristosstatic const ACPI_EXCEPTION_INFO    AcpiGbl_ExceptionNames_Pgm[] =
2671.1Sjruoho{
2681.1.1.3Schristos    EXCEP_TXT (NULL, NULL),
2691.1.1.3Schristos    EXCEP_TXT ("AE_BAD_PARAMETER",              "A parameter is out of range or invalid"),
2701.1.1.3Schristos    EXCEP_TXT ("AE_BAD_CHARACTER",              "An invalid character was found in a name"),
2711.1.1.3Schristos    EXCEP_TXT ("AE_BAD_PATHNAME",               "An invalid character was found in a pathname"),
2721.1.1.3Schristos    EXCEP_TXT ("AE_BAD_DATA",                   "A package or buffer contained incorrect data"),
2731.1.1.3Schristos    EXCEP_TXT ("AE_BAD_HEX_CONSTANT",           "Invalid character in a Hex constant"),
2741.1.1.3Schristos    EXCEP_TXT ("AE_BAD_OCTAL_CONSTANT",         "Invalid character in an Octal constant"),
2751.1.1.3Schristos    EXCEP_TXT ("AE_BAD_DECIMAL_CONSTANT",       "Invalid character in a Decimal constant"),
2761.1.1.3Schristos    EXCEP_TXT ("AE_MISSING_ARGUMENTS",          "Too few arguments were passed to a control method"),
2771.1.1.3Schristos    EXCEP_TXT ("AE_BAD_ADDRESS",                "An illegal null I/O address")
2781.1Sjruoho};
2791.1Sjruoho
2801.1.1.3Schristosstatic const ACPI_EXCEPTION_INFO    AcpiGbl_ExceptionNames_Tbl[] =
2811.1Sjruoho{
2821.1.1.3Schristos    EXCEP_TXT (NULL, NULL),
2831.1.1.3Schristos    EXCEP_TXT ("AE_BAD_SIGNATURE",              "An ACPI table has an invalid signature"),
2841.1.1.3Schristos    EXCEP_TXT ("AE_BAD_HEADER",                 "Invalid field in an ACPI table header"),
2851.1.1.3Schristos    EXCEP_TXT ("AE_BAD_CHECKSUM",               "An ACPI table checksum is not correct"),
2861.1.1.3Schristos    EXCEP_TXT ("AE_BAD_VALUE",                  "An invalid value was found in a table"),
2871.1.1.3Schristos    EXCEP_TXT ("AE_INVALID_TABLE_LENGTH",       "The FADT or FACS has improper length")
2881.1Sjruoho};
2891.1Sjruoho
2901.1.1.3Schristosstatic const ACPI_EXCEPTION_INFO    AcpiGbl_ExceptionNames_Aml[] =
2911.1Sjruoho{
2921.1.1.3Schristos    EXCEP_TXT (NULL, NULL),
2931.1.1.3Schristos    EXCEP_TXT ("AE_AML_BAD_OPCODE",             "Invalid AML opcode encountered"),
2941.1.1.3Schristos    EXCEP_TXT ("AE_AML_NO_OPERAND",             "A required operand is missing"),
2951.1.1.3Schristos    EXCEP_TXT ("AE_AML_OPERAND_TYPE",           "An operand of an incorrect type was encountered"),
2961.1.1.3Schristos    EXCEP_TXT ("AE_AML_OPERAND_VALUE",          "The operand had an inappropriate or invalid value"),
2971.1.1.3Schristos    EXCEP_TXT ("AE_AML_UNINITIALIZED_LOCAL",    "Method tried to use an uninitialized local variable"),
2981.1.1.3Schristos    EXCEP_TXT ("AE_AML_UNINITIALIZED_ARG",      "Method tried to use an uninitialized argument"),
2991.1.1.3Schristos    EXCEP_TXT ("AE_AML_UNINITIALIZED_ELEMENT",  "Method tried to use an empty package element"),
3001.1.1.3Schristos    EXCEP_TXT ("AE_AML_NUMERIC_OVERFLOW",       "Overflow during BCD conversion or other"),
3011.1.1.3Schristos    EXCEP_TXT ("AE_AML_REGION_LIMIT",           "Tried to access beyond the end of an Operation Region"),
3021.1.1.3Schristos    EXCEP_TXT ("AE_AML_BUFFER_LIMIT",           "Tried to access beyond the end of a buffer"),
3031.1.1.3Schristos    EXCEP_TXT ("AE_AML_PACKAGE_LIMIT",          "Tried to access beyond the end of a package"),
3041.1.1.3Schristos    EXCEP_TXT ("AE_AML_DIVIDE_BY_ZERO",         "During execution of AML Divide operator"),
3051.1.1.3Schristos    EXCEP_TXT ("AE_AML_BAD_NAME",               "An ACPI name contains invalid character(s)"),
3061.1.1.3Schristos    EXCEP_TXT ("AE_AML_NAME_NOT_FOUND",         "Could not resolve a named reference"),
3071.1.1.3Schristos    EXCEP_TXT ("AE_AML_INTERNAL",               "An internal error within the interprete"),
3081.1.1.3Schristos    EXCEP_TXT ("AE_AML_INVALID_SPACE_ID",       "An Operation Region SpaceID is invalid"),
3091.1.1.3Schristos    EXCEP_TXT ("AE_AML_STRING_LIMIT",           "String is longer than 200 characters"),
3101.1.1.3Schristos    EXCEP_TXT ("AE_AML_NO_RETURN_VALUE",        "A method did not return a required value"),
3111.1.1.3Schristos    EXCEP_TXT ("AE_AML_METHOD_LIMIT",           "A control method reached the maximum reentrancy limit of 255"),
3121.1.1.3Schristos    EXCEP_TXT ("AE_AML_NOT_OWNER",              "A thread tried to release a mutex that it does not own"),
3131.1.1.3Schristos    EXCEP_TXT ("AE_AML_MUTEX_ORDER",            "Mutex SyncLevel release mismatch"),
3141.1.1.3Schristos    EXCEP_TXT ("AE_AML_MUTEX_NOT_ACQUIRED",     "Attempt to release a mutex that was not previously acquired"),
3151.1.1.3Schristos    EXCEP_TXT ("AE_AML_INVALID_RESOURCE_TYPE",  "Invalid resource type in resource list"),
3161.1.1.3Schristos    EXCEP_TXT ("AE_AML_INVALID_INDEX",          "Invalid Argx or Localx (x too large)"),
3171.1.1.3Schristos    EXCEP_TXT ("AE_AML_REGISTER_LIMIT",         "Bank value or Index value beyond range of register"),
3181.1.1.3Schristos    EXCEP_TXT ("AE_AML_NO_WHILE",               "Break or Continue without a While"),
3191.1.1.3Schristos    EXCEP_TXT ("AE_AML_ALIGNMENT",              "Non-aligned memory transfer on platform that does not support this"),
3201.1.1.3Schristos    EXCEP_TXT ("AE_AML_NO_RESOURCE_END_TAG",    "No End Tag in a resource list"),
3211.1.1.3Schristos    EXCEP_TXT ("AE_AML_BAD_RESOURCE_VALUE",     "Invalid value of a resource element"),
3221.1.1.3Schristos    EXCEP_TXT ("AE_AML_CIRCULAR_REFERENCE",     "Two references refer to each other"),
3231.1.1.3Schristos    EXCEP_TXT ("AE_AML_BAD_RESOURCE_LENGTH",    "The length of a Resource Descriptor in the AML is incorrect"),
3241.1.1.3Schristos    EXCEP_TXT ("AE_AML_ILLEGAL_ADDRESS",        "A memory, I/O, or PCI configuration address is invalid"),
3251.1.1.3Schristos    EXCEP_TXT ("AE_AML_INFINITE_LOOP",          "An apparent infinite AML While loop, method was aborted")
3261.1Sjruoho};
3271.1Sjruoho
3281.1.1.3Schristosstatic const ACPI_EXCEPTION_INFO    AcpiGbl_ExceptionNames_Ctrl[] =
3291.1Sjruoho{
3301.1.1.3Schristos    EXCEP_TXT (NULL, NULL),
3311.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_RETURN_VALUE",          "A Method returned a value"),
3321.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_PENDING",               "Method is calling another method"),
3331.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_TERMINATE",             "Terminate the executing method"),
3341.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_TRUE",                  "An If or While predicate result"),
3351.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_FALSE",                 "An If or While predicate result"),
3361.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_DEPTH",                 "Maximum search depth has been reached"),
3371.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_END",                   "An If or While predicate is false"),
3381.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_TRANSFER",              "Transfer control to called method"),
3391.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_BREAK",                 "A Break has been executed"),
3401.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_CONTINUE",              "A Continue has been executed"),
3411.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_SKIP",                  "Not currently used"),
3421.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_PARSE_CONTINUE",        "Used to skip over bad opcodes"),
3431.1.1.3Schristos    EXCEP_TXT ("AE_CTRL_PARSE_PENDING",         "Used to implement AML While loops")
3441.1Sjruoho};
3451.1Sjruoho
3461.1.1.3Schristos#endif /* EXCEPTION_TABLE */
3471.1Sjruoho
3481.1Sjruoho#endif /* __ACEXCEP_H__ */
349