Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenacconfig.h
Go to the documentation of this file.
00001 /****************************************************************************** 00002 * 00003 * Name: acconfig.h - Global configuration constants 00004 * 00005 *****************************************************************************/ 00006 00007 /****************************************************************************** 00008 * 00009 * 1. Copyright Notice 00010 * 00011 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. 00012 * All rights reserved. 00013 * 00014 * 2. License 00015 * 00016 * 2.1. This is your license from Intel Corp. under its intellectual property 00017 * rights. You may have additional license terms from the party that provided 00018 * you this software, covering your right to use that party's intellectual 00019 * property rights. 00020 * 00021 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 00022 * copy of the source code appearing in this file ("Covered Code") an 00023 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 00024 * base code distributed originally by Intel ("Original Intel Code") to copy, 00025 * make derivatives, distribute, use and display any portion of the Covered 00026 * Code in any form, with the right to sublicense such rights; and 00027 * 00028 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 00029 * license (with the right to sublicense), under only those claims of Intel 00030 * patents that are infringed by the Original Intel Code, to make, use, sell, 00031 * offer to sell, and import the Covered Code and derivative works thereof 00032 * solely to the minimum extent necessary to exercise the above copyright 00033 * license, and in no event shall the patent license extend to any additions 00034 * to or modifications of the Original Intel Code. No other license or right 00035 * is granted directly or by implication, estoppel or otherwise; 00036 * 00037 * The above copyright and patent license is granted only if the following 00038 * conditions are met: 00039 * 00040 * 3. Conditions 00041 * 00042 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 00043 * Redistribution of source code of any substantial portion of the Covered 00044 * Code or modification with rights to further distribute source must include 00045 * the above Copyright Notice, the above License, this list of Conditions, 00046 * and the following Disclaimer and Export Compliance provision. In addition, 00047 * Licensee must cause all Covered Code to which Licensee contributes to 00048 * contain a file documenting the changes Licensee made to create that Covered 00049 * Code and the date of any change. Licensee must include in that file the 00050 * documentation of any changes made by any predecessor Licensee. Licensee 00051 * must include a prominent statement that the modification is derived, 00052 * directly or indirectly, from Original Intel Code. 00053 * 00054 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 00055 * Redistribution of source code of any substantial portion of the Covered 00056 * Code or modification without rights to further distribute source must 00057 * include the following Disclaimer and Export Compliance provision in the 00058 * documentation and/or other materials provided with distribution. In 00059 * addition, Licensee may not authorize further sublicense of source of any 00060 * portion of the Covered Code, and must include terms to the effect that the 00061 * license from Licensee to its licensee is limited to the intellectual 00062 * property embodied in the software Licensee provides to its licensee, and 00063 * not to intellectual property embodied in modifications its licensee may 00064 * make. 00065 * 00066 * 3.3. Redistribution of Executable. Redistribution in executable form of any 00067 * substantial portion of the Covered Code or modification must reproduce the 00068 * above Copyright Notice, and the following Disclaimer and Export Compliance 00069 * provision in the documentation and/or other materials provided with the 00070 * distribution. 00071 * 00072 * 3.4. Intel retains all right, title, and interest in and to the Original 00073 * Intel Code. 00074 * 00075 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 00076 * Intel shall be used in advertising or otherwise to promote the sale, use or 00077 * other dealings in products derived from or relating to the Covered Code 00078 * without prior written authorization from Intel. 00079 * 00080 * 4. Disclaimer and Export Compliance 00081 * 00082 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 00083 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 00084 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 00085 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 00086 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 00087 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 00088 * PARTICULAR PURPOSE. 00089 * 00090 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 00091 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 00092 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 00093 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 00094 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 00095 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 00096 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 00097 * LIMITED REMEDY. 00098 * 00099 * 4.3. Licensee shall not export, either directly or indirectly, any of this 00100 * software or system incorporating such software without first obtaining any 00101 * required license or other approval from the U. S. Department of Commerce or 00102 * any other agency or department of the United States Government. In the 00103 * event Licensee exports any such software from the United States or 00104 * re-exports any such software from a foreign destination, Licensee shall 00105 * ensure that the distribution and export/re-export of the software is in 00106 * compliance with all laws, regulations, orders, or other restrictions of the 00107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 00108 * any of its subsidiaries will export/re-export any technical data, process, 00109 * software, or service, directly or indirectly, to any country for which the 00110 * United States government or any agency thereof requires an export license, 00111 * other governmental approval, or letter of assurance, without first obtaining 00112 * such license, approval or letter. 00113 * 00114 *****************************************************************************/ 00115 00116 #ifndef _ACCONFIG_H 00117 #define _ACCONFIG_H 00118 00119 00120 /****************************************************************************** 00121 * 00122 * Configuration options 00123 * 00124 *****************************************************************************/ 00125 00126 /* 00127 * ACPI_DEBUG_OUTPUT - This switch enables all the debug facilities of the 00128 * ACPI subsystem. This includes the DEBUG_PRINT output 00129 * statements. When disabled, all DEBUG_PRINT 00130 * statements are compiled out. 00131 * 00132 * ACPI_APPLICATION - Use this switch if the subsystem is going to be run 00133 * at the application level. 00134 * 00135 */ 00136 00137 /* 00138 * OS name, used for the _OS object. The _OS object is essentially obsolete, 00139 * but there is a large base of ASL/AML code in existing machines that check 00140 * for the string below. The use of this string usually guarantees that 00141 * the ASL will execute down the most tested code path. Also, there is some 00142 * code that will not execute the _OSI method unless _OS matches the string 00143 * below. Therefore, change this string at your own risk. 00144 */ 00145 #define ACPI_OS_NAME "Microsoft Windows NT" 00146 00147 /* Maximum objects in the various object caches */ 00148 00149 #define ACPI_MAX_STATE_CACHE_DEPTH 96 /* State objects */ 00150 #define ACPI_MAX_PARSE_CACHE_DEPTH 96 /* Parse tree objects */ 00151 #define ACPI_MAX_EXTPARSE_CACHE_DEPTH 96 /* Parse tree objects */ 00152 #define ACPI_MAX_OBJECT_CACHE_DEPTH 96 /* Interpreter operand objects */ 00153 #define ACPI_MAX_NAMESPACE_CACHE_DEPTH 96 /* Namespace objects */ 00154 00155 /* 00156 * Should the subsystem abort the loading of an ACPI table if the 00157 * table checksum is incorrect? 00158 */ 00159 #define ACPI_CHECKSUM_ABORT FALSE 00160 00161 00162 /****************************************************************************** 00163 * 00164 * Subsystem Constants 00165 * 00166 *****************************************************************************/ 00167 00168 /* Version of ACPI supported */ 00169 00170 #define ACPI_CA_SUPPORT_LEVEL 3 00171 00172 /* Maximum count for a semaphore object */ 00173 00174 #define ACPI_MAX_SEMAPHORE_COUNT 256 00175 00176 /* Maximum object reference count (detects object deletion issues) */ 00177 00178 #define ACPI_MAX_REFERENCE_COUNT 0x800 00179 00180 /* Default page size for use in mapping memory for operation regions */ 00181 00182 #define ACPI_DEFAULT_PAGE_SIZE 4096 /* Must be power of 2 */ 00183 00184 /* OwnerId tracking. 8 entries allows for 255 OwnerIds */ 00185 00186 #define ACPI_NUM_OWNERID_MASKS 8 00187 00188 /* Size of the root table array is increased by this increment */ 00189 00190 #define ACPI_ROOT_TABLE_SIZE_INCREMENT 4 00191 00192 /* Maximum number of While() loop iterations before forced abort */ 00193 00194 #define ACPI_MAX_LOOP_ITERATIONS 0xFFFF 00195 00196 /* Maximum sleep allowed via Sleep() operator */ 00197 00198 #define ACPI_MAX_SLEEP 2000 /* 2000 millisec == two seconds */ 00199 00200 00201 /****************************************************************************** 00202 * 00203 * ACPI Specification constants (Do not change unless the specification changes) 00204 * 00205 *****************************************************************************/ 00206 00207 /* Method info (in WALK_STATE), containing local variables and argumetns */ 00208 00209 #define ACPI_METHOD_NUM_LOCALS 8 00210 #define ACPI_METHOD_MAX_LOCAL 7 00211 00212 #define ACPI_METHOD_NUM_ARGS 7 00213 #define ACPI_METHOD_MAX_ARG 6 00214 00215 /* 00216 * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG 00217 */ 00218 #define ACPI_OBJ_NUM_OPERANDS 8 00219 #define ACPI_OBJ_MAX_OPERAND 7 00220 00221 /* Number of elements in the Result Stack frame, can be an arbitrary value */ 00222 00223 #define ACPI_RESULTS_FRAME_OBJ_NUM 8 00224 00225 /* 00226 * Maximal number of elements the Result Stack can contain, 00227 * it may be an arbitray value not exceeding the types of 00228 * ResultSize and ResultCount (now UINT8). 00229 */ 00230 #define ACPI_RESULTS_OBJ_NUM_MAX 255 00231 00232 /* Constants used in searching for the RSDP in low memory */ 00233 00234 #define ACPI_EBDA_PTR_LOCATION 0x0000040E /* Physical Address */ 00235 #define ACPI_EBDA_PTR_LENGTH 2 00236 #define ACPI_EBDA_WINDOW_SIZE 1024 00237 #define ACPI_HI_RSDP_WINDOW_BASE 0x000E0000 /* Physical Address */ 00238 #define ACPI_HI_RSDP_WINDOW_SIZE 0x00020000 00239 #define ACPI_RSDP_SCAN_STEP 16 00240 00241 /* Operation regions */ 00242 00243 #define ACPI_USER_REGION_BEGIN 0x80 00244 00245 /* Maximum SpaceIds for Operation Regions */ 00246 00247 #define ACPI_MAX_ADDRESS_SPACE 255 00248 00249 /* Array sizes. Used for range checking also */ 00250 00251 #define ACPI_MAX_MATCH_OPCODE 5 00252 00253 /* RSDP checksums */ 00254 00255 #define ACPI_RSDP_CHECKSUM_LENGTH 20 00256 #define ACPI_RSDP_XCHECKSUM_LENGTH 36 00257 00258 /* SMBus and IPMI bidirectional buffer size */ 00259 00260 #define ACPI_SMBUS_BUFFER_SIZE 34 00261 #define ACPI_IPMI_BUFFER_SIZE 66 00262 00263 /* _SxD and _SxW control methods */ 00264 00265 #define ACPI_NUM_SxD_METHODS 4 00266 #define ACPI_NUM_SxW_METHODS 5 00267 00268 00269 /****************************************************************************** 00270 * 00271 * ACPI AML Debugger 00272 * 00273 *****************************************************************************/ 00274 00275 #define ACPI_DEBUGGER_MAX_ARGS ACPI_METHOD_NUM_ARGS + 2 /* Max command line arguments */ 00276 #define ACPI_DB_LINE_BUFFER_SIZE 512 00277 00278 #define ACPI_DEBUGGER_COMMAND_PROMPT '-' 00279 #define ACPI_DEBUGGER_EXECUTE_PROMPT '%' 00280 00281 00282 #endif /* _ACCONFIG_H */ 00283 Generated on Sun May 27 2012 04:27:18 for ReactOS by
1.7.6.1
|