xref: /freebsd/sys/contrib/dev/acpica/include/acconfig.h (revision 0d84335f991f528c6f038e79dd5cc0a7770532da)
1a9f12690SJung-uk Kim /******************************************************************************
2a9f12690SJung-uk Kim  *
3a9f12690SJung-uk Kim  * Name: acconfig.h - Global configuration constants
4a9f12690SJung-uk Kim  *
5a9f12690SJung-uk Kim  *****************************************************************************/
6a9f12690SJung-uk Kim 
7*0d84335fSJung-uk Kim /******************************************************************************
8*0d84335fSJung-uk Kim  *
9*0d84335fSJung-uk Kim  * 1. Copyright Notice
10*0d84335fSJung-uk Kim  *
11*0d84335fSJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp.
12a9f12690SJung-uk Kim  * All rights reserved.
13a9f12690SJung-uk Kim  *
14*0d84335fSJung-uk Kim  * 2. License
15*0d84335fSJung-uk Kim  *
16*0d84335fSJung-uk Kim  * 2.1. This is your license from Intel Corp. under its intellectual property
17*0d84335fSJung-uk Kim  * rights. You may have additional license terms from the party that provided
18*0d84335fSJung-uk Kim  * you this software, covering your right to use that party's intellectual
19*0d84335fSJung-uk Kim  * property rights.
20*0d84335fSJung-uk Kim  *
21*0d84335fSJung-uk Kim  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22*0d84335fSJung-uk Kim  * copy of the source code appearing in this file ("Covered Code") an
23*0d84335fSJung-uk Kim  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24*0d84335fSJung-uk Kim  * base code distributed originally by Intel ("Original Intel Code") to copy,
25*0d84335fSJung-uk Kim  * make derivatives, distribute, use and display any portion of the Covered
26*0d84335fSJung-uk Kim  * Code in any form, with the right to sublicense such rights; and
27*0d84335fSJung-uk Kim  *
28*0d84335fSJung-uk Kim  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29*0d84335fSJung-uk Kim  * license (with the right to sublicense), under only those claims of Intel
30*0d84335fSJung-uk Kim  * patents that are infringed by the Original Intel Code, to make, use, sell,
31*0d84335fSJung-uk Kim  * offer to sell, and import the Covered Code and derivative works thereof
32*0d84335fSJung-uk Kim  * solely to the minimum extent necessary to exercise the above copyright
33*0d84335fSJung-uk Kim  * license, and in no event shall the patent license extend to any additions
34*0d84335fSJung-uk Kim  * to or modifications of the Original Intel Code. No other license or right
35*0d84335fSJung-uk Kim  * is granted directly or by implication, estoppel or otherwise;
36*0d84335fSJung-uk Kim  *
37*0d84335fSJung-uk Kim  * The above copyright and patent license is granted only if the following
38*0d84335fSJung-uk Kim  * conditions are met:
39*0d84335fSJung-uk Kim  *
40*0d84335fSJung-uk Kim  * 3. Conditions
41*0d84335fSJung-uk Kim  *
42*0d84335fSJung-uk Kim  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43*0d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
44*0d84335fSJung-uk Kim  * Code or modification with rights to further distribute source must include
45*0d84335fSJung-uk Kim  * the above Copyright Notice, the above License, this list of Conditions,
46*0d84335fSJung-uk Kim  * and the following Disclaimer and Export Compliance provision. In addition,
47*0d84335fSJung-uk Kim  * Licensee must cause all Covered Code to which Licensee contributes to
48*0d84335fSJung-uk Kim  * contain a file documenting the changes Licensee made to create that Covered
49*0d84335fSJung-uk Kim  * Code and the date of any change. Licensee must include in that file the
50*0d84335fSJung-uk Kim  * documentation of any changes made by any predecessor Licensee. Licensee
51*0d84335fSJung-uk Kim  * must include a prominent statement that the modification is derived,
52*0d84335fSJung-uk Kim  * directly or indirectly, from Original Intel Code.
53*0d84335fSJung-uk Kim  *
54*0d84335fSJung-uk Kim  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55*0d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
56*0d84335fSJung-uk Kim  * Code or modification without rights to further distribute source must
57*0d84335fSJung-uk Kim  * include the following Disclaimer and Export Compliance provision in the
58*0d84335fSJung-uk Kim  * documentation and/or other materials provided with distribution. In
59*0d84335fSJung-uk Kim  * addition, Licensee may not authorize further sublicense of source of any
60*0d84335fSJung-uk Kim  * portion of the Covered Code, and must include terms to the effect that the
61*0d84335fSJung-uk Kim  * license from Licensee to its licensee is limited to the intellectual
62*0d84335fSJung-uk Kim  * property embodied in the software Licensee provides to its licensee, and
63*0d84335fSJung-uk Kim  * not to intellectual property embodied in modifications its licensee may
64*0d84335fSJung-uk Kim  * make.
65*0d84335fSJung-uk Kim  *
66*0d84335fSJung-uk Kim  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67*0d84335fSJung-uk Kim  * substantial portion of the Covered Code or modification must reproduce the
68*0d84335fSJung-uk Kim  * above Copyright Notice, and the following Disclaimer and Export Compliance
69*0d84335fSJung-uk Kim  * provision in the documentation and/or other materials provided with the
70*0d84335fSJung-uk Kim  * distribution.
71*0d84335fSJung-uk Kim  *
72*0d84335fSJung-uk Kim  * 3.4. Intel retains all right, title, and interest in and to the Original
73*0d84335fSJung-uk Kim  * Intel Code.
74*0d84335fSJung-uk Kim  *
75*0d84335fSJung-uk Kim  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76*0d84335fSJung-uk Kim  * Intel shall be used in advertising or otherwise to promote the sale, use or
77*0d84335fSJung-uk Kim  * other dealings in products derived from or relating to the Covered Code
78*0d84335fSJung-uk Kim  * without prior written authorization from Intel.
79*0d84335fSJung-uk Kim  *
80*0d84335fSJung-uk Kim  * 4. Disclaimer and Export Compliance
81*0d84335fSJung-uk Kim  *
82*0d84335fSJung-uk Kim  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83*0d84335fSJung-uk Kim  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84*0d84335fSJung-uk Kim  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85*0d84335fSJung-uk Kim  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86*0d84335fSJung-uk Kim  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87*0d84335fSJung-uk Kim  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88*0d84335fSJung-uk Kim  * PARTICULAR PURPOSE.
89*0d84335fSJung-uk Kim  *
90*0d84335fSJung-uk Kim  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91*0d84335fSJung-uk Kim  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92*0d84335fSJung-uk Kim  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93*0d84335fSJung-uk Kim  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94*0d84335fSJung-uk Kim  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95*0d84335fSJung-uk Kim  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96*0d84335fSJung-uk Kim  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97*0d84335fSJung-uk Kim  * LIMITED REMEDY.
98*0d84335fSJung-uk Kim  *
99*0d84335fSJung-uk Kim  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100*0d84335fSJung-uk Kim  * software or system incorporating such software without first obtaining any
101*0d84335fSJung-uk Kim  * required license or other approval from the U. S. Department of Commerce or
102*0d84335fSJung-uk Kim  * any other agency or department of the United States Government. In the
103*0d84335fSJung-uk Kim  * event Licensee exports any such software from the United States or
104*0d84335fSJung-uk Kim  * re-exports any such software from a foreign destination, Licensee shall
105*0d84335fSJung-uk Kim  * ensure that the distribution and export/re-export of the software is in
106*0d84335fSJung-uk Kim  * compliance with all laws, regulations, orders, or other restrictions of the
107*0d84335fSJung-uk Kim  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108*0d84335fSJung-uk Kim  * any of its subsidiaries will export/re-export any technical data, process,
109*0d84335fSJung-uk Kim  * software, or service, directly or indirectly, to any country for which the
110*0d84335fSJung-uk Kim  * United States government or any agency thereof requires an export license,
111*0d84335fSJung-uk Kim  * other governmental approval, or letter of assurance, without first obtaining
112*0d84335fSJung-uk Kim  * such license, approval or letter.
113*0d84335fSJung-uk Kim  *
114*0d84335fSJung-uk Kim  *****************************************************************************
115*0d84335fSJung-uk Kim  *
116*0d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
117*0d84335fSJung-uk Kim  * following license:
118*0d84335fSJung-uk Kim  *
119d244b227SJung-uk Kim  * Redistribution and use in source and binary forms, with or without
120d244b227SJung-uk Kim  * modification, are permitted provided that the following conditions
121d244b227SJung-uk Kim  * are met:
122d244b227SJung-uk Kim  * 1. Redistributions of source code must retain the above copyright
123d244b227SJung-uk Kim  *    notice, this list of conditions, and the following disclaimer,
124d244b227SJung-uk Kim  *    without modification.
125d244b227SJung-uk Kim  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126d244b227SJung-uk Kim  *    substantially similar to the "NO WARRANTY" disclaimer below
127d244b227SJung-uk Kim  *    ("Disclaimer") and any redistribution must be conditioned upon
128d244b227SJung-uk Kim  *    including a substantially similar Disclaimer requirement for further
129d244b227SJung-uk Kim  *    binary redistribution.
130d244b227SJung-uk Kim  * 3. Neither the names of the above-listed copyright holders nor the names
131d244b227SJung-uk Kim  *    of any contributors may be used to endorse or promote products derived
132d244b227SJung-uk Kim  *    from this software without specific prior written permission.
133a9f12690SJung-uk Kim  *
134*0d84335fSJung-uk Kim  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135*0d84335fSJung-uk Kim  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136*0d84335fSJung-uk Kim  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137*0d84335fSJung-uk Kim  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138*0d84335fSJung-uk Kim  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139*0d84335fSJung-uk Kim  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140*0d84335fSJung-uk Kim  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141*0d84335fSJung-uk Kim  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142*0d84335fSJung-uk Kim  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143*0d84335fSJung-uk Kim  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144*0d84335fSJung-uk Kim  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145*0d84335fSJung-uk Kim  *
146*0d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
147d244b227SJung-uk Kim  * GNU General Public License ("GPL") version 2 as published by the Free
148d244b227SJung-uk Kim  * Software Foundation.
149a9f12690SJung-uk Kim  *
150*0d84335fSJung-uk Kim  *****************************************************************************/
151a9f12690SJung-uk Kim 
152a9f12690SJung-uk Kim #ifndef _ACCONFIG_H
153a9f12690SJung-uk Kim #define _ACCONFIG_H
154a9f12690SJung-uk Kim 
155a9f12690SJung-uk Kim 
156a9f12690SJung-uk Kim /******************************************************************************
157a9f12690SJung-uk Kim  *
158a9f12690SJung-uk Kim  * Configuration options
159a9f12690SJung-uk Kim  *
160a9f12690SJung-uk Kim  *****************************************************************************/
161a9f12690SJung-uk Kim 
162a9f12690SJung-uk Kim /*
163a9f12690SJung-uk Kim  * ACPI_DEBUG_OUTPUT    - This switch enables all the debug facilities of the
164a9f12690SJung-uk Kim  *                        ACPI subsystem. This includes the DEBUG_PRINT output
165a9f12690SJung-uk Kim  *                        statements. When disabled, all DEBUG_PRINT
166a9f12690SJung-uk Kim  *                        statements are compiled out.
167a9f12690SJung-uk Kim  *
168a9f12690SJung-uk Kim  * ACPI_APPLICATION     - Use this switch if the subsystem is going to be run
169a9f12690SJung-uk Kim  *                        at the application level.
170a9f12690SJung-uk Kim  *
171a9f12690SJung-uk Kim  */
172a9f12690SJung-uk Kim 
173a9f12690SJung-uk Kim /*
174a9f12690SJung-uk Kim  * OS name, used for the _OS object. The _OS object is essentially obsolete,
175a9f12690SJung-uk Kim  * but there is a large base of ASL/AML code in existing machines that check
176a9f12690SJung-uk Kim  * for the string below. The use of this string usually guarantees that
177a9f12690SJung-uk Kim  * the ASL will execute down the most tested code path. Also, there is some
178a9f12690SJung-uk Kim  * code that will not execute the _OSI method unless _OS matches the string
179a9f12690SJung-uk Kim  * below. Therefore, change this string at your own risk.
180a9f12690SJung-uk Kim  */
181a9f12690SJung-uk Kim #define ACPI_OS_NAME                    "Microsoft Windows NT"
182a9f12690SJung-uk Kim 
183a9f12690SJung-uk Kim /* Maximum objects in the various object caches */
184a9f12690SJung-uk Kim 
185a9f12690SJung-uk Kim #define ACPI_MAX_STATE_CACHE_DEPTH      96          /* State objects */
186a9f12690SJung-uk Kim #define ACPI_MAX_PARSE_CACHE_DEPTH      96          /* Parse tree objects */
187a9f12690SJung-uk Kim #define ACPI_MAX_EXTPARSE_CACHE_DEPTH   96          /* Parse tree objects */
188a9f12690SJung-uk Kim #define ACPI_MAX_OBJECT_CACHE_DEPTH     96          /* Interpreter operand objects */
189a9f12690SJung-uk Kim #define ACPI_MAX_NAMESPACE_CACHE_DEPTH  96          /* Namespace objects */
190*0d84335fSJung-uk Kim #define ACPI_MAX_COMMENT_CACHE_DEPTH    96          /* Comments for the -ca option */
191a9f12690SJung-uk Kim 
192a9f12690SJung-uk Kim /*
193a9f12690SJung-uk Kim  * Should the subsystem abort the loading of an ACPI table if the
194a9f12690SJung-uk Kim  * table checksum is incorrect?
195a9f12690SJung-uk Kim  */
196313a0c13SJung-uk Kim #ifndef ACPI_CHECKSUM_ABORT
197a9f12690SJung-uk Kim #define ACPI_CHECKSUM_ABORT             FALSE
198313a0c13SJung-uk Kim #endif
199a9f12690SJung-uk Kim 
200a159c266SJung-uk Kim /*
201a159c266SJung-uk Kim  * Generate a version of ACPICA that only supports "reduced hardware"
202a159c266SJung-uk Kim  * platforms (as defined in ACPI 5.0). Set to TRUE to generate a specialized
203a159c266SJung-uk Kim  * version of ACPICA that ONLY supports the ACPI 5.0 "reduced hardware"
204a159c266SJung-uk Kim  * model. In other words, no ACPI hardware is supported.
205a159c266SJung-uk Kim  *
206a159c266SJung-uk Kim  * If TRUE, this means no support for the following:
207a159c266SJung-uk Kim  *      PM Event and Control registers
208a159c266SJung-uk Kim  *      SCI interrupt (and handler)
209a159c266SJung-uk Kim  *      Fixed Events
210a159c266SJung-uk Kim  *      General Purpose Events (GPEs)
211a159c266SJung-uk Kim  *      Global Lock
212a159c266SJung-uk Kim  *      ACPI PM timer
213a159c266SJung-uk Kim  *      FACS table (Waking vectors and Global Lock)
214a159c266SJung-uk Kim  */
215313a0c13SJung-uk Kim #ifndef ACPI_REDUCED_HARDWARE
216a159c266SJung-uk Kim #define ACPI_REDUCED_HARDWARE           FALSE
217313a0c13SJung-uk Kim #endif
218a159c266SJung-uk Kim 
219a9f12690SJung-uk Kim 
220a9f12690SJung-uk Kim /******************************************************************************
221a9f12690SJung-uk Kim  *
222a9f12690SJung-uk Kim  * Subsystem Constants
223a9f12690SJung-uk Kim  *
224a9f12690SJung-uk Kim  *****************************************************************************/
225a9f12690SJung-uk Kim 
226a9f12690SJung-uk Kim /* Version of ACPI supported */
227a9f12690SJung-uk Kim 
228a159c266SJung-uk Kim #define ACPI_CA_SUPPORT_LEVEL           5
229a9f12690SJung-uk Kim 
230a9f12690SJung-uk Kim /* Maximum count for a semaphore object */
231a9f12690SJung-uk Kim 
232a9f12690SJung-uk Kim #define ACPI_MAX_SEMAPHORE_COUNT        256
233a9f12690SJung-uk Kim 
234a9f12690SJung-uk Kim /* Maximum object reference count (detects object deletion issues) */
235a9f12690SJung-uk Kim 
236a9f12690SJung-uk Kim #define ACPI_MAX_REFERENCE_COUNT        0x800
237a9f12690SJung-uk Kim 
2382272d050SJung-uk Kim /* Default page size for use in mapping memory for operation regions */
239a9f12690SJung-uk Kim 
2402272d050SJung-uk Kim #define ACPI_DEFAULT_PAGE_SIZE          4096    /* Must be power of 2 */
241a9f12690SJung-uk Kim 
242a9f12690SJung-uk Kim /* OwnerId tracking. 8 entries allows for 255 OwnerIds */
243a9f12690SJung-uk Kim 
244a9f12690SJung-uk Kim #define ACPI_NUM_OWNERID_MASKS          8
245a9f12690SJung-uk Kim 
246a9f12690SJung-uk Kim /* Size of the root table array is increased by this increment */
247a9f12690SJung-uk Kim 
248a9f12690SJung-uk Kim #define ACPI_ROOT_TABLE_SIZE_INCREMENT  4
249a9f12690SJung-uk Kim 
250a88e22b7SJung-uk Kim /* Maximum sleep allowed via Sleep() operator */
251a88e22b7SJung-uk Kim 
2523f0275a0SJung-uk Kim #define ACPI_MAX_SLEEP                  2000    /* 2000 millisec == two seconds */
253a88e22b7SJung-uk Kim 
254ec3fc72fSJung-uk Kim /* Address Range lists are per-SpaceId (Memory and I/O only) */
255ec3fc72fSJung-uk Kim 
256ec3fc72fSJung-uk Kim #define ACPI_ADDRESS_RANGE_MAX          2
257ec3fc72fSJung-uk Kim 
258493deb39SJung-uk Kim /* Maximum number of While() loops before abort */
259493deb39SJung-uk Kim 
260493deb39SJung-uk Kim #define ACPI_MAX_LOOP_COUNT             0x000FFFFF
261493deb39SJung-uk Kim 
262a9f12690SJung-uk Kim 
263a9f12690SJung-uk Kim /******************************************************************************
264a9f12690SJung-uk Kim  *
265a9f12690SJung-uk Kim  * ACPI Specification constants (Do not change unless the specification changes)
266a9f12690SJung-uk Kim  *
267a9f12690SJung-uk Kim  *****************************************************************************/
268a9f12690SJung-uk Kim 
269a9f12690SJung-uk Kim /* Method info (in WALK_STATE), containing local variables and argumetns */
270a9f12690SJung-uk Kim 
271a9f12690SJung-uk Kim #define ACPI_METHOD_NUM_LOCALS          8
272a9f12690SJung-uk Kim #define ACPI_METHOD_MAX_LOCAL           7
273a9f12690SJung-uk Kim 
274a9f12690SJung-uk Kim #define ACPI_METHOD_NUM_ARGS            7
275a9f12690SJung-uk Kim #define ACPI_METHOD_MAX_ARG             6
276a9f12690SJung-uk Kim 
277a9f12690SJung-uk Kim /*
278a9f12690SJung-uk Kim  * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG
279a9f12690SJung-uk Kim  */
280a9f12690SJung-uk Kim #define ACPI_OBJ_NUM_OPERANDS           8
281a9f12690SJung-uk Kim #define ACPI_OBJ_MAX_OPERAND            7
282a9f12690SJung-uk Kim 
283a9f12690SJung-uk Kim /* Number of elements in the Result Stack frame, can be an arbitrary value */
284a9f12690SJung-uk Kim 
285a9f12690SJung-uk Kim #define ACPI_RESULTS_FRAME_OBJ_NUM      8
286a9f12690SJung-uk Kim 
287a9f12690SJung-uk Kim /*
288a9f12690SJung-uk Kim  * Maximal number of elements the Result Stack can contain,
289a9f12690SJung-uk Kim  * it may be an arbitray value not exceeding the types of
290a9f12690SJung-uk Kim  * ResultSize and ResultCount (now UINT8).
291a9f12690SJung-uk Kim  */
292a9f12690SJung-uk Kim #define ACPI_RESULTS_OBJ_NUM_MAX        255
293a9f12690SJung-uk Kim 
294a9f12690SJung-uk Kim /* Constants used in searching for the RSDP in low memory */
295a9f12690SJung-uk Kim 
296a9f12690SJung-uk Kim #define ACPI_EBDA_PTR_LOCATION          0x0000040E     /* Physical Address */
297a9f12690SJung-uk Kim #define ACPI_EBDA_PTR_LENGTH            2
298a9f12690SJung-uk Kim #define ACPI_EBDA_WINDOW_SIZE           1024
299a9f12690SJung-uk Kim #define ACPI_HI_RSDP_WINDOW_BASE        0x000E0000     /* Physical Address */
300a9f12690SJung-uk Kim #define ACPI_HI_RSDP_WINDOW_SIZE        0x00020000
301a9f12690SJung-uk Kim #define ACPI_RSDP_SCAN_STEP             16
302a9f12690SJung-uk Kim 
303a9f12690SJung-uk Kim /* Operation regions */
304a9f12690SJung-uk Kim 
305a9f12690SJung-uk Kim #define ACPI_USER_REGION_BEGIN          0x80
306a9f12690SJung-uk Kim 
307a9f12690SJung-uk Kim /* Maximum SpaceIds for Operation Regions */
308a9f12690SJung-uk Kim 
309a9f12690SJung-uk Kim #define ACPI_MAX_ADDRESS_SPACE          255
310efcc2a30SJung-uk Kim #define ACPI_NUM_DEFAULT_SPACES         4
311a9f12690SJung-uk Kim 
312a9f12690SJung-uk Kim /* Array sizes. Used for range checking also */
313a9f12690SJung-uk Kim 
314a9f12690SJung-uk Kim #define ACPI_MAX_MATCH_OPCODE           5
315a9f12690SJung-uk Kim 
316a9f12690SJung-uk Kim /* RSDP checksums */
317a9f12690SJung-uk Kim 
318a9f12690SJung-uk Kim #define ACPI_RSDP_CHECKSUM_LENGTH       20
319a9f12690SJung-uk Kim #define ACPI_RSDP_XCHECKSUM_LENGTH      36
320a9f12690SJung-uk Kim 
3213f0275a0SJung-uk Kim /* SMBus, GSBus and IPMI bidirectional buffer size */
322a9f12690SJung-uk Kim 
323a9f12690SJung-uk Kim #define ACPI_SMBUS_BUFFER_SIZE          34
3243f0275a0SJung-uk Kim #define ACPI_GSBUS_BUFFER_SIZE          34
325d6dd1baeSJung-uk Kim #define ACPI_IPMI_BUFFER_SIZE           66
326d6dd1baeSJung-uk Kim 
327d6dd1baeSJung-uk Kim /* _SxD and _SxW control methods */
328d6dd1baeSJung-uk Kim 
329d6dd1baeSJung-uk Kim #define ACPI_NUM_SxD_METHODS            4
330d6dd1baeSJung-uk Kim #define ACPI_NUM_SxW_METHODS            5
331a9f12690SJung-uk Kim 
332a9f12690SJung-uk Kim 
333a9f12690SJung-uk Kim /******************************************************************************
334a9f12690SJung-uk Kim  *
335313a0c13SJung-uk Kim  * Miscellaneous constants
336313a0c13SJung-uk Kim  *
337313a0c13SJung-uk Kim  *****************************************************************************/
338313a0c13SJung-uk Kim 
339313a0c13SJung-uk Kim /* UUID constants */
340313a0c13SJung-uk Kim 
341313a0c13SJung-uk Kim #define UUID_BUFFER_LENGTH          16 /* Length of UUID in memory */
342313a0c13SJung-uk Kim #define UUID_STRING_LENGTH          36 /* Total length of a UUID string */
343313a0c13SJung-uk Kim 
344313a0c13SJung-uk Kim /* Positions for required hyphens (dashes) in UUID strings */
345313a0c13SJung-uk Kim 
346313a0c13SJung-uk Kim #define UUID_HYPHEN1_OFFSET         8
347313a0c13SJung-uk Kim #define UUID_HYPHEN2_OFFSET         13
348313a0c13SJung-uk Kim #define UUID_HYPHEN3_OFFSET         18
349313a0c13SJung-uk Kim #define UUID_HYPHEN4_OFFSET         23
350313a0c13SJung-uk Kim 
351313a0c13SJung-uk Kim 
352313a0c13SJung-uk Kim /******************************************************************************
353313a0c13SJung-uk Kim  *
354a9f12690SJung-uk Kim  * ACPI AML Debugger
355a9f12690SJung-uk Kim  *
356a9f12690SJung-uk Kim  *****************************************************************************/
357a9f12690SJung-uk Kim 
358895f26a9SJung-uk Kim #define ACPI_DEBUGGER_MAX_ARGS          ACPI_METHOD_NUM_ARGS + 4 /* Max command line arguments */
35942e58c03SJung-uk Kim #define ACPI_DB_LINE_BUFFER_SIZE        512
360a9f12690SJung-uk Kim 
361a9f12690SJung-uk Kim #define ACPI_DEBUGGER_COMMAND_PROMPT    '-'
362a9f12690SJung-uk Kim #define ACPI_DEBUGGER_EXECUTE_PROMPT    '%'
363a9f12690SJung-uk Kim 
364a9f12690SJung-uk Kim 
365a9f12690SJung-uk Kim #endif /* _ACCONFIG_H */
366