aclocal.h (57190917) aclocal.h (26f3cdf0)
1/******************************************************************************
2 *
3 * Name: aclocal.h - Internal data types used across the ACPI subsystem
4 *
5 *****************************************************************************/
6
1/******************************************************************************
2 *
3 * Name: aclocal.h - Internal data types used across the ACPI subsystem
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
11 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
7/*
8 * Copyright (C) 2000 - 2011, Intel Corp.
12 * All rights reserved.
13 *
9 * All rights reserved.
10 *
14 * 2. License
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
15 *
25 *
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
19 * property rights.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
20 *
29 *
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
27 *
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
36 *
37 * The above copyright and patent license is granted only if the following
38 * conditions are met:
39 *
40 * 3. Conditions
41 *
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
53 *
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
64 * make.
65 *
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
70 * distribution.
71 *
72 * 3.4. Intel retains all right, title, and interest in and to the Original
73 * Intel Code.
74 *
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
79 *
80 * 4. Disclaimer and Export Compliance
81 *
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88 * PARTICULAR PURPOSE.
89 *
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97 * LIMITED REMEDY.
98 *
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
113 *
114 *****************************************************************************/
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
115
116#ifndef __ACLOCAL_H__
117#define __ACLOCAL_H__
118
119
120/* acpisrc:StructDefs -- for acpisrc conversion */
121
122#define ACPI_SERIALIZED 0xFF

--- 37 unchanged lines hidden (view full) ---

160#define ACPI_MTX_CACHES 4 /* Internal caches, general purposes */
161#define ACPI_MTX_MEMORY 5 /* Debug memory tracking lists */
162#define ACPI_MTX_DEBUG_CMD_COMPLETE 6 /* AML debugger */
163#define ACPI_MTX_DEBUG_CMD_READY 7 /* AML debugger */
164
165#define ACPI_MAX_MUTEX 7
166#define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1
167
43
44#ifndef __ACLOCAL_H__
45#define __ACLOCAL_H__
46
47
48/* acpisrc:StructDefs -- for acpisrc conversion */
49
50#define ACPI_SERIALIZED 0xFF

--- 37 unchanged lines hidden (view full) ---

88#define ACPI_MTX_CACHES 4 /* Internal caches, general purposes */
89#define ACPI_MTX_MEMORY 5 /* Debug memory tracking lists */
90#define ACPI_MTX_DEBUG_CMD_COMPLETE 6 /* AML debugger */
91#define ACPI_MTX_DEBUG_CMD_READY 7 /* AML debugger */
92
93#define ACPI_MAX_MUTEX 7
94#define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1
95
168#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
169#ifdef DEFINE_ACPI_GLOBALS
170
96
171/* Debug names for the mutexes above */
172
173static char *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] =
174{
175 "ACPI_MTX_Interpreter",
176 "ACPI_MTX_Namespace",
177 "ACPI_MTX_Tables",
178 "ACPI_MTX_Events",
179 "ACPI_MTX_Caches",
180 "ACPI_MTX_Memory",
181 "ACPI_MTX_CommandComplete",
182 "ACPI_MTX_CommandReady"
183};
184
185#endif
186#endif
187
188/* Lock structure for reader/writer interfaces */
189
190typedef struct acpi_rw_lock
191{
192 ACPI_MUTEX WriterMutex;
193 ACPI_MUTEX ReaderMutex;
194 UINT32 NumReaders;
195

--- 74 unchanged lines hidden (view full) ---

270typedef struct acpi_namespace_node
271{
272 union acpi_operand_object *Object; /* Interpreter object */
273 UINT8 DescriptorType; /* Differentiate object descriptor types */
274 UINT8 Type; /* ACPI Type associated with this name */
275 UINT8 Flags; /* Miscellaneous flags */
276 ACPI_OWNER_ID OwnerId; /* Node creator */
277 ACPI_NAME_UNION Name; /* ACPI Name, always 4 chars per ACPI spec */
97/* Lock structure for reader/writer interfaces */
98
99typedef struct acpi_rw_lock
100{
101 ACPI_MUTEX WriterMutex;
102 ACPI_MUTEX ReaderMutex;
103 UINT32 NumReaders;
104

--- 74 unchanged lines hidden (view full) ---

179typedef struct acpi_namespace_node
180{
181 union acpi_operand_object *Object; /* Interpreter object */
182 UINT8 DescriptorType; /* Differentiate object descriptor types */
183 UINT8 Type; /* ACPI Type associated with this name */
184 UINT8 Flags; /* Miscellaneous flags */
185 ACPI_OWNER_ID OwnerId; /* Node creator */
186 ACPI_NAME_UNION Name; /* ACPI Name, always 4 chars per ACPI spec */
187 struct acpi_namespace_node *Parent; /* Parent node */
278 struct acpi_namespace_node *Child; /* First child */
188 struct acpi_namespace_node *Child; /* First child */
279 struct acpi_namespace_node *Peer; /* Peer. Parent if ANOBJ_END_OF_PEER_LIST set */
189 struct acpi_namespace_node *Peer; /* First peer */
280
281 /*
282 * The following fields are used by the ASL compiler and disassembler only
283 */
284#ifdef ACPI_LARGE_NAMESPACE_NODE
285 union acpi_parse_object *Op;
286 UINT32 Value;
287 UINT32 Length;
288#endif
289
290} ACPI_NAMESPACE_NODE;
291
292
293/* Namespace Node flags */
294
190
191 /*
192 * The following fields are used by the ASL compiler and disassembler only
193 */
194#ifdef ACPI_LARGE_NAMESPACE_NODE
195 union acpi_parse_object *Op;
196 UINT32 Value;
197 UINT32 Length;
198#endif
199
200} ACPI_NAMESPACE_NODE;
201
202
203/* Namespace Node flags */
204
295#define ANOBJ_END_OF_PEER_LIST 0x01 /* End-of-list, Peer field points to parent */
205#define ANOBJ_RESERVED 0x01 /* Available for use */
296#define ANOBJ_TEMPORARY 0x02 /* Node is create by a method and is temporary */
297#define ANOBJ_METHOD_ARG 0x04 /* Node is a method argument */
298#define ANOBJ_METHOD_LOCAL 0x08 /* Node is a method local */
299#define ANOBJ_SUBTREE_HAS_INI 0x10 /* Used to optimize device initialization */
300#define ANOBJ_EVALUATED 0x20 /* Set on first evaluation of node */
301#define ANOBJ_ALLOCATED_BUFFER 0x40 /* Method AML buffer is dynamic (InstallMethod) */
302
303#define ANOBJ_IS_EXTERNAL 0x08 /* iASL only: This object created via External() */
304#define ANOBJ_METHOD_NO_RETVAL 0x10 /* iASL only: Method has no return value */
305#define ANOBJ_METHOD_SOME_NO_RETVAL 0x20 /* iASL only: Method has at least one return value */
306#define ANOBJ_IS_BIT_OFFSET 0x40 /* iASL only: Reference is a bit offset */
307#define ANOBJ_IS_REFERENCED 0x80 /* iASL only: Object was referenced */
308
309
206#define ANOBJ_TEMPORARY 0x02 /* Node is create by a method and is temporary */
207#define ANOBJ_METHOD_ARG 0x04 /* Node is a method argument */
208#define ANOBJ_METHOD_LOCAL 0x08 /* Node is a method local */
209#define ANOBJ_SUBTREE_HAS_INI 0x10 /* Used to optimize device initialization */
210#define ANOBJ_EVALUATED 0x20 /* Set on first evaluation of node */
211#define ANOBJ_ALLOCATED_BUFFER 0x40 /* Method AML buffer is dynamic (InstallMethod) */
212
213#define ANOBJ_IS_EXTERNAL 0x08 /* iASL only: This object created via External() */
214#define ANOBJ_METHOD_NO_RETVAL 0x10 /* iASL only: Method has no return value */
215#define ANOBJ_METHOD_SOME_NO_RETVAL 0x20 /* iASL only: Method has at least one return value */
216#define ANOBJ_IS_BIT_OFFSET 0x40 /* iASL only: Reference is a bit offset */
217#define ANOBJ_IS_REFERENCED 0x80 /* iASL only: Object was referenced */
218
219
310/* One internal RSDT for table management */
220/* Internal ACPI table management - master table list */
311
221
312typedef struct acpi_internal_rsdt
222typedef struct acpi_table_list
313{
223{
314 ACPI_TABLE_DESC *Tables;
315 UINT32 Count;
316 UINT32 Size;
224 ACPI_TABLE_DESC *Tables; /* Table descriptor array */
225 UINT32 CurrentTableCount; /* Tables currently in the array */
226 UINT32 MaxTableCount; /* Max tables array will hold */
317 UINT8 Flags;
318
227 UINT8 Flags;
228
319} ACPI_INTERNAL_RSDT;
229} ACPI_TABLE_LIST;
320
321/* Flags for above */
322
323#define ACPI_ROOT_ORIGIN_UNKNOWN (0) /* ~ORIGIN_ALLOCATED */
324#define ACPI_ROOT_ORIGIN_ALLOCATED (1)
325#define ACPI_ROOT_ALLOW_RESIZE (2)
326
327

--- 167 unchanged lines hidden (view full) ---

495
496
497/* Data block used during object validation */
498
499typedef struct acpi_predefined_data
500{
501 char *Pathname;
502 const ACPI_PREDEFINED_INFO *Predefined;
230
231/* Flags for above */
232
233#define ACPI_ROOT_ORIGIN_UNKNOWN (0) /* ~ORIGIN_ALLOCATED */
234#define ACPI_ROOT_ORIGIN_ALLOCATED (1)
235#define ACPI_ROOT_ALLOW_RESIZE (2)
236
237

--- 167 unchanged lines hidden (view full) ---

405
406
407/* Data block used during object validation */
408
409typedef struct acpi_predefined_data
410{
411 char *Pathname;
412 const ACPI_PREDEFINED_INFO *Predefined;
413 union acpi_operand_object *ParentPackage;
503 UINT32 Flags;
504 UINT8 NodeFlags;
505
506} ACPI_PREDEFINED_DATA;
507
508/* Defines for Flags field above */
509
510#define ACPI_OBJECT_REPAIRED 1

--- 19 unchanged lines hidden (view full) ---

530/*****************************************************************************
531 *
532 * Event typedefs and structs
533 *
534 ****************************************************************************/
535
536/* Dispatch info for each GPE -- either a method or handler, cannot be both */
537
414 UINT32 Flags;
415 UINT8 NodeFlags;
416
417} ACPI_PREDEFINED_DATA;
418
419/* Defines for Flags field above */
420
421#define ACPI_OBJECT_REPAIRED 1

--- 19 unchanged lines hidden (view full) ---

441/*****************************************************************************
442 *
443 * Event typedefs and structs
444 *
445 ****************************************************************************/
446
447/* Dispatch info for each GPE -- either a method or handler, cannot be both */
448
538typedef struct acpi_handler_info
449typedef struct acpi_gpe_handler_info
539{
450{
540 ACPI_EVENT_HANDLER Address; /* Address of handler, if any */
451 ACPI_GPE_HANDLER Address; /* Address of handler, if any */
541 void *Context; /* Context to be passed to handler */
542 ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level (saved) */
452 void *Context; /* Context to be passed to handler */
453 ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level (saved) */
454 UINT8 OriginalFlags; /* Original (pre-handler) GPE info */
455 BOOLEAN OriginallyEnabled; /* True if GPE was originally enabled */
543
456
544} ACPI_HANDLER_INFO;
457} ACPI_GPE_HANDLER_INFO;
545
458
459/*
460 * GPE dispatch info. At any time, the GPE can have at most one type
461 * of dispatch - Method, Handler, or Implicit Notify.
462 */
546typedef union acpi_gpe_dispatch_info
547{
548 ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level */
463typedef union acpi_gpe_dispatch_info
464{
465 ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level */
549 struct acpi_handler_info *Handler;
466 struct acpi_gpe_handler_info *Handler; /* Installed GPE handler */
467 ACPI_NAMESPACE_NODE *DeviceNode; /* Parent _PRW device for implicit notify */
550
551} ACPI_GPE_DISPATCH_INFO;
552
553/*
554 * Information about a GPE, one per each GPE in an array.
555 * NOTE: Important to keep this struct as small as possible.
556 */
557typedef struct acpi_gpe_event_info
558{
559 union acpi_gpe_dispatch_info Dispatch; /* Either Method or Handler */
560 struct acpi_gpe_register_info *RegisterInfo; /* Backpointer to register info */
561 UINT8 Flags; /* Misc info about this GPE */
562 UINT8 GpeNumber; /* This GPE */
468
469} ACPI_GPE_DISPATCH_INFO;
470
471/*
472 * Information about a GPE, one per each GPE in an array.
473 * NOTE: Important to keep this struct as small as possible.
474 */
475typedef struct acpi_gpe_event_info
476{
477 union acpi_gpe_dispatch_info Dispatch; /* Either Method or Handler */
478 struct acpi_gpe_register_info *RegisterInfo; /* Backpointer to register info */
479 UINT8 Flags; /* Misc info about this GPE */
480 UINT8 GpeNumber; /* This GPE */
481 UINT8 RuntimeCount; /* References to a run GPE */
563
564} ACPI_GPE_EVENT_INFO;
565
566/* Information about a GPE register pair, one per each status/enable pair in an array */
567
568typedef struct acpi_gpe_register_info
569{
570 ACPI_GENERIC_ADDRESS StatusAddress; /* Address of status reg */

--- 13 unchanged lines hidden (view full) ---

584 ACPI_NAMESPACE_NODE *Node;
585 struct acpi_gpe_block_info *Previous;
586 struct acpi_gpe_block_info *Next;
587 struct acpi_gpe_xrupt_info *XruptBlock; /* Backpointer to interrupt block */
588 ACPI_GPE_REGISTER_INFO *RegisterInfo; /* One per GPE register pair */
589 ACPI_GPE_EVENT_INFO *EventInfo; /* One for each GPE */
590 ACPI_GENERIC_ADDRESS BlockAddress; /* Base address of the block */
591 UINT32 RegisterCount; /* Number of register pairs in block */
482
483} ACPI_GPE_EVENT_INFO;
484
485/* Information about a GPE register pair, one per each status/enable pair in an array */
486
487typedef struct acpi_gpe_register_info
488{
489 ACPI_GENERIC_ADDRESS StatusAddress; /* Address of status reg */

--- 13 unchanged lines hidden (view full) ---

503 ACPI_NAMESPACE_NODE *Node;
504 struct acpi_gpe_block_info *Previous;
505 struct acpi_gpe_block_info *Next;
506 struct acpi_gpe_xrupt_info *XruptBlock; /* Backpointer to interrupt block */
507 ACPI_GPE_REGISTER_INFO *RegisterInfo; /* One per GPE register pair */
508 ACPI_GPE_EVENT_INFO *EventInfo; /* One for each GPE */
509 ACPI_GENERIC_ADDRESS BlockAddress; /* Base address of the block */
510 UINT32 RegisterCount; /* Number of register pairs in block */
511 UINT16 GpeCount; /* Number of individual GPEs in block */
592 UINT8 BlockBaseNumber;/* Base GPE number for this block */
512 UINT8 BlockBaseNumber;/* Base GPE number for this block */
513 BOOLEAN Initialized; /* TRUE if this block is initialized */
593
594} ACPI_GPE_BLOCK_INFO;
595
596/* Information about GPE interrupt handlers, one per each interrupt level used for GPEs */
597
598typedef struct acpi_gpe_xrupt_info
599{
600 struct acpi_gpe_xrupt_info *Previous;
601 struct acpi_gpe_xrupt_info *Next;
602 ACPI_GPE_BLOCK_INFO *GpeBlockListHead; /* List of GPE blocks for this xrupt */
603 UINT32 InterruptNumber; /* System interrupt number */
604
605} ACPI_GPE_XRUPT_INFO;
606
607typedef struct acpi_gpe_walk_info
608{
609 ACPI_NAMESPACE_NODE *GpeDevice;
610 ACPI_GPE_BLOCK_INFO *GpeBlock;
514
515} ACPI_GPE_BLOCK_INFO;
516
517/* Information about GPE interrupt handlers, one per each interrupt level used for GPEs */
518
519typedef struct acpi_gpe_xrupt_info
520{
521 struct acpi_gpe_xrupt_info *Previous;
522 struct acpi_gpe_xrupt_info *Next;
523 ACPI_GPE_BLOCK_INFO *GpeBlockListHead; /* List of GPE blocks for this xrupt */
524 UINT32 InterruptNumber; /* System interrupt number */
525
526} ACPI_GPE_XRUPT_INFO;
527
528typedef struct acpi_gpe_walk_info
529{
530 ACPI_NAMESPACE_NODE *GpeDevice;
531 ACPI_GPE_BLOCK_INFO *GpeBlock;
532 UINT16 Count;
533 ACPI_OWNER_ID OwnerId;
534 BOOLEAN ExecuteByOwnerId;
611
612} ACPI_GPE_WALK_INFO;
613
614typedef struct acpi_gpe_device_info
615{
616 UINT32 Index;
617 UINT32 NextBlockBaseIndex;
618 ACPI_STATUS Status;

--- 228 unchanged lines hidden (view full) ---

847 UINT8 ObjectType; /* Corresponding internal object type */
848 UINT8 Class; /* Opcode class */
849 UINT8 Type; /* Opcode type */
850
851} ACPI_OPCODE_INFO;
852
853typedef union acpi_parse_value
854{
535
536} ACPI_GPE_WALK_INFO;
537
538typedef struct acpi_gpe_device_info
539{
540 UINT32 Index;
541 UINT32 NextBlockBaseIndex;
542 ACPI_STATUS Status;

--- 228 unchanged lines hidden (view full) ---

771 UINT8 ObjectType; /* Corresponding internal object type */
772 UINT8 Class; /* Opcode class */
773 UINT8 Type; /* Opcode type */
774
775} ACPI_OPCODE_INFO;
776
777typedef union acpi_parse_value
778{
855 ACPI_INTEGER Integer; /* Integer constant (Up to 64 bits) */
856 UINT64_STRUCT Integer64; /* Structure overlay for 2 32-bit Dwords */
779 UINT64 Integer; /* Integer constant (Up to 64 bits) */
857 UINT32 Size; /* bytelist or field size */
858 char *String; /* NULL terminated string */
859 UINT8 *Buffer; /* buffer or string */
860 char *Name; /* NULL terminated string */
861 union acpi_parse_object *Arg; /* arguments and contained ops */
862
863} ACPI_PARSE_VALUE;
864

--- 203 unchanged lines hidden (view full) ---

1068
1069#define ACPI_BITMASK_ALL_FIXED_STATUS (\
1070 ACPI_BITMASK_TIMER_STATUS | \
1071 ACPI_BITMASK_BUS_MASTER_STATUS | \
1072 ACPI_BITMASK_GLOBAL_LOCK_STATUS | \
1073 ACPI_BITMASK_POWER_BUTTON_STATUS | \
1074 ACPI_BITMASK_SLEEP_BUTTON_STATUS | \
1075 ACPI_BITMASK_RT_CLOCK_STATUS | \
780 UINT32 Size; /* bytelist or field size */
781 char *String; /* NULL terminated string */
782 UINT8 *Buffer; /* buffer or string */
783 char *Name; /* NULL terminated string */
784 union acpi_parse_object *Arg; /* arguments and contained ops */
785
786} ACPI_PARSE_VALUE;
787

--- 203 unchanged lines hidden (view full) ---

991
992#define ACPI_BITMASK_ALL_FIXED_STATUS (\
993 ACPI_BITMASK_TIMER_STATUS | \
994 ACPI_BITMASK_BUS_MASTER_STATUS | \
995 ACPI_BITMASK_GLOBAL_LOCK_STATUS | \
996 ACPI_BITMASK_POWER_BUTTON_STATUS | \
997 ACPI_BITMASK_SLEEP_BUTTON_STATUS | \
998 ACPI_BITMASK_RT_CLOCK_STATUS | \
999 ACPI_BITMASK_PCIEXP_WAKE_STATUS | \
1076 ACPI_BITMASK_WAKE_STATUS)
1077
1078#define ACPI_BITMASK_TIMER_ENABLE 0x0001
1079#define ACPI_BITMASK_GLOBAL_LOCK_ENABLE 0x0020
1080#define ACPI_BITMASK_POWER_BUTTON_ENABLE 0x0100
1081#define ACPI_BITMASK_SLEEP_BUTTON_ENABLE 0x0200
1082#define ACPI_BITMASK_RT_CLOCK_ENABLE 0x0400
1083#define ACPI_BITMASK_PCIEXP_WAKE_DISABLE 0x4000 /* ACPI 3.0 */

--- 40 unchanged lines hidden (view full) ---

1124#define ACPI_OSI_WIN_XP 0x02
1125#define ACPI_OSI_WIN_XP_SP1 0x03
1126#define ACPI_OSI_WINSRV_2003 0x04
1127#define ACPI_OSI_WIN_XP_SP2 0x05
1128#define ACPI_OSI_WINSRV_2003_SP1 0x06
1129#define ACPI_OSI_WIN_VISTA 0x07
1130#define ACPI_OSI_WINSRV_2008 0x08
1131#define ACPI_OSI_WIN_VISTA_SP1 0x09
1000 ACPI_BITMASK_WAKE_STATUS)
1001
1002#define ACPI_BITMASK_TIMER_ENABLE 0x0001
1003#define ACPI_BITMASK_GLOBAL_LOCK_ENABLE 0x0020
1004#define ACPI_BITMASK_POWER_BUTTON_ENABLE 0x0100
1005#define ACPI_BITMASK_SLEEP_BUTTON_ENABLE 0x0200
1006#define ACPI_BITMASK_RT_CLOCK_ENABLE 0x0400
1007#define ACPI_BITMASK_PCIEXP_WAKE_DISABLE 0x4000 /* ACPI 3.0 */

--- 40 unchanged lines hidden (view full) ---

1048#define ACPI_OSI_WIN_XP 0x02
1049#define ACPI_OSI_WIN_XP_SP1 0x03
1050#define ACPI_OSI_WINSRV_2003 0x04
1051#define ACPI_OSI_WIN_XP_SP2 0x05
1052#define ACPI_OSI_WINSRV_2003_SP1 0x06
1053#define ACPI_OSI_WIN_VISTA 0x07
1054#define ACPI_OSI_WINSRV_2008 0x08
1055#define ACPI_OSI_WIN_VISTA_SP1 0x09
1132#define ACPI_OSI_WIN_7 0x0A
1056#define ACPI_OSI_WIN_VISTA_SP2 0x0A
1057#define ACPI_OSI_WIN_7 0x0B
1133
1134#define ACPI_ALWAYS_ILLEGAL 0x00
1135
1136typedef struct acpi_interface_info
1137{
1058
1059#define ACPI_ALWAYS_ILLEGAL 0x00
1060
1061typedef struct acpi_interface_info
1062{
1138 char *Name;
1139 UINT8 Value;
1063 char *Name;
1064 struct acpi_interface_info *Next;
1065 UINT8 Flags;
1066 UINT8 Value;
1140
1141} ACPI_INTERFACE_INFO;
1142
1067
1068} ACPI_INTERFACE_INFO;
1069
1070#define ACPI_OSI_INVALID 0x01
1071#define ACPI_OSI_DYNAMIC 0x02
1072
1143typedef struct acpi_port_info
1144{
1145 char *Name;
1146 UINT16 Start;
1147 UINT16 End;
1148 UINT8 OsiDependency;
1149
1150} ACPI_PORT_INFO;

--- 83 unchanged lines hidden (view full) ---

1234
1235} ACPI_EXTERNAL_LIST;
1236
1237/* Values for Flags field above */
1238
1239#define ACPI_IPATH_ALLOCATED 0x01
1240
1241
1073typedef struct acpi_port_info
1074{
1075 char *Name;
1076 UINT16 Start;
1077 UINT16 End;
1078 UINT8 OsiDependency;
1079
1080} ACPI_PORT_INFO;

--- 83 unchanged lines hidden (view full) ---

1164
1165} ACPI_EXTERNAL_LIST;
1166
1167/* Values for Flags field above */
1168
1169#define ACPI_IPATH_ALLOCATED 0x01
1170
1171
1172typedef struct acpi_external_file
1173{
1174 char *Path;
1175 struct acpi_external_file *Next;
1176
1177} ACPI_EXTERNAL_FILE;
1178
1179
1242/*****************************************************************************
1243 *
1244 * Debugger
1245 *
1246 ****************************************************************************/
1247
1248typedef struct acpi_db_method_info
1249{
1250 ACPI_HANDLE MainThreadGate;
1251 ACPI_HANDLE ThreadCompleteGate;
1252 ACPI_HANDLE InfoGate;
1180/*****************************************************************************
1181 *
1182 * Debugger
1183 *
1184 ****************************************************************************/
1185
1186typedef struct acpi_db_method_info
1187{
1188 ACPI_HANDLE MainThreadGate;
1189 ACPI_HANDLE ThreadCompleteGate;
1190 ACPI_HANDLE InfoGate;
1253 UINT32 *Threads;
1191 ACPI_THREAD_ID *Threads;
1254 UINT32 NumThreads;
1255 UINT32 NumCreated;
1256 UINT32 NumCompleted;
1257
1258 char *Name;
1259 UINT32 Flags;
1260 UINT32 NumLoops;
1261 char Pathname[128];
1262 char **Args;
1192 UINT32 NumThreads;
1193 UINT32 NumCreated;
1194 UINT32 NumCompleted;
1195
1196 char *Name;
1197 UINT32 Flags;
1198 UINT32 NumLoops;
1199 char Pathname[128];
1200 char **Args;
1201 ACPI_OBJECT_TYPE *Types;
1263
1264 /*
1265 * Arguments to be passed to method for the command
1266 * Threads -
1267 * the Number of threads, ID of current thread and
1268 * Index of current thread inside all them created.
1269 */
1270 char InitArgs;
1202
1203 /*
1204 * Arguments to be passed to method for the command
1205 * Threads -
1206 * the Number of threads, ID of current thread and
1207 * Index of current thread inside all them created.
1208 */
1209 char InitArgs;
1210 ACPI_OBJECT_TYPE ArgTypes[4];
1271 char *Arguments[4];
1272 char NumThreadsStr[11];
1273 char IdOfThreadStr[11];
1274 char IndexOfThreadStr[11];
1275
1276} ACPI_DB_METHOD_INFO;
1277
1278typedef struct acpi_integrity_info

--- 54 unchanged lines hidden ---
1211 char *Arguments[4];
1212 char NumThreadsStr[11];
1213 char IdOfThreadStr[11];
1214 char IndexOfThreadStr[11];
1215
1216} ACPI_DB_METHOD_INFO;
1217
1218typedef struct acpi_integrity_info

--- 54 unchanged lines hidden ---