xref: /freebsd/sys/contrib/dev/acpica/include/acconfig.h (revision 58308fadece25ae4c12bd2f4dce3d73d9c23be43)
1a9f12690SJung-uk Kim /******************************************************************************
2a9f12690SJung-uk Kim  *
3a9f12690SJung-uk Kim  * Name: acconfig.h - Global configuration constants
4a9f12690SJung-uk Kim  *
5a9f12690SJung-uk Kim  *****************************************************************************/
6a9f12690SJung-uk Kim 
70d84335fSJung-uk Kim /******************************************************************************
80d84335fSJung-uk Kim  *
90d84335fSJung-uk Kim  * 1. Copyright Notice
100d84335fSJung-uk Kim  *
11*58308fadSJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
12a9f12690SJung-uk Kim  * All rights reserved.
13a9f12690SJung-uk Kim  *
140d84335fSJung-uk Kim  * 2. License
150d84335fSJung-uk Kim  *
160d84335fSJung-uk Kim  * 2.1. This is your license from Intel Corp. under its intellectual property
170d84335fSJung-uk Kim  * rights. You may have additional license terms from the party that provided
180d84335fSJung-uk Kim  * you this software, covering your right to use that party's intellectual
190d84335fSJung-uk Kim  * property rights.
200d84335fSJung-uk Kim  *
210d84335fSJung-uk Kim  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
220d84335fSJung-uk Kim  * copy of the source code appearing in this file ("Covered Code") an
230d84335fSJung-uk Kim  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
240d84335fSJung-uk Kim  * base code distributed originally by Intel ("Original Intel Code") to copy,
250d84335fSJung-uk Kim  * make derivatives, distribute, use and display any portion of the Covered
260d84335fSJung-uk Kim  * Code in any form, with the right to sublicense such rights; and
270d84335fSJung-uk Kim  *
280d84335fSJung-uk Kim  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
290d84335fSJung-uk Kim  * license (with the right to sublicense), under only those claims of Intel
300d84335fSJung-uk Kim  * patents that are infringed by the Original Intel Code, to make, use, sell,
310d84335fSJung-uk Kim  * offer to sell, and import the Covered Code and derivative works thereof
320d84335fSJung-uk Kim  * solely to the minimum extent necessary to exercise the above copyright
330d84335fSJung-uk Kim  * license, and in no event shall the patent license extend to any additions
340d84335fSJung-uk Kim  * to or modifications of the Original Intel Code. No other license or right
350d84335fSJung-uk Kim  * is granted directly or by implication, estoppel or otherwise;
360d84335fSJung-uk Kim  *
370d84335fSJung-uk Kim  * The above copyright and patent license is granted only if the following
380d84335fSJung-uk Kim  * conditions are met:
390d84335fSJung-uk Kim  *
400d84335fSJung-uk Kim  * 3. Conditions
410d84335fSJung-uk Kim  *
420d84335fSJung-uk Kim  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
430d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
440d84335fSJung-uk Kim  * Code or modification with rights to further distribute source must include
450d84335fSJung-uk Kim  * the above Copyright Notice, the above License, this list of Conditions,
460d84335fSJung-uk Kim  * and the following Disclaimer and Export Compliance provision. In addition,
470d84335fSJung-uk Kim  * Licensee must cause all Covered Code to which Licensee contributes to
480d84335fSJung-uk Kim  * contain a file documenting the changes Licensee made to create that Covered
490d84335fSJung-uk Kim  * Code and the date of any change. Licensee must include in that file the
500d84335fSJung-uk Kim  * documentation of any changes made by any predecessor Licensee. Licensee
510d84335fSJung-uk Kim  * must include a prominent statement that the modification is derived,
520d84335fSJung-uk Kim  * directly or indirectly, from Original Intel Code.
530d84335fSJung-uk Kim  *
540d84335fSJung-uk Kim  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
550d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
560d84335fSJung-uk Kim  * Code or modification without rights to further distribute source must
570d84335fSJung-uk Kim  * include the following Disclaimer and Export Compliance provision in the
580d84335fSJung-uk Kim  * documentation and/or other materials provided with distribution. In
590d84335fSJung-uk Kim  * addition, Licensee may not authorize further sublicense of source of any
600d84335fSJung-uk Kim  * portion of the Covered Code, and must include terms to the effect that the
610d84335fSJung-uk Kim  * license from Licensee to its licensee is limited to the intellectual
620d84335fSJung-uk Kim  * property embodied in the software Licensee provides to its licensee, and
630d84335fSJung-uk Kim  * not to intellectual property embodied in modifications its licensee may
640d84335fSJung-uk Kim  * make.
650d84335fSJung-uk Kim  *
660d84335fSJung-uk Kim  * 3.3. Redistribution of Executable. Redistribution in executable form of any
670d84335fSJung-uk Kim  * substantial portion of the Covered Code or modification must reproduce the
680d84335fSJung-uk Kim  * above Copyright Notice, and the following Disclaimer and Export Compliance
690d84335fSJung-uk Kim  * provision in the documentation and/or other materials provided with the
700d84335fSJung-uk Kim  * distribution.
710d84335fSJung-uk Kim  *
720d84335fSJung-uk Kim  * 3.4. Intel retains all right, title, and interest in and to the Original
730d84335fSJung-uk Kim  * Intel Code.
740d84335fSJung-uk Kim  *
750d84335fSJung-uk Kim  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
760d84335fSJung-uk Kim  * Intel shall be used in advertising or otherwise to promote the sale, use or
770d84335fSJung-uk Kim  * other dealings in products derived from or relating to the Covered Code
780d84335fSJung-uk Kim  * without prior written authorization from Intel.
790d84335fSJung-uk Kim  *
800d84335fSJung-uk Kim  * 4. Disclaimer and Export Compliance
810d84335fSJung-uk Kim  *
820d84335fSJung-uk Kim  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
830d84335fSJung-uk Kim  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
840d84335fSJung-uk Kim  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
850d84335fSJung-uk Kim  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
860d84335fSJung-uk Kim  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
870d84335fSJung-uk Kim  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
880d84335fSJung-uk Kim  * PARTICULAR PURPOSE.
890d84335fSJung-uk Kim  *
900d84335fSJung-uk Kim  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
910d84335fSJung-uk Kim  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
920d84335fSJung-uk Kim  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
930d84335fSJung-uk Kim  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
940d84335fSJung-uk Kim  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
950d84335fSJung-uk Kim  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
960d84335fSJung-uk Kim  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
970d84335fSJung-uk Kim  * LIMITED REMEDY.
980d84335fSJung-uk Kim  *
990d84335fSJung-uk Kim  * 4.3. Licensee shall not export, either directly or indirectly, any of this
1000d84335fSJung-uk Kim  * software or system incorporating such software without first obtaining any
1010d84335fSJung-uk Kim  * required license or other approval from the U. S. Department of Commerce or
1020d84335fSJung-uk Kim  * any other agency or department of the United States Government. In the
1030d84335fSJung-uk Kim  * event Licensee exports any such software from the United States or
1040d84335fSJung-uk Kim  * re-exports any such software from a foreign destination, Licensee shall
1050d84335fSJung-uk Kim  * ensure that the distribution and export/re-export of the software is in
1060d84335fSJung-uk Kim  * compliance with all laws, regulations, orders, or other restrictions of the
1070d84335fSJung-uk Kim  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
1080d84335fSJung-uk Kim  * any of its subsidiaries will export/re-export any technical data, process,
1090d84335fSJung-uk Kim  * software, or service, directly or indirectly, to any country for which the
1100d84335fSJung-uk Kim  * United States government or any agency thereof requires an export license,
1110d84335fSJung-uk Kim  * other governmental approval, or letter of assurance, without first obtaining
1120d84335fSJung-uk Kim  * such license, approval or letter.
1130d84335fSJung-uk Kim  *
1140d84335fSJung-uk Kim  *****************************************************************************
1150d84335fSJung-uk Kim  *
1160d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
1170d84335fSJung-uk Kim  * following license:
1180d84335fSJung-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  *
1340d84335fSJung-uk Kim  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1350d84335fSJung-uk Kim  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1360d84335fSJung-uk Kim  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1370d84335fSJung-uk Kim  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1380d84335fSJung-uk Kim  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1390d84335fSJung-uk Kim  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1400d84335fSJung-uk Kim  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1410d84335fSJung-uk Kim  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1420d84335fSJung-uk Kim  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1430d84335fSJung-uk Kim  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1440d84335fSJung-uk Kim  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1450d84335fSJung-uk Kim  *
1460d84335fSJung-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  *
1500d84335fSJung-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 */
1900d84335fSJung-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  */
214313a0c13SJung-uk Kim #ifndef ACPI_REDUCED_HARDWARE
215a159c266SJung-uk Kim #define ACPI_REDUCED_HARDWARE           FALSE
216313a0c13SJung-uk Kim #endif
217a159c266SJung-uk Kim 
218a9f12690SJung-uk Kim 
219a9f12690SJung-uk Kim /******************************************************************************
220a9f12690SJung-uk Kim  *
221a9f12690SJung-uk Kim  * Subsystem Constants
222a9f12690SJung-uk Kim  *
223a9f12690SJung-uk Kim  *****************************************************************************/
224a9f12690SJung-uk Kim 
225a9f12690SJung-uk Kim /* Version of ACPI supported */
226a9f12690SJung-uk Kim 
227a159c266SJung-uk Kim #define ACPI_CA_SUPPORT_LEVEL           5
228a9f12690SJung-uk Kim 
229a9f12690SJung-uk Kim /* Maximum count for a semaphore object */
230a9f12690SJung-uk Kim 
231a9f12690SJung-uk Kim #define ACPI_MAX_SEMAPHORE_COUNT        256
232a9f12690SJung-uk Kim 
233a9f12690SJung-uk Kim /* Maximum object reference count (detects object deletion issues) */
234a9f12690SJung-uk Kim 
23551f42badSJung-uk Kim #define ACPI_MAX_REFERENCE_COUNT        0x4000
236a9f12690SJung-uk Kim 
2372272d050SJung-uk Kim /* Default page size for use in mapping memory for operation regions */
238a9f12690SJung-uk Kim 
2392272d050SJung-uk Kim #define ACPI_DEFAULT_PAGE_SIZE          4096    /* Must be power of 2 */
240a9f12690SJung-uk Kim 
241a009b7dcSJung-uk Kim /* OwnerId tracking. 128 entries allows for 4095 OwnerIds */
242a9f12690SJung-uk Kim 
243a009b7dcSJung-uk Kim #define ACPI_NUM_OWNERID_MASKS          128
244a9f12690SJung-uk Kim 
245a9f12690SJung-uk Kim /* Size of the root table array is increased by this increment */
246a9f12690SJung-uk Kim 
247a9f12690SJung-uk Kim #define ACPI_ROOT_TABLE_SIZE_INCREMENT  4
248a9f12690SJung-uk Kim 
249a88e22b7SJung-uk Kim /* Maximum sleep allowed via Sleep() operator */
250a88e22b7SJung-uk Kim 
2513f0275a0SJung-uk Kim #define ACPI_MAX_SLEEP                  2000    /* 2000 millisec == two seconds */
252a88e22b7SJung-uk Kim 
253ec3fc72fSJung-uk Kim /* Address Range lists are per-SpaceId (Memory and I/O only) */
254ec3fc72fSJung-uk Kim 
255ec3fc72fSJung-uk Kim #define ACPI_ADDRESS_RANGE_MAX          2
256ec3fc72fSJung-uk Kim 
25767d9aa44SJung-uk Kim /* Maximum time (default 30s) of While() loops before abort */
258493deb39SJung-uk Kim 
25967d9aa44SJung-uk Kim #define ACPI_MAX_LOOP_TIMEOUT           30
260493deb39SJung-uk Kim 
261a9f12690SJung-uk Kim 
262a9f12690SJung-uk Kim /******************************************************************************
263a9f12690SJung-uk Kim  *
264a9f12690SJung-uk Kim  * ACPI Specification constants (Do not change unless the specification changes)
265a9f12690SJung-uk Kim  *
266a9f12690SJung-uk Kim  *****************************************************************************/
267a9f12690SJung-uk Kim 
268f15e9afbSJung-uk Kim /* Method info (in WALK_STATE), containing local variables and arguments */
269a9f12690SJung-uk Kim 
270a9f12690SJung-uk Kim #define ACPI_METHOD_NUM_LOCALS          8
271a9f12690SJung-uk Kim #define ACPI_METHOD_MAX_LOCAL           7
272a9f12690SJung-uk Kim 
273a9f12690SJung-uk Kim #define ACPI_METHOD_NUM_ARGS            7
274a9f12690SJung-uk Kim #define ACPI_METHOD_MAX_ARG             6
275a9f12690SJung-uk Kim 
276a9f12690SJung-uk Kim /*
277a9f12690SJung-uk Kim  * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG
278a9f12690SJung-uk Kim  */
279a9f12690SJung-uk Kim #define ACPI_OBJ_NUM_OPERANDS           8
280a9f12690SJung-uk Kim #define ACPI_OBJ_MAX_OPERAND            7
281a9f12690SJung-uk Kim 
282a9f12690SJung-uk Kim /* Number of elements in the Result Stack frame, can be an arbitrary value */
283a9f12690SJung-uk Kim 
284a9f12690SJung-uk Kim #define ACPI_RESULTS_FRAME_OBJ_NUM      8
285a9f12690SJung-uk Kim 
286a9f12690SJung-uk Kim /*
287a9f12690SJung-uk Kim  * Maximal number of elements the Result Stack can contain,
288cd6518c7SJung-uk Kim  * it may be an arbitrary value not exceeding the types of
289a9f12690SJung-uk Kim  * ResultSize and ResultCount (now UINT8).
290a9f12690SJung-uk Kim  */
291a9f12690SJung-uk Kim #define ACPI_RESULTS_OBJ_NUM_MAX        255
292a9f12690SJung-uk Kim 
293a9f12690SJung-uk Kim /* Constants used in searching for the RSDP in low memory */
294a9f12690SJung-uk Kim 
295a9f12690SJung-uk Kim #define ACPI_EBDA_PTR_LOCATION          0x0000040E     /* Physical Address */
296a9f12690SJung-uk Kim #define ACPI_EBDA_PTR_LENGTH            2
297a9f12690SJung-uk Kim #define ACPI_EBDA_WINDOW_SIZE           1024
298a9f12690SJung-uk Kim #define ACPI_HI_RSDP_WINDOW_BASE        0x000E0000     /* Physical Address */
299a9f12690SJung-uk Kim #define ACPI_HI_RSDP_WINDOW_SIZE        0x00020000
300a9f12690SJung-uk Kim #define ACPI_RSDP_SCAN_STEP             16
301a9f12690SJung-uk Kim 
302a9f12690SJung-uk Kim /* Operation regions */
303a9f12690SJung-uk Kim 
304a9f12690SJung-uk Kim #define ACPI_USER_REGION_BEGIN          0x80
305a9f12690SJung-uk Kim 
306a9f12690SJung-uk Kim /* Maximum SpaceIds for Operation Regions */
307a9f12690SJung-uk Kim 
308a9f12690SJung-uk Kim #define ACPI_MAX_ADDRESS_SPACE          255
309efcc2a30SJung-uk Kim #define ACPI_NUM_DEFAULT_SPACES         4
310a9f12690SJung-uk Kim 
311a9f12690SJung-uk Kim /* Array sizes. Used for range checking also */
312a9f12690SJung-uk Kim 
313a9f12690SJung-uk Kim #define ACPI_MAX_MATCH_OPCODE           5
314a9f12690SJung-uk Kim 
315a9f12690SJung-uk Kim /* RSDP checksums */
316a9f12690SJung-uk Kim 
317a9f12690SJung-uk Kim #define ACPI_RSDP_CHECKSUM_LENGTH       20
318a9f12690SJung-uk Kim #define ACPI_RSDP_XCHECKSUM_LENGTH      36
319a9f12690SJung-uk Kim 
3206f1f1a63SJung-uk Kim /*
3216f1f1a63SJung-uk Kim  * SMBus, GSBus and IPMI buffer sizes. All have a 2-byte header,
3226f1f1a63SJung-uk Kim  * containing both Status and Length.
3236f1f1a63SJung-uk Kim  */
3246f1f1a63SJung-uk Kim #define ACPI_SERIAL_HEADER_SIZE         2   /* Common for below. Status and Length fields */
325a9f12690SJung-uk Kim 
3266f1f1a63SJung-uk Kim #define ACPI_SMBUS_DATA_SIZE            32
3276f1f1a63SJung-uk Kim #define ACPI_SMBUS_BUFFER_SIZE          ACPI_SERIAL_HEADER_SIZE + ACPI_SMBUS_DATA_SIZE
3286f1f1a63SJung-uk Kim 
3296f1f1a63SJung-uk Kim #define ACPI_IPMI_DATA_SIZE             64
3306f1f1a63SJung-uk Kim #define ACPI_IPMI_BUFFER_SIZE           ACPI_SERIAL_HEADER_SIZE + ACPI_IPMI_DATA_SIZE
3316f1f1a63SJung-uk Kim 
3326f1f1a63SJung-uk Kim #define ACPI_MAX_GSBUS_DATA_SIZE        255
3336f1f1a63SJung-uk Kim #define ACPI_MAX_GSBUS_BUFFER_SIZE      ACPI_SERIAL_HEADER_SIZE + ACPI_MAX_GSBUS_DATA_SIZE
3346f1f1a63SJung-uk Kim 
3351970d693SJung-uk Kim #define ACPI_PRM_INPUT_BUFFER_SIZE      26
336d6dd1baeSJung-uk Kim 
3379a4bc520SJung-uk Kim #define ACPI_FFH_INPUT_BUFFER_SIZE      256
3389a4bc520SJung-uk Kim 
339d6dd1baeSJung-uk Kim /* _SxD and _SxW control methods */
340d6dd1baeSJung-uk Kim 
341d6dd1baeSJung-uk Kim #define ACPI_NUM_SxD_METHODS            4
342d6dd1baeSJung-uk Kim #define ACPI_NUM_SxW_METHODS            5
343a9f12690SJung-uk Kim 
344a9f12690SJung-uk Kim 
345a9f12690SJung-uk Kim /******************************************************************************
346a9f12690SJung-uk Kim  *
347313a0c13SJung-uk Kim  * Miscellaneous constants
348313a0c13SJung-uk Kim  *
349313a0c13SJung-uk Kim  *****************************************************************************/
350313a0c13SJung-uk Kim 
351313a0c13SJung-uk Kim /* UUID constants */
352313a0c13SJung-uk Kim 
353313a0c13SJung-uk Kim #define UUID_BUFFER_LENGTH          16 /* Length of UUID in memory */
354313a0c13SJung-uk Kim #define UUID_STRING_LENGTH          36 /* Total length of a UUID string */
355313a0c13SJung-uk Kim 
356313a0c13SJung-uk Kim /* Positions for required hyphens (dashes) in UUID strings */
357313a0c13SJung-uk Kim 
358313a0c13SJung-uk Kim #define UUID_HYPHEN1_OFFSET         8
359313a0c13SJung-uk Kim #define UUID_HYPHEN2_OFFSET         13
360313a0c13SJung-uk Kim #define UUID_HYPHEN3_OFFSET         18
361313a0c13SJung-uk Kim #define UUID_HYPHEN4_OFFSET         23
362313a0c13SJung-uk Kim 
363313a0c13SJung-uk Kim 
364313a0c13SJung-uk Kim /******************************************************************************
365313a0c13SJung-uk Kim  *
366a9f12690SJung-uk Kim  * ACPI AML Debugger
367a9f12690SJung-uk Kim  *
368a9f12690SJung-uk Kim  *****************************************************************************/
369a9f12690SJung-uk Kim 
370895f26a9SJung-uk Kim #define ACPI_DEBUGGER_MAX_ARGS          ACPI_METHOD_NUM_ARGS + 4 /* Max command line arguments */
37142e58c03SJung-uk Kim #define ACPI_DB_LINE_BUFFER_SIZE        512
372a9f12690SJung-uk Kim 
373a9f12690SJung-uk Kim #define ACPI_DEBUGGER_COMMAND_PROMPT    '-'
374a9f12690SJung-uk Kim #define ACPI_DEBUGGER_EXECUTE_PROMPT    '%'
375a9f12690SJung-uk Kim 
376a9f12690SJung-uk Kim 
377a9f12690SJung-uk Kim #endif /* _ACCONFIG_H */
378