XenevaOS
Loading...
Searching...
No Matches
acpredef.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Name: acpredef - Information table for ACPI predefined methods and objects
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
11 * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp.
12 * All rights reserved.
13 *
14 * 2. License
15 *
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.
20 *
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 *****************************************************************************
115 *
116 * Alternatively, you may choose to be licensed under the terms of the
117 * following license:
118 *
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
121 * are met:
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
133 *
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145 *
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
149 *
150 *****************************************************************************/
151
152#ifndef __ACPREDEF_H__
153#define __ACPREDEF_H__
154
155
156/******************************************************************************
157 *
158 * Return Package types
159 *
160 * 1) PTYPE1 packages do not contain subpackages.
161 *
162 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
163 * object type
164 * count
165 * object type
166 * count
167 *
168 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed:
169 * object type (Int/Buf/Ref)
170 *
171 * ACPI_PTYPE1_OPTION: Package has some required and some optional elements
172 * (Used for _PRW)
173 *
174 *
175 * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each
176 * of the different types describe the contents of each of the subpackages.
177 *
178 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
179 * parent package is allowed:
180 * object type
181 * count
182 * object type
183 * count
184 * (Used for _ALR,_MLS,_PSS,_TRT,_TSS)
185 *
186 * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element.
187 * Zero-length parent package is allowed:
188 * object type
189 * (Used for _CSD,_PSD,_TSD)
190 *
191 * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types:
192 * object type
193 * count
194 * object type
195 * count
196 * (Used for _CST)
197 *
198 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length
199 * parent package is allowed.
200 * (Used for _PRT)
201 *
202 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length.
203 * Zero-length parent package is allowed:
204 * (Used for _HPX)
205 *
206 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
207 * (Used for _ART, _FPS)
208 *
209 * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements
210 * followed by an optional element. Zero-length parent package is allowed.
211 * object type
212 * count
213 * object type
214 * count = 0 (optional)
215 * (Used for _DLM)
216 *
217 * ACPI_PTYPE2_VAR_VAR: Variable number of subpackages, each of either a
218 * constant or variable length. The subpackages are preceded by a
219 * constant number of objects.
220 * (Used for _LPI, _RDI)
221 *
222 * ACPI_PTYPE2_UUID_PAIR: Each subpackage is preceded by a UUID Buffer. The UUID
223 * defines the format of the package. Zero-length parent package is
224 * allowed.
225 * (Used for _DSD)
226 *
227 *****************************************************************************/
228
245
246
247/* Support macros for users of the predefined info table */
248
249#define METHOD_PREDEF_ARGS_MAX 4
250#define METHOD_ARG_BIT_WIDTH 3
251#define METHOD_ARG_MASK 0x0007
252#define ARG_COUNT_IS_MINIMUM 0x8000
253#define METHOD_MAX_ARG_TYPE ACPI_TYPE_PACKAGE
254
255#define METHOD_GET_ARG_COUNT(ArgList) ((ArgList) & METHOD_ARG_MASK)
256#define METHOD_GET_NEXT_TYPE(ArgList) (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
257
258/* Macros used to build the predefined info table */
259
260#define METHOD_0ARGS 0
261#define METHOD_1ARGS(a1) (1 | (a1 << 3))
262#define METHOD_2ARGS(a1,a2) (2 | (a1 << 3) | (a2 << 6))
263#define METHOD_3ARGS(a1,a2,a3) (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))
264#define METHOD_4ARGS(a1,a2,a3,a4) (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))
265
266#define METHOD_RETURNS(type) (type)
267#define METHOD_NO_RETURN_VALUE 0
268
269#define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}}
270
271
272/* Support macros for the resource descriptor info table */
273
274#define WIDTH_1 0x0001
275#define WIDTH_2 0x0002
276#define WIDTH_3 0x0004
277#define WIDTH_8 0x0008
278#define WIDTH_16 0x0010
279#define WIDTH_32 0x0020
280#define WIDTH_64 0x0040
281#define VARIABLE_DATA 0x0080
282#define NUM_RESOURCE_WIDTHS 8
283
284#define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64
285
286
287#ifdef ACPI_CREATE_PREDEFINED_TABLE
288/******************************************************************************
289 *
290 * Predefined method/object information table.
291 *
292 * These are the names that can actually be evaluated via AcpiEvaluateObject.
293 * Not present in this table are the following:
294 *
295 * 1) Predefined/Reserved names that are not usually evaluated via
296 * AcpiEvaluateObject:
297 * _Lxx and _Exx GPE methods
298 * _Qxx EC methods
299 * _T_x compiler temporary variables
300 * _Wxx wake events
301 *
302 * 2) Predefined names that never actually exist within the AML code:
303 * Predefined resource descriptor field names
304 *
305 * 3) Predefined names that are implemented within ACPICA:
306 * _OSI
307 *
308 * The main entries in the table each contain the following items:
309 *
310 * Name - The ACPI reserved name
311 * ArgumentList - Contains (in 16 bits), the number of required
312 * arguments to the method (3 bits), and a 3-bit type
313 * field for each argument (up to 4 arguments). The
314 * METHOD_?ARGS macros generate the correct packed data.
315 * ExpectedBtypes - Allowed type(s) for the return value.
316 * 0 means that no return value is expected.
317 *
318 * For methods that return packages, the next entry in the table contains
319 * information about the expected structure of the package. This information
320 * is saved here (rather than in a separate table) in order to minimize the
321 * overall size of the stored data.
322 *
323 * Note: The additional braces are intended to promote portability.
324 *
325 * Note2: Table is used by the kernel-resident subsystem, the iASL compiler,
326 * and the AcpiHelp utility.
327 *
328 * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair.
329 * Possibly fixing package elements like _BIF, etc.
330 *
331 *****************************************************************************/
332
334{
335 {{"_AC0", METHOD_0ARGS,
337
338 {{"_AC1", METHOD_0ARGS,
340
341 {{"_AC2", METHOD_0ARGS,
343
344 {{"_AC3", METHOD_0ARGS,
346
347 {{"_AC4", METHOD_0ARGS,
349
350 {{"_AC5", METHOD_0ARGS,
352
353 {{"_AC6", METHOD_0ARGS,
355
356 {{"_AC7", METHOD_0ARGS,
358
359 {{"_AC8", METHOD_0ARGS,
361
362 {{"_AC9", METHOD_0ARGS,
364
365 {{"_ADR", METHOD_0ARGS,
367
368 {{"_AEI", METHOD_0ARGS,
370
371 {{"_AL0", METHOD_0ARGS,
372 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
374
375 {{"_AL1", METHOD_0ARGS,
376 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
378
379 {{"_AL2", METHOD_0ARGS,
380 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
382
383 {{"_AL3", METHOD_0ARGS,
384 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
386
387 {{"_AL4", METHOD_0ARGS,
388 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
390
391 {{"_AL5", METHOD_0ARGS,
392 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
394
395 {{"_AL6", METHOD_0ARGS,
396 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
398
399 {{"_AL7", METHOD_0ARGS,
400 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
402
403 {{"_AL8", METHOD_0ARGS,
404 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
406
407 {{"_AL9", METHOD_0ARGS,
408 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
410
411 {{"_ALC", METHOD_0ARGS,
413
414 {{"_ALI", METHOD_0ARGS,
416
417 {{"_ALP", METHOD_0ARGS,
419
420 {{"_ALR", METHOD_0ARGS,
421 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 (Ints) */
423
424 {{"_ALT", METHOD_0ARGS,
426
427 {{"_ART", METHOD_0ARGS,
428 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */
430
431 {{"_BBN", METHOD_0ARGS,
433
434 {{"_BCL", METHOD_0ARGS,
435 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
437
440
443
444 {{"_BDN", METHOD_0ARGS,
446
449
450 {{"_BIF", METHOD_0ARGS,
451 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (9 Int),(4 Str) */
453
454 {{"_BIX", METHOD_0ARGS,
455 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int),(4 Str) */
457
460
463
466
467 {{"_BMD", METHOD_0ARGS,
468 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */
470
473
474 {{"_BQC", METHOD_0ARGS,
476
477 {{"_BST", METHOD_0ARGS,
478 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
480
481 {{"_BTH", METHOD_1ARGS (ACPI_TYPE_INTEGER), /* ACPI 6.0 */
483
486
489
490 {{"_CBA", METHOD_0ARGS,
491 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See PCI firmware spec 3.0 */
492
493 {{"_CCA", METHOD_0ARGS,
494 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 5.1 */
495
496 {{"_CDM", METHOD_0ARGS,
498
499 {{"_CID", METHOD_0ARGS,
500 METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Strs) */
502
503 {{"_CLS", METHOD_0ARGS,
504 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
506
507 {{"_CPC", METHOD_0ARGS,
508 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Bufs) */
510
511 {{"_CR3", METHOD_0ARGS, /* ACPI 6.0 */
513
514 {{"_CRS", METHOD_0ARGS,
516
517 {{"_CRT", METHOD_0ARGS,
519
520 {{"_CSD", METHOD_0ARGS,
521 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n-1 Int) */
523
524 {{"_CST", METHOD_0ARGS,
525 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
527
530
533
534 {{"_DCS", METHOD_0ARGS,
536
539
540 {{"_DDN", METHOD_0ARGS,
542
543 {{"_DEP", METHOD_0ARGS,
544 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
546
547 {{"_DGS", METHOD_0ARGS,
549
550 {{"_DIS", METHOD_0ARGS,
552
553 {{"_DLM", METHOD_0ARGS,
554 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */
556
557 {{"_DMA", METHOD_0ARGS,
559
560 {{"_DOD", METHOD_0ARGS,
561 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
563
566
567 {{"_DSD", METHOD_0ARGS, /* ACPI 6.0 */
568 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */
570
572 METHOD_RETURNS (ACPI_RTYPE_ALL)}}, /* Must return a value, but it can be of any type */
573
576
579
582
583 {{"_EC_", METHOD_0ARGS,
585
586 {{"_EDL", METHOD_0ARGS,
587 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs)*/
589
592
595
598
601
604
605 {{"_EJD", METHOD_0ARGS,
607
609 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* Internal use only, used by ACPICA test suites */
610
613
614 {{"_FDE", METHOD_0ARGS,
616
617 {{"_FDI", METHOD_0ARGS,
618 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int) */
620
623
624 {{"_FIF", METHOD_0ARGS,
625 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
627
628 {{"_FIT", METHOD_0ARGS,
629 METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, /* ACPI 6.0 */
630
631 {{"_FIX", METHOD_0ARGS,
632 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */
634
635 {{"_FPS", METHOD_0ARGS,
636 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */
638
641
642 {{"_FST", METHOD_0ARGS,
643 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */
645
646 {{"_GAI", METHOD_0ARGS,
648
649 {{"_GCP", METHOD_0ARGS,
651
652 {{"_GHL", METHOD_0ARGS,
654
655 {{"_GLK", METHOD_0ARGS,
657
658 {{"_GPD", METHOD_0ARGS,
660
661 {{"_GPE", METHOD_0ARGS,
662 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* _GPE method, not _GPE scope */
663
664 {{"_GRT", METHOD_0ARGS,
666
667 {{"_GSB", METHOD_0ARGS,
669
670 {{"_GTF", METHOD_0ARGS,
672
673 {{"_GTM", METHOD_0ARGS,
675
678
681
682 {{"_HID", METHOD_0ARGS,
684
685 {{"_HMA", METHOD_0ARGS,
687
688 {{"_HOT", METHOD_0ARGS,
690
691 {{"_HPP", METHOD_0ARGS,
692 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
694
695 /*
696 * For _HPX, a single package is returned, containing a variable-length number
697 * of subpackages. Each subpackage contains a PCI record setting.
698 * There are several different type of record settings, of different
699 * lengths, but all elements of all settings are Integers.
700 */
701 {{"_HPX", METHOD_0ARGS,
702 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (var Ints) */
704
705 {{"_HRV", METHOD_0ARGS,
707
708 {{"_IFT", METHOD_0ARGS,
709 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
710
711 {{"_INI", METHOD_0ARGS,
713
714 {{"_IRC", METHOD_0ARGS,
716
719
720 {{"_LID", METHOD_0ARGS,
722
723 {{"_LPD", METHOD_0ARGS,
724 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Int) */
726
727 {{"_LPI", METHOD_0ARGS, /* ACPI 6.0 */
728 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (3 Int, n Pkg (10 Int/Buf) */
731
732 {{"_LSI", METHOD_0ARGS,
735
739
742
743 {{"_MAT", METHOD_0ARGS,
745
746 {{"_MBM", METHOD_0ARGS,
747 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (8 Int) */
749
750 {{"_MLS", METHOD_0ARGS,
751 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */
753
756
759
760 {{"_MTL", METHOD_0ARGS, /* ACPI 6.0 */
762
763 {{"_NBS", METHOD_0ARGS, /* ACPI 6.3 */
765
766 {{"_NCH", METHOD_0ARGS, /* ACPI 6.3 */
768
769 {{"_NIC", METHOD_0ARGS, /* ACPI 6.3 */
771
772 {{"_NIG", METHOD_1ARGS (ACPI_TYPE_BUFFER), /* ACPI 6.3 */
774
775 {{"_NIH", METHOD_0ARGS, /* ACPI 6.3 */
777
778 {{"_NTT", METHOD_0ARGS,
780
781 {{"_OFF", METHOD_0ARGS,
783
784 {{"_ON_", METHOD_0ARGS,
786
787 {{"_OS_", METHOD_0ARGS,
789
792
795
798
799 {{"_PCL", METHOD_0ARGS,
800 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
802
803 {{"_PCT", METHOD_0ARGS,
804 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
806
807 {{"_PDC", METHOD_1ARGS (ACPI_TYPE_BUFFER),
809
810 {{"_PDL", METHOD_0ARGS,
812
815
816 {{"_PIF", METHOD_0ARGS,
817 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int),(3 Str) */
819
820 {{"_PLD", METHOD_0ARGS,
821 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Bufs) */
823
824 {{"_PMC", METHOD_0ARGS,
825 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (11 Int),(3 Str) */
827
828 {{"_PMD", METHOD_0ARGS,
829 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
831
832 {{"_PMM", METHOD_0ARGS,
834
835 {{"_PPC", METHOD_0ARGS,
837
838 {{"_PPE", METHOD_0ARGS,
839 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See dig64 spec */
840
841 {{"_PR0", METHOD_0ARGS,
842 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
844
845 {{"_PR1", METHOD_0ARGS,
846 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
848
849 {{"_PR2", METHOD_0ARGS,
850 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
852
853 {{"_PR3", METHOD_0ARGS,
854 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
856
857 {{"_PRE", METHOD_0ARGS,
858 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
860
861 {{"_PRL", METHOD_0ARGS,
862 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
864
865 {{"_PRR", METHOD_0ARGS, /* ACPI 6.0 */
866 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Ref) */
868
869 {{"_PRS", METHOD_0ARGS,
871
872 /*
873 * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source
874 * and SourceIndex). This bug is so prevalent that there is code in the
875 * ACPICA Resource Manager to detect this and switch them back. For now,
876 * do not allow and issue a warning. To allow this and eliminate the
877 * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3)
878 * in the statement below.
879 */
880 {{"_PRT", METHOD_0ARGS,
881 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
884
885 {{"_PRW", METHOD_0ARGS,
886 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
889
890 {{"_PS0", METHOD_0ARGS,
892
893 {{"_PS1", METHOD_0ARGS,
895
896 {{"_PS2", METHOD_0ARGS,
898
899 {{"_PS3", METHOD_0ARGS,
901
902 {{"_PSC", METHOD_0ARGS,
904
905 {{"_PSD", METHOD_0ARGS,
906 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (5 Int) with count */
908
911
912 {{"_PSL", METHOD_0ARGS,
913 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
915
916 {{"_PSR", METHOD_0ARGS,
918
919 {{"_PSS", METHOD_0ARGS,
920 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (6 Int) */
922
923 {{"_PSV", METHOD_0ARGS,
925
928
929 {{"_PTC", METHOD_0ARGS,
930 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */
932
935
938
939 {{"_PUR", METHOD_0ARGS,
940 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */
942
943 {{"_PXM", METHOD_0ARGS,
945
946 {{"_RDI", METHOD_0ARGS, /* ACPI 6.0 */
947 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int, n Pkg (m Ref)) */
950
953
954 {{"_REV", METHOD_0ARGS,
956
957 {{"_RMV", METHOD_0ARGS,
959
962
963 {{"_RST", METHOD_0ARGS, /* ACPI 6.0 */
965
966 {{"_RTV", METHOD_0ARGS,
968
969 /*
970 * For _S0_ through _S5_, the ACPI spec defines a return Package
971 * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
972 * Allow this by making the objects "Variable-length length", but all elements
973 * must be Integers.
974 */
975 {{"_S0_", METHOD_0ARGS,
976 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
978
979 {{"_S1_", METHOD_0ARGS,
980 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
982
983 {{"_S2_", METHOD_0ARGS,
984 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
986
987 {{"_S3_", METHOD_0ARGS,
988 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
990
991 {{"_S4_", METHOD_0ARGS,
992 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
994
995 {{"_S5_", METHOD_0ARGS,
996 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */
998
999 {{"_S1D", METHOD_0ARGS,
1001
1002 {{"_S2D", METHOD_0ARGS,
1004
1005 {{"_S3D", METHOD_0ARGS,
1007
1008 {{"_S4D", METHOD_0ARGS,
1010
1011 {{"_S0W", METHOD_0ARGS,
1013
1014 {{"_S1W", METHOD_0ARGS,
1016
1017 {{"_S2W", METHOD_0ARGS,
1019
1020 {{"_S3W", METHOD_0ARGS,
1022
1023 {{"_S4W", METHOD_0ARGS,
1025
1026 {{"_SBS", METHOD_0ARGS,
1028
1030 METHOD_NO_RETURN_VALUE}}, /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */
1031
1032 {{"_SDD", METHOD_1ARGS (ACPI_TYPE_BUFFER),
1034
1035 {{"_SEG", METHOD_0ARGS,
1037
1038 {{"_SHL", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1040
1041 {{"_SLI", METHOD_0ARGS,
1043
1044 {{"_SPD", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1046
1047 {{"_SRS", METHOD_1ARGS (ACPI_TYPE_BUFFER),
1049
1050 {{"_SRT", METHOD_1ARGS (ACPI_TYPE_BUFFER),
1052
1053 {{"_SRV", METHOD_0ARGS,
1054 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */
1055
1056 {{"_SST", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1058
1059 {{"_STA", METHOD_0ARGS,
1061
1064
1067
1068 {{"_STR", METHOD_0ARGS,
1070
1073
1074 {{"_SUB", METHOD_0ARGS,
1076
1077 {{"_SUN", METHOD_0ARGS,
1079
1080 {{"_SWS", METHOD_0ARGS,
1082
1083 {{"_TC1", METHOD_0ARGS,
1085
1086 {{"_TC2", METHOD_0ARGS,
1088
1089 {{"_TDL", METHOD_0ARGS,
1091
1092 {{"_TFP", METHOD_0ARGS, /* ACPI 6.0 */
1094
1095 {{"_TIP", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1097
1098 {{"_TIV", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1100
1101 {{"_TMP", METHOD_0ARGS,
1103
1104 {{"_TPC", METHOD_0ARGS,
1106
1107 {{"_TPT", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1109
1110 {{"_TRT", METHOD_0ARGS,
1111 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */
1113
1114 {{"_TSD", METHOD_0ARGS,
1115 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int with count */
1117
1118 {{"_TSN", METHOD_0ARGS, /* ACPI 6.0 */
1120
1121 {{"_TSP", METHOD_0ARGS,
1123
1124 {{"_TSS", METHOD_0ARGS,
1125 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int */
1127
1128 {{"_TST", METHOD_0ARGS,
1130
1131 {{"_TTS", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1133
1134 {{"_TZD", METHOD_0ARGS,
1135 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */
1137
1138 {{"_TZM", METHOD_0ARGS,
1140
1141 {{"_TZP", METHOD_0ARGS,
1143
1144 {{"_UID", METHOD_0ARGS,
1146
1147 {{"_UPC", METHOD_0ARGS,
1148 METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */
1150
1151 {{"_UPD", METHOD_0ARGS,
1153
1154 {{"_UPP", METHOD_0ARGS,
1156
1157 {{"_VPO", METHOD_0ARGS,
1159
1160 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
1161
1162 {{"_WAK", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1164 PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), /* Fixed-length (2 Int), but is optional */
1165
1166 /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */
1167
1168 {{"_WDG", METHOD_0ARGS,
1170
1171 {{"_WED", METHOD_1ARGS (ACPI_TYPE_INTEGER),
1173
1174 {{"_WPC", METHOD_0ARGS,
1175 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */
1176
1177 {{"_WPP", METHOD_0ARGS,
1178 METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */
1179
1180 PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1181};
1182#else
1184#endif
1185
1186
1187#if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION)
1188/******************************************************************************
1189 *
1190 * Predefined names for use in Resource Descriptors. These names do not
1191 * appear in the global Predefined Name table (since these names never
1192 * appear in actual AML byte code, only in the original ASL)
1193 *
1194 * Note: Used by iASL compiler and AcpiHelp utility only.
1195 *
1196 *****************************************************************************/
1197
1199{
1200 {{"_ADR", WIDTH_16 | WIDTH_64, 0}},
1201 {{"_ALN", WIDTH_8 | WIDTH_16 | WIDTH_32, 0}},
1202 {{"_ASI", WIDTH_8, 0}},
1203 {{"_ASZ", WIDTH_8, 0}},
1204 {{"_ATT", WIDTH_64, 0}},
1205 {{"_BAS", WIDTH_16 | WIDTH_32, 0}},
1206 {{"_BM_", WIDTH_1, 0}},
1207 {{"_DBT", WIDTH_16, 0}}, /* Acpi 5.0 */
1208 {{"_DEC", WIDTH_1, 0}},
1209 {{"_DMA", WIDTH_8, 0}},
1210 {{"_DPL", WIDTH_1, 0}}, /* Acpi 5.0 */
1211 {{"_DRS", WIDTH_16, 0}}, /* Acpi 5.0 */
1212 {{"_END", WIDTH_1, 0}}, /* Acpi 5.0 */
1213 {{"_FLC", WIDTH_2, 0}}, /* Acpi 5.0 */
1214 {{"_GRA", WIDTH_ADDRESS, 0}},
1215 {{"_HE_", WIDTH_1, 0}},
1216 {{"_INT", WIDTH_16 | WIDTH_32, 0}},
1217 {{"_IOR", WIDTH_2, 0}}, /* Acpi 5.0 */
1218 {{"_LEN", WIDTH_8 | WIDTH_ADDRESS, 0}},
1219 {{"_LIN", WIDTH_8, 0}}, /* Acpi 5.0 */
1220 {{"_LL_", WIDTH_1, 0}},
1221 {{"_MAF", WIDTH_1, 0}},
1222 {{"_MAX", WIDTH_ADDRESS, 0}},
1223 {{"_MEM", WIDTH_2, 0}},
1224 {{"_MIF", WIDTH_1, 0}},
1225 {{"_MIN", WIDTH_ADDRESS, 0}},
1226 {{"_MOD", WIDTH_1, 0}}, /* Acpi 5.0 */
1227 {{"_MTP", WIDTH_2, 0}},
1228 {{"_PAR", WIDTH_8, 0}}, /* Acpi 5.0 */
1229 {{"_PHA", WIDTH_1, 0}}, /* Acpi 5.0 */
1230 {{"_PIN", WIDTH_16, 0}}, /* Acpi 5.0 */
1231 {{"_PPI", WIDTH_8, 0}}, /* Acpi 5.0 */
1232 {{"_POL", WIDTH_1 | WIDTH_2, 0}}, /* Acpi 5.0 */
1233 {{"_RBO", WIDTH_8, 0}},
1234 {{"_RBW", WIDTH_8, 0}},
1235 {{"_RNG", WIDTH_1, 0}},
1236 {{"_RT_", WIDTH_8, 0}}, /* Acpi 3.0 */
1237 {{"_RW_", WIDTH_1, 0}},
1238 {{"_RXL", WIDTH_16, 0}}, /* Acpi 5.0 */
1239 {{"_SHR", WIDTH_2, 0}},
1240 {{"_SIZ", WIDTH_2, 0}},
1241 {{"_SLV", WIDTH_1, 0}}, /* Acpi 5.0 */
1242 {{"_SPE", WIDTH_32, 0}}, /* Acpi 5.0 */
1243 {{"_STB", WIDTH_2, 0}}, /* Acpi 5.0 */
1244 {{"_TRA", WIDTH_ADDRESS, 0}},
1245 {{"_TRS", WIDTH_1, 0}},
1246 {{"_TSF", WIDTH_8, 0}}, /* Acpi 3.0 */
1247 {{"_TTP", WIDTH_1, 0}},
1248 {{"_TXL", WIDTH_16, 0}}, /* Acpi 5.0 */
1249 {{"_TYP", WIDTH_2 | WIDTH_16, 0}},
1250 {{"_VEN", VARIABLE_DATA, 0}}, /* Acpi 5.0 */
1251 PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1252};
1253
1254const ACPI_PREDEFINED_INFO AcpiGbl_ScopeNames[] = {
1255 {{"_GPE", 0, 0}},
1256 {{"_PR_", 0, 0}},
1257 {{"_SB_", 0, 0}},
1258 {{"_SI_", 0, 0}},
1259 {{"_TZ_", 0, 0}},
1260 PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */
1261};
1262#else
1264#endif
1265
1266#endif
#define ACPI_RTYPE_REFERENCE
Definition aclocal.h:590
#define ACPI_RTYPE_ALL
Definition aclocal.h:591
#define ACPI_RTYPE_STRING
Definition aclocal.h:587
#define ACPI_RTYPE_INTEGER
Definition aclocal.h:586
#define ACPI_RTYPE_PACKAGE
Definition aclocal.h:589
#define ACPI_RTYPE_BUFFER
Definition aclocal.h:588
#define ACPI_RTYPE_NONE
Definition aclocal.h:585
#define METHOD_RETURNS(type)
Definition acpredef.h:266
AcpiReturnPackageTypes
Definition acpredef.h:230
@ ACPI_PTYPE2_FIX_VAR
Definition acpredef.h:240
@ ACPI_PTYPE2_UUID_PAIR
Definition acpredef.h:242
@ ACPI_PTYPE2_REV_FIXED
Definition acpredef.h:239
@ ACPI_PTYPE1_VAR
Definition acpredef.h:232
@ ACPI_PTYPE2_FIXED
Definition acpredef.h:237
@ ACPI_PTYPE2_PKG_COUNT
Definition acpredef.h:236
@ ACPI_PTYPE_CUSTOM
Definition acpredef.h:243
@ ACPI_PTYPE1_FIXED
Definition acpredef.h:231
@ ACPI_PTYPE2_MIN
Definition acpredef.h:238
@ ACPI_PTYPE2
Definition acpredef.h:234
@ ACPI_PTYPE2_COUNT
Definition acpredef.h:235
@ ACPI_PTYPE1_OPTION
Definition acpredef.h:233
@ ACPI_PTYPE2_VAR_VAR
Definition acpredef.h:241
#define METHOD_0ARGS
Definition acpredef.h:260
#define METHOD_NO_RETURN_VALUE
Definition acpredef.h:267
#define METHOD_4ARGS(a1, a2, a3, a4)
Definition acpredef.h:264
#define WIDTH_16
Definition acpredef.h:278
#define WIDTH_64
Definition acpredef.h:280
#define METHOD_2ARGS(a1, a2)
Definition acpredef.h:262
#define VARIABLE_DATA
Definition acpredef.h:281
#define WIDTH_8
Definition acpredef.h:277
#define WIDTH_32
Definition acpredef.h:279
#define WIDTH_1
Definition acpredef.h:274
#define WIDTH_ADDRESS
Definition acpredef.h:284
#define PACKAGE_INFO(a, b, c, d, e, f)
Definition acpredef.h:269
#define ARG_COUNT_IS_MINIMUM
Definition acpredef.h:252
const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[]
const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[]
#define WIDTH_2
Definition acpredef.h:275
#define METHOD_3ARGS(a1, a2, a3)
Definition acpredef.h:263
#define METHOD_1ARGS(a1)
Definition acpredef.h:261
#define ACPI_TYPE_STRING
Definition actypes.h:788
#define ACPI_TYPE_BUFFER
Definition actypes.h:789
#define ACPI_TYPE_INTEGER
Definition actypes.h:787
#define ACPI_TYPE_PACKAGE
Definition actypes.h:790
Definition aclocal.h:548