2005-06-29 23:24:41 +04:00
|
|
|
/*
|
|
|
|
__________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Copyright (C) Intel Corporation 1994-1996
|
|
|
|
|
|
|
|
|
| All rights reserved. No part of this program or publication may be
|
|
|
|
| reproduced, transmitted, transcribed, stored in a retrieval system, or
|
|
|
|
| translated into any language or computer language, in any form or by any
|
|
|
|
| means, electronic, mechanical, magnetic, optical, chemical, manual, or
|
|
|
|
| otherwise, without the prior written permission of Intel Corporation.
|
|
|
|
|__________________________________________________________________________
|
|
|
|
|
|
|
|
|
| FILENAME: config.h - configuration constants
|
|
|
|
|__________________________________________________________________________
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2005-06-29 22:18:17 +04:00
|
|
|
/*
|
2005-06-29 23:24:40 +04:00
|
|
|
* Configuration constants for the ACPI subsystem
|
2005-06-29 22:18:17 +04:00
|
|
|
*/
|
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#ifndef _CONFIG_H
|
|
|
|
#define _CONFIG_H
|
2005-06-29 22:18:26 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#define VERBOSE_DEBUG /* TEMP!!! */
|
2005-06-29 23:21:08 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
/*
|
|
|
|
* All scary-looking constants should go here!!!
|
|
|
|
*
|
|
|
|
* Some of these should be fixed or at least made run-time configurable.
|
2005-06-29 23:19:36 +04:00
|
|
|
*
|
2005-06-29 23:24:18 +04:00
|
|
|
*/
|
2005-06-29 22:55:26 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#define WHYBUF_SIZE 512 /* Runtime error message communication */
|
2005-06-29 22:18:17 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#define MAX_STRING_LENGTH 512
|
2005-06-29 23:24:18 +04:00
|
|
|
|
2005-06-29 22:18:17 +04:00
|
|
|
/*
|
2005-06-29 23:24:40 +04:00
|
|
|
* AML Interpreter
|
2005-06-29 22:18:17 +04:00
|
|
|
*/
|
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#define MAX_ACPI_TABLE_SIZE 49152 /* For phys to logical mapping */
|
|
|
|
#define AML_PKG_MAX_NEST 100 /* Max depth of package nesting */
|
|
|
|
#define AML_METHOD_MAX_NEST 10 /* Max depth of nested method calls */
|
|
|
|
#define INITIAL_NAME_BUF_SIZE 32
|
|
|
|
#define AML_EXPR_MAX_NEST 100 /* Max stack depth parsing expressions */
|
2005-06-29 23:18:21 +04:00
|
|
|
|
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
/*
|
|
|
|
* NameSpace Table sizes
|
|
|
|
*
|
|
|
|
* If USE_HASHING is #defined, these must be prime numbers and
|
|
|
|
* should be large enough that the tables never get terribly full.
|
|
|
|
*
|
|
|
|
* The root NT was made bigger than others in the possibly erroneous
|
|
|
|
* expectation that there might be quite a few entries in the root.
|
2005-06-29 22:18:17 +04:00
|
|
|
*/
|
2005-06-29 23:19:36 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#ifdef USE_HASHING
|
|
|
|
#define ROOTSIZE 101 /* # of slots in root table */
|
|
|
|
#define TABLSIZE 53 /* # of slots per table below the root */
|
2005-06-29 23:24:18 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#else
|
|
|
|
#define ROOTSIZE 40 /* initial # of slots in root table */
|
|
|
|
#define TABLSIZE 20 /* initial # of slots per table below the root */
|
|
|
|
#endif
|
2005-06-29 23:24:18 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#define MAXNEST 15 /* Max nesting of name scopes, used for sizing stacks */
|
2005-06-29 23:24:18 +04:00
|
|
|
|
2005-06-29 22:18:17 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
/*
|
|
|
|
* Defining FETCH_VALUES enables AcpiExecuteMethod() to "execute"
|
|
|
|
* a name which is not a Method by fetching and returning its value.
|
|
|
|
*/
|
|
|
|
#define FETCH_VALUES
|
2005-06-29 22:18:17 +04:00
|
|
|
|
2005-06-29 23:24:40 +04:00
|
|
|
#endif /* _CONFIG_H */
|
2005-06-29 22:18:17 +04:00
|
|
|
|