acconfig.h revision 126372
171867Smsmith/******************************************************************************
271867Smsmith *
371867Smsmith * Name: acconfig.h - Global configuration constants
471867Smsmith *       $Revision: 149 $
571867Smsmith *
671867Smsmith *****************************************************************************/
771867Smsmith
871867Smsmith/******************************************************************************
971867Smsmith *
1071867Smsmith * 1. Copyright Notice
1171867Smsmith *
1271867Smsmith * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
1371867Smsmith * All rights reserved.
1471867Smsmith *
1571867Smsmith * 2. License
1671867Smsmith *
1771867Smsmith * 2.1. This is your license from Intel Corp. under its intellectual property
1871867Smsmith * rights.  You may have additional license terms from the party that provided
1971867Smsmith * you this software, covering your right to use that party's intellectual
2071867Smsmith * property rights.
2171867Smsmith *
2271867Smsmith * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
2371867Smsmith * copy of the source code appearing in this file ("Covered Code") an
2471867Smsmith * irrevocable, perpetual, worldwide license under Intel's copyrights in the
2571867Smsmith * base code distributed originally by Intel ("Original Intel Code") to copy,
2671867Smsmith * make derivatives, distribute, use and display any portion of the Covered
2771867Smsmith * Code in any form, with the right to sublicense such rights; and
2871867Smsmith *
2971867Smsmith * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
3071867Smsmith * license (with the right to sublicense), under only those claims of Intel
3171867Smsmith * patents that are infringed by the Original Intel Code, to make, use, sell,
3271867Smsmith * offer to sell, and import the Covered Code and derivative works thereof
3371867Smsmith * solely to the minimum extent necessary to exercise the above copyright
3471867Smsmith * license, and in no event shall the patent license extend to any additions
3571867Smsmith * to or modifications of the Original Intel Code.  No other license or right
3671867Smsmith * is granted directly or by implication, estoppel or otherwise;
3771867Smsmith *
3871867Smsmith * The above copyright and patent license is granted only if the following
3971867Smsmith * conditions are met:
4071867Smsmith *
4171867Smsmith * 3. Conditions
4271867Smsmith *
4371867Smsmith * 3.1. Redistribution of Source with Rights to Further Distribute Source.
4471867Smsmith * Redistribution of source code of any substantial portion of the Covered
4571867Smsmith * Code or modification with rights to further distribute source must include
4671867Smsmith * the above Copyright Notice, the above License, this list of Conditions,
4771867Smsmith * and the following Disclaimer and Export Compliance provision.  In addition,
4871867Smsmith * Licensee must cause all Covered Code to which Licensee contributes to
4971867Smsmith * contain a file documenting the changes Licensee made to create that Covered
5071867Smsmith * Code and the date of any change.  Licensee must include in that file the
5171867Smsmith * documentation of any changes made by any predecessor Licensee.  Licensee
5271867Smsmith * must include a prominent statement that the modification is derived,
5371867Smsmith * directly or indirectly, from Original Intel Code.
5471867Smsmith *
5571867Smsmith * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
5671867Smsmith * Redistribution of source code of any substantial portion of the Covered
5771867Smsmith * Code or modification without rights to further distribute source must
5871867Smsmith * include the following Disclaimer and Export Compliance provision in the
5971867Smsmith * documentation and/or other materials provided with distribution.  In
6071867Smsmith * addition, Licensee may not authorize further sublicense of source of any
6171867Smsmith * portion of the Covered Code, and must include terms to the effect that the
6271867Smsmith * license from Licensee to its licensee is limited to the intellectual
6371867Smsmith * property embodied in the software Licensee provides to its licensee, and
6471867Smsmith * not to intellectual property embodied in modifications its licensee may
6571867Smsmith * make.
6671867Smsmith *
6771867Smsmith * 3.3. Redistribution of Executable. Redistribution in executable form of any
6871867Smsmith * substantial portion of the Covered Code or modification must reproduce the
6971867Smsmith * above Copyright Notice, and the following Disclaimer and Export Compliance
7071867Smsmith * provision in the documentation and/or other materials provided with the
7171867Smsmith * distribution.
7271867Smsmith *
7371867Smsmith * 3.4. Intel retains all right, title, and interest in and to the Original
7471867Smsmith * Intel Code.
7571867Smsmith *
7671867Smsmith * 3.5. Neither the name Intel nor any other trademark owned or controlled by
7771867Smsmith * Intel shall be used in advertising or otherwise to promote the sale, use or
7871867Smsmith * other dealings in products derived from or relating to the Covered Code
7971867Smsmith * without prior written authorization from Intel.
8071867Smsmith *
8171867Smsmith * 4. Disclaimer and Export Compliance
8271867Smsmith *
8371867Smsmith * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
8471867Smsmith * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
8571867Smsmith * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
8671867Smsmith * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
8771867Smsmith * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
8871867Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
8971867Smsmith * PARTICULAR PURPOSE.
9071867Smsmith *
9171867Smsmith * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
9271867Smsmith * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
9371867Smsmith * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
9471867Smsmith * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
9571867Smsmith * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
9671867Smsmith * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
9771867Smsmith * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
9871867Smsmith * LIMITED REMEDY.
9971867Smsmith *
10071867Smsmith * 4.3. Licensee shall not export, either directly or indirectly, any of this
10171867Smsmith * software or system incorporating such software without first obtaining any
10271867Smsmith * required license or other approval from the U. S. Department of Commerce or
10371867Smsmith * any other agency or department of the United States Government.  In the
10471867Smsmith * event Licensee exports any such software from the United States or
10571867Smsmith * re-exports any such software from a foreign destination, Licensee shall
10671867Smsmith * ensure that the distribution and export/re-export of the software is in
10771867Smsmith * compliance with all laws, regulations, orders, or other restrictions of the
10871867Smsmith * U.S. Export Administration Regulations. Licensee agrees that neither it nor
10971867Smsmith * any of its subsidiaries will export/re-export any technical data, process,
11071867Smsmith * software, or service, directly or indirectly, to any country for which the
11171867Smsmith * United States government or any agency thereof requires an export license,
11271867Smsmith * other governmental approval, or letter of assurance, without first obtaining
11371867Smsmith * such license, approval or letter.
11471867Smsmith *
11571867Smsmith *****************************************************************************/
11671867Smsmith
11771867Smsmith#ifndef _ACCONFIG_H
11871867Smsmith#define _ACCONFIG_H
11971867Smsmith
12071867Smsmith
12171867Smsmith/******************************************************************************
12271867Smsmith *
12371867Smsmith * Configuration options
12471867Smsmith *
12571867Smsmith *****************************************************************************/
12671867Smsmith
12771867Smsmith/*
12871867Smsmith * ACPI_DEBUG_OUTPUT    - This switch enables all the debug facilities of the
12971867Smsmith *                        ACPI subsystem.  This includes the DEBUG_PRINT output
13071867Smsmith *                        statements.  When disabled, all DEBUG_PRINT
13171867Smsmith *                        statements are compiled out.
13271867Smsmith *
13371867Smsmith * ACPI_APPLICATION     - Use this switch if the subsystem is going to be run
13471867Smsmith *                        at the application level.
13571867Smsmith *
13671867Smsmith */
13771867Smsmith
13871867Smsmith/* Version string */
13971867Smsmith
14071867Smsmith#define ACPI_CA_VERSION                 0x20040220
14171867Smsmith
14271867Smsmith/* Maximum objects in the various object caches */
14371867Smsmith
14471867Smsmith#define ACPI_MAX_STATE_CACHE_DEPTH      64          /* State objects for stacks */
14571867Smsmith#define ACPI_MAX_PARSE_CACHE_DEPTH      96          /* Parse tree objects */
14671867Smsmith#define ACPI_MAX_EXTPARSE_CACHE_DEPTH   64          /* Parse tree objects */
14771867Smsmith#define ACPI_MAX_OBJECT_CACHE_DEPTH     64          /* Interpreter operand objects */
14871867Smsmith#define ACPI_MAX_WALK_CACHE_DEPTH       4           /* Objects for parse tree walks */
14971867Smsmith
15071867Smsmith/*
15171867Smsmith * Should the subystem abort the loading of an ACPI table if the
15271867Smsmith * table checksum is incorrect?
15371867Smsmith */
15471867Smsmith#define ACPI_CHECKSUM_ABORT             FALSE
15571867Smsmith
15671867Smsmith
15771867Smsmith/******************************************************************************
15871867Smsmith *
15971867Smsmith * Subsystem Constants
16071867Smsmith *
16171867Smsmith *****************************************************************************/
16271867Smsmith
16371867Smsmith/* Version of ACPI supported */
16471867Smsmith
16571867Smsmith#define ACPI_CA_SUPPORT_LEVEL           2
16671867Smsmith
16771867Smsmith/* String size constants */
16871867Smsmith
16971867Smsmith#define ACPI_MAX_STRING_LENGTH          512
17071867Smsmith#define ACPI_PATHNAME_MAX               256         /* A full namespace pathname */
17171867Smsmith
17271867Smsmith/* Maximum count for a semaphore object */
17371867Smsmith
17471867Smsmith#define ACPI_MAX_SEMAPHORE_COUNT        256
17571867Smsmith
17671867Smsmith/* Max reference count (for debug only) */
17771867Smsmith
17871867Smsmith#define ACPI_MAX_REFERENCE_COUNT        0x400
17971867Smsmith
18071867Smsmith/* Size of cached memory mapping for system memory operation region */
18171867Smsmith
18271867Smsmith#define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
18371867Smsmith
18471867Smsmith
18571867Smsmith/******************************************************************************
18671867Smsmith *
18771867Smsmith * ACPI Specification constants (Do not change unless the specification changes)
18871867Smsmith *
18971867Smsmith *****************************************************************************/
19071867Smsmith
19171867Smsmith/* Number of distinct GPE register blocks and register width */
19271867Smsmith
19371867Smsmith#define ACPI_MAX_GPE_BLOCKS             2
19471867Smsmith#define ACPI_GPE_REGISTER_WIDTH         8
19571867Smsmith
19671867Smsmith/*
19771867Smsmith * Method info (in WALK_STATE), containing local variables and argumetns
19871867Smsmith */
19971867Smsmith#define ACPI_METHOD_NUM_LOCALS          8
20071867Smsmith#define ACPI_METHOD_MAX_LOCAL           7
20171867Smsmith
20271867Smsmith#define ACPI_METHOD_NUM_ARGS            7
20371867Smsmith#define ACPI_METHOD_MAX_ARG             6
20471867Smsmith
20571867Smsmith/* Maximum length of resulting string when converting from a buffer */
20671867Smsmith
20771867Smsmith#define ACPI_MAX_STRING_CONVERSION      200
20871867Smsmith
20971867Smsmith/* Length of _HID, _UID, and _CID values */
21071867Smsmith
21171867Smsmith#define ACPI_DEVICE_ID_LENGTH           0x09
21271867Smsmith#define ACPI_MAX_CID_LENGTH             48
21371867Smsmith
21471867Smsmith/*
21571867Smsmith * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG
21671867Smsmith */
21771867Smsmith#define ACPI_OBJ_NUM_OPERANDS           8
21871867Smsmith#define ACPI_OBJ_MAX_OPERAND            7
21971867Smsmith
22071867Smsmith/* Names within the namespace are 4 bytes long */
22171867Smsmith
22271867Smsmith#define ACPI_NAME_SIZE                  4
22371867Smsmith#define ACPI_PATH_SEGMENT_LENGTH        5           /* 4 chars for name + 1 char for separator */
22471867Smsmith#define ACPI_PATH_SEPARATOR             '.'
22571867Smsmith
22671867Smsmith/* Constants used in searching for the RSDP in low memory */
22771867Smsmith
22871867Smsmith#define ACPI_LO_RSDP_WINDOW_BASE        0           /* Physical Address */
22971867Smsmith#define ACPI_HI_RSDP_WINDOW_BASE        0xE0000     /* Physical Address */
23071867Smsmith#define ACPI_LO_RSDP_WINDOW_SIZE        0x400
23171867Smsmith#define ACPI_HI_RSDP_WINDOW_SIZE        0x20000
23271867Smsmith#define ACPI_RSDP_SCAN_STEP             16
23371867Smsmith
23471867Smsmith/* Operation regions */
23571867Smsmith
23671867Smsmith#define ACPI_NUM_PREDEFINED_REGIONS     8
23771867Smsmith#define ACPI_USER_REGION_BEGIN          0x80
23871867Smsmith
23971867Smsmith/* Maximum SpaceIds for Operation Regions */
24071867Smsmith
24171867Smsmith#define ACPI_MAX_ADDRESS_SPACE          255
24271867Smsmith
24371867Smsmith/* Array sizes.  Used for range checking also */
24471867Smsmith
24571867Smsmith#define ACPI_NUM_ACCESS_TYPES           6
24671867Smsmith#define ACPI_NUM_UPDATE_RULES           3
24771867Smsmith#define ACPI_NUM_LOCK_RULES             2
24871867Smsmith#define ACPI_NUM_MATCH_OPS              6
24971867Smsmith#define ACPI_NUM_OPCODES                256
25071867Smsmith#define ACPI_NUM_FIELD_NAMES            2
25171867Smsmith
25271867Smsmith/* RSDP checksums */
25371867Smsmith
25471867Smsmith#define ACPI_RSDP_CHECKSUM_LENGTH       20
25571867Smsmith#define ACPI_RSDP_XCHECKSUM_LENGTH      36
25671867Smsmith
25771867Smsmith/* SMBus bidirectional buffer size */
25871867Smsmith
25971867Smsmith#define ACPI_SMBUS_BUFFER_SIZE          34
26071867Smsmith
26171867Smsmith
26271867Smsmith/******************************************************************************
26371867Smsmith *
26471867Smsmith * ACPI AML Debugger
26571867Smsmith *
26671867Smsmith *****************************************************************************/
26771867Smsmith
26871867Smsmith#define ACPI_DEBUGGER_MAX_ARGS          8  /* Must be max method args + 1 */
26971867Smsmith
27071867Smsmith#define ACPI_DEBUGGER_COMMAND_PROMPT    '-'
27171867Smsmith#define ACPI_DEBUGGER_EXECUTE_PROMPT    '%'
27271867Smsmith
27371867Smsmith
27471867Smsmith#endif /* _ACCONFIG_H */
27571867Smsmith
27671867Smsmith