acconfig.h revision 197104
190926Snectar/****************************************************************************** 2233294Sstas * 3233294Sstas * Name: acconfig.h - Global configuration constants 4233294Sstas * 590926Snectar *****************************************************************************/ 6233294Sstas 7233294Sstas/****************************************************************************** 8233294Sstas * 990926Snectar * 1. Copyright Notice 10233294Sstas * 11233294Sstas * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp. 1290926Snectar * All rights reserved. 13233294Sstas * 14233294Sstas * 2. License 15233294Sstas * 1690926Snectar * 2.1. This is your license from Intel Corp. under its intellectual property 17233294Sstas * rights. You may have additional license terms from the party that provided 18233294Sstas * you this software, covering your right to use that party's intellectual 19233294Sstas * property rights. 2090926Snectar * 21233294Sstas * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22233294Sstas * copy of the source code appearing in this file ("Covered Code") an 23233294Sstas * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24233294Sstas * base code distributed originally by Intel ("Original Intel Code") to copy, 25233294Sstas * make derivatives, distribute, use and display any portion of the Covered 26233294Sstas * Code in any form, with the right to sublicense such rights; and 27233294Sstas * 28233294Sstas * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29233294Sstas * license (with the right to sublicense), under only those claims of Intel 30233294Sstas * patents that are infringed by the Original Intel Code, to make, use, sell, 31233294Sstas * offer to sell, and import the Covered Code and derivative works thereof 3290926Snectar * solely to the minimum extent necessary to exercise the above copyright 3390926Snectar * license, and in no event shall the patent license extend to any additions 3490926Snectar * to or modifications of the Original Intel Code. No other license or right 3590926Snectar * is granted directly or by implication, estoppel or otherwise; 36233294Sstas * 3790926Snectar * The above copyright and patent license is granted only if the following 3890926Snectar * conditions are met: 39233294Sstas * 4090926Snectar * 3. Conditions 4190926Snectar * 4290926Snectar * 3.1. Redistribution of Source with Rights to Further Distribute Source. 4390926Snectar * Redistribution of source code of any substantial portion of the Covered 4490926Snectar * Code or modification with rights to further distribute source must include 4590926Snectar * the above Copyright Notice, the above License, this list of Conditions, 4690926Snectar * and the following Disclaimer and Export Compliance provision. In addition, 4790926Snectar * Licensee must cause all Covered Code to which Licensee contributes to 4890926Snectar * contain a file documenting the changes Licensee made to create that Covered 4990926Snectar * Code and the date of any change. Licensee must include in that file the 50178825Sdfr * documentation of any changes made by any predecessor Licensee. Licensee 5190926Snectar * must include a prominent statement that the modification is derived, 5290926Snectar * directly or indirectly, from Original Intel Code. 5390926Snectar * 5490926Snectar * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 5590926Snectar * Redistribution of source code of any substantial portion of the Covered 5690926Snectar * Code or modification without rights to further distribute source must 57178825Sdfr * include the following Disclaimer and Export Compliance provision in the 5890926Snectar * documentation and/or other materials provided with distribution. In 5990926Snectar * addition, Licensee may not authorize further sublicense of source of any 6090926Snectar * portion of the Covered Code, and must include terms to the effect that the 6190926Snectar * license from Licensee to its licensee is limited to the intellectual 6290926Snectar * property embodied in the software Licensee provides to its licensee, and 6390926Snectar * not to intellectual property embodied in modifications its licensee may 6490926Snectar * make. 6590926Snectar * 6690926Snectar * 3.3. Redistribution of Executable. Redistribution in executable form of any 6790926Snectar * substantial portion of the Covered Code or modification must reproduce the 6890926Snectar * above Copyright Notice, and the following Disclaimer and Export Compliance 6990926Snectar * provision in the documentation and/or other materials provided with the 7090926Snectar * distribution. 7190926Snectar * 7290926Snectar * 3.4. Intel retains all right, title, and interest in and to the Original 7390926Snectar * Intel Code. 7490926Snectar * 7590926Snectar * 3.5. Neither the name Intel nor any other trademark owned or controlled by 7690926Snectar * Intel shall be used in advertising or otherwise to promote the sale, use or 7790926Snectar * other dealings in products derived from or relating to the Covered Code 78178825Sdfr * without prior written authorization from Intel. 79178825Sdfr * 8090926Snectar * 4. Disclaimer and Export Compliance 8190926Snectar * 8290926Snectar * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 8390926Snectar * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 8490926Snectar * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 8590926Snectar * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 8690926Snectar * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 8790926Snectar * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 8890926Snectar * PARTICULAR PURPOSE. 8990926Snectar * 9090926Snectar * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 9190926Snectar * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92233294Sstas * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93233294Sstas * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94233294Sstas * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95233294Sstas * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96233294Sstas * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97233294Sstas * LIMITED REMEDY. 98233294Sstas * 99233294Sstas * 4.3. Licensee shall not export, either directly or indirectly, any of this 100233294Sstas * software or system incorporating such software without first obtaining any 10190926Snectar * required license or other approval from the U. S. Department of Commerce or 10290926Snectar * any other agency or department of the United States Government. In the 10390926Snectar * event Licensee exports any such software from the United States or 10490926Snectar * re-exports any such software from a foreign destination, Licensee shall 10590926Snectar * ensure that the distribution and export/re-export of the software is in 10690926Snectar * compliance with all laws, regulations, orders, or other restrictions of the 10790926Snectar * U.S. Export Administration Regulations. Licensee agrees that neither it nor 10890926Snectar * any of its subsidiaries will export/re-export any technical data, process, 10990926Snectar * software, or service, directly or indirectly, to any country for which the 11090926Snectar * United States government or any agency thereof requires an export license, 111178825Sdfr * other governmental approval, or letter of assurance, without first obtaining 11290926Snectar * such license, approval or letter. 11390926Snectar * 114 *****************************************************************************/ 115 116#ifndef _ACCONFIG_H 117#define _ACCONFIG_H 118 119 120/****************************************************************************** 121 * 122 * Configuration options 123 * 124 *****************************************************************************/ 125 126/* 127 * ACPI_DEBUG_OUTPUT - This switch enables all the debug facilities of the 128 * ACPI subsystem. This includes the DEBUG_PRINT output 129 * statements. When disabled, all DEBUG_PRINT 130 * statements are compiled out. 131 * 132 * ACPI_APPLICATION - Use this switch if the subsystem is going to be run 133 * at the application level. 134 * 135 */ 136 137/* 138 * OS name, used for the _OS object. The _OS object is essentially obsolete, 139 * but there is a large base of ASL/AML code in existing machines that check 140 * for the string below. The use of this string usually guarantees that 141 * the ASL will execute down the most tested code path. Also, there is some 142 * code that will not execute the _OSI method unless _OS matches the string 143 * below. Therefore, change this string at your own risk. 144 */ 145#define ACPI_OS_NAME "Microsoft Windows NT" 146 147/* Maximum objects in the various object caches */ 148 149#define ACPI_MAX_STATE_CACHE_DEPTH 96 /* State objects */ 150#define ACPI_MAX_PARSE_CACHE_DEPTH 96 /* Parse tree objects */ 151#define ACPI_MAX_EXTPARSE_CACHE_DEPTH 96 /* Parse tree objects */ 152#define ACPI_MAX_OBJECT_CACHE_DEPTH 96 /* Interpreter operand objects */ 153#define ACPI_MAX_NAMESPACE_CACHE_DEPTH 96 /* Namespace objects */ 154 155/* 156 * Should the subsystem abort the loading of an ACPI table if the 157 * table checksum is incorrect? 158 */ 159#define ACPI_CHECKSUM_ABORT FALSE 160 161 162/****************************************************************************** 163 * 164 * Subsystem Constants 165 * 166 *****************************************************************************/ 167 168/* Version of ACPI supported */ 169 170#define ACPI_CA_SUPPORT_LEVEL 3 171 172/* Maximum count for a semaphore object */ 173 174#define ACPI_MAX_SEMAPHORE_COUNT 256 175 176/* Maximum object reference count (detects object deletion issues) */ 177 178#define ACPI_MAX_REFERENCE_COUNT 0x800 179 180/* Size of cached memory mapping for system memory operation region */ 181 182#define ACPI_SYSMEM_REGION_WINDOW_SIZE 4096 183 184/* OwnerId tracking. 8 entries allows for 255 OwnerIds */ 185 186#define ACPI_NUM_OWNERID_MASKS 8 187 188/* Size of the root table array is increased by this increment */ 189 190#define ACPI_ROOT_TABLE_SIZE_INCREMENT 4 191 192/* Maximum number of While() loop iterations before forced abort */ 193 194#define ACPI_MAX_LOOP_ITERATIONS 0xFFFF 195 196 197/****************************************************************************** 198 * 199 * ACPI Specification constants (Do not change unless the specification changes) 200 * 201 *****************************************************************************/ 202 203/* Method info (in WALK_STATE), containing local variables and argumetns */ 204 205#define ACPI_METHOD_NUM_LOCALS 8 206#define ACPI_METHOD_MAX_LOCAL 7 207 208#define ACPI_METHOD_NUM_ARGS 7 209#define ACPI_METHOD_MAX_ARG 6 210 211/* 212 * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG 213 */ 214#define ACPI_OBJ_NUM_OPERANDS 8 215#define ACPI_OBJ_MAX_OPERAND 7 216 217/* Number of elements in the Result Stack frame, can be an arbitrary value */ 218 219#define ACPI_RESULTS_FRAME_OBJ_NUM 8 220 221/* 222 * Maximal number of elements the Result Stack can contain, 223 * it may be an arbitray value not exceeding the types of 224 * ResultSize and ResultCount (now UINT8). 225 */ 226#define ACPI_RESULTS_OBJ_NUM_MAX 255 227 228/* Constants used in searching for the RSDP in low memory */ 229 230#define ACPI_EBDA_PTR_LOCATION 0x0000040E /* Physical Address */ 231#define ACPI_EBDA_PTR_LENGTH 2 232#define ACPI_EBDA_WINDOW_SIZE 1024 233#define ACPI_HI_RSDP_WINDOW_BASE 0x000E0000 /* Physical Address */ 234#define ACPI_HI_RSDP_WINDOW_SIZE 0x00020000 235#define ACPI_RSDP_SCAN_STEP 16 236 237/* Operation regions */ 238 239#define ACPI_NUM_PREDEFINED_REGIONS 9 240#define ACPI_USER_REGION_BEGIN 0x80 241 242/* Maximum SpaceIds for Operation Regions */ 243 244#define ACPI_MAX_ADDRESS_SPACE 255 245 246/* Array sizes. Used for range checking also */ 247 248#define ACPI_MAX_MATCH_OPCODE 5 249 250/* RSDP checksums */ 251 252#define ACPI_RSDP_CHECKSUM_LENGTH 20 253#define ACPI_RSDP_XCHECKSUM_LENGTH 36 254 255/* SMBus and IPMI bidirectional buffer size */ 256 257#define ACPI_SMBUS_BUFFER_SIZE 34 258#define ACPI_IPMI_BUFFER_SIZE 66 259 260/* _SxD and _SxW control methods */ 261 262#define ACPI_NUM_SxD_METHODS 4 263#define ACPI_NUM_SxW_METHODS 5 264 265 266/****************************************************************************** 267 * 268 * ACPI AML Debugger 269 * 270 *****************************************************************************/ 271 272#define ACPI_DEBUGGER_MAX_ARGS 8 /* Must be max method args + 1 */ 273 274#define ACPI_DEBUGGER_COMMAND_PROMPT '-' 275#define ACPI_DEBUGGER_EXECUTE_PROMPT '%' 276 277 278#endif /* _ACCONFIG_H */ 279 280